/* ==========================================================================
   overnightmode.com — PNW-chill design system
   Muted forest greens, fog, pale wood. Quiet type, generous air.
   ========================================================================== */

:root {
  /* Light — "fog" */
  --bg:          #F5F3EE;
  --surface:     #FFFFFF;
  --surface-alt: #EBE7DE;
  --ink:         #1B1E1A;
  --ink-soft:    #57605A;
  --ink-faint:   #8B928C;
  --forest:      #24402F;
  --moss:        #5F8A6B;
  --wood:        #B99465;
  --line:        #DCD7CB;
  --shadow:      0 1px 2px rgba(27,30,26,.04), 0 8px 24px rgba(27,30,26,.06);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --measure: 34rem;   /* readable line length */
  --gutter:  clamp(1.25rem, 5vw, 4rem);
  --section: clamp(4rem, 10vw, 8rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:          #12150F;
    --surface:     #1A1E17;
    --surface-alt: #212619;
    --ink:         #E9E7DE;
    --ink-soft:    #A8AFA5;
    --ink-faint:   #77807A;
    --forest:      #A8C9AF;
    --moss:        #7FB08B;
    --wood:        #D0AC7E;
    --line:        #2C332A;
    --shadow:      0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  }
}

:root[data-theme="dark"] {
  --bg:          #12150F;
  --surface:     #1A1E17;
  --surface-alt: #212619;
  --ink:         #E9E7DE;
  --ink-soft:    #A8AFA5;
  --ink-faint:   #77807A;
  --forest:      #A8C9AF;
  --moss:        #7FB08B;
  --wood:        #D0AC7E;
  --line:        #2C332A;
  --shadow:      0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
}

/* --------------------------------------------------------------- base ---- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--moss); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "SOFT" 20, "WONK" 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 7vw, 4.75rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); letter-spacing: -0.01em; }

p { margin: 0 0 1.25em; max-width: var(--measure); text-wrap: pretty; }

.wrap { max-width: 72rem; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 44rem; }

section { padding-block: var(--section); }

/* Small caps eyebrow used to label each section quietly. */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 1.25rem;
}

.lede { font-size: clamp(1.15rem, 2vw, 1.3rem); line-height: 1.6; color: var(--ink-soft); }

/* ------------------------------------------------------------- header ---- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 4.25rem;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark span { color: var(--moss); }

/* Independence notice sits in the chrome, not buried in the footer. */
.unaffiliated {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-left: 1px solid var(--line);
  padding-left: 1.5rem;
}

.site-nav { margin-left: auto; display: flex; gap: 1.75rem; font-size: 0.9rem; }
.site-nav a { text-decoration: none; color: var(--ink-soft); }
.site-nav a:hover { color: var(--ink); }

@media (max-width: 46rem) {
  .unaffiliated { display: none; }
  .site-nav { gap: 1.1rem; font-size: 0.82rem; }
}

/* --------------------------------------------------------------- hero ---- */

.hero { position: relative; padding: 0; }

.hero-media { position: relative; aspect-ratio: 16 / 9; min-height: 26rem; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* Legibility scrim — dark enough for white text, light enough to keep the photo. */
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(12,20,14,.82) 0%, rgba(12,20,14,.45) 42%, rgba(12,20,14,.08) 78%);
}

.hero-copy {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 1;
  padding-block: clamp(2rem, 5vw, 3.5rem);
  color: #F5F3EE;
}
.hero-copy h1 { color: #fff; max-width: 16ch; }
.hero-copy p {
  margin-top: 1.25rem;
  max-width: 40ch;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(245,243,238,.88);
}

.hero-note {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,243,238,.72);
  border: 1px solid rgba(245,243,238,.28);
  border-radius: 100px;
  padding: 0.4rem 0.9rem;
}

/* ------------------------------------------------------------ feature ---- */

.band { background: var(--surface-alt); }

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

