/* artgto.com/learn — explainer videos. Tokens are the site's own (site.css); the page is self-contained. */
:root {
  --paper: #F2EBD8; --paper-raised: #FBF7EA; --paper-inset: #E5DCC0; --brd: #D4CBA9; --brd-strong: #B8AC85;
  --ink: #1B1810; --ink-dim: #383019; --ink-faint: #665C42;
  --felt: #0E3B2C; --felt-mid: #1B5E47; --felt-deep: #082519;
  --brass: #A87A2C; --brass-bright: #D8AF56; --brass-text: #8A6220;
  --on-felt: #F2EBD8; --on-felt-dim: #C6DACB;
  --spade: #23282F; --heart: #B8223A; --diamond: #1E5FC4; --club: #1B8A42;
  --mono: "Spline Sans Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { background: var(--felt); color: var(--on-felt); font-family: var(--mono); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--brass-bright); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); color: var(--ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* felt: a woven ground with one soft lamp, as in the videos */
.felt { position: relative; background:
    repeating-linear-gradient(38deg, rgba(255,255,255,.045) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(-38deg, rgba(0,0,0,.14) 0 1px, transparent 1px 4px),
    radial-gradient(110% 90% at 20% 0%, #17503B 0%, var(--felt) 46%, var(--felt-deep) 100%);
  color: var(--on-felt); }
.paper { background: var(--paper); color: var(--ink); }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ── top bar ── */
.top { display: flex; align-items: center; gap: 20px; padding-top: 22px; padding-bottom: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.brand b { font-weight: 600; font-size: 15px; letter-spacing: .22em; }
.brand i { font-style: normal; color: var(--brass-bright); }
.deck { display: flex; gap: 8px; margin: 0 auto; padding: 0; list-style: none; }
.top-link { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: 9px 14px; border: 1px solid rgba(242,235,216,.35); border-radius: 4px; transition: background-color .18s, color .18s, border-color .18s; }
.top-link:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ── suit tiles: the episode numbers ── */
.tile { --r: 0deg; position: relative; display: inline-grid; place-items: center; width: 1.5em; height: 2.1em; border-radius: .14em;
  font-family: var(--mono); font-weight: 700; line-height: 1; color: #fff; text-decoration: none;
  transform: rotate(var(--r)); box-shadow: 0 .06em 0 rgba(0,0,0,.35), 0 .22em .5em rgba(0,0,0,.28);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); flex: none; }
.tile.spade { background: var(--spade); box-shadow: inset 0 0 0 1px rgba(242,235,216,.35), 0 .22em .5em rgba(0,0,0,.28); }
.tile.heart { background: var(--heart); } .tile.diamond { background: var(--diamond); } .tile.club { background: var(--club); }
.tile.brass { background: var(--brass-bright); color: var(--felt-deep); }
a.tile:hover, .row:hover .tile, .next:hover .tile { transform: rotate(0deg) translateY(-.08em); box-shadow: 0 .06em 0 rgba(0,0,0,.35), 0 .5em .9em rgba(0,0,0,.34); }
.deck .tile { font-size: 20px; }
.deck .tile[aria-current="page"] { outline: 2px solid var(--brass-bright); outline-offset: 3px; }
.t1 { --r: -3deg; } .t2 { --r: 2deg; } .t3 { --r: -1.5deg; } .t4 { --r: 3deg; } .t5 { --r: -2deg; }

/* ── hero ── */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, 400px); gap: clamp(28px, 6vw, 96px); align-items: center; padding-top: clamp(24px, 5vw, 64px); padding-bottom: clamp(56px, 8vw, 112px); }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 7.4vw, 96px); line-height: .98; letter-spacing: -.028em; text-wrap: balance; }
.hero h1 em { display: block; font-style: italic; color: var(--brass-bright); }
.slip { display: inline-block; margin-top: 30px; padding: 9px 16px; background: var(--paper); color: var(--ink); font-weight: 600; font-size: 15px; transform: rotate(-1.4deg); box-shadow: 0 6px 16px rgba(0,0,0,.28); }
.hero-go { display: inline-flex; align-items: center; gap: 10px; margin-top: 34px; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--brass-bright); padding-bottom: 3px; }
.hero-go:hover { color: var(--brass-bright); }
.hero-go span { transition: transform .25s var(--ease); } .hero-go:hover span { transform: translateX(5px); }

