﻿/* ==========================================================================
   Showfolk · showfolk.app
   Black and white, one amber gel. The prompt book aesthetic.
   ========================================================================== */

/* ---------- Tokens ---------- */

:root {
  /* Light: worklights on. Warm paper, black ink. */
  --bg: #f2f1ed;
  --bg-raised: #fbfaf8;
  --ink: #181713;
  --ink-soft: #5c5850;
  --line: rgba(24, 23, 19, 0.18);
  --line-strong: rgba(24, 23, 19, 0.55);
  --amber: #a56a06;
  --amber-bright: #e39a12;
  --amber-ink: #1c1607;
  --btn-bg: #efa713;
  --photo-filter: grayscale(1) sepia(0.24) contrast(1.06) brightness(0.98);
  --tape: rgba(213, 200, 165, 0.62);
  --card-shadow: 0 10px 24px -14px rgba(24, 23, 19, 0.45);
  --header-bg: rgba(242, 241, 237, 0.82);
  --grain-opacity: 0.05;
  --seat-fill: rgba(24, 23, 19, 0.14);
  --beam-opacity: 0.5;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    /* Dark: house is dark, ghost light burning. */
    --bg: #0d0d0f;
    --bg-raised: #161619;
    --ink: #f0ece1;
    --ink-soft: #a6a196;
    --line: rgba(240, 236, 225, 0.16);
    --line-strong: rgba(240, 236, 225, 0.5);
    --amber: #ffb02e;
    --amber-bright: #ffc35c;
    --amber-ink: #1c1607;
    --btn-bg: #ffb02e;
    --tape: rgba(240, 232, 210, 0.16);
    --card-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.85);
    --header-bg: rgba(13, 13, 15, 0.82);
    --grain-opacity: 0.07;
    --seat-fill: rgba(240, 236, 225, 0.12);
    --beam-opacity: 0.85;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0d0d0f;
  --bg-raised: #161619;
  --ink: #f0ece1;
  --ink-soft: #a6a196;
  --line: rgba(240, 236, 225, 0.16);
  --line-strong: rgba(240, 236, 225, 0.5);
  --amber: #ffb02e;
  --amber-bright: #ffc35c;
  --amber-ink: #1c1607;
  --btn-bg: #ffb02e;
  --tape: rgba(240, 232, 210, 0.16);
  --card-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.85);
  --header-bg: rgba(13, 13, 15, 0.82);
  --grain-opacity: 0.07;
  --seat-fill: rgba(240, 236, 225, 0.12);
  --beam-opacity: 0.85;
  color-scheme: dark;
}

/* ---------- Base ---------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

/* film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 {
  font-family: "Fraunces", serif;
  font-weight: 900;
  line-height: 1.06;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.75rem, 7.5vw, 5.25rem); }
h2 { font-size: clamp(2rem, 5vw, 3.25rem); }
h3 { font-size: 1.45rem; font-weight: 600; }

h1 em {
  font-style: italic;
  color: var(--amber);
}

p { margin: 0 0 1em; }

a { color: inherit; }

.mono {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.1rem;
}

.kicker::before {
  content: "";
  display: inline-block;
  width: 1.6em;
  height: 2px;
  background: var(--amber);
  vertical-align: middle;
  margin-right: 0.7em;
}

.section-lede {
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 38rem;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1001;
  background: var(--amber);
  color: var(--amber-ink);
  padding: 0.6rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

/* shared SVG classes */
.ink-line { stroke: var(--ink); fill: none; }
.ink-fill { fill: var(--ink); }
.amber-fill { fill: var(--amber-bright); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 4px;
  padding: 0.85rem 1.6rem;
  border: 2px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--amber-ink);
  border-color: var(--btn-bg);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px var(--amber);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover { border-color: var(--ink); }

.btn-small { padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn-large { padding: 1rem 2.2rem; font-size: 1.1rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: 1.4rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.wordmark-bulb { width: 18px; height: 24px; }
.wordmark-bulb .bulb-glow { fill: var(--amber-bright); opacity: 0.22; }
.wordmark-bulb .bulb-glass { fill: var(--amber-bright); }
.wordmark-bulb .bulb-line { stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; fill: none; }

.site-nav {
  display: none;
  gap: 1.4rem;
  margin-left: 0.5rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--amber);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.theme-toggle:hover { border-color: var(--amber); }

.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .toggle-bulb { fill: none; stroke: currentColor; stroke-width: 1.8; }
.theme-toggle .toggle-rays { stroke: var(--amber); stroke-width: 1.8; stroke-linecap: round; opacity: 0; transition: opacity 0.25s ease; }
.theme-toggle .toggle-base { stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-toggle[aria-pressed="true"] .toggle-bulb { fill: var(--amber-bright); stroke: var(--amber-bright); }
.theme-toggle[aria-pressed="true"] .toggle-rays { opacity: 1; }

.toggle-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  /* the hero is always the dark house, whatever the theme */
  --ink: #f0ece1;
  --ink-soft: #b5b0a4;
  --line-strong: rgba(240, 236, 225, 0.5);
  --seat-fill: rgba(240, 236, 225, 0.12);
  --beam-opacity: 0.85;
  --amber: #ffb02e;
  --amber-bright: #ffc35c;
  --btn-bg: #ffb02e;
  color: var(--ink);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(13, 13, 15, 0.86), rgba(13, 13, 15, 0.94)),
    url("img/spotlights-warm.jpg") center 32% / cover no-repeat #0d0d0f;
  filter: saturate(0.8) brightness(0.8);
}

.hero-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5.5rem) 1rem 2rem;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy .lede {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 34rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.8rem 0 1.2rem;
}

