/* Visitors Plaza — foundations.
   Warm espresso ground, sand type, brass and clay. Nothing here is blue-black,
   nothing glows, and the display face is set in mixed case on purpose. */

:root {
  --night:   #0E0E0E;
  --night-2: #171717;
  --night-3: #222222;

  --sand:    #F7F6F3;
  --sand-2:  #B5B3AE;
  --sand-3:  #85837E;

  --brass:   #FFCD3D;
  --brass-2: #FFDD73;
  --clay:    #FFCD3D;   /* display sizes and fills */
  --clay-2:  #FFD65C;   /* small text on the dark ground */
  --clay-3:  #8A6400;   /* small text on sand */
  --sage:    #FFCD3D;   /* the fourth key colour, map only */

  --line:    rgba(247, 246, 243, 0.15);
  --line-2:  rgba(247, 246, 243, 0.07);
  --line-d:  rgba(14, 14, 14, 0.16);

  --shell:   1200px;
  --gutter:  clamp(1.25rem, 4.5vw, 3.5rem);

  /* the arch: a true semicircle on top of a 4:5 box */
  --arch:    50% 50% 6px 6px / 40% 40% 2% 2%;

  --ease:    cubic-bezier(0.22, 0.7, 0.26, 1);

  --display: Newsreader, "Iowan Old Style", Georgia, serif;
  --body:    "Hanken Grotesk", -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--sand-2);
  font-family: var(--body);
  font-variation-settings: "wght" 390;
  font-size: clamp(1rem, 0.96rem + 0.22vw, 1.09rem);
  line-height: 1.62;
  overflow-x: hidden;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }

/* ------------------------------------------------------------ typography */
h1, h2, h3 {
  margin: 0 0 0.45em;
  font-family: var(--display);
  color: var(--sand);
  font-weight: 400;
  letter-spacing: -0.006em;
}

h1 {
  font-variation-settings: "wght" 380, "opsz" 72;
  font-size: clamp(2.5rem, 1.5rem + 3.9vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: -0.018em;
}

h2 {
  font-variation-settings: "wght" 400, "opsz" 60;
  font-size: clamp(1.95rem, 1.4rem + 2.2vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: -0.014em;
}

h3 {
  font-variation-settings: "wght" 440, "opsz" 36;
  font-size: clamp(1.45rem, 1.25rem + 0.85vw, 1.95rem);
  line-height: 1.12;
}

h4 {
  margin: 0 0 0.4em;
  font-family: var(--body);
  font-variation-settings: "wght" 620;
  font-size: 1rem;
  color: var(--sand);
  letter-spacing: 0;
}

em { font-style: italic; }
h1 em, h2 em { font-variation-settings: "wght" 340, "opsz" 60; color: var(--brass-2); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.08rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.52;
  color: var(--sand-2);
  max-width: 54ch;
}

/* the quiet utility voice — moderate tracking, never shouty */
.eyebrow {
  display: block;
  font-variation-settings: "wght" 620;
  font-size: 0.775rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1.1rem;
}

a { color: var(--brass-2); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--sand); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: 0.35em; }

/* ---------------------------------------------------------------- a11y */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 999;
  background: var(--brass);
  color: var(--night);
  padding: 0.85rem 1.4rem;
  border-radius: 2px;
  font-variation-settings: "wght" 640;
  text-decoration: none;
  transition: top 0.16s var(--ease);
}
.skip-link:focus { top: 1rem; color: var(--night); }

:focus-visible { outline: 2px solid var(--brass-2); outline-offset: 4px; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

::selection { background: var(--brass); color: var(--night); }
