/* ============ TOKENS ============ */
:root {
  --bg: #faf1e3;
  --bg-alt: #f4e6d1;
  --surface: #fffaf1;
  --ink: #3e2b1c;
  --ink-soft: #8a7360;
  --accent: #e07a3f;
  --accent-deep: #c25f27;
  --accent-ink: #fff6ec;
  --olive: #7d8450;
  --line: rgba(62, 43, 28, 0.12);
  --shadow: 0 18px 45px -18px rgba(62, 43, 28, 0.28);
  --radius: 20px;
  --wordmark-a: #5b3a1e;
  --wordmark-b: #e07a3f;
}

[data-theme="dark"] {
  --bg: #211913;
  --bg-alt: #1a1410;
  --surface: #2b2118;
  --ink: #f3e8d9;
  --ink-soft: #b09a85;
  --accent: #e8894f;
  --accent-deep: #d3702f;
  --accent-ink: #241a12;
  --olive: #a3ac74;
  --line: rgba(243, 232, 217, 0.14);
  --shadow: 0 18px 45px -18px rgba(0, 0, 0, 0.55);
  --wordmark-a: #f3e8d9;
  --wordmark-b: #e8894f;
}

/* ============ BASE ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Outfit", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  transition: background 0.35s ease, color 0.35s ease;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 0.9rem;
}
[data-theme="dark"] .eyebrow { color: var(--accent); }

.section-title {
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: clamp(1.9rem, 5.5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.section-lede {
  color: var(--ink-soft);
  max-width: 34rem;
  margin-bottom: 2.2rem;
}

/* ============ WORDMARK ============ */
.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; }

.wordmark-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 15%;
  border: 2px solid var(--accent);
  background: var(--bg-alt);
}

.wordmark-name { height: 28px; width: auto; }
.wordmark-name--dark { display: none; }
[data-theme="dark"] .wordmark-name--light { display: none; }
[data-theme="dark"] .wordmark-name--dark { display: block; }

.site-footer .wordmark-name { height: 24px; }

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

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 1.6rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a { color: var(--ink-soft); transition: color 0.2s; }
.site-nav a:hover { color: var(--ink); }
.site-nav .nav-cta {
  color: var(--accent-ink);
  background: var(--accent);
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  transition: background 0.2s;
}
.site-nav .nav-cta:hover { background: var(--accent-deep); color: var(--accent-ink); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }

.theme-toggle {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition: border-color 0.2s;
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }

.nav-toggle {
  width: 40px; height: 40px;
  display: grid; place-items: center; gap: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.nav-toggle span {
  display: block; width: 16px; height: 2px;
  background: var(--ink); border-radius: 2px;
  margin: 2.5px 0;
  transition: transform 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Mobile nav drawer */
@media (max-width: 767px) {
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1.25rem;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
  .site-nav .nav-cta {
    margin-top: 1rem; text-align: center;
    border-bottom: none; padding: 0.7rem;
  }
}

@media (min-width: 768px) {
  .site-nav { display: flex; }
  .nav-toggle { display: none; }
}

/* ============ HERO ============ */
.hero { overflow: hidden; }

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.25rem 3.5rem;
  display: grid;
  gap: 2.75rem;
}

.hero-title {
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: clamp(2.7rem, 9vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}

.hero-sub-line {
  display: block;
  margin-top: 0.55rem;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.05rem, 3.2vw, 1.5rem);
  color: var(--accent-deep);
}
[data-theme="dark"] .hero-sub-line { color: var(--accent); }

.hero-lede {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 30rem;
  margin-bottom: 1.8rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1.4rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.72rem 1.35rem;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(0.97); }

.btn-solid {
  background: var(--ink);
  color: var(--bg);
}
.btn-solid:hover { background: var(--accent-deep); color: var(--accent-ink); box-shadow: var(--shadow); }
[data-theme="dark"] .btn-solid { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
[data-theme="dark"] .btn-solid:hover { background: var(--accent); color: var(--accent-ink); border-color: transparent; }

.btn-lg { padding: 0.95rem 1.8rem; font-size: 1.05rem; }

.collab-link {
  font-weight: 600;
  color: var(--accent-deep);
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
[data-theme="dark"] .collab-link { color: var(--accent); }
.collab-link:hover { border-color: currentColor; }

/* Phone frame + portrait card */
.hero-video { display: flex; justify-content: center; align-items: center; }

.portrait-card {
  width: min(190px, 44vw);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 8px 8px 10px;
  box-shadow: var(--shadow);
  transform: rotate(-4deg);
  margin-right: -14px;
}
.portrait-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 19px;
}
.portrait-card figcaption {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
  padding-top: 8px;
}

.phone-frame {
  width: min(270px, 72vw);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 10px 10px 14px;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}
.phone-frame video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 26px;
}
.phone-frame figcaption {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
  padding-top: 10px;
}

@media (min-width: 860px) {
  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }
}