.hero-footnote {
  color: var(--ink-soft);
}

.hero-stage { min-width: 0; }

.stage-svg {
  width: 100%;
  height: auto;
  display: block;
}

.stage-svg .beam { opacity: var(--beam-opacity); }
.stage-svg .spike path { stroke: var(--amber); stroke-linecap: round; }
.stage-svg .seats rect { fill: var(--seat-fill); }

@keyframes bulbPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}

.stage-svg .ghost-light circle:first-of-type {
  animation: bulbPulse 5.5s ease-in-out infinite;
}

/* staged entrance */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-copy .kicker,
.hero-copy h1,
.hero-copy .lede,
.hero-copy .hero-ctas,
.hero-copy .hero-footnote {
  animation: riseIn 0.7s ease both;
}

.hero-copy h1 { animation-delay: 0.08s; }
.hero-copy .lede { animation-delay: 0.16s; }
.hero-copy .hero-ctas { animation-delay: 0.24s; }
.hero-copy .hero-footnote { animation-delay: 0.32s; }
.hero-stage { animation: riseIn 0.9s 0.2s ease both; }

/* ---------- Disciplines marquee ---------- */

.disciplines {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0;
  overflow: hidden;
}

.marquee { overflow: hidden; }

.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  width: max-content;
  animation: marquee 26s linear infinite;
}

.marquee-track span {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.35rem;
  white-space: nowrap;
}

.marquee-track .star {
  color: var(--amber);
  font-style: normal;
  font-size: 1rem;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Pinboard ---------- */

.pinboard-section {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) 1rem;
}

.section-head { max-width: 44rem; margin-bottom: 3rem; }

.pinboard {
  position: relative;
  display: grid;
  gap: 1.6rem;
  padding: 1rem 0;
}

/* spike tape marks scattered on the board */
.spike-mark {
  position: absolute;
  width: 42px;
  height: 16px;
  pointer-events: none;
}

.spike-mark::before,
.spike-mark::after {
  content: "";
  position: absolute;
  inset: 6px 0;
  background: var(--amber);
  opacity: 0.7;
}

.spike-mark::before { transform: rotate(24deg); }
.spike-mark::after { transform: rotate(-24deg); }

.spike-a { top: -14px; left: 6%; }
.spike-b { top: 46%; right: 3%; }

.card {
  position: relative;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.8rem 1.6rem 1.5rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: rotate(0deg) translateY(-4px) !important;
  box-shadow: 0 18px 34px -16px rgba(0, 0, 0, 0.5);
}

/* tape strips */
.card-taped::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  width: 88px;
  height: 22px;
  transform: translateX(-50%) rotate(-3deg);
  background: var(--tape);
  border-left: 1px dashed var(--line);
  border-right: 1px dashed var(--line);
}

.tilt-l { transform: rotate(-1.2deg); }
.tilt-r { transform: rotate(1.1deg); }

.card-icon svg {
  width: 46px;
  height: 46px;
  margin-bottom: 0.9rem;
}

.icon-stroke { stroke: var(--ink); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.icon-fill { fill: var(--ink); }
.icon-check { stroke: var(--amber); stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.icon-steam { stroke: var(--amber); stroke-width: 2.2; fill: none; stroke-linecap: round; }

.card-tag {
  color: var(--amber);
  margin-bottom: 0.4rem;
}

.card h3 { margin-bottom: 0.45rem; }
.card p:last-child { margin-bottom: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* taped photos on the board */
.card-photo {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.6rem;
  margin-bottom: 1rem;
}

.card-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: var(--photo-filter);
}

.photo-peek img { object-position: 30% 55%; }
.card-photo img[src*="seats"] { aspect-ratio: 16 / 9; object-position: center 18%; }

/* polaroid variant for Ghost Light */
.card-polaroid {
  padding-top: 1.2rem;
}

.polaroid-frame {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.7rem 0.7rem 0.4rem;
  margin-bottom: 1rem;
}

.polaroid-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 22%;
  filter: var(--photo-filter);
}

.card-polaroid::before {
  content: "";
  position: absolute;
  top: -11px;
  right: 18px;
  width: 74px;
  height: 22px;
  transform: rotate(5deg);
  background: var(--tape);
  border-left: 1px dashed var(--line);
  border-right: 1px dashed var(--line);
}

/* ---------- Shift reminder ---------- */

.five-section {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) 1rem;
  display: grid;
  gap: 2.5rem;
  align-items: center;
  border-top: 1px solid var(--line);
}