/* ── player ── */
.player { position: relative; }
.frame { position: relative; background: #050d09; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px rgba(216,175,86,.55), 0 24px 60px rgba(0,0,0,.5); }
.frame.tall { aspect-ratio: 9 / 16; } .frame.wide { aspect-ratio: 16 / 9; }
.frame video { width: 100%; height: 100%; object-fit: contain; background: #050d09; }
/* brass corners, like a framed table print */
.player::before, .player::after { content: ""; position: absolute; width: 26px; height: 26px; border: 2px solid var(--brass-bright); pointer-events: none; z-index: 2; }
.player::before { left: -9px; top: -9px; border-right: 0; border-bottom: 0; }
.player::after { right: -9px; bottom: 43px; border-left: 0; border-top: 0; }
.big-play { position: absolute; inset: 0; display: grid; place-items: end center; border: 0; padding: 0 0 9%; background: linear-gradient(rgba(5,13,9,0) 40%, rgba(5,13,9,.55)); transition: opacity .25s; }
.big-play i { display: inline-flex; align-items: center; gap: 12px; font-style: normal; background: var(--paper); color: var(--ink); font-weight: 700; padding: 13px 20px 13px 16px; border-radius: 4px; box-shadow: 0 10px 28px rgba(0,0,0,.45); transition: transform .3s var(--ease); }
.big-play:hover i { transform: scale(1.05); }
.big-play svg { width: 16px; height: 16px; }
.player.playing .big-play { opacity: 0; pointer-events: none; }
.bar { display: flex; align-items: center; gap: 4px; height: 52px; padding: 0 6px; margin-top: 0; color: var(--on-felt); }
.bar button { display: inline-grid; place-items: center; min-width: 40px; height: 40px; background: none; border: 0; border-radius: 4px; font-size: 13px; font-weight: 600; }
.bar button:hover { background: rgba(242,235,216,.12); }
.bar svg { width: 18px; height: 18px; }
.bar time { font-size: 12.5px; font-variant-numeric: tabular-nums; padding: 0 8px; white-space: nowrap; color: var(--on-felt-dim); }
.seek { flex: 1; min-width: 40px; height: 40px; appearance: none; background: none; cursor: pointer; --p: 0%; }
.seek::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--brass-bright) var(--p), rgba(242,235,216,.25) var(--p)); }
.seek::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(242,235,216,.25); }
.seek::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--brass-bright); }
.seek::-webkit-slider-thumb { appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: var(--paper); border: 0; }
.seek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 0; }
.paper .bar { color: var(--ink); } .paper .bar time { color: var(--ink-faint); }
.paper .bar button:hover { background: rgba(27,24,16,.08); }
.paper .seek::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--brass) var(--p), var(--brd-strong) var(--p)); }
.paper .seek::-webkit-slider-thumb, .paper .seek::-moz-range-thumb { background: var(--ink); }

/* ── episode rows (index) ── */
.rows { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px); }
.row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(18px, 3.4vw, 48px); align-items: center; padding: clamp(26px, 3.6vw, 44px) 0; border-top: 1px solid var(--brd); text-decoration: none; color: inherit; }
.row:last-child { border-bottom: 1px solid var(--brd); }
.row .tile { font-size: clamp(34px, 5vw, 60px); }
.row h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.8vw, 46px); line-height: 1.05; letter-spacing: -.02em; }
.row .sub { margin-top: 6px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--brass-text); }
.row .hook { margin-top: 12px; max-width: 62ch; color: var(--ink-dim); font-family: var(--serif); font-size: 19px; line-height: 1.45; }
.watch { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; padding: 12px 16px; border: 1.5px solid var(--ink); border-radius: 4px; transition: background-color .18s, color .18s; }
.watch small { font-size: 12px; font-weight: 500; letter-spacing: 0; font-variant-numeric: tabular-nums; opacity: .7; }
.row:hover .watch { background: var(--ink); color: var(--paper); }

