/* Writeboard marketing pages: the shell register, no build system. */
:root {
  --paper: #f6f6f4; --card: #ffffff; --ink: #16181a; --ink-2: #4a4e52;
  --ink-3: #71767a; --edge: rgba(22,24,26,.1); --edge-strong: rgba(22,24,26,.2);
  --yellow: #ffd60a; --yellow-ink: #101010; --bad: #b23a34;
  --display: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.6 var(--body);
}
a { color: inherit; }
.wrap { max-width: 1020px; margin: 0 auto; padding: 0 22px; }
header.site {
  display: flex; align-items: center; gap: 10px; padding: 18px 0;
  border-bottom: 1px solid var(--edge);
}
.mark { width: 26px; height: 26px; image-rendering: pixelated; }
.brand { font: 700 17px var(--display); letter-spacing: -.01em; text-decoration: none; }
nav.site { display: flex; gap: 2px; margin-left: 20px; }
nav.site a {
  font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); text-decoration: none; padding: 10px 12px; position: relative;
}
nav.site a:hover, nav.site a[aria-current] { color: var(--ink); }
nav.site a[aria-current]::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px;
  height: 2px; background: var(--yellow);
}
.spacer { flex: 1; }
.cta {
  font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase;
  background: var(--yellow); color: var(--yellow-ink); text-decoration: none;
  border-radius: 10px; padding: 12px 18px; display: inline-block;
}
.cta:hover { filter: brightness(.96); }
.ghost {
  font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); text-decoration: none; padding: 12px 14px;
  border: 1px solid transparent; border-radius: 10px;
}
.ghost:hover { border-color: var(--edge-strong); color: var(--ink); }
.hero { padding: 84px 0 40px; max-width: 760px; }
h1 {
  font: 700 clamp(34px, 6vw, 56px)/1.08 var(--display);
  letter-spacing: -.02em; margin: 0 0 18px;
}
.hero p { font-size: 19px; color: var(--ink-2); margin: 0 0 30px; }
.hl { background: linear-gradient(transparent 62%, var(--yellow) 62%); }
h2 { font: 700 clamp(22px, 3vw, 30px)/1.2 var(--display); letter-spacing: -.02em; margin: 54px 0 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin: 24px 0; align-items: start; }
.card {
  background: var(--card); border: 1px solid var(--edge); border-radius: 14px;
  padding: 20px;
}
.card h3 { font: 700 17px var(--display); margin: 0 0 8px; letter-spacing: -.01em; }
.card p { margin: 0; font-size: 14px; color: var(--ink-2); }
.kicker {
  font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3);
}
table { border-collapse: collapse; width: 100%; margin: 22px 0; background: var(--card); border-radius: 14px; overflow: hidden; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--edge); font-size: 14px; }
th { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
td strong { font-family: var(--display); }
.yes { color: #1b7f4b; font-weight: 600; }
.no { color: var(--ink-3); }
footer.site {
  margin-top: 90px; padding: 26px 0 44px; border-top: 1px solid var(--edge);
  font-size: 13px; color: var(--ink-3); display: flex; gap: 18px; flex-wrap: wrap;
}
footer.site a { color: var(--ink-2); }
.docstep { display: flex; gap: 14px; margin: 14px 0; }
.docstep b {
  flex-shrink: 0; width: 30px; height: 30px; display: grid; place-items: center;
  background: var(--yellow); color: var(--yellow-ink); border-radius: 9px;
  font: 700 14px var(--display);
}

/* The walkthrough: the product, recorded on every release. */
.demo { margin: 6px 0 34px; }
.walkthrough { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--edge); background: var(--card); box-shadow: 0 18px 48px rgba(22,24,26,.12); }
.demo-note { margin: 10px 0 0; font: 500 12px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.faq { margin: 26px 0; }
.faq h3 { margin: 18px 0 4px; font: 600 16px var(--display); }
.faq p { margin: 0; color: var(--ink-2); }

/* Motion: things rise into view once, cards lift on hover, the CTA breathes. */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s cubic-bezier(.2,.7,.2,1), transform .55s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.card { transition: transform .22s cubic-bezier(.2,.7,.2,1), box-shadow .22s ease; }
.card:not([data-tilt]):hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(22,24,26,.10); }
.cta { transition: transform .18s cubic-bezier(.2,.7,.2,1), filter .18s ease; }
.cta:hover { transform: translateY(-1px); }
.cta:active { transform: translateY(0) scale(.98); }
.hero .hl { background: linear-gradient(transparent 62%, var(--yellow) 62%); }
.hero h1 { animation: hero-in .7s cubic-bezier(.2,.7,.2,1) both; }
.hero p { animation: hero-in .7s .12s cubic-bezier(.2,.7,.2,1) both; }
@keyframes hero-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero h1, .hero p { animation: none; }
  .card, .cta { transition: none; }
}

