/* The Rotation public site: shared stylesheet. "The projection room." */
:root {
  color-scheme: dark light;
  --bg: #0f0e13;
  --raised: #18171e;
  --raised-2: #211f28;
  --text: #f3f1ec;
  --muted: #9e9ba8;
  --line: rgba(255, 255, 255, .07);
  --line-strong: rgba(255, 255, 255, .16);
  --gold: #f2b544;
  --gold-text: #f2b544;
  --on-gold: #0f0e13;
  --tv: #86a6f5;
  --music: #5ccbbd;
  --book: #c3a6f2;
  --serif: "New York", ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --round: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 68ch;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f2f2f5;
    --raised: #ffffff;
    --raised-2: #ffffff;
    --text: #16151b;
    --muted: #66636f;
    --line: rgba(22, 21, 27, .1);
    --line-strong: rgba(22, 21, 27, .22);
    --gold: #b98208;
    --gold-text: #86590a;
    --on-gold: #16151b;
    --tv: #3d5fc4;
    --music: #0b7f73;
    --book: #7547c2;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img { max-width: 100%; }
a { color: var(--text); text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--raised-2); color: var(--text); padding: 10px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 72px; width: auto; display: block; }
@media (max-width: 520px) { .brand img { height: 56px; } }
/* The wordmark is the dark-theme gold; on the light background it needs the deeper gold to read. */
@media (prefers-color-scheme: light) { .brand img { filter: brightness(.78) saturate(1.25); } }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.site-nav a { text-decoration: none; color: var(--muted); font-size: .9375rem; padding: 10px 10px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 8px; }
.site-nav a:hover { color: var(--text); }
.site-nav a.pill { color: var(--text); border: 1px solid var(--line-strong); padding: 8px 14px; min-height: 40px; border-radius: 999px; }
.site-nav a.pill:hover { background: var(--raised); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 96px; padding: 40px 0 56px; color: var(--muted); font-size: .875rem; }
.site-footer nav ul { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.site-footer nav li { display: inline-flex; align-items: center; }
.site-footer nav li + li::before { content: "\00b7"; margin: 0 10px; color: var(--muted); }
.site-footer nav a { color: var(--text); padding: 8px 0; display: inline-block; }
.site-footer p { margin: 0 0 8px; max-width: 70ch; }
.site-footer .attrib { color: var(--text); }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.125rem, 6vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.125rem); }
h3 { font-size: 1.1875rem; line-height: 1.3; }
p { margin: 0 0 1em; }
.lede { font-size: 1.1875rem; color: var(--muted); max-width: 56ch; }
.muted { color: var(--muted); }
.num { font-family: var(--round); font-variant-numeric: tabular-nums; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 14px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--gold); color: var(--on-gold); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--raised); }
.badge-link { display: inline-block; line-height: 0; border-radius: 10px; }
.badge-link img { height: 52px; width: auto; display: block; }
.soon { display: inline-flex; align-items: center; min-height: 52px; padding: 0 20px; border-radius: 14px; border: 1px dashed var(--line-strong); color: var(--text); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Document pages (privacy, terms, guidelines, support, delete) */
.doc { padding: 56px 0 0; }
.doc .wrap > * { max-width: var(--measure); }
.doc h1 { margin-bottom: 14px; }
.doc .updated { color: var(--muted); font-size: .9375rem; margin-bottom: 36px; }
.doc h2 { margin: 56px 0 14px; padding-top: 28px; border-top: 1px solid var(--line); }
.doc h2:first-of-type { margin-top: 40px; }
.doc h3 { margin: 28px 0 8px; }
.doc ul, .doc ol { padding-left: 1.25em; margin: 0 0 1em; }
.doc li { margin-bottom: .5em; padding-left: .25em; }
.doc li::marker { color: var(--muted); }
.doc dl { margin: 0 0 1em; }
.doc dt { font-weight: 600; margin-top: 1em; }
.doc dd { margin: 2px 0 0; color: var(--muted); }
.doc dd strong { color: var(--text); }
.summary { background: var(--raised); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px 8px; margin: 32px 0 0; }
.summary h2 { all: unset; display: block; font: 600 1.25rem/1.2 var(--serif); margin-bottom: 12px; }
.summary ul { margin-bottom: 12px; }
.note { border-left: 3px solid var(--gold); padding: 2px 0 2px 16px; margin: 1.25em 0; }
.note p:last-child { margin-bottom: 0; }

/* FAQ */
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 16px 28px 16px 0; font-weight: 600; list-style: none; position: relative; min-height: 44px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.375rem; line-height: 1.2; color: var(--muted); font-weight: 400; }
details[open] > summary::after { content: "\2212"; }
details > :not(summary) { margin-left: 0; }
details > p:last-child, details > ul:last-child, details > ol:last-child { margin-bottom: 20px; }