/* ── feature ── */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(56px, 8vw, 110px); }
.feature h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -.025em; text-wrap: balance; }
.feature h2 em { font-style: italic; color: var(--brass-bright); }
.feature p { margin-top: 18px; max-width: 46ch; font-family: var(--serif); font-size: 20px; line-height: 1.45; color: var(--on-felt-dim); }
.poster { position: relative; display: block; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px rgba(216,175,86,.55), 0 24px 60px rgba(0,0,0,.5); transform: rotate(1.2deg); transition: transform .5s var(--ease); }
.poster:hover { transform: rotate(0deg) scale(1.015); }
.poster img { width: 100%; height: auto; }
.btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding: 14px 20px; border-radius: 4px; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; background: var(--paper); color: var(--ink); border: 0; transition: transform .25s var(--ease), background-color .18s; }
.btn:hover { transform: translateY(-2px); background: var(--paper-raised); }
.btn small { font-weight: 500; letter-spacing: 0; opacity: .7; font-variant-numeric: tabular-nums; }
.btn.dark { background: var(--felt); color: var(--paper-raised); } .btn.dark:hover { background: var(--ink); }

/* ── closing call ── */
.close { padding-top: clamp(64px, 9vw, 130px); padding-bottom: clamp(64px, 9vw, 130px); }
.close h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 6vw, 80px); line-height: 1; letter-spacing: -.028em; max-width: 14ch; text-wrap: balance; }
.close h2 em { font-style: italic; color: var(--brass-text); }
.close p { margin-top: 20px; max-width: 52ch; font-family: var(--serif); font-size: 20px; line-height: 1.45; color: var(--ink-dim); }
.foot { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 26px; padding-bottom: 34px; font-size: 12.5px; color: var(--on-felt-dim); }
.foot a { text-decoration: none; border-bottom: 1px solid rgba(198,218,203,.4); } .foot a:hover { color: var(--on-felt); }
.foot span:first-child { margin-right: auto; }

/* ── episode page ── */
.ep-head { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 30px); padding-top: clamp(12px, 3vw, 36px); padding-bottom: clamp(24px, 3.4vw, 44px); }
.ep-head .tile { font-size: clamp(40px, 6vw, 72px); }
.ep-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5.4vw, 70px); line-height: 1; letter-spacing: -.026em; text-wrap: balance; }
.ep-head p { margin-top: 10px; font-weight: 600; font-size: 14px; letter-spacing: .04em; color: var(--brass-bright); }
.stage.tall { display: grid; grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; padding-bottom: clamp(48px, 7vw, 96px); }
.stage.tall .player { position: sticky; top: 24px; }
.stage.wide { padding-bottom: clamp(48px, 7vw, 96px); }
.stage.wide .player { max-width: 1040px; margin: 0 auto; }
.stage.wide .after { max-width: 760px; margin: clamp(36px, 5vw, 64px) auto 0; }
.remember { background: var(--paper); color: var(--ink); padding: 18px 22px; transform: rotate(-.6deg); box-shadow: 0 8px 22px rgba(0,0,0,.3); font-family: var(--serif); font-size: clamp(19px, 2vw, 23px); line-height: 1.4; }
.remember b { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--brass-text); margin-right: 6px; }
.tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tool { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; background: none; border: 1px solid rgba(242,235,216,.38); border-radius: 4px; font-size: 13px; font-weight: 600; text-decoration: none; transition: background-color .18s, border-color .18s; }
.tool:hover { background: rgba(242,235,216,.1); border-color: var(--on-felt); }
.tool small { font-weight: 400; color: var(--on-felt-dim); }
.read h2 { margin-top: clamp(34px, 4vw, 52px); font-family: var(--serif); font-weight: 400; font-style: italic; font-size: clamp(26px, 3vw, 34px); }
.read .hint { margin-top: 4px; font-size: 13px; color: var(--on-felt-dim); }
.lines { list-style: none; margin: 18px 0 0; padding: 0; }
.lines li { border-top: 1px solid rgba(242,235,216,.16); }
.lines button { display: grid; grid-template-columns: 4.4em minmax(0, 1fr); gap: 12px; width: 100%; text-align: left; background: none; border: 0; padding: 14px 10px 14px 0; border-radius: 3px; font-family: var(--serif); font-size: 19px; line-height: 1.5; color: var(--on-felt-dim); transition: color .2s, background-color .2s; }
.lines button time { font-family: var(--mono); font-size: 12.5px; font-weight: 600; padding-top: .42em; color: var(--brass-bright); font-variant-numeric: tabular-nums; }
.lines button:hover { color: var(--on-felt); background: rgba(242,235,216,.05); }
.lines li.on button { color: var(--on-felt); }
.lines li.on { border-top-color: var(--brass-bright); }
.sources { margin-top: 30px; font-size: 13px; color: var(--on-felt-dim); }
.sources ul { margin: 8px 0 0; padding-left: 18px; } .sources li { margin: 4px 0; }

