/* Pep Talk site. Notebook A (PROJECTS/PEP-TALK/BRAND.md): paper, rule, margin, ink, ink soft, marker, off.
   No Keak colours, no Fraunces, no gradients, glows or drop shadows. Paper is flat.
   Motion: things are uncovered by a moving edge (clip-path wipes, masked line rises, marker swipes, drawn
   ink lines, a level meter that fills). Never an opacity fade. All of it off with prefers-reduced-motion. */

@font-face { font-family: "Newsreader"; src: url("/assets/fonts/Newsreader-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("/assets/fonts/Caveat-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #F7F5EF; --rule: #D6DFEC; --margin: #E9B8B0; --ink: #22305A; --soft: #5B6688; --marker: #FBE27A; --off: #D3D7DF;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --hand: "Caveat", "Bradley Hand", cursive;
  --ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --rp: 32px;                      /* rule pitch */
  --ease: cubic-bezier(.2, .7, .1, 1);
  --swipe: cubic-bezier(.65, 0, .35, 1);
  --ml: max(22px, calc(50vw - 600px + 26px));   /* the margin line's x */
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body { position: relative; min-height: 100vh; margin: 0; background: var(--paper); color: var(--ink); font: 500 17px/1.65 var(--ui); overflow-x: hidden; }
body::before { /* the notebook's one margin line, the whole height of the page */
  content: ""; position: absolute; top: 0; bottom: 0; left: var(--ml); width: 2px; background: var(--margin); pointer-events: none; z-index: 0;
}
main, header, footer { position: relative; z-index: 1; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; margin: 0; letter-spacing: -0.015em; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 44px; padding-right: 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ruled paper (hero band, cards) */
.ruled { background-image: repeating-linear-gradient(180deg, transparent 0 calc(var(--rp) - 1px), var(--rule) calc(var(--rp) - 1px) var(--rp)); }

/* ---------- header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 10px; }
.logo { display: inline-flex; align-items: flex-end; gap: 10px; text-decoration: none; color: var(--ink); }
.meter { display: inline-flex; align-items: flex-end; gap: 3px; height: 26px; }
.meter i { display: block; width: 5px; border-radius: 1.5px; background: var(--ink); transform-origin: 50% 100%; transition: transform .5s var(--ease); }
.meter i:nth-child(1) { height: 30%; } .meter i:nth-child(2) { height: 48%; transition-delay: .06s; }
.meter i:nth-child(3) { height: 66%; transition-delay: .12s; } .meter i:nth-child(4) { height: 84%; transition-delay: .18s; }
.meter i:nth-child(5) { height: 100%; background: var(--marker); transition-delay: .32s; }
html.js .meter:not(.in) i { transform: scaleY(0); }
.word { font: 700 25px/1 var(--serif); letter-spacing: -0.02em; }
.word b { font-weight: 700; background: var(--marker); padding: 0 4px; border-radius: 2px; margin-left: 2px; }
.nav { display: flex; gap: 18px; align-items: center; }
.nav a { font: 600 15px/1 var(--ui); text-decoration: none; padding: 10px 0; background-image: linear-gradient(var(--ink), var(--ink)); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .35s var(--swipe); }
.nav a:hover, .nav a[aria-current="page"] { background-size: 100% 2px; }

/* ---------- type helpers ---------- */
.note { font: 700 23px/1.15 var(--hand); color: var(--soft); margin: 0 0 6px; letter-spacing: 0; }
.lede { font-size: clamp(18px, 4.6vw, 21px); line-height: 1.6; color: var(--ink); max-width: 34em; }
.soft { color: var(--soft); }
.mk { position: relative; isolation: isolate; white-space: nowrap; }
.mk::before { content: ""; position: absolute; left: -0.08em; right: -0.1em; top: 0.16em; bottom: 0.02em; background: var(--marker); z-index: -1;
  border-radius: 3px 7px 4px 8px; transform-origin: 0 50%; transition: transform .7s var(--swipe) .25s; }
html.js .mk:not(.in)::before { transform: scaleX(0); }
.tlink { font: 600 16px/1.4 var(--ui); color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--margin); }
.tlink:hover { text-decoration-color: var(--ink); }
.arw { font-family: var(--ui); font-weight: 600; }
.slash { font-family: var(--ui); font-weight: 600; color: var(--soft); letter-spacing: -0.04em; }

/* masked line rise (lines of type) */
.ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.ln > span { display: block; transition: transform .9s var(--ease); }
.ln:nth-child(2) > span { transition-delay: .08s; } .ln:nth-child(3) > span { transition-delay: .16s; }
html.js .ln:not(.in) > span { transform: translateY(108%); }
/* edge wipe (cards, panels, lines) */
.rv { transition: clip-path .85s var(--ease); clip-path: inset(-20px -20px -20px -20px); }
html.js .rv:not(.in) { clip-path: inset(-20px 100% -20px -20px); }
/* a drawn ink underline */
.uline { width: min(240px, 60%); height: 14px; margin: 8px 0 22px -4px; overflow: visible; }
.uline path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 0; transition: stroke-dashoffset 1s var(--ease) .15s; }
html.js .uline:not(.in) path { stroke-dashoffset: 260; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--paper); font: 600 17px/1 var(--ui); text-decoration: none; cursor: pointer; transition: background-color .2s; }
.btn:hover { background: #2D3E72; }
.btn:disabled { background: var(--soft); cursor: default; }
.btn svg { width: 18px; height: 18px; }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: 26px; padding-bottom: 44px; }
.hero h1 { font-size: clamp(46px, 12.6vw, 96px); line-height: 1.0; letter-spacing: -0.03em; margin: 6px 0 22px; }
.hero .lede { margin-bottom: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
@media (max-width: 420px) { .hero-cta .btn { font-size: 16px; padding: 0 20px; } }
.grid-hero { display: grid; gap: 34px; }
.hero-meter { display: flex; align-items: flex-end; gap: 6px; height: 46px; margin: 4px 0 18px; }
.hero-meter i { width: 12px; border-radius: 3px; background: var(--ink); transform-origin: 50% 100%; transition: transform .7s var(--ease); }
.hero-meter i:nth-child(1) { height: 30%; } .hero-meter i:nth-child(2) { height: 48%; transition-delay: .1s; }
.hero-meter i:nth-child(3) { height: 66%; transition-delay: .2s; } .hero-meter i:nth-child(4) { height: 84%; transition-delay: .3s; }
.hero-meter i:nth-child(5) { height: 100%; background: var(--off); position: relative; overflow: hidden; transition-delay: .4s; }
.hero-meter i:nth-child(5)::after { content: ""; position: absolute; inset: 0; background: var(--marker); transform-origin: 50% 100%; transition: transform 1.1s var(--ease) 1.1s; }
html.js .hero-meter:not(.in) i { transform: scaleY(0); }
html.js .hero-meter:not(.in) i:nth-child(5)::after { transform: scaleY(0); }
.hero-meter + .note { margin-top: -6px; }

/* ---------- the voice demo ---------- */
.demo { margin: 0; position: relative; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); overflow: hidden; }
.demo canvas { width: 100%; height: auto; touch-action: manipulation; }
.demo-bar { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--rule); background: var(--paper); }
.play { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--ink); color: var(--paper); display: grid; place-items: center; cursor: pointer; }
.play:hover { background: #2D3E72; }
.play svg { width: 20px; height: 20px; }
.play .i-pause, .demo.playing .play .i-play { display: none; }
.demo.playing .play .i-pause { display: block; }
.demo-label { font: 600 16px/1.3 var(--ui); }
.demo-label small { display: block; font: 500 14px/1.4 var(--ui); color: var(--soft); }
.demo-hit { position: absolute; inset: 0 0 auto 0; background: transparent; border: 0; padding: 0; cursor: pointer; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 16px 0 0; padding: 0; list-style: none; }
.facts li { font: 500 15px/1.4 var(--ui); color: var(--soft); }
.facts b { font: 700 22px/1 var(--serif); color: var(--ink); margin-right: 4px; }
.said { font: 700 18px/32px var(--serif); margin: 14px 0 0; }
.said .slash { margin: 0 .1em; }
.nw { white-space: nowrap; }
.vid-cols { display: grid; gap: 22px; }
.vid-cols .follow { margin-top: 0; }
.demo-noscript { padding: 18px; font: 500 15px/1.5 var(--ui); color: var(--soft); }

/* ---------- sections ---------- */
section { padding: 64px 0; }
.sec-head { max-width: 36em; }
.sec-head h2, h2.big { font-size: clamp(34px, 8.4vw, 56px); line-height: 1.04; letter-spacing: -0.025em; }
.cols { display: grid; gap: 30px; }
.card { border: 1px solid var(--rule); border-radius: 12px; padding: 26px 22px; background: var(--paper); }
.card.ruled { padding-top: 22px; }

/* who I am: numbers card */
.numbers { list-style: none; margin: 0; padding: 0; }
.numbers li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); font: 500 16px/1.4 var(--ui); color: var(--soft); }
.numbers li:last-child { border-bottom: 0; }
.numbers b { font: 700 30px/1 var(--serif); color: var(--ink); white-space: nowrap; }
.numbers + .note { margin-top: 12px; }

