*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--aam-paper);
  color: var(--aam-ink);
  font-family: var(--aam-font);
  font-size: 13px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body.admin-bar { min-height: calc(100vh - 32px); }

::selection { background: var(--aam-orange); color: var(--aam-paper); }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--aam-orange); }
button, input, textarea, select { font: inherit; color: inherit; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
img, svg { display: block; max-width: 100%; }
p, h1, h2, h3, h4, ul, ol, figure, pre { margin-top: 0; }
h1, h2, h3, h4 { font-weight: 400; letter-spacing: .015em; }

:focus-visible {
  outline: 2px solid var(--aam-orange);
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.screen-reader-text:focus {
  position: fixed !important;
  top: 8px; left: 8px; z-index: 100000;
  width: auto; height: auto;
  padding: 10px 14px; margin: 0;
  overflow: visible; clip: auto;
  background: var(--aam-paper); color: var(--aam-ink);
  border: 1px solid var(--aam-orange);
}

.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block-start: 0; }
.wp-block-template-part { margin: 0; }

html[data-theme="dark"] .aam-ascii-figure,
html[data-theme="dark"] .aam-icon { color: #dedad2; }

