:root {
  color-scheme: dark;
  --black: #110f0e;
  --ivory: #f7eddf;
  --gold: #dec197;
  --muted: #c7bbad;
  --line: #514639;
  font: 16px/1.5 system-ui, sans-serif;
  background: #080706;
  color: var(--ivory);
}
* { box-sizing: border-box; }
body { margin: 0; overflow: hidden; }
a { color: inherit; text-underline-offset: 4px; }
button { font: inherit; color: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, video:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
[hidden] { display: none !important; }
p, h1, h2 { margin: 0; }
h1 { font: 400 clamp(2.45rem, 10vw, 3.35rem)/.98 Georgia, serif; letter-spacing: -.055em; text-wrap: balance; }
h1:focus { outline: none; }
.app-shell { position: relative; isolation: isolate; width: min(100%, 430px); height: 100vh; height: 100dvh; margin: auto; background: var(--black); display: grid; grid-template-rows: minmax(0, 1fr) auto; padding-top: env(safe-area-inset-top); overflow: hidden; }
.screen { overflow: auto; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.padded { padding-inline: 21px; }
.kicker { color: var(--gold); font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.brand { font: 400 1.5rem/1.14 Georgia, serif; }
.brand small { display: block; margin-top: 5px; color: var(--gold); font: 500 .6rem/1.3 system-ui,sans-serif; text-transform: uppercase; letter-spacing: .15em; }
.question { color: var(--gold); font: italic 1.18rem/1.25 Georgia, serif; }
.tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); background: #191613; padding-bottom: env(safe-area-inset-bottom); }
.tabs a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 59px; padding: 4px 2px; color: var(--muted); text-decoration: none; font-size: .69rem; text-align: center; }
.tabs a svg { width: 22px; height: 22px; flex-shrink: 0; }
.tabs a[aria-current] { background: #2a221a; color: var(--gold); font-weight: 650; }
.tabs a[aria-current]::before { content: ''; position: absolute; top: 0; inset-inline: 32%; height: 2px; background: var(--gold); }
.home-vignette { position: relative; min-height: 100%; display: flex; isolation: isolate; }
.hero-image, .home-vignette::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-image { object-fit: cover; object-position: center 39%; }
.home-vignette::after { content: ''; background: linear-gradient(180deg,#0f0b08d9 0%, #0f0b0820 35%, #0f0b0870 54%, #110f0e 98%); z-index: -1; }
.hero-content { display: flex; flex-direction: column; justify-content: space-between; gap: clamp(95px, 23dvh, 210px); width: 100%; padding: 25px 21px 29px; }
.hero-heading h1 { margin: 7px 0 15px; text-wrap: wrap; }
.hero-heading h1 em { display: block; color: var(--gold); }
.primary { min-height: 47px; display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; padding: 8px 15px; margin-top: 19px; background: var(--gold); color: var(--black); text-decoration: none; font-size: .86rem; font-weight: 650; }
.primary span { font-size: 1.3rem; }
.splash { position: absolute; z-index: 2; inset: 0; display: grid; align-content: center; justify-items: center; gap: 25px; padding: 24px; text-align: center; background: var(--black); transition: opacity 180ms ease-out; }
.splash .brand { color: var(--ivory); font-size: 2.2rem; }
.splash.dismiss { opacity: 0; pointer-events: none; }
.language-screen { padding-block: clamp(26px, 6dvh, 60px); }
.language-screen .brand { margin-bottom: clamp(29px, 7dvh, 64px); }
.language-screen h1, .about h1 { margin: 8px 0 24px; }
.language-choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.language-choices a { display: flex; flex-direction: column; justify-content: center; min-height: 94px; padding: 10px 13px; border: 1px solid var(--line); text-decoration: none; background: #1d1916; }
.language-choices b { font: 400 1.85rem/1.2 Georgia, serif; color: var(--gold); }
.language-choices span { font-size: .8rem; }
.language-choices a:hover, .language-switch a:hover { border-color: var(--gold); }
.explore { padding-block: 29px 22px; }
.explore h1 { margin: 10px 0 12px; }
.carousel-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-block: 11px 4px; }
.carousel-controls { display: flex; gap: 5px; }
.carousel-controls button { width: 44px; height: 44px; border: 1px solid var(--line); background: #1d1916; font: 1.5rem Georgia, serif; }
.vignettes { display: flex; gap: 12px; list-style: none; padding: 2px 21px 12px; margin: 0; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 21px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.vignettes li { flex: 0 0 86%; min-width: 0; scroll-snap-align: start; }
.vignettes a { display: flex; flex-direction: column; text-decoration: none; background: #211b16; }
.explore-series { text-transform: none; }
.card-visual { position: relative; display: flex; isolation: isolate; align-items: flex-end; min-height: clamp(245px, 52dvh, 510px); overflow: hidden; text-decoration: none; background: #211b16; }
.vignettes img, .card-visual::after { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; }
.vignettes img { object-fit: cover; object-position: center 37%; }
.card-visual::after { content: ''; z-index: -1; background: linear-gradient(0deg,#100c09 0%,#100c09d9 24%,#0e0c0a00 65%); }
.card-summary { padding: 12px 18px 16px; color: var(--muted); font-size: .82rem; }
.card-copy { display: flex; flex-direction: column; gap: 5px; padding: 18px; }
.card-copy strong { font: 400 1.84rem/1.02 Georgia, serif; }
.runtime, .credit { color: var(--muted); font-size: .77rem; }
.watch { padding-bottom: 25px; }
.watch-heading { padding-top: 9px; padding-bottom: 13px; }
.back, .direct { display: inline-flex; min-height: 44px; align-items: center; color: var(--gold); gap: 6px; font-size: .78rem; }
.back span { font-size: 1.3rem; }
.watch h1 { margin-top: 6px; font-size: clamp(1.85rem, 8.5vw, 2.9rem); text-wrap: wrap; }
.player { position: relative; display: grid; place-items: center; background: #090807; }
.player video { display: block; max-width: 100%; height: min(57dvh, 575px); width: auto; aspect-ratio: 9/16; object-fit: contain; background: #090807; }
.video-loading { position: absolute; top: 44%; pointer-events: none; }
.video-loading span { display: block; width: 29px; height: 29px; border: 3px solid #564b3f; border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.video-error { position: absolute; bottom: 52px; padding: 9px 12px; margin-inline: 10px; background: #191613; border: 1px solid var(--line); color: var(--ivory); font-size: .8rem; }
.watch-details .direct { margin-bottom: 7px; }
.language-switch div { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; margin: 8px 0 17px; }
.language-switch a { display: flex; min-height: 44px; justify-content: center; align-items: center; border: 1px solid var(--line); text-decoration: none; }
.language-switch a b { font-size: .82rem; }
.language-switch a span { display: none; }
.language-switch a[aria-current] { border-color: var(--gold); color: var(--gold); background: #2a221a; }
.description { color: var(--muted); }
.credit { margin-top: 9px; }
.about { padding-block: 34px; }
.about .brand { margin-bottom: 34px; }
.about h1 { margin-bottom: 13px; }
.about-links { display: grid; border-top: 1px solid var(--line); margin-top: 28px; }
.about-links a, .about-links button { display: flex; align-items: center; justify-content: flex-start; min-height: 51px; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 8px 2px; text-align: start; color: var(--ivory); }
.install-help { margin: 8px 0; color: var(--muted); font-size: .85rem; }
@media (min-width: 431px) {
  .app-shell { box-shadow: 0 0 0 1px #2c251e, 0 0 70px #000; }
}
@media (prefers-reduced-motion: reduce) {
  .splash { transition: none; }
  .video-loading span { animation: none; }
}

.hero-heading h1 { font-size: clamp(2rem, 9vw, 3.1rem); overflow-wrap: anywhere; }
.language-hint, .about-description { margin: 0 0 18px; }
.about-description { margin-top: 18px; }
.video-loading { display: grid; justify-items: center; gap: 8px; padding: 8px 12px; background: #110f0ee6; text-align: center; font-size: .78rem; }
.player-controls { align-self: end; width: 100%; padding: 5px 12px 8px; border-top: 1px solid var(--line); background: #171411; }
.player:fullscreen video { height: calc(100dvh - 100px); }
.player-controls input { accent-color: var(--gold); }
.player-controls .seek { display: block; width: 100%; height: 22px; margin: 0 0 4px; }
.player-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.player-actions button { min-height: 44px; padding: 3px 8px; background: transparent; border: 1px solid var(--line); font-size: .76rem; }
.player-actions button[aria-pressed="true"] { color: var(--gold); border-color: var(--gold); }
.player-actions .volume { width: 56px; min-height: 26px; margin: 0; }

.coffee-app-link { display: table; margin: 1rem 0; color: var(--gold); font-weight: 600; text-underline-offset: .25em; }
.coffee-app { max-width: 48rem; margin-inline: auto; padding-block: 1.5rem; }
.coffee-app-logo { display: block; width: min(100%, 23rem); height: auto; margin: 0 auto 1.5rem; }
.coffee-app h1 { margin: .4rem 0 1rem; }
.coffee-app video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #110f0e; }
.coffee-app-languages { margin-top: 1.5rem; }
.coffee-app-languages ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; padding: 0; list-style: none; }
.coffee-app-languages a { display: flex; flex-direction: column; gap: .15rem; min-height: 3.25rem; padding: .55rem .65rem; border: 1px solid var(--line); color: inherit; text-decoration: none; }
.coffee-app-languages a[aria-current] { border-color: var(--gold); color: var(--gold); }

.app-series { padding-block: 1.4rem; }
.app-series h1 { margin: 1rem 0 .35rem; font-size: clamp(1.85rem, 7.5vw, 2.55rem); }
.app-series-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: .65rem; padding: 0; list-style: none; }
.app-series-card { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); background: #211b16; text-decoration: none; }
.app-series-card img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 36%; }
.app-series-card div { display: grid; grid-template-rows: 1fr auto; flex: 1; gap: .5rem; padding: .65rem; }
.app-series-card h2 { font: 400 clamp(1rem, 4.7vw, 1.35rem)/1.15 Georgia, serif; overflow-wrap: anywhere; }
.app-series-card p { color: var(--gold); font-size: .78rem; line-height: 1.3; }
.coffee-app > .back { display: inline-block; margin-bottom: 1rem; }
