:root {
  --paper: #f2f0e9;
  --ink: #11110f;
  --soft-ink: #66665f;
  --line: #cbc9c0;
  --lime: #d5ff36;
  --display: "Archivo Black", Impact, sans-serif;
  --body: Inter, Arial, sans-serif;
  --mono: "DM Mono", monospace;
  --max: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input { font: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }
.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.skip-link { position: fixed; z-index: 10; left: 18px; top: -60px; padding: 10px 14px; background: var(--lime); font-weight: 800; }
.skip-link:focus { top: 18px; }
.site-header { border-bottom: 1px solid var(--line); }
.nav { min-height: 85px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 22px; letter-spacing: -.05em; text-decoration: none; }
.brand-mark { width: 43px; height: 43px; display: grid; place-items: center; transform: rotate(-4deg); background: var(--ink); color: var(--lime); font-family: var(--body); font-size: 13px; font-weight: 900; letter-spacing: -.08em; }
.nav-actions { display: flex; align-items: center; gap: 23px; }
.text-link, .text-button { color: var(--soft-ink); font-size: 14px; font-weight: 800; text-decoration: underline; text-underline-offset: 5px; }
.text-button { padding: 0; border: 0; background: transparent; cursor: pointer; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--ink); background: transparent; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 800; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease; }
.button:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.button-dark { background: var(--ink); color: var(--paper); }
.loading-panel, .auth-panel, .library-panel { min-height: calc(100vh - 198px); padding: clamp(72px, 11vw, 150px) 0; }
.loading-panel h1, .auth-panel h1, .library-panel h1 { margin: 25px 0 24px; font-family: var(--display); font-size: clamp(52px, 8vw, 112px); font-weight: 400; line-height: .87; letter-spacing: -.08em; }
.loading-panel p:not(.eyebrow) { color: var(--soft-ink); }
.eyebrow { color: #3d7770; font: 500 11px/1 var(--mono); letter-spacing: .16em; }
.auth-panel { max-width: 760px; }
.intro { max-width: 620px; color: var(--soft-ink); font-size: 18px; line-height: 1.7; }
.sign-in-form { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--ink); }
label { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 800; }
.form-row { display: flex; gap: 10px; }
input { min-width: 0; flex: 1; min-height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 0; background: #fbfaf6; color: var(--ink); }
.form-message { min-height: 24px; margin-top: 14px; color: var(--soft-ink); font-size: 14px; line-height: 1.5; }
.form-message.error, .library-status.error { color: #b13d31; }
.small-copy { max-width: 550px; margin-top: 38px; color: var(--soft-ink); font-size: 12px; line-height: 1.6; }
.library-heading { display: flex; align-items: start; justify-content: space-between; gap: 24px; }
.library-heading .intro { margin-top: 0; }
.library-heading strong { color: var(--ink); }
.library-status { min-height: 24px; margin: 45px 0 18px; color: var(--soft-ink); font-size: 14px; }
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.program-card { min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; padding: 25px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); }
.program-card .eyebrow { color: var(--lime); }
.program-card h2 { margin-top: 54px; font-size: 32px; line-height: 1; letter-spacing: -.055em; }
.program-card p:not(.eyebrow) { margin-top: 16px; color: #d9d7ce; font-size: 14px; line-height: 1.6; }
.program-meta { display: flex; justify-content: space-between; gap: 12px; padding-top: 24px; color: var(--lime); font: 500 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.empty-state { padding: 28px; border: 1px solid var(--line); color: var(--soft-ink); line-height: 1.65; }
.session-section { margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--ink); }
.section-heading, .playback-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.section-heading h2, .playback-heading h2 { margin: 12px 0 0; font-family: var(--display); font-size: clamp(34px, 5vw, 62px); font-weight: 400; line-height: .92; letter-spacing: -.07em; }
.section-heading > p { max-width: 330px; color: var(--soft-ink); font-size: 14px; line-height: 1.55; }
.session-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.session-card { display: flex; min-height: 280px; flex-direction: column; border: 1px solid var(--ink); background: #fbfaf6; }
.session-thumbnail { width: 100%; height: 150px; object-fit: cover; border-bottom: 1px solid var(--ink); }
.session-details { display: flex; min-height: 100%; flex: 1; flex-direction: column; align-items: flex-start; padding: 24px; }
.session-card h3 { margin-top: 20px; font-size: 27px; line-height: 1; letter-spacing: -.055em; }
.session-description { margin-top: 14px; color: var(--soft-ink); font-size: 14px; line-height: 1.55; }
.session-meta { margin-top: 14px; color: #3d7770; font: 500 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.session-button { margin-top: auto; padding-top: 14px; padding-bottom: 14px; }
.session-button:disabled { border-color: var(--line); background: transparent; color: var(--soft-ink); cursor: not-allowed; transform: none; box-shadow: none; }
.playback-panel { margin-top: 50px; padding: 28px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); }
.playback-panel .eyebrow { color: var(--lime); }
.playback-panel .text-button { color: var(--paper); }
.player-frame { position: relative; width: 100%; margin-top: 24px; padding-top: 56.25%; background: #000; }
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.library-help { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 44px; padding-top: 25px; border-top: 1px solid var(--line); color: var(--soft-ink); font-size: 14px; line-height: 1.5; }
.footer { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 36px 0 42px; border-top: 1px solid var(--line); color: var(--soft-ink); }
.footer .brand { color: var(--ink); font-size: 17px; }
.footer .brand-mark { width: 31px; height: 31px; font-size: 10px; }
.footer p { max-width: 300px; font-size: 13px; line-height: 1.5; }

@media (max-width: 720px) {
  .nav { min-height: 70px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 37px; height: 37px; }
  .nav-actions { gap: 13px; }
  .text-link { display: none; }
  .loading-panel, .auth-panel, .library-panel { min-height: calc(100vh - 176px); padding: 72px 0; }
  .form-row { flex-direction: column; }
  .program-grid, .session-grid { grid-template-columns: 1fr; }
  .section-heading, .playback-heading { align-items: flex-start; flex-direction: column; }
  .library-help, .footer { align-items: flex-start; flex-direction: column; }
}