/* Fact list — the honest spec rundown. */
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.facts li {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1.5rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.facts dt, .facts .k { color: var(--ink-faint); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 0.2rem; }
.facts .v { color: var(--ink); }

@media (max-width: 34rem) {
  .facts li { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* Pull quote / thesis statement. */
.thesis {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--forest);
  max-width: 26ch;
  margin: 0;
}

/* ------------------------------------------------------------ gallery ---- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(26rem, 100%), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.concept { margin: 0; }

.concept button {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  background: var(--surface);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(.2,.7,.3,1);
}
.concept button:hover { transform: translateY(-3px); }
.concept button:focus-visible { outline: 2px solid var(--moss); outline-offset: 3px; }

.concept figcaption { padding-top: 1rem; }
.concept h3 { margin-bottom: 0.35rem; }
.concept p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; max-width: 46ch; }

/* Every render is labelled at the point of viewing, not just in the footer. */
.ai-tag {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.ai-tag::before { content: "◆"; margin-right: 0.45rem; color: var(--wood); }

/* ----------------------------------------------------------- lightbox ---- */

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(10,14,11,.94);
  backdrop-filter: blur(6px);
}
.lightbox[open], .lightbox.is-open { display: grid; }
.lightbox img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: 2px; }
.lightbox figcaption {
  color: rgba(245,243,238,.78);
  font-size: 0.9rem;
  text-align: center;
  margin-top: 1.25rem;
  max-width: 48ch;
  margin-inline: auto;
}
.lightbox-close {
  position: absolute; top: 1.25rem; right: 1.5rem;
  background: none; border: 1px solid rgba(245,243,238,.3);
  color: #F5F3EE; border-radius: 100px;
  width: 2.5rem; height: 2.5rem;
  font-size: 1.1rem; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { background: rgba(245,243,238,.12); }

/* --------------------------------------------------------------- cards ---- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.6rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.card h3 { font-size: 1.1rem; }
.card p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }
.card .price { font-size: 0.85rem; color: var(--wood); letter-spacing: 0.02em; }
.card .where { font-size: 0.78rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.08em; }
.card a { margin-top: auto; padding-top: 0.75rem; font-size: 0.9rem; color: var(--moss); }

/* --------------------------------------------------------------- forms ---- */

.signup { background: var(--forest); color: #F1EFE8; border-radius: 4px; padding: clamp(2rem, 5vw, 3.5rem); }
.signup h2 { color: #fff; }
.signup p { color: rgba(241,239,232,.8); }

:root[data-theme="dark"] .signup, 
:root:not([data-theme="light"]) .signup { color: #12150F; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .signup h2 { color: #12150F; }
  :root:not([data-theme="light"]) .signup p  { color: rgba(18,21,15,.75); }
}
:root[data-theme="dark"] .signup h2 { color: #12150F; }
:root[data-theme="dark"] .signup p  { color: rgba(18,21,15,.75); }

.signup form { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.5rem; max-width: 30rem; }
.signup input {
  flex: 1 1 14rem;
  padding: 0.8rem 1rem;
  /* Derived from currentColor so the field stays legible when the panel
     flips from dark-green-on-light to light-green-on-dark. */
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  background: color-mix(in srgb, currentColor 8%, transparent);
  color: inherit;
  border-radius: 3px;
  font: inherit;
}
.signup input:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
.signup input::placeholder { color: currentColor; opacity: .55; }
.signup button {
  padding: 0.8rem 1.5rem;
  border: 0; border-radius: 3px;
  background: var(--wood); color: #1B1E1A;
  font: inherit; font-weight: 500; cursor: pointer;
}
.signup button:hover { opacity: .9; }
.signup small { display: block; margin-top: 0.9rem; font-size: 0.78rem; opacity: .7; }

/* -------------------------------------------------------------- footer ---- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 3.5rem 4.5rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.site-footer p { max-width: 60ch; }
.disclaimer {
  background: var(--surface-alt);
  border-left: 2px solid var(--wood);
  padding: 1.1rem 1.35rem;
  border-radius: 2px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

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

/* ------------------------------------------------------- standalone page ---- */

.centered-page {
  min-height: calc(100vh - 4.25rem);
  display: grid;
  place-content: center;
  text-align: center;
}
.centered-page p { margin-inline: auto; }
.centered-page .back {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--moss);
}

/* ---------------------------------------------------------------- event ---- */

/* Dated callout that rides just under the hero on the homepage. */
.callout {
  display: flex;
  align-items: baseline;
  gap: 1.25rem 1.75rem;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 2px solid var(--wood);
  border-radius: 3px;
  padding: 1.25rem 1.5rem;
  margin-top: calc(var(--section) * -0.35);
}
.callout .when {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wood);
  white-space: nowrap;
}
.callout p { margin: 0; font-size: 0.95rem; max-width: none; flex: 1 1 20rem; }
.callout a { color: var(--moss); white-space: nowrap; font-size: 0.95rem; }

/* Text-led page header — used where we have no honest photograph to show. */
.page-head {
  border-bottom: 1px solid var(--line);
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem);
}
.page-head h1 { max-width: 18ch; }
.page-head .lede { margin-top: 1.5rem; }

/* Event vitals. */
.vitals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
  gap: 1.5rem 2rem;
  padding: 1.75rem 0 0;
  margin: 2.5rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.vitals div { display: flex; flex-direction: column; gap: 0.3rem; }
.vitals dt {
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint);
}
.vitals dd { margin: 0; font-size: 0.98rem; line-height: 1.5; }

/* Simple prose list for "what's showing". */
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; max-width: var(--measure); }
.checklist li {
  padding: 0.7rem 0 0.7rem 1.6rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-size: 0.98rem;
}
.checklist li::before {
  content: "—"; position: absolute; left: 0; color: var(--wood);
}

/* Editorial note — visible reminder of what still needs a human. */
.pending {
  background: var(--surface-alt);
  border: 1px dashed var(--line);
  border-radius: 3px;
  padding: 1.1rem 1.35rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: var(--measure);
}
