@font-face {
  font-family: Instrument;
  src: url("/assets/instrument-serif.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: Euclid;
  src: url("/assets/EuclidCircularA-Regular.otf") format("opentype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #161315;
  --linen: #f0e1d0;
  --muted: #cec0b8;
  --sand: #e4b89a;
  --line: #4a3d39;
  --glass: #241d1a75;
  --frost: blur(6px) saturate(.85);
  --smoked: blur(4px) brightness(.79) saturate(.85);
  --wash: linear-gradient(155deg, #09080a50, #0d090b70);
  --ease: cubic-bezier(.45, 0, .28, 1);
  --serif: Instrument, Georgia, serif;
  --sans: Euclid, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 18px; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--linen);
  font: 1rem/1.55 var(--sans);
  background: radial-gradient(ellipse at 76% 11rem, #9c614128, transparent 46rem),
    radial-gradient(ellipse at 0% 36rem, #764f571a, transparent 33rem), var(--ink);
}
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font: 400 1em/1.02 var(--serif); letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(4rem, 8.5vw, 6.75rem); }
h2 { font-size: clamp(2.6rem, 5vw, 4.4rem); }
h3 { font-size: clamp(1.9rem, 3vw, 2.7rem); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
[hidden] { display: none !important; }
::selection { color: var(--ink); background: #e7c9ad; }
:focus-visible { outline: 2px solid #f2d4b2; outline-offset: 4px; }
.wrap { width: min(1260px, calc(100% - 104px)); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 3; padding: 10px 16px; background: var(--ink); }
.site-header, .site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-header { min-height: 88px; }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; font-size: .86rem; }
.site-header nav { justify-content: flex-end; }
.site-header nav > a:not(.glass-pill) { display: inline-flex; align-items: center; min-height: 44px; }
.brand { font: 400 2rem/.92 var(--serif); letter-spacing: -.034em; white-space: nowrap; }
.brand span { color: var(--sand); }
.brand small { display: block; margin-top: 6px; color: var(--muted); font: 400 .75rem/1 var(--sans); letter-spacing: 0; }
.site-footer { margin-top: clamp(55px, 8vw, 110px); padding-block: 25px 38px; border-top: 1px solid var(--line); }
.site-footer nav { color: var(--muted); }
.text-link, .site-footer nav a:hover, .site-header nav > a:not(.glass-pill):hover { text-decoration: underline; text-underline-offset: .25em; }
.text-link { color: var(--linen); }

.glass-pill {
  --pill-tint: #17121448;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  min-height: 44px;
  padding: 9px 16px;
  border: 0;
  border-radius: 32px;
  color: #fff0dd;
  background: radial-gradient(ellipse at 24% -10%, #ffe6d322, transparent 80%),
    linear-gradient(175deg, #fbe7d40f, transparent 55%, #0704071c), var(--pill-tint);
  -webkit-backdrop-filter: var(--frost);
  backdrop-filter: var(--frost);
  box-shadow: 0 3px 9px #09060830;
  font-size: .89rem;
  text-align: center;
  transition: background-color 270ms var(--ease), transform 220ms var(--ease);
}
.glass-pill.primary { --pill-tint: #825e4359; }
.glass-pill[aria-pressed="true"] { --pill-tint: #bd95704d; }
.glass-pill:focus-visible { outline: 2px solid transparent; background-color: #a77b61a3; }
.glass-pill:active { background-color: #a77b618a; transform: scale(.97); transition-duration: 120ms; }
.arrow {
  width: .44rem; height: .44rem; flex: none;
  border-block-start: 1.5px solid currentColor; border-inline-end: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform 220ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .glass-pill:hover { background-color: #8c62495e; }
  .glass-pill:hover .arrow, .scene:hover .arrow { transform: translateX(2px) rotate(45deg); }
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: clamp(26px, 5.6vw, 86px);
  align-items: center;
  padding-block: 15px 10px;
}
.hero .lead, .intro .lead {
  margin-top: 18px;
  max-width: 37ch;
  color: var(--linen);
  font-size: clamp(1.08rem, 1.9vw, 1.34rem);
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.hero-note { font-size: .83rem; color: var(--muted); margin-top: 11px; max-width: 50ch; }
.hero-image {
  position: relative; overflow: hidden; border-radius: 16px;
  height: clamp(370px, 41vw, 560px); background: #2d2420;
}
.hero-image img { filter: brightness(.88) saturate(.84); object-position: center 55%; }
.hero-image.portrait img { object-position: center 43%; }
.intro { padding-block: clamp(33px, 6vw, 82px) 12px; }
.library-section, .split, .quiet-section, .membership, .faq { margin-top: clamp(52px, 8vw, 110px); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 17px; }
.section-heading p, .split p, .quiet-section p, .membership p, .faq details p {
  max-width: 54ch;
  margin-top: 9px;
  color: var(--muted);
}
.scene-grid, .all-night-episodes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.7vw, 22px); }
.scene-grid { margin-top: 17px; }
.scene, .episode-featured {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 4 / 5;
  background: #2a211e;
  box-shadow: 0 9px 22px #09060858;
}
.scene img, .episode-image { position: absolute; inset: 0; z-index: -2; filter: saturate(.8) brightness(.94); }
.scene::before, .episode-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #291c2114, transparent 42%, #150f1848);
}
.scene-glass, .episode-featured .episode-info {
  position: absolute; inset: auto 9px 9px;
  padding: 15px; border-radius: 14px;
  background: var(--wash);
  -webkit-backdrop-filter: var(--smoked);
  backdrop-filter: var(--smoked);
  box-shadow: 0 6px 20px #0e0a0c30;
  text-shadow: 0 1px 5px #100c0dd9;
}
.scene-glass > span:not(.arrow), .episode-category { display: block; color: #f3d5bc; font-size: .81rem; margin-bottom: 5px; }
.scene-glass h3 { padding-right: 19px; }
.scene-glass .arrow { position: absolute; bottom: 23px; right: 20px; }
.quiet-section, .split {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 26px;
}
.quiet-section { border-block-start: 1px solid var(--line); padding-top: 24px; }
.split { grid-template-columns: .87fr 1.13fr; gap: clamp(20px, 5vw, 75px); }
.split img { max-height: 440px; aspect-ratio: 5 / 4; border-radius: 16px; object-position: center 45%; }

.all-night-controls { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.all-night-filters { display: flex; flex-wrap: wrap; gap: 5px; }
.all-night-filters button { font-size: .82rem; padding-inline: 13px; }
.search {
  display: flex; gap: 11px; align-items: center; width: min(100%, 275px); padding-inline: 15px;
  background: linear-gradient(160deg, #ffe2c71c, transparent 75%), #17121448;
  border-radius: 24px;
  transition: background-color 240ms var(--ease);
}
.search:focus-within { background-color: #89695770; }
.search input { width: 100%; min-width: 0; min-height: 44px; background: none; border: none; font-size: 1rem; }
.search input:focus-visible { outline: 2px solid transparent; }
.search input::placeholder { color: var(--muted); }
.search-icon { position: relative; width: 12px; height: 12px; flex: none; border: 1.5px solid; border-radius: 50%; }
.search-icon::after { content: ""; position: absolute; bottom: -3px; right: -4px; width: 6px; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.all-night-count, .preview-status, .all-night-empty { color: var(--muted); font-size: .86rem; margin-block: 8px; }
.preview-status:not(:empty) { padding-block: 10px; color: var(--linen); }
.all-night-episodes { list-style: none; margin: 10px 0 0; padding: 0; row-gap: 0; }
.episode { grid-column: 1 / -1; scroll-margin-top: 18px; }
.episode .episode-info { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 15px; }
.episode:not(.episode-featured) .episode-info { padding-block: 14px; border-bottom: 1px solid var(--line); }
.episode:not(.episode-featured) h3, .filtered .episode h3 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); }
.episode-meta { grid-column: 1; grid-row: 2; color: var(--muted); font-size: .8rem; }
.episode-actions { display: flex; flex-wrap: wrap; gap: 7px; grid-column: 2; grid-row: 1 / span 2; }
.episode-actions .glass-pill { font-size: .83rem; padding-inline: 11px; }
.episode-featured { grid-column: auto; margin-bottom: 20px; }
.episode-featured .episode-info { display: block; }
.episode-featured .episode-meta { display: block; margin-top: 5px; }
.episode-featured .episode-actions { justify-content: space-between; margin-top: 13px; }
.filtered .episode-featured { grid-column: 1 / -1; aspect-ratio: auto; margin: 0; background: none; box-shadow: none; border-radius: 0; }
.filtered .episode-featured::before, .filtered .episode-featured :is(.episode-category, .episode-image) { display: none; }
.filtered .episode-featured .episode-info {
  position: static; display: grid; background: none; padding: 14px 0; border-radius: 0;
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; text-shadow: none;
}
.filtered .episode-featured .episode-actions, .filtered .episode-featured .episode-meta { margin-top: 0; }
.episode:target h3 { color: #ffe8c9; }
.preview-icon {
  width: 9px; height: 11px; margin-inline-start: 1px; flex: none;
  clip-path: polygon(0 0, 100% 50%, 0 100%); background: currentColor;
}
.preview-toggle[aria-pressed="true"] .preview-icon { width: 8px; clip-path: none; background: none; border-inline: 2px solid; }

.membership { display: grid; grid-template-columns: 1fr .86fr; gap: clamp(24px, 6vw, 83px); align-items: center;
  padding: clamp(20px, 4vw, 48px); border-radius: 16px;
  background: radial-gradient(ellipse at 15% 0%, #9c6a402d, transparent 76%), var(--glass);
}
.membership .primary { margin-top: 20px; }
.membership-steps { list-style: none; margin: 0; padding: 0; }
.membership-steps li + li { margin-top: 18px; }
.membership-steps strong, .membership-steps span { display: block; }
.membership-steps span { color: var(--muted); margin-top: 3px; }
.faq h2 { margin-bottom: 16px; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 12px; }
.faq summary { cursor: pointer; padding: 6px 0; }
.faq details p { margin-bottom: 10px; }

.episode-guide {
  width: min(485px, calc(100% - 24px)); max-height: calc(100dvh - 20px);
  padding: 0; border: 0; border-radius: 16px; color: var(--linen);
  background: linear-gradient(155deg, #382c29c8, #20191bf0);
  -webkit-backdrop-filter: blur(14px) saturate(.82); backdrop-filter: blur(14px) saturate(.82);
  box-shadow: 0 15px 55px #0e080c78;
  opacity: 0; transform: translateY(15px) scale(.99);
  transition: opacity 230ms var(--ease), transform 230ms var(--ease), display 230ms allow-discrete, overlay 230ms allow-discrete;
}
.episode-guide[open] { opacity: 1; transform: none; }
@starting-style { .episode-guide[open] { opacity: 0; transform: translateY(15px) scale(.99); } }
.episode-guide::backdrop { background: #130d126c; -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.guide-image { height: 135px; }
.guide-image img { object-position: center 48%; filter: brightness(.86) saturate(.78); }
.guide-body { padding: 21px; }
.guide-body h2 { font-size: clamp(2.35rem, 7vw, 3.5rem); margin-bottom: 10px; }
.guide-body > p:not(.hero-note), .guide-duration { color: var(--muted); }
.guide-duration { margin: 0 42px 6px 0; font-size: .83rem; }
.guide-body > a { display: flex; width: 100%; margin-top: 12px; }
.guide-body .hero-note { margin: 7px auto 0; text-align: center; }
.guide-close { position: absolute; top: 10px; right: 10px; width: 44px; padding: 0; }
.close-icon { position: relative; width: 14px; height: 14px; }
.close-icon::before, .close-icon::after { content: ""; position: absolute; top: 6px; left: 0; width: 14px; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.close-icon::after { transform: rotate(-45deg); }

.tropf-hero { isolation: isolate; position: relative; width: min(600px, calc(100% - 36px));
  min-height: clamp(470px, 75dvh, 730px); margin: 18px auto; overflow: hidden; border-radius: 16px;
}
.tropf-hero > img { position: absolute; inset: 0; z-index: -1; filter: brightness(.72); }
.tropf-hero .scene-glass { text-align: center; padding: 25px; }
.tropf-hero .glass-pill { margin-top: 16px; }
.tropf-footer { text-align: center; padding: 5px 0 26px; color: var(--muted); }
.error-page { padding-block: 15vh; }
.error-page p { margin-block: 12px 20px; color: var(--muted); }

body.feedback-page {
  --night: var(--ink); --white: var(--linen); --surface: #241b1ba0; --surface-strong: #271d1c;
  --quiet: #b3a294; --lavender: var(--sand); --display: var(--sans);
}
.feedback-page .ambient-light { display: none; }
.feedback-page .feedback-intro h1, .feedback-page .feedback-card h2 { font-family: var(--serif); }
.feedback-page .feedback-card { border: 0; background: var(--surface); }
.feedback-page .eyebrow { color: var(--muted); }
.feedback-page :is(.button, .choice-list span, .choice-grid span, .text-field textarea) {
  border-color: transparent; color: var(--linen);
  background: linear-gradient(170deg, #ffe0c51f, transparent 85%), #241b1b91;
}
.feedback-page .button { border-radius: 32px; transition: background-color 270ms var(--ease), transform 220ms var(--ease); }
.feedback-page .button:active { transform: scale(.97); }
.feedback-page .button-primary, .feedback-page label input:checked + span {
  border-color: transparent; background: #8b62436b; color: var(--linen);
}
.feedback-page .choice-list small, .feedback-page .choice-list input:checked + span small { color: var(--muted); }
.feedback-page label:hover span { border-color: transparent; background-color: #6d523d63; }
.feedback-page .text-field textarea:focus { border-color: transparent; outline-offset: 2px; }
.feedback-page .site-footer { text-align: left; }

@media (max-width: 960px) {
  .wrap { width: calc(100% - 48px); }
  .episode-featured .episode-actions { justify-content: flex-start; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 32px); }
  .site-header { min-height: 72px; gap: 9px; }
  .site-header nav { gap: 10px; font-size: .81rem; }
  .site-header nav .glass-pill { padding-inline: 12px; font-size: .81rem; }
  .brand { font-size: 1.68rem; }
  .hero { grid-template-columns: 1fr; gap: 22px; padding-block: 14px 0; }
  .hero-copy, .intro { text-align: center; }
  .hero .lead, .intro .lead { margin-inline: auto; }
  .hero .actions { justify-content: center; margin-top: 18px; }
  .hero .hero-note { margin-inline: auto; }
  .hero-image { height: clamp(225px, 62vw, 335px); }
  .hero-image.portrait { height: clamp(245px, 80vw, 380px); }
  .scene-grid, .all-night-episodes, .split, .quiet-section, .membership { grid-template-columns: 1fr; }
  .split img { max-height: 340px; }
  .quiet-section .glass-pill { width: fit-content; }
  .quiet-section { gap: 14px; }
  .all-night-controls { align-items: stretch; flex-direction: column-reverse; }
  .all-night-filters { gap: 5px; }
  .all-night-filters button { padding-inline: 9px; font-size: .78rem; }
  .search { width: 100%; }
  .episode-featured { margin-bottom: 12px; }
  .episode-featured .episode-actions { justify-content: space-between; }
  .episode:not(.episode-featured) .episode-info, .filtered .episode-featured .episode-info {
    grid-template-columns: minmax(0, 1fr); gap: 4px;
  }
  .episode:not(.episode-featured) .episode-actions, .filtered .episode-featured .episode-actions {
    grid-column: 1; grid-row: 3; margin-top: 6px;
  }
  .episode-guide { margin: auto auto max(8px, env(safe-area-inset-bottom)); }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 12px; }
  .site-footer nav { gap: 9px 20px; }
}
@media (max-width: 360px) {
  .all-night-filters button { padding-inline: 8px; font-size: .74rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: settle 550ms var(--ease) both; }
  @keyframes settle { from { opacity: .82; transform: translateY(7px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .glass-pill, .glass-pill .arrow { transition-property: background-color; }
  .glass-pill:active, .feedback-page .button:active { transform: none; }
  .glass-pill:hover .arrow { transform: rotate(45deg); }
  .episode-guide { transition: none; transform: none; }
}
@media (forced-colors: active) {
  .glass-pill:focus-visible, .search input:focus-visible { outline-color: Highlight; }
}

.mobile-arrival { display: none; }
@media (max-width: 767px) {
  .page-home .site-header, .page-home .site-footer, .home-desktop,
  .page-all-night .site-header nav { display: none; }
  .page-all-night .site-header { justify-content: center; }
  .page-all-night .hero .actions { flex-direction: column; align-items: center; }
  .page-all-night .hero .actions a + a {
    background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
    text-decoration: underline; text-underline-offset: .25em;
  }
  .mobile-arrival {
    display: flex; flex-direction: column; align-items: center; justify-content: space-between;
    gap: clamp(3.5rem, 16svh, 11rem); min-height: 100svh;
    padding: max(2.5rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-left)) max(2rem, env(safe-area-inset-bottom));
    background: linear-gradient(180deg, #15101494, #1510140f 27%, #171216bc 53%, #171316 92%),
      url("/assets/dusk-retreat.webp") center 35% / cover;
    text-align: center;
  }
  .mobile-signature { text-shadow: 0 2px 12px #171316; }
  .mobile-offer { display: flex; flex-direction: column; align-items: center; width: min(100%, 23rem); }
  .mobile-offer h1 { font-size: clamp(4.8rem, 20vw, 7.5rem); }
  .mobile-offer p { max-width: 29ch; margin: 1rem auto 1.6rem; line-height: 1.5; color: #f2e7dc; text-wrap: pretty; }
  .mobile-offer .primary { min-height: 52px; padding-inline: 2rem; background-color: #56413a8c; }
  .mobile-offer small { margin-top: .7rem; color: var(--muted); font-size: .78rem; }
  .slow-alternative { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px;
    margin-top: clamp(1rem, 4svh, 2.8rem); color: var(--muted); text-decoration: underline; text-underline-offset: .28em; font-size: .86rem; }
  .slow-alternative:hover, .slow-alternative:focus-visible { color: var(--linen); }
}