/* The shelf: the app's own book spines (spine.css), fed the site's tokens. */
.shelf { margin: 8px 0 28px; --font-display: var(--display); --font-mono: var(--mono); }
.shelf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
#shelf > a { display: block; padding: 14px 16px; border: 1px solid var(--edge); border-radius: 14px;
  background: var(--card); text-decoration: none; font: 700 15px var(--display); }
.shelf-live .spine-body { min-height: 150px; }

/* Header: one call to action, sign-in as a quiet text link. */
.signin { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); text-decoration: none; padding: 12px 14px; }
.signin:hover { color: var(--ink); }


/* Articles: guides, comparisons, audience pages. A reading column, real figures, sources. */
.prose { max-width: 820px; padding-top: 48px; }
.prose h1 { margin-top: 8px; }
.prose h2 { margin-top: 44px; }
.prose p, .prose li { font-size: 16px; line-height: 1.65; }
.lede { font-size: 19px !important; color: var(--ink-2); margin: 0 0 14px; }
.updated { font: 500 12px var(--mono); letter-spacing: .03em; color: var(--ink-3); margin: 0 0 8px; }
.sources { font-size: 13px !important; color: var(--ink-3); line-height: 1.5; margin: -8px 0 18px; }
.sources a { color: var(--ink-2); }
.shot { margin: 26px 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--edge); background: var(--card); box-shadow: 0 18px 48px rgba(22,24,26,.10); }
.shot figcaption { margin: 10px 2px 0; font: 500 12px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.scroll table { min-width: 720px; }
.cta-row { margin: 34px 0 0; }
a.card { display: block; text-decoration: none; color: inherit; }
.prose .grid { max-width: none; }

/* Footer as a small sitemap. */
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 22px; width: 100%; }
.foot-grid a { display: block; color: var(--ink-2); text-decoration: none; font-size: 13px; padding: 3px 0; }
.foot-grid a:hover { color: var(--ink); }
.foot-grid .kicker { margin: 0 0 6px; }
.foot-brand { font: 700 15px var(--display); color: var(--ink); }
.foot-tag { margin: 6px 0 0; font-size: 13px; color: var(--ink-3); max-width: 260px; }
.foot-note { width: 100%; margin: 22px 0 0; font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
footer.site { flex-direction: column; gap: 0; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* Cards that carry a clip from the walkthrough. The clip plays only while the card is in view (landing.js). */
.card-media { padding-top: 0; overflow: hidden; }
.card-clip { display: block; width: calc(100% + 40px); margin: 0 -20px 14px; height: 150px; object-fit: cover; object-position: 50% 28%; background: var(--paper); border-bottom: 1px solid var(--edge); }
.shot-step { margin: 6px 0 18px 44px; max-width: 640px; }
.shot-step img { box-shadow: none; }

/* Voices: real people, their own words, first names only; students unnamed and drawn in pixels. */
.voices { margin: 30px 0 8px; }
.voices .kicker { margin: 0 0 12px; }
.voices-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; perspective: 900px; }
.voice { margin: 0; padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 12px; }
.voice-avatar { width: 56px; height: 56px; border-radius: 12px; image-rendering: pixelated; background: var(--paper); border: 1px solid var(--edge); display: block; }
.voice-pixel svg { width: 56px; height: 56px; display: block; border-radius: 12px; }
.voice-pixel .eye { animation: blink 4.2s steps(1) infinite; transform-origin: center; }
.voice:nth-child(4) .voice-pixel .eye { animation-delay: 1.7s; }
@keyframes blink { 0%, 92%, 100% { opacity: 1; } 93%, 97% { opacity: 0; } }
.voice blockquote { margin: 0; flex: 1; }
.voice blockquote p { margin: 0; font-size: 15px; line-height: 1.55; }
.voice figcaption { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); display: flex; flex-direction: column; gap: 2px; }
.voice figcaption b { color: var(--ink); font-weight: 600; }
.card-voice { margin: 12px 0 0 !important; padding: 10px 12px; border-left: 3px solid var(--yellow); background: var(--paper); border-radius: 0 8px 8px 0; font-size: 13px !important; }
.card-voice span { display: block; margin-top: 4px; font: 600 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.js .voices.in .voice { animation: voice-in .7s cubic-bezier(.16,1,.3,1) both; }
.js .voices.in .voice:nth-child(2) { animation-delay: .08s; }
.js .voices.in .voice:nth-child(3) { animation-delay: .16s; }
.js .voices.in .voice:nth-child(4) { animation-delay: .24s; }
@keyframes voice-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .voice, .js .voices.in .voice { animation: none; transition: none; transform: none; }
  .voice-pixel .eye { animation: none; }
}

