/* PRISM Learn Engine: album-cover look. A flat navy sleeve, the PRISM ring as the record, cream liner notes.
   Brand kit: ~/prism/brand-kits/prism/brand.json (field, ring gradient, Plus Jakarta Sans + Inter). */
:root {
  --field: #121020; --sleeve: #1b2152; --sleeve-2: #232a66; --ink: #121020; --paper: #f6f0e6; --paper-2: #ebe2d3; --line: #d9cdb9;
  --teal: #0dacbd; --navy: #1b2a69; --orchid: #be71b8; --coral: #fa6a49; --orange: #fc7c17; --ember: #fc552c; --plum: #9f638e; --gold: #ffc857; --good: #2f9e73;
  --ring: conic-gradient(from 210deg, #0dacbd, #1b2a69, #be71b8, #fa6a49, #fc7c17, #fc552c, #0dacbd);
  --display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif; --body: "Inter", system-ui, sans-serif;
  --step--1: clamp(0.8rem, 0.76rem + 0.2vw, 0.9rem); --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem); --step-1: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  --step-2: clamp(1.7rem, 1.3rem + 1.8vw, 2.6rem); --step-3: clamp(2.6rem, 1.4rem + 5.6vw, 6.4rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--sleeve); color: var(--paper); font-family: var(--body); font-size: var(--step-0); line-height: 1.55; overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.025em; line-height: 0.98; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; max-width: 62ch; }
.wrap { width: min(1180px, 100% - clamp(2rem, 6vw, 5rem)); margin-inline: auto; }

