/* Lecture Desk website: paper, ink, and one accent that marks where things come from. */
:root {
  --paper: #F4EFE6;
  --paper-2: #EBE4D8;
  --sheet: #FAF7F1;
  --ink: #1C1A17;
  --ink-2: #4F4943;
  --ink-3: #807870;
  --rule: #DDD4C6;
  --accent: #B4532A;
  --accent-wash: #F1E2D6;
  --frame: #1C1A17;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --gutter: 28px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1A1816; --paper-2: #221F1C; --sheet: #22201D; --ink: #EFE9DF; --ink-2: #C2B9AD; --ink-3: #8F877D;
    --rule: #34302B; --accent: #E0895F; --accent-wash: #3A2A21; --frame: #0F0E0D;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; color: var(--ink); text-wrap: balance; }
.wrap { width: min(1080px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap.wide { width: min(1240px, 100% - 2 * var(--gutter)); }
@media (max-width: 640px) { :root { --gutter: 18px; } body { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
::selection { background: var(--accent-wash); }
.skip { position: absolute; left: -9999px; top: 10px; z-index: 10; padding: 8px 14px; background: var(--ink); color: var(--paper); border-radius: 8px; }
.skip:focus { left: 10px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Navigation: paper, a hairline once you scroll. */
.nav { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid transparent; transition: border-color .25s; }
.nav.scrolled { border-bottom-color: var(--rule); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 500 16px/1 var(--sans); text-decoration: none; letter-spacing: -.01em; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { font-size: 15px; color: var(--ink-2); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* Buttons: a raised edge that presses in. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 10px; font: 500 15.5px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; border: 1px solid transparent; transition: transform .12s ease, box-shadow .12s ease, background-color .2s; }
.btn-sm { height: 36px; padding: 0 15px; font-size: 14px; border-radius: 8px; }
.btn-ink { background: var(--ink); color: var(--paper); border-color: #000; box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), 0 1px 0 #000, 0 3px 0 -1px rgb(0 0 0 / .35), 0 6px 14px -8px rgb(0 0 0 / .45); }
.btn-ink:hover { background: #2A2723; }
.btn-ink:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), 0 1px 0 #000; }
.btn-paper { background: var(--sheet); color: var(--ink); border-color: var(--rule); box-shadow: inset 0 1px 0 rgb(255 255 255 / .7), 0 2px 0 -1px var(--rule), 0 4px 10px -8px rgb(28 26 23 / .3); }
.btn-paper:hover { border-color: var(--ink-3); }
.btn-paper:active { transform: translateY(1px); box-shadow: inset 0 1px 2px rgb(28 26 23 / .08); }
@media (prefers-color-scheme: dark) {
  .btn-ink { background: var(--ink); color: #1A1816; border-color: #CFC7BB; box-shadow: inset 0 -1px 0 rgb(0 0 0 / .12), 0 2px 0 -1px #8F877D, 0 6px 14px -8px rgb(0 0 0 / .6); }
  .btn-ink:hover { background: #FFFFFF; }
  .btn-paper { box-shadow: 0 2px 0 -1px #000; }
}
.btn .ms { width: 17px; height: 17px; }
.quiet-link, .text-link { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; text-decoration-thickness: 1px; transition: color .2s, text-decoration-color .2s; }
.quiet-link:hover, .text-link:hover { color: var(--ink); text-decoration-color: var(--accent); }
.text-link { color: var(--accent); text-decoration-color: currentColor; }

/* Hero */
.hero { padding: 88px 0 104px; }
.hero-copy h1 { max-width: 820px; }
h1 { font-size: clamp(44px, 6.4vw, 80px); line-height: 1.02; letter-spacing: -.022em; }
h1 em { font-style: italic; }
.lede { margin-top: 28px; max-width: 600px; font-size: clamp(18px, 1.9vw, 20px); line-height: 1.6; color: var(--ink-2); }
.get { margin-top: 48px; scroll-margin-top: 88px; }
@media (max-width: 520px) { .hero { padding: 56px 0 72px; } .get { margin-top: 36px; } }

/* A plain window frame with one soft shadow. */
.frame { margin: 0; border-radius: 12px; overflow: hidden; background: var(--frame); border: 1px solid rgb(0 0 0 / .5); box-shadow: 0 1px 1px rgb(28 26 23 / .08), 0 24px 48px -28px rgb(28 26 23 / .45); }
.frame-bar { display: flex; gap: 7px; align-items: center; height: 30px; padding: 0 13px; background: #24211E; border-bottom: 1px solid #000; }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #45403A; }
@media (max-width: 640px) { .frame { border-radius: 9px; } .frame-bar { height: 22px; } .frame-bar i { width: 7px; height: 7px; } }

/* Sections share one rhythm. */
section + section { border-top: 1px solid var(--rule); }
.notes, .features, .privacy, .why, .faq { padding: 128px 0; }
.tour { padding: 112px 0 120px; }
@media (max-width: 760px) { .notes, .features, .privacy, .why, .faq, .tour { padding: 80px 0; } }
h2 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.08; letter-spacing: -.018em; }
.caption { margin-top: 16px; font-size: 14px; color: var(--ink-3); }

/* The showpiece: notes that show their work. */
.notes-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: 56px; }
.notes-head p { color: var(--ink-2); font-size: 18px; max-width: 470px; }
@media (max-width: 860px) { .notes-head { grid-template-columns: 1fr; margin-bottom: 40px; } }
.proof { display: grid; grid-template-columns: 1fr 1.15fr; border: 1px solid var(--rule); border-radius: 12px; background: var(--sheet); overflow: hidden; }
.proof > div { padding: 32px 36px 36px; }
.proof-transcript { border-left: 1px solid var(--rule); background: color-mix(in srgb, var(--sheet) 70%, var(--paper)); }
.pane-title { font: 500 13px/1 var(--sans); color: var(--ink-3); margin-bottom: 18px; }
.proof ul, .proof ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.proof-notes button { display: flex; align-items: baseline; gap: 14px; width: 100%; padding: 14px 14px 14px 16px; margin: 0; border: 0; border-left: 2px solid transparent; border-radius: 0 8px 8px 0; background: none; color: var(--ink-2); font: 400 16.5px/1.55 var(--sans); text-align: left; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.proof-notes button b { font-weight: 600; color: var(--ink); }
.proof-notes button span { flex: 1; }
.proof-notes button:hover { background: var(--paper-2); }
.proof-notes button[aria-pressed="true"] { border-left-color: var(--accent); background: var(--accent-wash); color: var(--ink); }
time { font: 500 13px/1.6 var(--mono); color: var(--accent); font-variant-numeric: tabular-nums; }
.proof-notes time { flex: none; padding: 1px 7px; border-radius: 5px; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.proof-transcript li { display: grid; grid-template-columns: 46px 1fr; gap: 14px; padding: 12px 14px; border-radius: 8px; color: var(--ink-3); font-size: 15.5px; line-height: 1.6; transition: background-color .25s, color .25s; }
.proof-transcript li time { color: var(--ink-3); }
.proof-transcript li.lit { background: var(--accent-wash); color: var(--ink); }
.proof-transcript li.lit time { color: var(--accent); }
@media (max-width: 860px) { .proof { grid-template-columns: 1fr; } .proof-transcript { border-left: 0; border-top: 1px solid var(--rule); } .proof > div { padding: 24px 18px; } }

/* The launch video: a plain rounded frame (the film has its own backgrounds) with two quiet controls. */
/* Sized to watch from a seat, not to fill the screen. */
.tour-inner { width: min(880px, 100% - 2 * var(--gutter)); }
.tour-head { margin-bottom: 36px; }
.tour-head h2 { font-size: clamp(30px, 3.6vw, 42px); }
.tour-head p { margin-top: 12px; color: var(--ink-2); max-width: 560px; }
.film { position: relative; margin: 0; border-radius: 14px; overflow: hidden; background: #EFEAE1; border: 1px solid var(--rule); box-shadow: 0 1px 1px rgb(28 26 23 / .06), 0 28px 56px -32px rgb(28 26 23 / .45); }
.film video { width: 100%; aspect-ratio: 16 / 9; cursor: pointer; }
.film-controls { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 8px; }
.film-controls button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 13px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .16); background: rgb(28 26 23 / .78); color: #F4EFE6; font: 500 13.5px/1 var(--sans); cursor: pointer; transition: background-color .2s; }
.film-controls button:hover { background: rgb(28 26 23 / .92); }
.film-controls button:active { transform: translateY(1px); }
.film-controls svg { width: 16px; height: 16px; fill: #F4EFE6; stroke: #F4EFE6; stroke-width: 0; }
.film-sound svg .i-off, .film-sound svg .i-on { fill: none; stroke-width: 1.8; stroke-linecap: round; }
.film-sound .i-on { display: none; }
.film-sound[aria-pressed="true"] .i-on { display: block; }
.film-sound[aria-pressed="true"] .i-off { display: none; }
.film-play { width: 38px; justify-content: center; padding: 0 !important; }
.film-play .i-play { display: none; }
.film-play.paused .i-play { display: block; }
.film-play.paused .i-pause { display: none; }
@media (max-width: 640px) { .film { border-radius: 10px; } .film-controls { right: 8px; bottom: 8px; } .film-controls button { height: 32px; } .film-sound span { display: none; } }

/* Features: a plain two-column list, ruled like a notebook. */
.features h2 { margin-bottom: 48px; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; margin: 0; }
.feature-list div { padding: 22px 0; border-top: 1px solid var(--rule); }
.feature-list dt { font: 400 21px/1.3 var(--serif); color: var(--ink); margin-bottom: 6px; }
.feature-list dd { margin: 0; color: var(--ink-2); font-size: 16px; }
@media (max-width: 760px) { .feature-list { grid-template-columns: 1fr; } }

/* Privacy, said once. */
.privacy-inner { display: grid; gap: 40px; }
.privacy h2 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -.02em; max-width: 14ch; }
.privacy-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 64px; color: var(--ink-2); font-size: 18px; max-width: 920px; }
.privacy-inner .text-link { font-size: 16px; justify-self: start; }
@media (max-width: 760px) { .privacy-cols { grid-template-columns: 1fr; } }

/* Why I built it */
.why { background: var(--sheet); }
.why-inner { display: grid; grid-template-columns: 96px minmax(0, 640px); gap: 40px; justify-content: center; }
.folio { width: 80px; height: 80px; margin-top: 8px; }
.folio .f-page { fill: var(--paper); stroke: var(--ink); stroke-width: 1.1; stroke-linejoin: round; }
.folio .f-shade { fill: var(--paper-2); }
.folio .f-fold { fill: var(--paper-2); stroke: var(--ink); stroke-width: 1.1; stroke-linejoin: round; }
.folio .f-ribbon { fill: var(--accent); }
.folio .f-eye { fill: var(--ink); }
.folio .f-cheek { fill: var(--accent); opacity: .22; }
.folio .f-mouth { fill: none; stroke: var(--ink); stroke-width: 1; stroke-linecap: round; }
.why-text h2 { margin-bottom: 24px; }
.why-text p { color: var(--ink-2); font-size: 18px; margin-bottom: 18px; }
.why-text .sign { font: italic 400 24px/1 var(--serif); color: var(--ink); margin-top: 28px; }
@media (max-width: 640px) { .why-inner { grid-template-columns: 1fr; gap: 20px; } .folio { width: 56px; height: 56px; } }

/* Download */
.dl { border: 1px solid var(--rule); border-radius: 12px; background: var(--sheet); }
.dl > div { padding: 40px 44px; }
.dl-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-rows: auto auto 1fr; gap: 0 56px; align-items: start; }
.dl-main > h3, .dl-main > p, .dl-main > .btn { grid-column: 1; }
.dl-main > .btn { justify-self: start; align-self: start; }
.dl-main > .direct { grid-column: 2; grid-row: 1 / span 3; margin: 0; padding: 0 0 0 56px; border-top: 0; border-left: 1px solid var(--rule); }
/* The Mac preview: the same two columns, with the first-open steps on the right. */
.dl-mac { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 0 56px; border-top: 1px solid var(--rule); }
.mac-intro > p:not(.meta) { color: var(--ink-2); margin-bottom: 24px; max-width: 460px; }
.mac-intro .meta { margin-top: 14px; font-size: 14px; color: var(--ink-3); }
.mac-steps { display: grid; gap: 14px; align-content: start; padding-left: 56px; border-left: 1px solid var(--rule); }
.tag { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 4px 9px; border-radius: 999px; font: 500 12px/1 var(--sans); letter-spacing: .02em; color: var(--accent); background: var(--accent-wash); }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.steps li::marker { color: var(--ink-3); font: 500 13px var(--mono); }
.steps strong { color: var(--ink); font-weight: 600; }
.settings-link { display: flex; width: max-content; margin-top: 12px; }
.btn .apple { width: 15px; height: 18px; fill: currentColor; margin-top: -2px; }
.reqs-title { margin-top: 40px; font-size: 15px; font-weight: 600; }
.dl h3 { font-size: 30px; letter-spacing: -.01em; margin-bottom: 10px; }
.dl-main > p { color: var(--ink-2); margin-bottom: 24px; max-width: 460px; }
.direct { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--rule); display: grid; gap: 16px; }
.direct-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.direct-row span { color: var(--ink-3); font-size: 14px; }
.note { font-size: 14.5px; color: var(--ink-2); }
.note q { quotes: "\201C" "\201D"; }
.hash-box summary { cursor: pointer; font-size: 14px; color: var(--ink-2); width: max-content; }
.hash-box summary:hover { color: var(--ink); }
.hash-box p { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.hash { font: 12.5px/1.6 var(--mono); color: var(--ink-3); word-break: break-all; }
code { font: 13px var(--mono); padding: 1px 6px; border-radius: 5px; background: var(--paper-2); }
.reqs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 16px 0 0; }
.reqs dt { font: 500 13px/1 var(--sans); color: var(--ink-3); margin-bottom: 8px; }
.reqs dd { margin: 0; font-size: 15px; color: var(--ink-2); }
@media (max-width: 860px) { .dl-mac { grid-template-columns: 1fr; } .mac-steps { margin-top: 32px; padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--rule); } .dl-main { grid-template-columns: 1fr; grid-template-rows: none; } .dl-main > .direct { grid-column: 1; grid-row: auto; margin-top: 32px; padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--rule); } .reqs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .dl > div { padding: 28px 22px; } .reqs { grid-template-columns: 1fr; } .dl .btn { width: 100%; } }

/* Questions */
.faq-inner { display: grid; grid-template-columns: 1fr 1.7fr; gap: 32px 64px; }
.faq-list { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; cursor: pointer; font: 400 20px/1.35 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-top: 8px; border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3); transform: rotate(45deg); transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 12px; }
.faq summary:hover::after { border-color: var(--ink); }
.faq details p { padding: 0 0 24px; color: var(--ink-2); max-width: 620px; }
@media (max-width: 860px) { .faq-inner { grid-template-columns: 1fr; } }

/* Footer */
.footer { border-top: 1px solid var(--rule); padding: 40px 0 56px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer nav a { font-size: 15px; color: var(--ink-2); text-decoration: none; }
.footer nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer p { flex-basis: 100%; font-size: 14px; color: var(--ink-3); }

/* One gentle fade as sections arrive, and none with reduced motion. */
.js .fade { opacity: 0; transform: translateY(12px); transition: opacity .7s ease, transform .7s ease; }
.js .fade.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .fade { opacity: 1; transform: none; transition: none; } }

/* Privacy notice page */
.doc .nav .btn { margin-left: auto; }
.prose { max-width: 720px; padding: 72px 0 112px; }
.prose h1 { font-size: clamp(38px, 5.6vw, 58px); }
.prose .updated { margin: 16px 0 40px; color: var(--ink-3); font-size: 15px; }
.prose h2 { font-size: 28px; margin: 48px 0 14px; }
.prose p, .prose li { color: var(--ink-2); margin-bottom: 14px; }
.prose ul { padding-left: 22px; }
.prose a { color: var(--accent); }
