/* ==========================================================================
   BLOG & TUTORIALS (learn.html, js/learn.js) — a gallery of her YouTube
   videos (the latest large, glowing in its own colours; the rest as cards
   whose chapters peek up on hover), and her articles (soon) as a database.
   (Built on notion.css.)
   ========================================================================== */
.ln { position: relative; z-index: 1; padding: clamp(96px, 10vw, 124px) 0 40px; }

/* --- the header ----------------------------------------------------------------------------- */
.ln-head { position: relative; }
.ln-cover { position: relative; height: clamp(120px, 15vw, 180px); overflow: hidden; border-radius: 20px; background:
  radial-gradient(circle at 12% 140%, var(--gloss) 0 34%, transparent 35%), radial-gradient(circle at 88% -40%, var(--gloss) 0 40%, transparent 41%),
  repeating-linear-gradient(90deg, rgba(93,23,21,.06) 0 18px, transparent 18px 36px), var(--t-red-bg); }
/* a film strip runs along the cover */
.ln-cover::before, .ln-cover::after { content: ""; position: absolute; left: 0; right: 0; height: 14px; background: repeating-linear-gradient(90deg, rgba(25,25,24,.12) 0 10px, transparent 10px 22px); animation: strip 12s linear infinite; }
.ln-cover::before { top: 10px; } .ln-cover::after { bottom: 10px; animation-direction: reverse; }
@keyframes strip { to { background-position: 220px 0; } }
.lc-play { position: absolute; right: 8%; top: 50%; width: 74px; height: 74px; margin-top: -37px; border-radius: 50%; background: rgba(255,255,255,.7); box-shadow: 0 10px 24px -10px rgba(93,23,21,.4); }
.lc-play::after { content: ""; position: absolute; left: 30px; top: 23px; border-left: 22px solid #D44C47; border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.ln-icon { position: relative; display: block; width: 80px; height: 80px; margin: -40px 0 0 clamp(16px, 3vw, 32px); padding: 8px; border-radius: 18px; background: var(--sheet); box-shadow: 0 0 0 1px var(--line), var(--sh-block); }
.ln-icon svg { width: 100%; height: 100%; }
.ln-crumb { display: flex; gap: 6px; margin-top: 16px; font-size: 13px; color: var(--ink-4); }
.ln-crumb a { color: var(--ink-3); } .ln-crumb span { color: var(--line-2); }
.ln-head h1 { margin-top: 8px; font: 500 clamp(2.6rem, 6vw, 4.6rem)/1 var(--f-display); letter-spacing: -.035em; color: var(--ink); }
.ln-head h1 em { font-weight: 400; }
.ln-lede { margin-top: 14px; max-width: 62ch; font-size: clamp(16px, 1.35vw, 18.5px); color: var(--ink-3); }
.ln-props { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.ln-props > div { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; }
.ln-props dt { color: var(--ink-4); } .ln-props dd { display: flex; align-items: center; gap: 6px; color: var(--ink-2); }
.ln-props b { color: var(--ink); } .ln-props a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* --- the views ------------------------------------------------------------------------------- */
.ln-views { margin-top: 26px; }
.ln-views .n { font: 500 11.5px/1 var(--f-mono); color: var(--ink-4); }
.ln-pane { padding-top: 20px; }
.ln-pane[hidden] { display: none; }

/* --- the gallery: her videos, to look at; each opens on YouTube --------------------------------- */
.yt-wall { display: grid; gap: 18px; }
.yv-shot { position: relative; display: block; perspective: 1000px; transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--e-out); }
.yv-frame { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 16px; background: #111; box-shadow: var(--sh-lift); }
.yv-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--e-out), filter .4s; }
.yv-shot:hover .yv-frame img { transform: scale(1.05); filter: brightness(.82) saturate(1.1); }
/* YouTube's own play button, which glows red when pointed at */
.yv-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%) scale(.92); transition: transform .45s var(--e-spring), filter .3s; filter: drop-shadow(0 8px 18px rgba(0,0,0,.45)); }
.yv-play svg { width: 100%; height: 100%; }
.yv-play .pb { fill: rgba(33,33,33,.82); transition: fill .25s; } .yv-play .pt { fill: #fff; }
.yv-shot:hover .yv-play { transform: translate(-50%, -50%) scale(1.12); }
.yv-shot:hover .yv-play .pb { fill: #FF0033; }
.yv-new { position: absolute; left: 14px; top: 14px; padding: 5px 9px; border-radius: 6px; font: 700 12px/1 var(--f-ui); letter-spacing: .03em; text-transform: uppercase; color: #fff; background: #E03E3E; box-shadow: 0 6px 16px -4px rgba(224,62,62,.7); animation: yv-new 2.4s ease-in-out infinite; }
@keyframes yv-new { 50% { box-shadow: 0 6px 22px -2px rgba(224,62,62,.95); } }
.yv-len { position: absolute; right: 10px; bottom: 10px; padding: 3px 6px; border-radius: 5px; font: 600 12px/1.2 var(--f-ui); color: #fff; background: rgba(0,0,0,.78); }
/* the latest: large, with its own colours glowing round it, like YouTube's ambient mode */
.yv-hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; padding: clamp(14px, 2vw, 22px); border-radius: 22px; background: var(--sheet); box-shadow: var(--sh-block); }
.yv-amb { position: absolute; inset: 4%; z-index: -1; pointer-events: none; }
.yv-amb img { width: 100%; height: 100%; object-fit: cover; filter: blur(36px) saturate(1.6); opacity: .55; transform: scale(1.08); animation: yv-amb 6s ease-in-out infinite; }
@keyframes yv-amb { 50% { opacity: .75; transform: scale(1.14); } }
:root[data-theme="dark"] .yv-amb img { opacity: .7; }
.yv-hero .yv-shot { isolation: isolate; z-index: 0; }
.yv-k { font: 500 11.5px/1 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: #C4362F; }
:root[data-theme="dark"] .yv-k { color: #F08A84; }
.yv-t { margin-top: 10px; font: 500 clamp(1.5rem, 2.4vw, 2.1rem)/1.12 var(--f-display); letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.yv-sub { margin-top: 6px; font-size: 14.5px; color: var(--ink-3); }
.yv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.yv-meta i { font-style: normal; color: var(--ink-4); }
.yv-chk { margin-top: 18px; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.yv-chk small { margin-left: 6px; font-weight: 500; color: var(--ink-4); }
.yv-ch { display: grid; gap: 2px; margin-top: 6px; }
.yv-ch a { display: flex; align-items: baseline; gap: 10px; padding: 5px 8px; border-radius: 7px; font-size: 14px; color: var(--ink-2); transition: background-color .2s, transform .3s var(--e-spring); }
.yv-ch a span { min-width: 34px; font: 500 12px/1 var(--f-mono); color: #C4362F; }
:root[data-theme="dark"] .yv-ch a span { color: #F08A84; }
.yv-ch a:hover { background: var(--hover); transform: translateX(4px); color: var(--ink); }
.yv-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; height: 44px; padding: 0 18px 0 14px; border-radius: 12px; font-weight: 650; color: #fff; background: #E0302A; box-shadow: 0 10px 22px -10px rgba(224,48,42,.8); transition: transform .35s var(--e-spring), background-color .2s; }
.yv-go svg { width: 18px; height: 18px; fill: #fff; }
.yv-go:hover { transform: translateY(-2px); background: #FF0033; }
/* the rest: cards, newest first; their chapters peek up over the picture */
.yv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.yv-card { display: grid; align-content: start; gap: 12px; }
.yv-peek { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 3px; padding: 26px 14px 12px; color: #fff; font-size: 12.5px; line-height: 1.35; background: linear-gradient(transparent, rgba(0,0,0,.86) 38%); transform: translateY(102%); transition: transform .45s var(--e-out); }
.yv-peek b { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; opacity: .75; }
.yv-peek span { display: flex; gap: 8px; } .yv-peek i { font-style: normal; font-family: var(--f-mono); opacity: .8; }
.yv-shot:hover .yv-peek, .yv-shot:focus-visible .yv-peek { transform: none; }
.yv-shot:hover .yv-len { opacity: 0; }
.yv-t2 { font: 600 16px/1.3 var(--f-ui); color: var(--ink); } .yv-t2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.yv-body .yv-meta { margin-top: 6px; }
.yv-none { padding: 30px; text-align: center; color: var(--ink-3); }
@media (max-width: 860px) { .yv-hero { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .yv-amb img, .yv-new { animation: none; } }

/* --- articles: until there are some, Notion's empty database ---------------------------------- */
.art-empty { padding: 16px; border-radius: 16px; background: var(--sheet); box-shadow: var(--sh-block); }
.ae-head, .ae-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; padding: 9px 10px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-4); }
.ae-row i { display: block; height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--paper-2), var(--paper), var(--paper-2)); background-size: 200% 100%; animation: shimmer 1.6s ease-in-out infinite; animation-delay: calc(var(--i) * .15s); }
.ae-row span:first-child i { width: 70%; } .ae-row span:nth-child(2) i { width: 55%; } .ae-row span:last-child i { width: 35%; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.ae-t { display: grid; gap: 4px; max-width: 54ch; margin: 22px auto 6px; text-align: center; color: var(--ink-3); }
.ae-t b { font: 500 1.35rem/1.2 var(--f-display); color: var(--ink); }
.ae-go { display: block; margin: 10px auto 6px; font-size: 14px; font-weight: 650; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.arts { display: grid; gap: 12px; }
.art { display: grid; gap: 4px; padding: 16px; border-radius: 14px; background: var(--sheet); box-shadow: var(--sh-block); }
.art { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; transition: transform .35s var(--e-spring), box-shadow .3s; }
.art:hover { transform: translateY(-2px); box-shadow: var(--sh-lift); }
.art-t { display: grid; gap: 4px; }
.art-img { width: 132px; aspect-ratio: 4 / 3; border-radius: 10px; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.art-ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--paper-2); font-size: 28px; }
.art b { font: 500 1.3rem/1.2 var(--f-display); color: var(--ink); } .art-t span { color: var(--ink-3); } .art small { color: var(--ink-4); }
@media (max-width: 560px) { .art-img { width: 84px; } }

/* --- the last word --------------------------------------------------------------------------- */
.ln-cta { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin-top: clamp(48px, 7vw, 80px); padding: clamp(18px, 3vw, 28px); border-radius: 18px; background: var(--t-yellow-bg); box-shadow: var(--sh-block); }
.lcta-ic { font-size: 28px; }
.ln-cta div { display: grid; gap: 4px; }
.ln-cta b { font: 500 clamp(1.3rem, 2.4vw, 1.7rem)/1.15 var(--f-display); color: var(--ink); }
.ln-cta span { color: var(--t-yellow); }

@media (max-width: 760px) {
  .ln { padding-top: 28px; }
  .ln-cta { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .ln-cover::before, .ln-cover::after, .ae-row i { animation: none; } }