/* Landing page */
.hero { padding: 48px 0 0; }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 9vw, 4.25rem); line-height: 1.02; letter-spacing: -.02em; margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--gold-text); }
.hero .lede { margin-bottom: 28px; }
.hero small { display: block; margin-top: 16px; color: var(--muted); font-size: .875rem; }
@media (min-width: 900px) {
  .hero { padding-top: 80px; }
  .hero .wrap { grid-template-columns: 1.15fr .85fr; gap: 48px; }
}

/* The reveal card */
.reveal { background: var(--raised); border: 1px solid var(--line); border-radius: 28px; padding: 22px; max-width: 440px; width: 100%; justify-self: center; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .55); }
@media (prefers-color-scheme: light) { .reveal { box-shadow: 0 24px 60px -30px rgba(22, 21, 27, .3); } }
.rv-top { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: end; }
.poster { aspect-ratio: 2 / 3; border-radius: 10px; position: relative; overflow: hidden;
  background: radial-gradient(circle at 50% 58%, #ffd98a 0 7%, #f2893f 15%, transparent 38%), linear-gradient(170deg, #3b2f59 0%, #1c1630 55%, #0d0b18 100%);
  border: 1px solid var(--line-strong); }
.poster::before { content: ""; position: absolute; left: 50%; bottom: 0; width: 46%; height: 30%; transform: translateX(-50%); background: #0a0912; clip-path: polygon(0 100%, 12% 40%, 30% 40%, 40% 0, 60% 0, 70% 40%, 88% 40%, 100% 100%); }
.poster span { position: absolute; left: 8px; right: 8px; top: 9px; font: 600 .8125rem/1.05 var(--serif); color: #f3f1ec; letter-spacing: .01em; }
.rv-meta { margin: 0 0 4px; color: var(--muted); font-size: .8125rem; }
.rv-title { margin: 0 0 6px; font: 600 1.375rem/1.1 var(--serif); }
.rv-score { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rv-score .big { font: 700 clamp(4rem, 17vw, 5.5rem)/.9 var(--round); letter-spacing: -.03em; color: var(--gold); font-variant-numeric: tabular-nums; }
.tier { font: 600 1.125rem var(--serif); font-style: italic; }
.chip { display: inline-block; margin-top: 12px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .8125rem; font-weight: 600; }
.chip i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-right: 7px; vertical-align: 1px; }
.members { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.members li { display: grid; grid-template-columns: 3.25rem 1fr 2.5rem; gap: 12px; align-items: center; font-size: .9375rem; }
.members .who { color: var(--muted); }
.track { height: 8px; border-radius: 99px; background: var(--raised-2); border: 1px solid var(--line); overflow: hidden; }
@media (prefers-color-scheme: light) { .track { background: rgba(22, 21, 27, .06); } }
.track b { display: block; height: 100%; background: var(--gold); border-radius: 99px; transform-origin: left; }
.members .pts { text-align: right; font: 600 1rem var(--round); font-variant-numeric: tabular-nums; }
.cats { margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: .8125rem; }
.cats b { color: var(--text); font: 600 .9375rem var(--round); margin-left: 4px; }

@keyframes rv-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes rv-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rv-big { from { opacity: 0; transform: scale(.9); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
.members li { animation: rv-in .5s ease-out both; }
.members li:nth-child(1) { animation-delay: .5s; }
.members li:nth-child(2) { animation-delay: 1s; }
.members li:nth-child(3) { animation-delay: 1.5s; }
.members li:nth-child(4) { animation-delay: 2s; }
.members li .track b { animation: rv-bar .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: inherit; }
.members li:nth-child(1) b { animation-delay: .5s; }
.members li:nth-child(2) b { animation-delay: 1s; }
.members li:nth-child(3) b { animation-delay: 1.5s; }
.members li:nth-child(4) b { animation-delay: 2s; }
.rv-score .big { animation: rv-big .7s ease-out 2.7s both; }
.tier, .chip, .cats { animation: rv-in .5s ease-out 3.2s both; }
.chip { animation-delay: 3.4s; }
@media (prefers-reduced-motion: reduce) {
  .members li, .members li .track b, .rv-score .big, .tier, .chip, .cats { animation: none !important; }
}

/* Landing sections */
.section { padding-top: 96px; }
.section > .wrap > h2 { margin-bottom: 14px; max-width: 22ch; }
.section > .wrap > .lede { margin-bottom: 40px; }

.week { list-style: none; margin: 0; padding: 0; counter-reset: wk; max-width: 760px; }
.week li { counter-increment: wk; display: grid; grid-template-columns: 3rem 1fr; gap: 4px 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.week li:last-child { border-bottom: 1px solid var(--line); }
.week li::before { content: counter(wk); font: 600 2.25rem/1 var(--serif); color: var(--gold-text); grid-row: span 2; }
.week h3 { font-size: 1.375rem; }
.week p { margin: 0; color: var(--muted); max-width: 54ch; }

.kinds { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.kinds li { padding: 22px 0 22px 20px; border-top: 1px solid var(--line); border-left: 4px solid var(--c); margin-left: 0; }
.kinds li:last-child { border-bottom: 1px solid var(--line); }
.kinds h3 { font-size: 1.625rem; color: var(--c); margin-bottom: 4px; }
.kinds p { margin: 0; color: var(--muted); max-width: 56ch; }
.k-film { --c: var(--gold-text); }
.k-tv { --c: var(--tv); }
.k-music { --c: var(--music); }
.k-book { --c: var(--book); }

.split { display: grid; gap: 40px; max-width: 900px; }
.split h3 { font-size: 1.5rem; margin-bottom: 8px; }
.split p { color: var(--muted); max-width: 46ch; }
@media (min-width: 760px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }

.also { margin: 0; max-width: 760px; }
.also div { display: grid; gap: 2px 32px; padding: 18px 0; border-top: 1px solid var(--line); }
.also div:last-child { border-bottom: 1px solid var(--line); }
.also dt { font: 600 1.1875rem var(--serif); }
.also dd { margin: 0; color: var(--muted); max-width: 52ch; }
@media (min-width: 760px) { .also div { grid-template-columns: 200px 1fr; } }

.promise .wrap > * { max-width: 760px; }
.promise p { font: 500 clamp(1.375rem, 3.6vw, 1.875rem)/1.35 var(--serif); margin-bottom: 28px; max-width: 30ch; }
.promise p span { color: var(--muted); }
.closing { text-align: left; }
.closing h2 { max-width: 18ch; margin-bottom: 24px; }

/* 404 */
.lost { padding: 96px 0 0; }
.lost h1 { margin-bottom: 14px; max-width: 16ch; }
.lost p { color: var(--muted); max-width: 46ch; margin-bottom: 28px; }
.lost .big404 { font: 700 clamp(4rem, 18vw, 7rem)/1 var(--round); color: var(--gold); margin-bottom: 8px; }

@media (max-width: 380px) {
  body { font-size: 1rem; }
  .reveal { padding: 16px; border-radius: 22px; }
  .rv-top { grid-template-columns: 88px 1fr; gap: 14px; }
  .cats { flex-direction: column; gap: 4px; }
  .badge-link img { height: 48px; }
}

@media (max-width: 600px) {
  .site-footer nav ul { flex-direction: column; gap: 0; }
  .site-footer nav li + li::before { display: none; }
  .site-footer nav li { min-height: 36px; }
}
