/* ─────────────────────────────────────────────────────────────
   Cinema template — dark film-archive layout with VHS shelf.
   Per-site colours come from --accent / --ink / --paper.
   ───────────────────────────────────────────────────────────── */
:root {
  --cream: #f2efe9;
  --muted: rgba(242, 239, 233, .62);
  --line: rgba(242, 239, 233, .85);
  --serif: 'Newsreader', 'Times New Roman', Georgia, serif;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.7, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 3vw, 40px);
}
* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--cream); font-family: var(--sans); font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }

/* grain + curtain */
.grain { position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); } }
.curtain { position: fixed; inset: 0; z-index: 100; background: var(--accent); display: grid; place-items: center; transform: translateY(0); transition: transform .9s var(--ease); }
.curtain-mark { width: 64px; color: var(--ink); animation: markpulse 1s var(--ease-out) both; }
.curtain-mark svg { width: 100%; height: auto; }
@keyframes markpulse { from { opacity: 0; transform: scale(.7) rotate(-30deg); } to { opacity: 1; transform: none; } }
body.is-ready .curtain { transform: translateY(-101%); }
body.is-leaving .curtain { transform: translateY(0); transition-duration: .55s; }
body.is-leaving .curtain .curtain-mark { animation: none; opacity: 1; }

/* header */
.top { position: relative; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 22px var(--gutter); }
.nav-left { display: flex; gap: 8px; flex-wrap: wrap; }
.nav-right { display: flex; gap: 14px; align-items: center; justify-content: flex-end; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border: 1px solid var(--line); font-size: 10.5px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; transition: background .25s, color .25s, border-color .25s; }
.chip i { font-style: normal; opacity: .7; text-transform: none; }
.chip:hover, .chip.is-on { background: var(--cream); color: var(--ink); }
.chip-accent { border-color: var(--accent); color: var(--accent); }
.chip-accent:hover, .chip-accent.is-on { background: var(--accent); color: #fff; }
.since { font-size: 10.5px; letter-spacing: .08em; font-weight: 500; white-space: nowrap; }
.logo { display: inline-flex; align-items: center; gap: 8px; justify-self: center; }
.logo-mark { width: 30px; color: var(--accent); display: block; transition: transform .6s var(--ease-out); }
.logo:hover .logo-mark { transform: rotate(-20deg) scale(1.08); }
.logo-mark svg { width: 100%; height: auto; display: block; }
.logo-word { display: flex; flex-direction: column; font-weight: 700; font-size: 10.5px; line-height: 1.05; letter-spacing: .06em; }
.burger { display: none; width: 34px; height: 30px; border: 1px solid var(--line); background: none; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; padding: 0 8px; }
.burger span { display: block; height: 1.5px; background: currentColor; transition: transform .3s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.3px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.3px) rotate(-45deg); }
.drawer { position: fixed; inset: 0; z-index: 15; background: var(--ink); padding: 96px var(--gutter) 30px; display: flex; flex-direction: column; gap: 4px; transform: translateY(-100%); transition: transform .6s var(--ease); }
.drawer.is-open { transform: none; }
.drawer a { font-family: var(--serif); font-size: 30px; font-weight: 300; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.drawer-search input { margin-top: 18px; width: 100%; padding: 12px 0; background: none; border: 0; border-bottom: 1px solid var(--line); outline: none; font-size: 15px; }

/* hero */
.hero { text-align: center; padding: clamp(40px, 7vw, 90px) var(--gutter) clamp(36px, 5vw, 60px); }
.hero-title { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 9.5vw, 132px); line-height: .95; letter-spacing: .01em; margin: 0; }
.hero-title.sm { font-size: clamp(36px, 7vw, 92px); }
.hero-sub { color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin: 14px 0 0; }
.hero-about { max-width: 300px; margin: clamp(30px, 5vw, 56px) auto 0; font-size: 11px; font-weight: 500; letter-spacing: .06em; line-height: 1.5; }
.hero-quote { max-width: 560px; margin: clamp(40px, 7vw, 90px) auto 0; font-size: 11px; font-weight: 500; letter-spacing: .06em; line-height: 1.55; }
.hero-sm .hero-about { margin-top: 26px; }
.hero-img { margin: 0; height: clamp(260px, 42vw, 560px); overflow: hidden; position: relative; }
.hero-img img { width: 100%; height: 118%; object-fit: cover; filter: grayscale(1) contrast(1.05); transform: translateY(var(--py, 0)) scale(1.12); transition: transform 2.4s var(--ease-out); will-change: transform; }
body.is-ready .hero-img img { transform: translateY(var(--py, 0)) scale(1); }
.big-search { display: flex; max-width: 460px; margin: 26px auto 0; border: 1px solid var(--line); }
.big-search input { flex: 1; padding: 11px 14px; background: none; border: 0; outline: none; }
.big-search button { border: 0; border-left: 1px solid var(--line); background: none; padding: 0 16px; cursor: pointer; font-size: 11px; letter-spacing: .1em; font-weight: 600; }