.reminder-card {
  justify-self: center;
  width: min(100%, 24rem);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.3rem 1.4rem 1.5rem;
  box-shadow: var(--card-shadow);
}

.reminder-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink-soft);
  padding-bottom: 0.8rem;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 1rem;
}

.reminder-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber-bright);
  box-shadow: 0 0 8px var(--amber-bright);
}

.reminder-time { margin-left: auto; }

.reminder-message {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.25;
  margin-bottom: 0.35rem;
}

.reminder-detail {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

.confirm-btn { width: 100%; }

.reminder-confirmed {
  display: none;
  align-items: center;
  gap: 0.5rem;
  color: var(--amber);
  font-weight: 600;
  margin: 0;
}

.reminder-confirmed svg { width: 18px; height: 18px; flex: none; }

.reminder-reset[hidden] { display: none; }

.reminder-reset {
  display: block;
  margin-top: 0.9rem;
  background: none;
  border: none;
  color: var(--ink-soft);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.reminder-card.confirmed .confirm-btn { display: none; }
.reminder-card.confirmed .reminder-confirmed { display: flex; animation: riseIn 0.4s ease both; }

/* ---------- Boosters ---------- */

.boosters-section {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(to bottom, transparent, transparent),
    var(--bg);
}

.boosters-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) 1rem;
}

.boosters-inner h2 { max-width: 40rem; }

.trust-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  max-width: 44rem;
}

.trust-list li {
  padding: 1rem 0.2rem 1rem 1.9rem;
  position: relative;
  border-top: 1px solid var(--line);
  font-weight: 500;
}

.trust-list li::before {
  content: "✓";
  position: absolute;
  left: 0.2rem;
  color: var(--amber);
  font-weight: 600;
}

.trust-list li:last-child { border-bottom: 1px solid var(--line); }

/* ---------- Final CTA ---------- */

.final-cta {
  position: relative;
  isolation: isolate;
  padding: clamp(4rem, 10vw, 7rem) 1rem;
  text-align: center;
  border-top: 1px solid var(--line);
  color: #f0ece1;
}

/* the house goes dark: amber fresnels behind a heavy scrim */
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(13, 13, 15, 0.5), rgba(13, 13, 15, 0.6)),
    url("img/spot-beam.jpg") center 28% / cover no-repeat #0d0d0f;
  filter: saturate(0.85);
}

.final-cta .kicker { color: #ffc35c; }
.final-cta .kicker::before { display: none; }
.final-cta h2 { max-width: 34rem; margin-left: auto; margin-right: auto; }
.final-cta .btn-primary {
  margin-top: 1rem;
  background: #ffb02e;
  border-color: #ffb02e;
  color: #1c1607;
}
.cta-footnote { color: rgba(240, 236, 225, 0.72); margin-top: 1.4rem; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 1rem 3.5rem;
  text-align: center;
}

.footer-ghost svg { width: 44px; height: 66px; }
.footer-glow { fill: var(--amber-bright); opacity: 0.2; animation: bulbPulse 6s ease-in-out infinite; }

.footer-line {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.15rem;
  max-width: 28rem;
  margin: 0.8rem auto 1rem;
}

.footer-meta { color: var(--ink-soft); }
.footer-meta a { color: inherit; }
.footer-credits { color: var(--ink-soft); opacity: 0.75; font-size: 0.7rem; margin-top: 0.5rem; }

/* ---------- Responsive ---------- */

@media (max-width: 599px) {
  .header-actions .btn { display: none; }
}

@media (min-width: 640px) {
  .pinboard { grid-template-columns: 1fr 1fr; }
  .shift-down { margin-top: 1.6rem; }
}

@media (min-width: 900px) {
  .site-nav { display: flex; }
  .hero-inner { grid-template-columns: 1.05fr 1fr; }
  .five-section { grid-template-columns: 1fr 1fr; }
  .pinboard { gap: 2.2rem 2rem; padding: 1.5rem 1rem; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .stage-svg .ghost-light circle:first-of-type,
  .footer-glow { animation: none; }
  .hero-copy .kicker,
  .hero-copy h1,
  .hero-copy .lede,
  .hero-copy .hero-ctas,
  .hero-copy .hero-footnote,
  .hero-stage,
  .reminder-card.confirmed .reminder-confirmed { animation: none; }
  .btn, .card { transition: none; }
}