/* The changelog: dates as headings, one line per change. */
.prose h2 time { font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.log { margin: 8px 0 0; padding-left: 20px; }
.log li { margin: 6px 0; }

/* Lean and glow: any card marked data-tilt tips a few degrees towards the pointer (landing.js sets
   --rx, --ry, --mx, --my) and lights up with a pixel-block glow, stepped rings under a square grid mask,
   so it matches the pencil in the logo rather than a soft blur. */
[data-tilt] {
  position: relative; background: var(--card); border: 1px solid var(--edge); border-radius: 16px;
  transform: rotateX(var(--rx, 0)) rotateY(var(--ry, 0)) translateY(var(--lift, 0));
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease;
  will-change: transform;
}
[data-tilt]:hover { --lift: -4px; box-shadow: 0 18px 44px rgba(22,24,26,.12); border-color: var(--edge-strong); }
[data-tilt]::after {
  content: ''; position: absolute; inset: 0; border-radius: 16px; pointer-events: none; opacity: 0;
  transition: opacity .3s steps(4, end);
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 0%),
      rgba(255,214,10,.34) 0 28px, rgba(255,214,10,.24) 28px 64px, rgba(255,214,10,.15) 64px 108px,
      rgba(255,214,10,.08) 108px 160px, transparent 160px);
  -webkit-mask-image:
    repeating-linear-gradient(0deg, #000 0 7px, transparent 7px 8px),
    repeating-linear-gradient(90deg, #000 0 7px, transparent 7px 8px);
  mask-image:
    repeating-linear-gradient(0deg, #000 0 7px, transparent 7px 8px),
    repeating-linear-gradient(90deg, #000 0 7px, transparent 7px 8px);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
[data-tilt]:hover::after { opacity: 1; }
.grid { perspective: 900px; }
.card[data-tilt] { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease; }
.card[data-tilt]:hover { transform: rotateX(var(--rx, 0)) rotateY(var(--ry, 0)) translateY(-4px); box-shadow: 0 18px 44px rgba(22,24,26,.12); }
.card-media[data-tilt] { overflow: hidden; }
.card-media[data-tilt]::after { border-radius: 14px; }
@media (prefers-reduced-motion: reduce) {
  [data-tilt], .card[data-tilt]:hover { transform: none; transition: none; }
  [data-tilt]::after { display: none; }
}

/* Over a clip the glow sits lighter, so the video stays readable. */
.card-media[data-tilt]:hover::after { opacity: .55; }