/* split text animation */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
[data-split] .c { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i) * 32ms + .35s); }
body.is-ready [data-split] .c { transform: none; }

/* reveal */
[data-rv] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
[data-rv].is-in { opacity: 1; transform: none; }

/* bands */
.band { position: relative; padding: clamp(46px, 7vw, 90px) 0; }
.band.dark { background: var(--ink); }
.band.accent { background: var(--accent); color: #fff; }
.band-head { display: flex; justify-content: space-between; padding: 0 var(--gutter) 26px; }
.eyebrow { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; }

/* ── VHS shelf ── */
.shelf { position: relative; padding-bottom: 20px; }
.tabs { display: flex; justify-content: center; flex-wrap: wrap; margin: 0 var(--gutter) 34px; }
.tabs button { background: none; border: 1px solid var(--line); margin-left: -1px; padding: 3px 9px; font-size: 10.5px; font-weight: 500; letter-spacing: .04em; cursor: pointer; transition: background .25s, color .25s; }
.tabs button:hover { background: rgba(242,239,233,.12); }
.tabs button.is-on { background: var(--cream); color: var(--ink); }
.shelf-empty { text-align: center; color: var(--muted); padding: 60px 0; }
.track-wrap { overflow: hidden; padding: 30px 0 34px; cursor: grab; touch-action: pan-y; user-select: none; }
.track-wrap.is-drag { cursor: grabbing; }
.track { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); width: max-content; transform: translateX(var(--tx, 0)); transition: transform .9s var(--ease); will-change: transform; }
.tape { --w: clamp(38px, 3.6vw, 50px); --h: clamp(230px, 24vw, 300px); --cw: calc(var(--h) * .7); position: relative; flex: 0 0 auto; width: var(--w); height: var(--h); transition: width .9s var(--ease), opacity .6s, margin .9s var(--ease), transform .5s var(--ease-out); }
.tape:hover:not(.is-on) { transform: translateY(-10px); }
.tape.is-off { width: 0; opacity: 0; margin-right: calc(-1 * clamp(14px, 2.2vw, 30px)); pointer-events: none; }
.spine { position: absolute; inset: 0; background: var(--spine); border-radius: 2px; overflow: hidden; display: flex; flex-direction: column; align-items: center; padding: 10px 0; box-shadow: inset 2px 0 0 rgba(255,255,255,.14), inset -2px 0 0 rgba(0,0,0,.3), 0 10px 24px -10px rgba(0,0,0,.7); transition: opacity .45s .25s, transform .9s var(--ease); }
.spine::before { content: ''; position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='300'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.08 .9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='60' height='300' filter='url(%23w)'/%3E%3C/svg%3E"); background-size: cover; }
.spine::after { content: ''; position: absolute; left: 0; right: 0; top: 18%; height: 2px; background: var(--accent); opacity: .85; }
.is-dark .spine { color: var(--cream); }
.is-pale .spine { color: #1b1b1b; }
.spine-mark { width: 60%; position: relative; z-index: 1; }
.spine-mark svg { width: 100%; height: auto; display: block; }
.spine-title { position: relative; z-index: 1; flex: 1; writing-mode: vertical-rl; transform: rotate(180deg); display: flex; align-items: center; justify-content: center; text-align: center; margin: 14px 0 8px; line-height: 1; overflow: hidden; white-space: nowrap; }
.f-serif { font-family: var(--serif); font-size: clamp(15px, 1.6vw, 21px); font-weight: 400; }
.f-italic { font-family: var(--serif); font-style: italic; font-size: clamp(15px, 1.6vw, 21px); color: var(--accent); }
.f-bebas { font-family: 'Bebas Neue', var(--sans); font-size: clamp(19px, 2vw, 26px); letter-spacing: .03em; }
.f-sans { font-family: var(--sans); font-weight: 700; font-size: clamp(10px, 1vw, 12px); letter-spacing: .14em; text-transform: uppercase; }
.spine-foot { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.spine-foot em { font-style: normal; font-weight: 700; font-size: 9px; border: 1px solid currentColor; padding: 1px 3px; letter-spacing: .05em; }
.spine-foot .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); display: block; }
.cover { position: absolute; left: 50%; top: 50%; width: var(--cw); height: calc(var(--cw) * 1.5); transform: translate(-50%, -50%) rotateY(80deg) scale(.9); opacity: 0; pointer-events: none; transition: transform .9s var(--ease), opacity .5s; perspective: 900px; }
.cover img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; box-shadow: 0 30px 50px -18px rgba(0,0,0,.85); border-radius: 2px; }
.case { position: absolute; z-index: 0; inset: 2% -7% -1% 6%; background: linear-gradient(90deg, rgba(0,0,0,.45), transparent 18%), var(--accent); border-radius: 3px; transform: rotate(6deg); box-shadow: 0 20px 40px -14px rgba(0,0,0,.8); }
.case::before { content: ''; position: absolute; left: 10%; top: 4%; bottom: 4%; width: 26%; background: #151515; border-radius: 2px; }
.tape.is-on { width: calc(var(--cw) + 20px); }
.tape.is-on .spine { opacity: 0; transform: scaleX(.3); transition: opacity .3s, transform .9s var(--ease); }
.tape.is-on .cover { opacity: 1; transform: translate(-50%, -52%) rotate(-5deg); pointer-events: auto; transition: transform 1s .15s var(--ease-out), opacity .5s .1s; }
.tape.is-on:hover .cover { transform: translate(-50%, -54%) rotate(-3deg) scale(1.02); }
.caption { text-align: center; padding: 0 70px; min-height: 108px; }
.cap-title { font-family: var(--serif); font-weight: 300; font-size: clamp(24px, 3vw, 34px); line-height: 1.15; margin: 0 auto 8px; max-width: 760px; }
.cap-sub { color: var(--accent); font-size: 10.5px; font-weight: 600; letter-spacing: .1em; margin: 0 0 6px; }
.cap-date { font-size: 10.5px; margin: 0; letter-spacing: .06em; }
.caption.is-swap > * { animation: capin .7s var(--ease-out) both; }
.caption.is-swap .cap-sub { animation-delay: .06s; } .caption.is-swap .cap-date { animation-delay: .12s; }
@keyframes capin { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.arrow { position: absolute; bottom: 70px; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; font-size: 18px; color: var(--muted); transition: color .2s, transform .3s var(--ease-out); }
.arrow:hover { color: var(--cream); }
.arrow.prev { left: var(--gutter); } .arrow.prev:hover { transform: translateX(-4px); }
.arrow.next { right: var(--gutter); } .arrow.next:hover { transform: translateX(4px); }

/* accent duo (highlight / read next) */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 8vw, 140px); padding: 0 var(--gutter); max-width: 1320px; margin: 0 auto; }
.duo-item { display: flex; flex-direction: column; }
.duo-item.is-low { padding-top: clamp(0px, 6vw, 80px); }
.duo-img { display: block; width: 100%; max-width: 440px; aspect-ratio: 2/3; overflow: hidden; background: rgba(0,0,0,.15); transition: transform 1.2s var(--ease-out); }
.duo-img img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1) contrast(1.1); transition: filter .8s; }
.duo-item:hover .duo-img { transform: translateY(-6px); }
.duo-item:hover .duo-img img { filter: grayscale(.2); }
.duo-text { font-family: var(--serif); font-weight: 300; font-size: clamp(19px, 1.9vw, 25px); line-height: 1.35; margin-top: 26px; }
.duo-small { font-size: 11px; margin-top: 14px; opacity: .9; line-height: 1.6; max-width: 460px; }
.band-head.light { color: #fff; }

/* index rows */
.rows { list-style: none; margin: 0 var(--gutter); padding: 0; border-top: 1px solid rgba(242,239,233,.2); }
.rows a { display: grid; grid-template-columns: 50px 1fr auto 90px; gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid rgba(242,239,233,.2); transition: padding .4s var(--ease-out), color .3s; }
.rows a:hover { padding-left: 14px; color: var(--accent); }
.rows .n { font-size: 11px; color: var(--muted); }
.rows .t { font-family: var(--serif); font-size: clamp(18px, 2vw, 26px); font-weight: 300; line-height: 1.25; }
.rows .c { font-size: 10px; letter-spacing: .1em; color: var(--accent); font-weight: 600; }
.rows .d { font-size: 11px; color: var(--muted); text-align: right; }

/* ── Article (light paper) ── */
html.is-light, html.is-light body { background: var(--paper); color: #1e1e1e; }
html.is-light .top { color: #1e1e1e; }
html.is-light .chip, html.is-light .burger, html.is-light .tabs button { border-color: #1e1e1e; }
html.is-light .chip:hover, html.is-light .chip.is-on { background: #1e1e1e; color: var(--paper); }
html.is-light .chip-accent { border-color: var(--accent); }
html.is-light .chip-accent:hover, html.is-light .chip-accent.is-on { background: var(--accent); color: #fff; }
html.is-light .drawer { background: var(--paper); }
html.is-light .drawer a { border-color: rgba(0,0,0,.12); }
html.is-light .foot { color: #1e1e1e; border-color: rgba(0,0,0,.15); }
html.is-light .foot-search input { border-color: #1e1e1e; }
.paper { padding: clamp(20px, 3vw, 40px) var(--gutter) clamp(50px, 7vw, 100px); max-width: 1360px; margin: 0 auto; }
.chip-dark { border-color: #1e1e1e; }
.art-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 70px); align-items: start; }
.art-title { font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 4.2vw, 56px); line-height: 1.08; margin: clamp(34px, 5vw, 60px) 0 14px; letter-spacing: -.005em; }
.art-meta { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; line-height: 1.7; margin: 0; }
.art-body { margin: clamp(30px, 4vw, 50px) 0 0 clamp(0px, 18%, 150px); max-width: 520px; }
.art-lead { color: var(--accent); font-size: 13px; font-weight: 500; line-height: 1.65; margin: 0 0 22px; }
.prose { font-size: 15px; line-height: 1.75; color: #262626; }
.prose p { margin: 0 0 1.05em; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.25; margin: 1.6em 0 .55em; }
.prose em { font-style: italic; }
.prose blockquote { font-family: var(--serif); font-size: 22px; font-weight: 300; line-height: 1.35; margin: 1.4em 0; padding-left: 18px; border-left: 3px solid var(--accent); }
.prose a { text-decoration: underline; text-decoration-color: var(--accent); }
.art-tags a { color: var(--accent); font-size: 12px; margin-right: 8px; }
.art-poster { margin: 0; position: sticky; top: 24px; }
.art-poster img { width: 100%; box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); }
.pull { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.18; max-width: 720px; margin: clamp(50px, 8vw, 110px) 0 0; }
.preview-bar { position: sticky; top: 0; z-index: 95; background: var(--accent); color: #fff; text-align: center; padding: 8px; font-size: 12px; letter-spacing: .04em; }
.preview-bar a { text-decoration: underline; }

/* footer */
.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 26px var(--gutter); font-size: 10.5px; font-weight: 500; letter-spacing: .06em; border-top: 1px solid rgba(242,239,233,.12); }
.foot-search input { background: none; border: 0; border-bottom: 1px solid var(--line); padding: 4px 0; outline: none; font-size: 10.5px; letter-spacing: .08em; width: 180px; }
.to-top { background: none; border: 0; cursor: pointer; font-size: 10.5px; letter-spacing: .06em; font-weight: 500; }
.to-top:hover { color: var(--accent); }

/* responsive */
@media (max-width: 1100px) {
  .nav-left .chip:nth-child(n+3) { display: none; }
}
@media (max-width: 860px) {
  .top { grid-template-columns: auto 1fr auto; }
  .nav-left { display: none; }
  .logo { justify-self: start; }
  .nav-right .chip, .since { display: none; }
  .burger { display: flex; }
  .art-grid { grid-template-columns: 1fr; }
  .art-poster { position: relative; top: 0; max-width: 420px; order: -1; }
  .art-body { margin-left: 0; }
  .duo { grid-template-columns: 1fr; }
  .duo-item.is-low { padding-top: 0; }
  .rows a { grid-template-columns: 34px 1fr; }
  .rows .c, .rows .d { display: none; }
  .caption { padding: 0 54px; }
  .arrow { bottom: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  [data-rv] { opacity: 1; transform: none; }
  [data-split] .c { transform: none; }
}