.next { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(18px, 3.4vw, 48px); align-items: center; padding-top: clamp(40px, 6vw, 76px); padding-bottom: clamp(40px, 6vw, 76px); text-decoration: none; color: inherit; }
.next .tile { font-size: clamp(40px, 6vw, 72px); }
.next h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4.4vw, 54px); line-height: 1.04; letter-spacing: -.022em; }
.next .hook { margin-top: 10px; max-width: 58ch; font-family: var(--serif); font-size: 19px; line-height: 1.45; color: var(--ink-dim); }
.next:hover .watch { background: var(--ink); color: var(--paper); }
.all { border-top: 1px solid var(--brd); padding-top: 26px; padding-bottom: clamp(40px, 6vw, 70px); }
.all ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 6px 26px; }
.all a { display: flex; align-items: center; gap: 12px; padding: 9px 0; text-decoration: none; font-weight: 600; font-size: 14px; }
.all a .tile { font-size: 17px; } .all a small { margin-left: auto; font-weight: 400; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.all a:hover { color: var(--brass-text); } .all a[aria-current="page"] { color: var(--brass-text); }

/* ── the deal: tiles and frame land once on load ── */
@media (prefers-reduced-motion: no-preference) {
  .deal { animation: deal .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 120ms); }
  @keyframes deal { from { opacity: 0; transform: translate3d(60px, -90px, 0) rotate(calc(var(--r, 0deg) + 24deg)); filter: blur(3px); } }
  .rise { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(26px); } }
}

@media (max-width: 860px) {
  .hero, .feature, .stage.tall { grid-template-columns: minmax(0, 1fr); }
  .hero .player, .stage.tall .player { max-width: 340px; margin: 0 auto; width: 100%; }
  .stage.tall .player { position: relative; top: auto; }
  .row .tile, .next .tile { align-self: start; margin-top: 4px; }
  .row, .next { grid-template-columns: auto minmax(0, 1fr); }
  .row .watch, .next .watch { grid-column: 2; justify-self: start; }
  .deck { display: none; }
  .top-link { margin-left: auto; }
  .lines button { grid-template-columns: 3.6em minmax(0, 1fr); font-size: 18px; }
}

/* ── review batch: cards, one felt table, viewport fit ── */
.tile::before, .tile::after { content: attr(data-pip); position: absolute; font-family: var(--serif); font-weight: 400; font-size: .3em; line-height: 1; opacity: .92; }
.tile::before { left: .34em; top: .3em; } .tile::after { right: .34em; bottom: .3em; transform: rotate(180deg); }
.deck .tile, .all .tile { height: 1.9em; }