/* ============ MARQUEE ============ */
.marquee {
  overflow: hidden;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.65rem 0;
  transform: rotate(-1deg) scale(1.02);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  width: max-content;
  animation: marquee 22s linear infinite;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.02rem;
  white-space: nowrap;
}
.marquee-track i { font-style: normal; font-size: 0.7rem; opacity: 0.75; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============ SECTIONS ============ */
.section { padding: 4.25rem 0; }
.section-alt { background: var(--bg-alt); transition: background 0.35s ease; }
.section-inner { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

/* About */
.about-grid { display: grid; gap: 2rem; margin-top: 1.5rem; }
.about-text p { max-width: 32rem; margin-bottom: 1rem; font-size: 1.05rem; }
.about-text p:last-child { margin-bottom: 0; }

.about-rules { list-style: none; display: grid; gap: 0.9rem; }
.about-rules li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  font-size: 0.98rem;
}
.about-rules strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 0.25rem;
}
[data-theme="dark"] .about-rules strong { color: var(--accent); }

@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; }
}

/* Videos: horizontal snap-scroll on mobile, grid on desktop */
.video-grid {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.25rem 1.25rem 1rem;
  margin: 0 -1.25rem;
  scrollbar-width: none;
}
.video-grid::-webkit-scrollbar { display: none; }
.video-card { flex: 0 0 min(62vw, 240px); scroll-snap-align: center; }

.video-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 0.9rem 1.2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.video-media {
  position: relative;
  aspect-ratio: 9 / 14;
  border-radius: calc(var(--radius) - 7px);
  overflow: hidden;
  margin-bottom: 0.9rem;
  background: var(--bg-alt);
}
.video-media video { width: 100%; height: 100%; object-fit: cover; }

.video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(6px);
  color: var(--ink);
  font-size: 1.1rem;
  display: grid; place-items: center;
  padding-left: 4px;
  transition: transform 0.2s ease, opacity 0.3s ease;
}
.video-play:hover { transform: scale(1.08); }
.video-media.is-playing .video-play { opacity: 0; pointer-events: none; }

.video-placeholder {
  display: grid;
  place-content: center;
  gap: 0.4rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-soft);
  border: 2px dashed var(--line);
  background: transparent;
}
.placeholder-mark { font-size: 1.7rem; }

.video-card h3 { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.15rem; padding: 0 0.35rem; }
.video-card p { font-size: 0.88rem; color: var(--ink-soft); padding: 0 0.35rem; }
.is-upcoming { opacity: 0.85; }

@media (min-width: 640px) {
  .video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    overflow: visible;
    padding: 0;
    margin: 0;
  }
  .video-card { flex: none; }
}

/* Audio */
.audio-list {
  border-top: 1px solid var(--line);
  max-width: 40rem;
}
.audio-row {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.15rem 0.25rem;
  border-bottom: 1px solid var(--line);
}
.audio-num {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 600;
  color: var(--accent-deep);
}
[data-theme="dark"] .audio-num { color: var(--accent); }
.audio-meta { flex: 1; display: flex; flex-direction: column; }
.audio-meta strong { font-weight: 600; }
.audio-meta span { font-size: 0.82rem; color: var(--ink-soft); }
.audio-status {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--olive);
  background: color-mix(in srgb, var(--olive) 14%, transparent);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}
.audio-note { margin-top: 1.6rem; color: var(--ink-soft); font-size: 0.95rem; }
.audio-note a { color: var(--accent-deep); font-weight: 600; }
[data-theme="dark"] .audio-note a { color: var(--accent); }
.audio-note a:hover { text-decoration: underline; }

/* Links */
.links-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }

.link-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.link-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.link-card svg { width: 26px; height: 26px; margin-bottom: 0.7rem; color: var(--accent-deep); }
[data-theme="dark"] .link-card svg { color: var(--accent); }
.link-card strong { font-family: "Fraunces", serif; font-size: 1.12rem; font-weight: 600; }
.link-card span { font-size: 0.85rem; color: var(--ink-soft); }

@media (min-width: 768px) { .links-grid { grid-template-columns: repeat(4, 1fr); } }

/* Collab */
.collab-panel {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.5);
  box-shadow: var(--shadow);
  width: calc(100% - 2.5rem);
}
.collab-panel p { max-width: 30rem; margin: 0 auto 1.8rem; color: var(--ink-soft); }
.collab-fine { font-size: 0.85rem !important; margin-top: 1.4rem !important; margin-bottom: 0 !important; }

/* ============ FOOTER ============ */
.site-footer { border-top: 1px solid var(--line); margin-top: 2rem; }
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.footer-inner p { font-size: 0.85rem; color: var(--ink-soft); }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
