/* Shared by the three direction tiles: fonts, palette, reset, header mechanics, the tile annex. */

@font-face { font-family: "Young Serif"; src: url("fonts/young-serif-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Albert Sans"; src: url("fonts/albert-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Albert Sans"; src: url("fonts/albert-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Petrona"; src: url("fonts/petrona-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Petrona"; src: url("fonts/petrona-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Commissioner"; src: url("fonts/commissioner-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Commissioner"; src: url("fonts/commissioner-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("fonts/schibsted-grotesk-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("fonts/schibsted-grotesk-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Literata"; src: url("fonts/literata-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hand Stand-in"; src: url("fonts/nothing-you-could-do-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --forest-100: #D9DEC8;
  --forest-500: #3C4E33;
  --forest-700: #2E3D27;
  --forest-900: #1F2A1A;
  --terra-300: #E9B48F;
  --terra-500: #BE6738;
  --terra-600: #AA5530;
  --terra-700: #8F4525;
  --paper: #FBF4EA;
  --cream: #F9EFE3;
  --khaki: #E6E1CC;
  --clay: #EED8C6;
  --ink: #23291F;
  --ink-muted: #4A5442;
  --white: #FFFFFF;
  --gutter: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 1.0625rem; line-height: 1.65; }
@media (min-width: 900px) { body { font-size: 1.125rem; } }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
::selection { background: var(--forest-500); color: var(--paper); }
:focus-visible { outline: 3px solid var(--terra-500); outline-offset: 3px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--terra-300); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--forest-900); color: var(--paper); padding: 12px 16px; z-index: 50; }
.skip:focus { top: 12px; }

/* Phone menu: Give never folds into it. */
.menu-btn { display: none; }
@media (max-width: 899px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; }
  .menu-btn svg { width: 26px; height: 26px; }
  .site-nav { display: none; }
  .site-nav.is-open { display: block; position: absolute; left: 0; right: 0; top: 100%; z-index: 20; }
}

/* ---------- The tile annex: the parts of each direction, below its hero ---------- */
.annex { padding-block: clamp(56px, 8vw, 104px) 72px; padding-inline: var(--gutter); }
.annex-inner { max-width: 1180px; margin: 0 auto; }
.annex-head { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; justify-content: space-between; padding-bottom: 20px; border-bottom: 2px solid currentColor; margin-bottom: 48px; }
.annex-head p { font-size: .9375rem; }
.annex-head a { min-height: 44px; display: inline-flex; align-items: center; }
.annex section + section { margin-top: clamp(56px, 7vw, 88px); }
.annex h2 { margin-bottom: 24px; }

.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0; }
.swatch { min-height: 140px; padding: 14px; display: flex; flex-direction: column; justify-content: flex-end; font-size: .875rem; line-height: 1.35; }
.swatch b { font-weight: 600; display: block; }

.states { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px 24px; }
.states figure { display: grid; gap: 12px; justify-items: start; }
.states figcaption { font-size: .875rem; color: var(--ink-muted); }

.words { display: grid; gap: 28px 56px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .words { grid-template-columns: 1fr 1fr; } }
.words dt { font-weight: 600; margin-bottom: 6px; }
.words dd { max-width: 60ch; }
.words .yes { grid-column: 1 / -1; padding-top: 28px; border-top: 2px solid currentColor; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}

/* A terracotta ring disappears on a terracotta button: Give buttons take a forest ring on light, paper on dark. */
.btn-give:focus-visible, .btn-give.is-focus { outline-color: var(--forest-500); }
.on-dark .btn-give:focus-visible { outline-color: var(--paper); }
