/* 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;
}

/* Smaller ceiling than a full-bleed headline would take — on desktop it now
   shares the row with the flyer. */
h1 { font-size: clamp(2.7rem, 7.4vw, 5.4rem); }
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(40px, 7vw, 76px); }
.hero h1 { margin-bottom: 28px; }

/* Text left, flyer right on desktop. Single column below that, and because
   .hero-copy (which holds the RSVP button) comes first in the DOM, the flyer
   naturally lands under the button on a phone rather than pushing it off. */
.hero-grid { display: grid; gap: clamp(30px, 5vw, 60px); align-items: center; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr); }
}

.hero-flyer {
  display: block;
  justify-self: center;
  width: 100%;
  max-width: 420px;
  transition: transform .16s ease, opacity .16s ease;
}
.hero-flyer img { width: 100%; }
.hero-flyer:hover { transform: translateY(-3px); opacity: 0.92; }

/* Stacked layout only: the grid `gap` handles the desktop column split, but
   when the flyer drops below the RSVP button it needs its own breathing room
   or the two sit flush against each other. */
@media (max-width: 899px) {
  .hero-flyer { margin-top: clamp(14px, 4vw, 30px); }
}
.hero-flyer:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

.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); }

/* Thumbnails are buttons so keyboard and assistive tech get them for free;
   these rules just strip the native button chrome back to a bare image. */
/* No border: the flyers are full-bleed dark images, so a hairline reads as a
   seam in dark mode and as a hard box in light. The lift on hover is enough
   affordance on its own. */
.shot {
  display: block; width: 100%; padding: 0;
  border: 0; background: none;
  cursor: zoom-in;
  transition: transform .16s ease, opacity .16s ease;
}
.shot:hover { transform: translateY(-3px); opacity: 0.88; }
.shot:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.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; }

/* ── lightbox ─────────────────────────────────────────────────────────── */

/* [hidden] has to be forced: the rule below sets display:flex, which would
   otherwise win over the attribute's default display:none. */
[hidden] { display: none !important; }

body.lb-open { overflow: hidden; }

.lightbox {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(8px, 2vw, 28px);
  padding: clamp(16px, 4vw, 48px);
  /* Always dark regardless of theme — a flyer reads against black, and the
     page behind it is hidden anyway. */
  background: rgba(6, 6, 8, 0.95);
}

.lb-stage { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }

.lb-img {
  max-width: 100%;
  max-height: min(84vh, 1100px);
  width: auto;
  object-fit: contain;
}

.lb-caption {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: #FFFFFF; opacity: 0.75; margin: 0;
}

.lb-btn {
  flex: none;
  background: none; border: 0; padding: 0;
  color: #FFFFFF;
  font: inherit; line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity .14s ease, transform .14s ease;
}
.lb-btn:hover { opacity: 1; }
.lb-btn:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 6px; opacity: 1; }

.lb-prev, .lb-next { font-size: clamp(2.6rem, 7vw, 4.4rem); padding: 0 clamp(4px, 1.5vw, 14px); }
.lb-prev:hover { transform: translateX(-3px); }
.lb-next:hover { transform: translateX(3px); }

.lb-close {
  position: absolute; top: clamp(10px, 2.4vw, 26px); right: clamp(10px, 2.4vw, 26px);
  font-size: clamp(2rem, 4vw, 2.8rem);
  width: 1.5em; height: 1.5em;
}

/* On a phone the side arrows crowd the flyer, so drop them to the bottom edge
   and give the image the full width. */
@media (max-width: 620px) {
  .lightbox { flex-wrap: wrap; align-content: center; }
  .lb-stage { order: 1; flex-basis: 100%; }
  .lb-prev { order: 2; }
  .lb-next { order: 3; }
  .lb-prev, .lb-next { font-size: 2.6rem; padding: 0 26px; }
  .lb-img { max-height: 70vh; }
}