/* shared header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; position: relative; z-index: 5; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; font-family: var(--display); font-weight: 800; letter-spacing: -0.01em; }
.brand img { width: 38px; height: 38px; border-radius: 50%; display: block; }
.brand small { display: block; font-family: var(--body); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; }
nav.pages { display: flex; gap: clamp(0.6rem, 2vw, 1.6rem); flex-wrap: wrap; font-size: var(--step--1); font-weight: 600; }
nav.pages a { text-decoration: none; padding: 0.35rem 0; border-bottom: 2px solid transparent; opacity: 0.78; transition: opacity 0.2s, border-color 0.2s; }
nav.pages a:hover { opacity: 1; } nav.pages a[aria-current="page"] { opacity: 1; border-color: var(--coral); }

/* the cover */
.cover { position: relative; padding: clamp(1.5rem, 5vw, 4rem) 0 clamp(3rem, 9vw, 7rem); isolation: isolate; }
.cover .kicker, .kicker { font-size: var(--step--1); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem; }
.cover h1 { font-size: var(--step-3); max-width: 9.5ch; }
.cover h1 em { font-style: normal; color: var(--coral); }
.cover .lede { font-size: var(--step-1); line-height: 1.3; max-width: 30ch; margin: 1.6rem 0 2rem; color: #e9e2f2; font-weight: 500; }
.record { position: absolute; z-index: -1; right: clamp(-22rem, -24vw, -8rem); top: 50%; width: clamp(22rem, 62vw, 50rem); aspect-ratio: 1; translate: 0 -50%; border-radius: 50%;
  background: radial-gradient(circle, var(--sleeve) 0 3.2%, transparent 3.3%), radial-gradient(circle, transparent 0 11%, #0a0812 11.2% 100%), #0a0812; box-shadow: 0 0 0 1px rgb(246 240 230 / 0.06); animation: spin 14s linear infinite; }
.record::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: repeating-radial-gradient(circle, rgb(246 240 230 / 0.07) 0 1px, transparent 1px 5px); mask: radial-gradient(circle, transparent 0 40%, #000 41% 98%, transparent 99%); }
.record::after { content: ""; position: absolute; inset: 30%; border-radius: 50%; background: radial-gradient(circle, var(--sleeve) 0 9%, transparent 9.5%), var(--ring); }
@keyframes spin { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) { .record { animation: none; } * { transition: none !important; } }
.cta { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center; }
.btn { font: 800 1rem var(--display); border: 0; border-radius: 999px; padding: 0.95rem 1.6rem; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; transition: translate 0.25s var(--ease), background 0.2s; }
.btn:hover { translate: 0 -2px; } .btn:active { translate: 0 0; }
.btn.go { background: var(--coral); color: #24100a; } .btn.go:hover { background: #ff8160; }
.btn.line { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn.small { padding: 0.55rem 1rem; font-size: 0.86rem; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; translate: none; }
.btn[aria-pressed="true"] { background: var(--gold); color: var(--ink); box-shadow: none; }

/* liner notes: the cream inner sleeve */
.liner { background: var(--paper); color: var(--ink); border-radius: 28px 28px 0 0; padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); position: relative; z-index: 2; }
.liner h2 { font-size: var(--step-2); margin-bottom: 1.2rem; }
.liner .kicker { color: var(--plum); }
.liner p { color: #2c2740; }
.cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 820px) { .cols { grid-template-columns: 1fr; } }

/* track list */
.tracks { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.track { display: grid; grid-template-columns: 3.2rem 1fr auto; gap: 1rem; align-items: center; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.track .no { font: 800 var(--step-1) var(--display); color: var(--plum); font-variant-numeric: tabular-nums; }
.track h3 { font-size: var(--step-1); letter-spacing: -0.02em; margin-bottom: 0.25rem; }
.track p { margin: 0; font-size: var(--step--1); color: #554d68; }
.track .tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.5rem; }
.tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.2rem 0.55rem; border-radius: 999px; background: var(--paper-2); color: #4a4160; }
.tag.due { background: var(--coral); color: #2a0f08; } .tag.draft { background: #f3dfa8; color: #5a4208; }
.track .btn { white-space: nowrap; }
@media (max-width: 560px) { .track { grid-template-columns: 2.2rem 1fr; } .track .act { grid-column: 2; } }

/* credits-style lists */
.credits { list-style: none; margin: 0; padding: 0; }
.credits li { display: grid; grid-template-columns: 2.2rem 1fr; gap: 0.6rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.credits .n { font: 800 0.95rem var(--display); color: var(--plum); font-variant-numeric: tabular-nums; }
.credits b { font-family: var(--display); font-weight: 800; }
.credits span { display: block; font-size: var(--step--1); color: #554d68; }
.status { float: right; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.18rem 0.5rem; border-radius: 4px; margin-left: 0.6rem; }
.status.built { background: #cdeedd; color: #14573c; } .status.todo { background: var(--paper-2); color: #6b6280; }
.note { font-size: var(--step--1); color: #554d68; border-left: 0; padding: 0; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); font: 800 var(--step-1) var(--display); color: var(--coral); }
.steps h3 { font-size: 1.15rem; letter-spacing: -0.01em; margin-bottom: 0.3rem; }
.steps p { margin: 0; font-size: var(--step--1); color: #3d3652; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.86em; background: var(--paper-2); padding: 0.1em 0.35em; border-radius: 4px; color: #2c2740; }
pre { background: var(--ink); color: #e9e2f2; padding: 1rem 1.1rem; border-radius: 12px; overflow-x: auto; font-size: 0.8rem; line-height: 1.5; margin: 0.6rem 0 0; }
pre code { background: none; color: inherit; padding: 0; }

.next { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: 1.4rem; border-top: 2px solid var(--ink); flex-wrap: wrap; }
.next a { font: 800 var(--step-1) var(--display); text-decoration: none; letter-spacing: -0.02em; } .next a:hover { color: var(--ember); }
footer.foot { background: var(--paper); color: #554d68; font-size: var(--step--1); padding: 0 0 2.5rem; }
footer.foot .wrap { border-top: 1px solid var(--line); padding-top: 1.2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* entrance: one staggered reveal on load */
.rise { opacity: 0; translate: 0 18px; animation: rise 0.8s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes rise { to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; opacity: 1; translate: none; } }
