/* Napkin Proofs — components.css : hero, nav, buttons, channels, episodes */

/* -- top bar ---------------------------------------------------------- */
.topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.3rem var(--gutter); }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand .mark { width: 30px; height: 30px; }
.brand b { font-family: var(--serif); font-weight: 500; font-size: 1.05rem;
  letter-spacing: .01em; }
.brand b i { font-style: italic; color: var(--amber); }
.topbar .yt { font-size: .9rem; font-weight: 600; color: var(--ink);
  border: 1px solid var(--line); padding: .4rem .85rem; border-radius: 999px;
  transition: border-color .2s var(--ease), background .2s var(--ease); }
.topbar .yt:hover { border-color: var(--amber); background: var(--amber-soft); }

/* -- hero ------------------------------------------------------------- */
.hero { min-height: 100svh; display: grid; place-items: center;
  text-align: center; padding-block: 6rem 4rem; overflow: hidden; }
.hero .wrap { display: flex; flex-direction: column; align-items: center; }

.hero .mark-lg { width: clamp(84px, 16vw, 132px); height: auto;
  margin-bottom: 1.8rem; overflow: visible; }

.hero .tagline { font-family: var(--serif); font-style: italic;
  font-size: clamp(1.1rem, 2.6vw, 1.55rem); color: var(--ink);
  margin-top: 1.4rem; max-width: 32ch; text-wrap: balance; }
.hero .sub { color: var(--muted); margin-top: 1.5rem; max-width: 52ch;
  font-size: 1.08rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center;
  margin-top: 2.4rem; }

/* coffee ring — a stain that's been on the napkin since frame one */
.ring { position: absolute; pointer-events: none; opacity: .5; z-index: 0;
  width: clamp(220px, 34vw, 440px); }
.ring.a { top: 8%; right: -6%; }
.ring.b { bottom: 4%; left: -8%; width: clamp(160px, 22vw, 300px); opacity: .32; }
.hero > .wrap { position: relative; z-index: 1; }

/* faint construction geometry behind the hero */
.scaffold { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: .5; }

/* -- buttons ---------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  padding: .8rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease),
    background .25s var(--ease), border-color .25s var(--ease); }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--amber); color: #14100c; }
.btn-primary:hover { background: var(--amber-bright); color: #14100c;
  transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--amber); color: var(--ink);
  background: var(--amber-soft); transform: translateY(-2px); }

/* -- channel links ---------------------------------------------------- */
.channels { display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 2.5rem; }
.channel { display: flex; align-items: center; gap: 1rem; padding: 1.15rem 1.3rem;
  border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
  color: var(--ink); transition: transform .28s var(--ease),
    border-color .28s var(--ease), background .28s var(--ease); position: relative; }
.channel:hover { transform: translateY(-3px); border-color: var(--amber);
  background: var(--panel-2); color: var(--ink); }
.channel .ic { width: 30px; height: 30px; flex: none; color: var(--amber); }
.channel .txt { display: flex; flex-direction: column; line-height: 1.25; }
.channel .txt b { font-size: 1.02rem; }
.channel .txt span { font-size: .85rem; color: var(--muted); }
.channel.soon { pointer-events: none; opacity: .62; }
.channel .badge { position: absolute; top: .7rem; right: .8rem; font-size: .66rem;
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--sky); border: 1px solid rgba(127,169,201,.4); border-radius: 999px;
  padding: .12rem .5rem; }

/* -- "what it is" principles ----------------------------------------- */
.principles { display: grid; gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 3rem; }
.principle { }
.principle .glyph { width: 46px; height: 46px; color: var(--amber);
  margin-bottom: 1rem; }
.principle h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.principle p { color: var(--muted); font-size: 1rem; }
.principle b { color: var(--ink); font-weight: 600; }

/* -- episodes --------------------------------------------------------- */
.episodes { display: grid; gap: 1.1rem; margin-top: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.episode { border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  transition: transform .3s var(--ease), border-color .3s var(--ease); }
.episode:hover { transform: translateY(-4px); border-color: var(--amber); }
.episode .diagram { aspect-ratio: 16 / 10; display: grid; place-items: center;
  background: radial-gradient(140% 100% at 50% 0%, #1a2432, var(--bg-deep));
  border-bottom: 1px solid var(--line); }
.episode .diagram svg { width: 62%; height: auto; overflow: visible; }
.episode .meta { padding: 1.1rem 1.25rem 1.35rem; }
.episode .meta h3 { font-size: 1.28rem; margin-bottom: .3rem; }
.episode .meta p { font-size: .95rem; color: var(--muted); }
.episode .k { font-family: var(--serif); font-style: italic; color: var(--amber);
  font-size: .82rem; }

/* -- follow band ------------------------------------------------------ */
.follow { text-align: center; }
.follow .wrap { display: flex; flex-direction: column; align-items: center; }
.follow .channels { width: 100%; max-width: 560px; text-align: left; }

/* -- footer ----------------------------------------------------------- */
footer { border-top: 1px solid var(--line); padding-block: 3rem 4rem;
  color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem;
  align-items: center; justify-content: space-between; }
footer .brand b { color: var(--ink); }
footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: .92rem; }
footer nav a { color: var(--muted); }
footer nav a:hover { color: var(--amber); }
footer .copy { width: 100%; font-size: .82rem; color: var(--dim);
  border-top: 1px solid var(--line); padding-top: 1.3rem; margin-top: .3rem; }

/* -- motion: draw-on of any inked stroke ------------------------------ */
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.mark-lg [data-draw] { stroke-dasharray: var(--len, 200); stroke-dashoffset: var(--len, 200);
  animation: draw 1.1s var(--ease) forwards; }
.mark-lg [data-draw].d2 { animation-delay: .35s; }
.mark-lg [data-draw].d3 { animation-delay: .6s; }
.mark-lg .dot { opacity: 0; animation: fadein .5s var(--ease) forwards; }
.mark-lg .dot.d3 { animation-delay: .95s; }

.reveal { opacity: 0; animation: fadein .9s var(--ease) forwards;
  animation-timeline: view(); animation-range: entry 0% cover 22%; }

@media (prefers-reduced-motion: reduce) {
  .mark-lg [data-draw] { stroke-dashoffset: 0; animation: none; }
  .mark-lg .dot { opacity: 1; animation: none; }
  .reveal { opacity: 1; animation: none; }
}

/* -- responsive ------------------------------------------------------- */
@media (max-width: 560px) {
  .topbar .yt { display: none; }
  .cta-row { width: 100%; }
  .btn { flex: 1 1 auto; justify-content: center; }
  footer .wrap { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
}