/* the episodes are dealt onto the same felt as the hero */
.rows { padding-top: 0; }
.felt .row { border-top-color: rgba(242,235,216,.18); }
.felt .row:last-child { border-bottom-color: rgba(242,235,216,.18); }
.felt .row .sub { color: var(--brass-bright); }
.felt .row .hook { color: var(--on-felt-dim); }
.felt .watch { border-color: var(--on-felt); }
.felt .row:hover .watch { background: var(--paper); color: var(--ink); }
/* the film sits on paper */
.paper .feature h2 em { color: var(--brass-text); }
.paper .feature p { color: var(--ink-dim); }
.paper .poster { box-shadow: 0 0 0 1px var(--brd-strong), 0 22px 50px rgba(27,24,16,.28); }
/* the close returns to felt, with a range on the table */
.close-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 6vw, 90px); align-items: center; }
.felt .close h2 em { color: var(--brass-bright); }
.felt .close p { color: var(--on-felt-dim); }
.range { width: clamp(200px, 26vw, 330px); transform: rotate(2.5deg); box-shadow: 0 18px 44px rgba(0,0,0,.4); border-radius: 4px; }

/* the player must be playable without scrolling */
.hero .player { width: min(100%, calc((100svh - 230px) * 9 / 16)); min-width: 200px; margin-left: auto; margin-right: auto; }
.stage.tall .player { width: min(100%, calc((100svh - 120px) * 9 / 16)); min-width: 200px; }
.stage.wide .player { max-width: min(1040px, calc((100svh - 150px) * 16 / 9)); }
.lines time b { display: block; margin-top: 3px; font-size: 15px; color: var(--on-felt); }
.all ol { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: start; }
.all a { align-items: flex-start; } .all a small { padding-top: 2px; }

@media (max-width: 860px) {
  .top { flex-wrap: wrap; row-gap: 14px; }
  .deck { display: flex; order: 3; width: 100%; margin: 0; justify-content: center; }
  .hero { padding-top: 6px; gap: 22px; }
  .hero h1 { font-size: clamp(38px, 11vw, 60px); }
  .slip { margin-top: 16px; } .hero-go { margin-top: 18px; }
  .hero .player { width: min(300px, calc((100svh - 440px) * 9 / 16)); min-width: 170px; }
  .stage.tall .player { width: min(320px, calc((100svh - 150px) * 9 / 16)); }
  .close-grid { grid-template-columns: minmax(0, 1fr); }
  .range { width: 200px; }
}

/* a narrow player keeps its controls inside its own width */
.player { container-type: inline-size; }
@container (max-width: 300px) {
  .bar { gap: 0; padding: 0; }
  .bar button { min-width: 34px; }
  .bar time { font-size: 11px; padding: 0 4px; }
  .b-rate { display: none !important; }
}

/* ── second review batch ── */
/* film: watch and read side by side on wide screens; the player stays in view while the narration scrolls */
@media (min-width: 1100px) {
  .stage.wide { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
  .stage.wide .player { position: sticky; top: 24px; max-width: none; margin: 0; }
  .stage.wide .after { max-width: none; margin: 0; }
}
/* on small screens the film player is short enough to stay pinned above the narration */
@media (max-width: 1099px) {
  .stage.wide .player { position: sticky; top: 0; z-index: 5; background: var(--felt); box-shadow: 0 14px 24px -14px rgba(0,0,0,.6); }
  .stage.wide .player::before, .stage.wide .player::after { content: none; }
}
/* the play slip sits clear of the poster lettering: below the tag on tall posters, in the open top band on the film */
.frame.tall .big-play { padding-bottom: 3.5%; }
.frame.wide .big-play { place-items: start center; padding: 4.5% 0 0; background: linear-gradient(rgba(5,13,9,.45), rgba(5,13,9,0) 45%); }
/* all episodes: one column, nothing wraps */
.all ol { grid-template-columns: minmax(0, 1fr); max-width: 560px; gap: 0; }
.all a { align-items: center; padding: 10px 0; border-bottom: 1px solid var(--brd); }
.all li:last-child a { border-bottom: 0; }
.all a small { padding-top: 0; }
/* the range beside the closing call is captioned where it sits */
.range-fig { margin: 0; }
.range-fig figcaption { margin-top: 18px; font-size: 12px; color: var(--on-felt-dim); text-align: center; }
@media (max-width: 860px) { .range-fig { display: none; } }