/* formats: the notebook's contents page */
.formats { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: f; }
.formats li { counter-increment: f; display: grid; grid-template-columns: 44px 1fr; gap: 2px 8px; padding: 16px 0; border-top: 1px solid var(--rule); }
.formats li::before { content: counter(f); grid-row: span 2; font: 700 30px/1 var(--hand); color: var(--soft); padding-top: 2px; }
.formats h3 { font-size: 24px; line-height: 1.15; }
.formats p { margin: 2px 0 0; color: var(--soft); font-size: 16px; line-height: 1.55; }
.longform { margin-top: 26px; }

/* videos */
.vids { display: grid; gap: 18px; }
.vid { display: grid; gap: 12px; text-decoration: none; }
.vid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 1px solid var(--rule); background: var(--off); }
.vid h3 { font-size: 23px; line-height: 1.2; }
.vid p { margin: 0; font-size: 15px; color: var(--soft); }
.empty-page { position: relative; border: 1.5px dashed var(--off); border-radius: 12px; padding: 26px 22px 24px; }
.empty-page h3 { font-size: 26px; line-height: 1.2; margin: 0 0 8px; }
.empty-page p { color: var(--soft); margin: 0; }

/* follow */
.follow { list-style: none; margin: 18px 0 0; padding: 0; }
.follow a { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.follow li:first-child a { border-top: 1px solid var(--rule); }
.follow svg { width: 22px; height: 22px; fill: var(--ink); }
.follow .name { font: 600 17px/1.2 var(--ui); }
.follow .handle { font: 500 15px/1.2 var(--ui); color: var(--soft); }
.follow a:hover .name { text-decoration: underline; text-decoration-color: var(--margin); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- signup ---------- */
.join .card { max-width: 640px; }
.join .join-card.is-done .join-form { grid-column: 1 / -1; }
.join h2 { margin-bottom: 10px; }
.field { display: grid; gap: 8px; margin: 18px 0 14px; }
.field label { font: 600 15px/1.2 var(--ui); }
.field input { width: 100%; min-height: 54px; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: 10px; background: #FFFDF8; color: var(--ink); font: 500 17px/1 var(--ui); }
.field input:focus { outline: 3px solid var(--marker); outline-offset: 0; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; margin: 4px 0 16px; font: 500 15px/1.5 var(--ui); color: var(--ink); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); }
.hp { position: absolute !important; left: -5000px !important; width: 1px; height: 1px; overflow: hidden; }
.ts { min-height: 0; margin: 0 0 14px; }
.status { min-height: 1.5em; margin: 12px 0 0; font: 600 15px/1.5 var(--ui); }
.status.err { color: #8C2F39; }
.status.ok { color: var(--ink); }
.fine { margin: 14px 0 0; font: 500 14px/1.55 var(--ui); color: var(--soft); }
.fine a { color: var(--soft); text-underline-offset: 3px; }
.done-mark { display: none; }
.card.is-done .done-mark { display: block; }
.what-you-get { margin: 10px 0 0; padding: 0; list-style: none; }
.what-you-get li { position: relative; padding: 6px 0 6px 28px; font-size: 16px; }
.what-you-get li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 7px; height: 13px; border: solid var(--ink); border-width: 0 2.5px 2.5px 0; transform: rotate(40deg); border-radius: 1px; }

/* ---------- footer ---------- */
.foot { padding-top: 40px; padding-bottom: 56px; border-top: 1px solid var(--rule); margin-top: 24px; }
.foot .row { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { font: 600 15px/1.4 var(--ui); text-decoration: none; }
.foot a:hover { text-decoration: underline; text-decoration-color: var(--margin); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.foot small { display: block; margin-top: 14px; font: 500 13px/1.5 var(--ui); color: var(--soft); }

/* ---------- /free ---------- */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.jump a { display: inline-block; padding: 9px 14px; border: 1.5px solid var(--ink); border-radius: 999px; font: 600 14px/1 var(--ui); text-decoration: none; }
.jump a:hover { background: var(--marker); }
.legend { list-style: none; margin: 20px 0 0; padding: 0; }
.legend li { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--rule); }
.legend .m { font: 700 28px/1 var(--serif); text-align: center; color: var(--ink); }
.legend .m.caps { font-size: 20px; letter-spacing: .02em; }
.legend .m.ui { font: 600 26px/1 var(--ui); }
.legend b { display: block; font: 600 17px/1.3 var(--ui); }
.legend span.d { color: var(--soft); font-size: 16px; }
.example { margin-top: 22px; }
.say { border-left: 3px solid var(--margin); padding: 4px 0 4px 16px; margin: 12px 0 18px; }
.say p { font: 700 21px/1.5 var(--serif); margin: 6px 0; }
.sheet-card .say p { font-size: 19px; }
.sheets { display: grid; gap: 18px; margin-top: 22px; }
.sheet-card { border: 1px solid var(--rule); border-radius: 12px; padding: 22px 20px; background: var(--paper); }
.sheet-card h3 { font-size: 26px; line-height: 1.15; margin: 0 0 6px; }
.sheet-card .for { font: 500 15px/1.5 var(--ui); color: var(--soft); margin: 0 0 12px; }
.sheet-card h4 { font: 600 13px/1.4 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); margin: 16px 0 8px; }
.sheet-card ol { margin: 0 0 6px; padding-left: 22px; }
.sheet-card li { margin: 0 0 6px; }
.empty { color: var(--soft); border: 1.5px dashed var(--off); border-radius: 12px; padding: 20px; margin: 18px 0 0; }
.unmumble { display: grid; gap: 14px; }
.print-btn { background: none; border: 0; padding: 0; cursor: pointer; }

/* ---------- prose pages (privacy, messages) ---------- */
.prose { padding-top: 30px; padding-bottom: 40px; }
.prose > * { max-width: 40em; }
.prose h1 { font-size: clamp(40px, 10vw, 64px); line-height: 1.04; letter-spacing: -0.025em; margin: 6px 0 22px; }
.prose h2 { font-size: 28px; line-height: 1.2; margin: 34px 0 10px; }
.prose ul { padding-left: 20px; }
.prose li { margin: 0 0 8px; }
.msg { min-height: 60vh; }
.msg form { margin-top: 20px; }

/* ---------- wider screens ---------- */
@media (min-width: 720px) {
  .wrap { padding-left: 72px; padding-right: 40px; }
  :root { --ml: max(44px, calc(50vw - 600px + 44px)); }
  section { padding: 92px 0; }
  .card { padding: 34px 34px; }
  .sheets { grid-template-columns: 1fr 1fr; }
  .vids { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .grid-hero { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); align-items: center; gap: 56px; }
  .hero { padding-top: 40px; padding-bottom: 76px; }
  .hero h1 { font-size: clamp(54px, 5.2vw, 78px); }
  .cols { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: start; }
  .formats { columns: 2; column-gap: 56px; }
  .formats li { break-inside: avoid; }
  .vid-cols { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .join .card { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 56px; align-items: start; padding: 44px 48px; }
  .join .join-form .field { margin-top: 6px; }
  .unmumble { grid-template-columns: 1fr auto; align-items: center; }
  .marks-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 0 64px; align-items: start; }
  .marks-grid .legend { margin-top: 8px; }
  .marks-grid .example { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html.js .rv:not(.in) { clip-path: none; }
  html.js .ln:not(.in) > span, html.js .meter:not(.in) i, html.js .hero-meter:not(.in) i, html.js .hero-meter:not(.in) i::after, html.js .mk:not(.in)::before { transform: none; }
  html.js .uline:not(.in) path { stroke-dashoffset: 0; }
}

@media print {
  body::before, .top, .foot, .join, .jump, .noprint, .unmumble-sec { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  section { padding: 12pt 0; }
  .sheet-card { break-inside: avoid; border-color: #999; }
  html.js .rv:not(.in) { clip-path: none; }
}
