/* WILDLIFE ATL — City Limits direction.
   Greyscale everywhere except one accent, which is the edition colour.
   Change --accent once a month and the whole site re-skins. */

:root {
  /* THE monthly switch — the only line that changes between editions.
     Aug #FF6A1F · Sep #9BE800 · Oct #F2C200 · Nov #8B74FF · Dec #00D2C4 */
  --accent: #FF6A1F;

  --ink: #0A0A0A;
  --max: 1080px;
  --gutter: clamp(20px, 5vw, 56px);

  /* Condensed grotesque. Helvetica Neue Condensed exists on macOS/iOS only;
     everywhere else this degrades to a normal-width grotesque. Before launch,
     self-host Archivo Narrow or Barlow Condensed (both OFL) as a @font-face
     here — no third-party request, and the look stops being platform-dependent. */
  --display: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

:root[data-theme="dark"] {
  --bg: #0A0A0A;
  --bg-2: #141416;
  --fg: #FFFFFF;
  --fg-2: #9A9A9A;
  --line: #262629;
  /* On near-black the raw accent is legible as text. */
  --accent-text: var(--accent);
  --on-accent: #0A0A0A;
}

:root[data-theme="light"] {
  --bg: #FFFFFF;
  --bg-2: #F4F4F5;
  --fg: #0A0A0A;
  --fg-2: #5E5E62;
  --line: #E2E2E5;
  /* Yellow and acid green fail contrast as text on white, so the accent is
     darkened for type here. It stays untouched as a fill — see .btn. */
  --accent-text: color-mix(in srgb, var(--accent) 62%, #0A0A0A);
  --on-accent: #0A0A0A;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.65 var(--display);
  letter-spacing: 0.005em;
  transition: background-color .18s ease, color .18s ease;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

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

a { color: inherit; }

h1, h2 {
  font-weight: 800;
  font-stretch: condensed;
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin: 0;
  text-transform: uppercase;
}

h1 { font-size: clamp(3rem, 11vw, 7.5rem); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.6rem); margin-bottom: 0.6em; }

section { padding: clamp(56px, 9vw, 112px) var(--gutter); max-width: var(--max); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; z-index: 10;
}
.skip:focus { left: var(--gutter); top: 12px; }

/* ── the mark ───────────────────────────────────────────────────────────
   Two stacked masks: the accent paints through the sign's field, ink paints
   through the border and deer. Keeping it a mask rather than a coloured PNG
   is what lets --accent drive the logo too. */
.sign {
  --size: 44px;
  position: relative;
  display: inline-block;
  width: var(--size); height: var(--size);
  flex: none;
}
.sign::before, .sign::after {
  content: ""; position: absolute; inset: 0;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}
.sign::before {
  background: var(--accent);
  -webkit-mask-image: url("/assets/sign-field.png");
  mask-image: url("/assets/sign-field.png");
}
.sign::after {
  background: var(--ink);
  -webkit-mask-image: url("/assets/sign-ink.png");
  mask-image: url("/assets/sign-ink.png");
}
.sign-sm { --size: 22px; vertical-align: -5px; }

/* ── top bar ──────────────────────────────────────────────────────────── */

.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter);
  max-width: var(--max); margin-inline: auto;
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 0.9; }
.brand-text b {
  font-weight: 800; font-stretch: condensed;
  font-size: 1.32rem; letter-spacing: 0.01em;
}
.brand-text i {
  font-style: normal; font-weight: 700; font-stretch: condensed;
  font-size: 0.78rem; letter-spacing: 0.42em; color: var(--fg-2);
  align-self: flex-end; margin-right: -0.42em;
}

.bar-right { display: flex; align-items: center; gap: 18px; }

.edition-tag {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.24em;
  color: var(--fg-2); white-space: nowrap;
}
@media (max-width: 620px) { .edition-tag { display: none; } }

.toggle {
  font: inherit; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-2); background: none;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 15px; cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.toggle:hover { color: var(--fg); border-color: var(--fg-2); }
.toggle:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }

/* ── hero ─────────────────────────────────────────────────────────────── */

.kicker {
  margin: 0 0 22px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent-text);
}

.hero { padding-top: clamp(48px, 8vw, 84px); }
.hero h1 { margin-bottom: 28px; }

.lede { max-width: 46ch; font-size: clamp(1rem, 2.1vw, 1.2rem); color: var(--fg-2); margin: 0 0 36px; }

.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin: 0; }

.btn {
  display: inline-block;
  background: var(--accent);          /* accent as a fill, never as text */
  color: var(--on-accent);
  text-decoration: none;
  font-weight: 800; font-stretch: condensed; text-transform: uppercase;
  letter-spacing: 0.10em; font-size: 1rem;
  padding: 15px 30px;
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

.cta-note { font-size: 0.88rem; color: var(--fg-2); }

/* ── facts ────────────────────────────────────────────────────────────── */

.facts { padding-block: clamp(36px, 5vw, 56px); }
.facts dl {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0; margin: 0;
  border-top: 1px solid var(--line);
}
.facts div { padding: 20px 0; border-bottom: 1px solid var(--line); padding-right: 24px; }
.facts dt {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--fg-2); margin-bottom: 7px;
}
.facts dd { margin: 0; font-size: 1.02rem; }

/* ── deal ─────────────────────────────────────────────────────────────── */

.ticks { list-style: none; padding: 0; margin: 0; max-width: 52ch; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 15px; color: var(--fg-2); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 13px; height: 2px; background: var(--accent);
}

/* ── editions ─────────────────────────────────────────────────────────── */

.section-note { color: var(--fg-2); max-width: 48ch; margin: 0 0 34px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(14px, 2.4vw, 26px); }
.grid figure { margin: 0; }
.grid img { width: 100%; background: var(--bg-2); }
.grid figcaption {
  margin-top: 11px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-2);
}

/* ── closer + footer ──────────────────────────────────────────────────── */

.closer { border-top: 1px solid var(--line); }
.closer h2 { margin-bottom: 30px; }

.foot {
  border-top: 1px solid var(--line);
  padding: 34px var(--gutter) 56px;
  max-width: var(--max); margin-inline: auto;
  color: var(--fg-2); font-size: 0.86rem;
}
.foot p { margin: 0 0 7px; }
.fine a { color: var(--accent-text); text-underline-offset: 3px; }
