/* /videos, its topic pages and /guides.html. Versioned in src/asset-version.js. */
@font-face { font-family: 'Archivo Black'; font-display: swap; src: url('/fonts/archivo-black.woff2') format('woff2'); }
@font-face { font-family: 'DM Mono'; font-display: swap; src: url('/fonts/dm-mono.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-weight: 400 700; font-display: swap; src: url('/fonts/instrument-sans.woff2') format('woff2'); }
* { box-sizing: border-box; }
:focus-visible { outline: 2px solid #ff6846; outline-offset: 4px; }
.skip { position: absolute; top: 0; left: 16px; transform: translateY(-150%); background: #111; padding: 12px; }
.skip:focus { transform: none; }
body { margin: 0; background: #0a0a0a; color: #f5f5f0; font: 16px/1.6 'Instrument Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; }
.brand { display: flex; align-items: center; gap: 10px; font: 400 15px 'Archivo Black', sans-serif; text-transform: uppercase; }
.brand span { width: 12px; height: 12px; background: #ff6846; }
.mono { color: #8c8c86; font: 400 13px 'DM Mono', monospace; }
.intro { padding: 56px 0 24px; border-bottom: 1px solid #232323; }
.path { color: #ff6846; }
h1 { margin-top: 12px; font: 400 clamp(36px, 7vw, 72px)/.95 'Archivo Black', sans-serif; text-transform: uppercase; }
.intro p:last-child { max-width: 62ch; margin-top: 20px; color: #8c8c86; }
h2 { margin: 56px 0 24px; font: 400 28px 'Archivo Black', sans-serif; }
ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 40px 24px; margin: 0; padding: 0; list-style: none; }
li a { display: grid; gap: 10px; }
li img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid #232323; background: #111111; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: #8c8c86; font: 400 12px 'DM Mono', monospace; }
.thumb { position: relative; display: block; }
.duration { position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; color: #fff; background: rgb(0 0 0 / .8); font: 500 12px/1.4 'DM Mono', monospace; }
h3 { font-size: 17px; font-weight: 600; line-height: 1.3; text-wrap: pretty; }
li a:hover h3, li a:focus-visible h3 { color: #ff6846; }
/* Hovered or focused cards outline the thumbnail in orange, on /videos and the guides hub. */
li img { transition: border-color .2s ease, box-shadow .2s ease; }
li a:hover img, li a:focus-visible img, .guide:hover img, .guide:focus-within img { border-color: #ff6846; box-shadow: 0 0 0 1px #ff6846, 0 8px 28px rgb(255 104 70 / .18); }
/* Three lines keep cards in a row the same height; the full summary is on the watch page. */
li .summary { display: -webkit-box; overflow: hidden; color: #8c8c86; font-size: 14px; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; }
.start { margin-top: 24px; }
.start a { color: #ff6846; text-decoration: underline; text-underline-offset: 3px; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.topics a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid #232323; border-radius: 999px; white-space: nowrap; }
.topics a:hover { border-color: #8c8c86; color: #f5f5f0; }
.topics [aria-current] { border-color: #ff6846; color: #f5f5f0; }
/* Phones: one swipeable row instead of four wrapped rows; it bleeds to the screen edges. */
@media (max-width: 640px) { .topics { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; } }
.pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 64px; }
.pager a, .pager span { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; padding: 0 12px; border: 1px solid #232323; }
.pager a:hover { border-color: #8c8c86; color: #f5f5f0; }
.pager [aria-current] { border-color: #ff6846; color: #f5f5f0; }
.pager .gap { min-width: 0; padding: 0 4px; border: 0; }
@media (max-width: 640px) { .pager a[rel] { display: none; } }
footer.shell { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 80px; padding: 32px 0; border-top: 1px solid #232323; }
header a, footer a { display: inline-flex; align-items: center; min-height: 44px; }
footer button { min-height: 44px; color: inherit; text-decoration: none; }
footer button:hover { color: #f5f5f0; }
footer a:hover, header nav a:hover, header nav [aria-current] { color: #f5f5f0; }
header { flex-wrap: wrap; }
header nav { display: flex; gap: 24px; margin-left: auto; }
.join { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: #ff6846; color: #1a0a04; font: 500 12px 'DM Mono', monospace; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.join:hover { background: #ff7f62; }
/* Join card: a lighter version of the one that ends each guide (public/reading.css). */
.cta { margin-top: 72px; padding: 36px 36px 32px; border: 1px solid rgb(255 104 70 / .35); border-radius: 20px; background: radial-gradient(560px 280px at 100% 0, rgb(255 104 70 / .18), transparent 70%), #111; }
.cta-eyebrow { color: #ff6846; font: 500 12px 'DM Mono', monospace; letter-spacing: .14em; text-transform: uppercase; }
.cta h2 { margin: 12px 0 0; font: 400 clamp(26px, 4vw, 38px)/1.05 'Archivo Black', sans-serif; text-transform: uppercase; }
.cta h2 span { color: #ff6846; }
.cta-list { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 20px 0 28px; }
.cta-list li { position: relative; padding-left: 28px; color: #f5f5f0; }
.cta-list li::before { content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #ff6846 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a0a04' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.cta-action { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.cta-action span { color: #a5a59e; font-size: 14px; }
.cta .join { min-height: 52px; padding: 0 28px; font-size: 13px; }
@media (max-width: 640px) { header nav { order: 3; width: 100%; margin-left: 0; } .cta { padding: 28px 20px 24px; } .cta-list { flex-direction: column; } }
/* Guides hub: the same cards as /videos, but the title and the paired video are separate links. */
.intro .meta, .guide .meta { display: block; }
.intro .meta { margin-top: 16px; }
.intro .meta a { color: #f5f5f0; }
li.guide { display: grid; gap: 12px; align-content: start; }
.guide > div { display: grid; gap: 8px; }
.guide a { display: inline; }
.guide img { aspect-ratio: 1200 / 630; }
.guide:hover h3 a, .guide h3 a:focus-visible { color: #ff6846; }
/* The title link covers the whole card, so the image opens the guide too; the video link sits above it. */
li.guide { position: relative; }
.guide h3 a::after { content: ''; position: absolute; inset: 0; }
.guide .meta a { position: relative; z-index: 1; }
.guide p:not(.meta) { display: -webkit-box; overflow: hidden; color: #8c8c86; font-size: 14px; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; }
.guide .meta a { color: #b3b3ab; text-decoration: underline; text-underline-offset: 3px; }
.guide .meta a:hover { color: #ff6846; }
