:root {
  color-scheme: light;
  --page: #f5f6fc;
  --surface: #fff;
  --ink: #1f2037;
  --muted: #535670;
  --line: #d9daea;
  --accent: #4931b4;
  --accent-dark: #35208d;
  --accent-wash: #ece7fb;
  --display: Georgia, "Times New Roman", serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font: 1rem/1.6 var(--body); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
button { font: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 400; }
.shell { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }
.skip { position: fixed; z-index: 10; top: .75rem; left: .75rem; padding: .6rem 1rem; background: var(--surface); transform: translateY(-180%); }
.skip:focus { transform: none; }
.header, .footer { display: flex; align-items: center; justify-content: space-between; gap: 1.1rem; }
.header { min-height: 5rem; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: .64rem; font-size: 1.29rem; font-weight: 720; letter-spacing: -.045em; text-decoration: none; }
.wordmark img { border-radius: .54rem; }
nav, .footer div { display: flex; flex-wrap: wrap; gap: clamp(.8rem, 2.7vw, 2rem); }
nav a, .footer a { color: var(--muted); font-size: .94rem; text-decoration: none; }
nav a:hover, .footer a:hover, .text-link:hover { color: var(--accent); text-decoration: underline; }
.hero { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: clamp(2.2rem, 5vw, 5.5rem); align-items: center; padding-block: clamp(4rem, 9vw, 8.1rem) clamp(3.8rem, 8vw, 7.4rem); }
.eyebrow { font: 650 .77rem/1.4 var(--mono); letter-spacing: .12em; color: var(--accent-dark); }
h1 { font-size: clamp(3.3rem, 6.4vw, 6.2rem); line-height: .98; letter-spacing: -.063em; margin-block: 1.2rem 1.35rem; }
h1 em { display: block; color: var(--accent); font-weight: inherit; }
.intro { max-width: 31rem; color: var(--muted); font-size: clamp(1.06rem, 1.5vw, 1.23rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.25rem; margin-top: 1.65rem; }
.button { min-height: 2.9rem; display: inline-flex; align-items: center; justify-content: center; padding: .65rem 1.04rem; border: 1px solid transparent; border-radius: .55rem; font-weight: 650; text-decoration: none; transition: background-color .15s ease; white-space: nowrap; }
.primary { background: var(--accent); color: white; }
.primary:hover { background: var(--accent-dark); }
.secondary { border-color: var(--line); background: var(--surface); }
.secondary:hover { background: var(--accent-wash); }
.text-link { font-size: .96rem; font-weight: 620; }
.sample { min-width: 0; margin: 0; }
.sample-window { border: 1px solid #d2cfe8; border-radius: 1.05rem; background: var(--surface); box-shadow: 0 17px 47px #39257018; overflow: hidden; }
.sample-bar { display: flex; gap: .55rem; align-items: center; min-height: 3.3rem; padding: .6rem 1rem; border-bottom: 1px solid var(--line); background: #f8f7fc; font-size: .9rem; }
.file-icon { display: inline-block; width: .72rem; height: .86rem; border: 1.5px solid var(--accent); border-radius: .16rem; }
.version { margin-left: auto; color: var(--muted); font-size: .82rem; white-space: nowrap; }
.sample-content { display: grid; grid-template-columns: 1.06fr .94fr; }
.sheet { padding: clamp(1rem, 3.3vw, 2rem); background: #fff; min-height: 19rem; }
.sheet-heading { font: 400 clamp(1.75rem, 3vw, 2.85rem)/.97 var(--display); letter-spacing: -.052em; }
.sheet-kicker { font-size: .85rem; color: var(--muted); margin-top: .5rem; }
.sheet > p:nth-child(n+3) { margin-top: 1.37rem; font-size: .96rem; line-height: 1.62; }
.paper-mark { position: relative; display: inline-block; white-space: nowrap; }
.paper-mark::after { content: ""; position: absolute; inset: -.12rem -.33rem; border: 2px solid transparent; pointer-events: none; transition: border-color .15s ease; }
.paper-mark.circle::after { border-radius: 49% 53% 42% 55%; transform: rotate(-7deg); }
.paper-mark.underline::after { inset: auto -.12rem -.09rem; height: .28rem; border-width: 0 0 2px; border-radius: 50%; transform: rotate(-3deg); }
.paper-mark.selected::after { border-color: #6845e6; }
.transcript { padding: 1.15rem .75rem; border-left: 1px solid var(--line); background: #f8f7fd; }
.transcript-heading { font-weight: 690; font-size: .9rem; margin: 0 .47rem .63rem; }
.cue { width: 100%; display: grid; grid-template-columns: auto 1fr; gap: .55rem; text-align: left; color: var(--ink); border: 1px solid transparent; border-radius: .5rem; background: transparent; padding: .62rem .48rem; cursor: pointer; font-size: .88rem; line-height: 1.5; }
.cue + .cue { margin-top: .32rem; }
.cue:hover { background: #efecfb; }
.cue[aria-pressed="true"] { background: var(--accent-wash); border-color: #e0d7f8; }
.cue time { color: var(--accent-dark); font-family: var(--mono); font-weight: 650; white-space: nowrap; }
.sample-page { display: block; margin: .83rem .48rem 0; font-size: .81rem; color: var(--muted); }
figcaption { margin: .85rem 0 0; color: var(--muted); font-size: .88rem; }
.workflow { background: #ececfa; border-block: 1px solid #dfdff1; }
.workflow-inner { padding-block: 3.4rem 3.65rem; }
h2 { font-size: clamp(2.06rem, 3.9vw, 3.47rem); letter-spacing: -.047em; line-height: 1.08; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem 2.9rem; padding: 0; margin: 1.8rem 0 0; counter-reset: action; list-style: none; }
.steps li { border-top: 1px solid #cecae9; padding-top: .91rem; counter-increment: action; }
.steps h3::before { content: counter(action) ". "; color: var(--accent); font-family: var(--mono); font-weight: 550; }
h3 { font-weight: 680; font-size: 1.1rem; line-height: 1.3; }
.steps p, .bottom p { margin-top: .43rem; color: var(--muted); }
.bottom { padding-block: 3.8rem; display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; }
.bottom p { max-width: 37rem; }
.footer { border-top: 1px solid var(--line); padding-block: 1.3rem 1.75rem; }
.footer > span { font-weight: 690; }
.reading { width: min(100% - 2.5rem, 46rem); margin-inline: auto; padding-block: 3.7rem 4.4rem; }
.reading h1 { font-size: clamp(3rem, 7vw, 4.7rem); margin-top: 0; }
.reading h2 { font-size: clamp(1.75rem, 4vw, 2.4rem); margin-top: 2.15rem; }
.reading p, .reading ol { margin-top: .75rem; }
.reading pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: .9rem 1rem; background: #eae8f5; border: 1px solid var(--line); border-radius: .6rem; font: .88rem/1.65 var(--mono); }
.reading code { font-family: var(--mono); }
@media (max-width: 57rem) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 43rem; }
  h1 em { display: inline; }
  .sample { max-width: 43rem; }
}
@media (max-width: 38rem) {
  .shell { width: min(100% - 2rem, 72rem); }
  .header { min-height: 4.3rem; }
  nav a:first-child { display: none; }
  .hero { padding-block: 3.2rem; }
  .sample-content { grid-template-columns: 1fr; }
  .sheet { min-height: 0; padding: 1.3rem 1.45rem 1.65rem; }
  .transcript { border-left: none; border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .bottom { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
