@font-face {
  font-family: "LearnNote Site Sans";
  src: url("./assets/fonts/learnnote-site-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --bg: #ffffff;
  --panel: #f5f6f3;
  --paper: #ffffff;
  --ink: #26332c;
  --muted: #58635d;
  --line: #e3e7e2;
  --accent: #303832;
  --tint: #edf2eb;
  --font: "LearnNote Site Sans", "Noto Sans SC", "Noto Sans CJK SC", "PingFang SC",
    "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.8 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
a {
  color: inherit;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
button { font: inherit; cursor: pointer; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { font-weight: 600; letter-spacing: -0.025em; }
h3 { font-size: 19px; font-weight: 600; line-height: 1.55; }
a, button {
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease;
}
.skip-link {
  position: absolute;
  top: -80px;
  left: 20px;
  z-index: 4;
  background: var(--paper);
  padding: 12px;
}
.skip-link:focus { top: 8px; }
.site-header, .legal-header {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -0.6px;
  text-decoration: none;
  white-space: nowrap;
}
.logo img { flex-shrink: 0; }
.site-header nav, .legal-header nav, footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 28px;
}
.site-header nav a, .legal-header nav a, footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-size: 14px;
}
.site-header nav a:hover, .legal-header nav a:hover, footer nav a:hover {
  text-decoration: underline;
}
.github-link { gap: 6px; }
.github-link svg { width: 16px; height: 16px; }
.hero { padding-block: 56px 40px; }
.hero > div { max-width: 760px; margin-inline: auto; }
.hero h1 { font-size: clamp(36px, 3.8vw, 52px); line-height: 1.35; margin: 0 0 20px; }
.hero-copy { max-width: 580px; font-size: 18px; line-height: 1.85; color: var(--muted); margin-bottom: 24px; }
.hero-actions { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 100%;
  min-height: 48px;
  padding: 11px 20px;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--bg);
  border-radius: 7px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
}
.button:hover { background: #3b443d; border-color: #3b443d; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.hero-footnote { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.showcase { padding-bottom: 64px; }
.workspace-preview {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  background: var(--paper);
  min-height: 480px;
}
.preview-sidebar { background: var(--panel); padding: 24px 14px; font-size: 14px; }
.preview-sidebar strong { font-size: 17px; font-weight: 600; padding-inline: 12px; }
.preview-sidebar p { padding: 9px 12px; margin: 3px 0; border-radius: 7px; }
.preview-sidebar .sidebar-label { font-size: 12px; color: var(--muted); margin-top: 20px; }
.preview-sidebar .selected { background: var(--tint); color: var(--ink); box-shadow: inset 2px 0 var(--accent); }
.preview-main { min-width: 0; }
.preview-tabs {
  display: flex;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
  min-height: 56px;
}
.preview-tabs button {
  position: relative;
  align-self: stretch;
  min-height: 48px;
  border: 0;
  background: transparent;
  font-size: 14px;
  padding: 0 16px;
  color: var(--muted);
}
.preview-tabs button[aria-selected="true"] { color: var(--ink); font-weight: 600; }
.preview-tabs button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--accent);
}
.preview-tabs button:hover { background: var(--panel); color: var(--ink); }
.sample-paper {
  max-width: 780px;
  padding: 28px 40px 32px;
  margin-inline: auto;
  font-size: 16px;
  line-height: 1.85;
  min-height: 440px;
  text-align: left;
}
/* Keep panel and heading keyboard focus visible inside the clipped preview. */
.sample-paper:focus-visible { outline-offset: -3px; }
.sample-paper h2 { font-size: 28px; line-height: 1.4; margin-bottom: 8px; }
.sample-meta { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.sample-paper h3 { font-size: 19px; margin: 24px 0 10px; }
.sample-paper p { margin-bottom: 16px; }
.sample-paper ol { padding-left: 22px; margin: 0 0 16px; }
.sample-paper strong { font-weight: 600; }
.source-jump {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  min-height: 44px;
  padding: 8px 0;
  font-size: 13px;
  color: var(--accent);
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.source-jump svg { width: 18px; }
.sample-cue { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; padding: 16px 12px; border-bottom: 1px solid var(--line); }
.sample-cue time { color: var(--muted); font-size: 13px; padding-top: 3px; font-variant-numeric: tabular-nums; }
.sample-cue p { margin: 0; }
.sample-cue.highlighted { background: var(--panel); border-radius: 7px; }
.sample-note { font-size: 13px; color: var(--muted); margin-top: 24px; }
.sample-outline { list-style: none; padding: 0 !important; }
.sample-outline li { border-bottom: 1px solid var(--line); padding: 8px 0 16px; }
.sample-outline button { min-height: 44px; padding: 8px 0; background: none; border: 0; font-size: 17px; font-weight: 600; text-align: left; }
.sample-outline button:hover { text-decoration: underline; text-underline-offset: 4px; }
.sample-outline p { font-size: 14px; color: var(--muted); margin: 0; }
.caption { font-size: 12px; color: var(--muted); text-align: left; line-height: 1.8; margin: 16px 0 0; }
.workflow {
  border-top: 1px solid var(--line);
  padding-block: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px 72px;
}
.workflow h2 { font-size: 36px; line-height: 1.4; margin: 0 0 24px; }
.workflow-intro > p { font-size: 18px; line-height: 1.85; color: var(--muted); }
.workflow-intro .supporting { font-size: 15px; max-width: 420px; margin-top: 24px; }
.route-tabs { display: flex; background: var(--panel); border-radius: 8px; padding: 4px; margin-bottom: 28px; gap: 4px; }
.route-tabs button { flex: 1; border: 0; border-radius: 6px; background: none; min-height: 44px; padding: 8px 12px; font-size: 15px; font-weight: 600; }
.route-tabs button[aria-selected="true"] { background: var(--paper); box-shadow: 0 1px 4px #00000011; }
.route-tabs button:hover:not([aria-selected="true"]) { background: var(--tint); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: flex; gap: 20px; position: relative; padding-bottom: 28px; }
.timeline li > span {
  color: var(--muted);
  background: var(--paper);
  width: 32px;
  height: 36px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 13px;
  position: relative;
  z-index: 1;
  font-variant-numeric: tabular-nums;
}
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 36px; bottom: 0; width: 1px; background: var(--line); }
.timeline h3 { margin: 2px 0 8px; }
.timeline p { font-size: 15px; color: var(--muted); margin: 0; max-width: 400px; line-height: 1.85; }
.timeline li:last-child { padding-bottom: 12px; }
.route-note { font-size: 12px; color: var(--muted); line-height: 1.85; margin: 12px 0 0 52px; }
.feature-notes { grid-column: 1/-1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; border-top: 1px solid var(--line); padding-top: 32px; }
.feature-notes h3 { font-size: 18px; margin: 0 0 12px; }
.feature-notes p { font-size: 15px; color: var(--muted); line-height: 1.85; margin: 0; }
.download { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; padding-block: 64px; border-top: 1px solid var(--line); }
.download h2 { font-size: 34px; line-height: 1.4; margin: 0 0 24px; }
.download > div > p { font-size: 18px; color: var(--muted); line-height: 1.85; margin-bottom: 28px; }
.all-releases { display: flex; align-items: center; gap: 12px; color: var(--accent); text-decoration: none; font-size: 14px; min-height: 44px; width: fit-content; margin-top: 12px; }
.all-releases:hover { text-decoration: underline; }
.download .download-meta { font-size: 13px; margin: 16px 0 0; line-height: 1.9; }
code { font-family: Consolas, "SFMono-Regular", monospace; font-size: 0.9em; overflow-wrap: anywhere; }
.install-steps { list-style: none; padding: 0; margin: 0; }
.install-steps li { display: flex; gap: 20px; padding-bottom: 24px; }
.install-steps li + li { padding-top: 24px; border-top: 1px solid var(--line); }
.install-steps li:last-child { padding-bottom: 0; }
.install-steps li > span { font-size: 13px; line-height: 30px; min-width: 24px; color: var(--muted); font-variant-numeric: tabular-nums; }
.install-steps li > div { min-width: 0; }
.install-steps h3 { font-size: 18px; margin: 0 0 8px; }
.install-steps p { font-size: 15px; color: var(--muted); line-height: 1.85; margin: 0; }
.install-steps .install-links { margin-top: 8px; display: flex; gap: 0 20px; flex-wrap: wrap; font-size: 13px; color: var(--accent); }
.install-links a { display: inline-flex; align-items: center; min-height: 44px; }
.privacy { background: var(--panel); padding-block: 48px; }
.privacy h2 { font-size: 28px; line-height: 1.5; margin: 0 0 16px; }
.privacy p { font-size: 16px; line-height: 1.85; color: var(--muted); max-width: 840px; margin: 0 0 16px; }
.privacy a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 14px; text-decoration: none; color: var(--accent); }
.privacy a:hover { text-decoration: underline; }
footer { padding-block: 24px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
footer .logo { font-size: 20px; }
footer nav a { font-size: 13px; color: var(--muted); }
.legal-header { border-bottom: 1px solid var(--line); }
.legal-header nav a[aria-current="page"] { font-weight: 600; text-decoration: underline; }
.legal-document { width: min(760px, calc(100% - 64px)); margin: 56px auto 72px; overflow-wrap: anywhere; }
.legal-document h1 { font-size: 36px; line-height: 1.4; margin: 0 0 24px; }
.legal-document h2 { font-size: 22px; margin: 36px 0 12px; }
.legal-document p, .legal-document li { font-size: 16px; line-height: 1.85; }
.legal-document p { margin-bottom: 16px; }
.legal-document ul { padding-left: 24px; }
.legal-document li { padding-left: 4px; margin-bottom: 8px; }
.legal-document .legal-lead { font-size: 18px; color: var(--muted); padding-bottom: 28px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.legal-footnote { color: var(--muted); border-top: 1px solid var(--line); padding-top: 24px; margin-top: 40px; }
.legal-footer { border-top: 1px solid var(--line); }
[hidden] { display: none !important; }
@media (max-width: 1000px) {
  .hero > div { max-width: 700px; }
  .workspace-preview { grid-template-columns: 180px minmax(0, 1fr); }
  .sample-paper { padding-inline: 28px; }
  .workflow, .download { column-gap: 40px; }
  .workflow h2 { font-size: 32px; }
  .download h2 { font-size: 30px; }
  .feature-notes { gap: 28px; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 40px); }
  .site-header, .legal-header { min-height: 76px; gap: 16px; }
  .logo { font-size: 21px; gap: 8px; }
  .logo img { width: 28px; height: 28px; }
  .site-header nav { gap: 12px; }
  .site-header nav a { font-size: 13px; }
  .site-header nav a:first-child, .github-link { display: none !important; }
  .hero { padding-block: 36px 32px; }
  .hero h1 { font-size: clamp(30px, 8.5vw, 42px); line-height: 1.4; margin-bottom: 18px; }
  .hero-copy { font-size: 16px; margin-bottom: 20px; }
  .hero-actions { gap: 8px 20px; }
  .button { font-size: 14px; padding-inline: 16px; }
  .hero-footnote { margin-top: 12px; font-size: 12px; }
  .workspace-preview { grid-template-columns: minmax(0, 1fr); min-height: 0; border-radius: 10px; }
  .preview-sidebar { display: none; }
  .preview-tabs { padding-inline: 12px; gap: 4px; min-height: 52px; }
  .preview-tabs button { padding-inline: 14px; }
  .sample-paper { padding: 24px 20px; min-height: 480px; font-size: 15px; line-height: 1.85; }
  .sample-paper h2 { font-size: 25px; }
  .sample-paper h3 { font-size: 18px; margin-top: 24px; }
  .sample-cue { gap: 12px; padding-inline: 8px; grid-template-columns: 44px minmax(0, 1fr); }
  .source-jump { font-size: 12px; gap: 8px; }
  .source-jump svg { display: none; }
  .caption { margin-top: 12px; }
  .showcase { padding-bottom: 40px; }
  .workflow, .download { grid-template-columns: minmax(0, 1fr); padding-block: 40px; gap: 32px; }
  .workflow h2, .download h2 { font-size: 29px; margin-bottom: 18px; }
  .workflow-intro > p, .download > div > p { font-size: 17px; }
  .workflow-intro .supporting { margin: 0; max-width: none; }
  .route-tabs { margin-bottom: 24px; }
  .timeline li { gap: 16px; }
  .route-note { margin-left: 48px; }
  .feature-notes { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 28px; }
  .feature-notes h3 { margin-bottom: 8px; }
  .install-steps li { gap: 16px; }
  .privacy { padding-block: 36px; }
  .privacy h2 { font-size: 25px; }
  .privacy p { font-size: 15px; }
  footer { align-items: flex-start; flex-direction: column; gap: 12px; }
  footer nav { gap: 0 20px; }
  .legal-header { flex-wrap: wrap; padding-block: 16px 8px; gap: 4px 16px; }
  .legal-header nav { gap: 0 20px; }
  .legal-header nav a { font-size: 13px; }
  .legal-document { width: calc(100% - 40px); margin-block: 36px 48px; }
  .legal-document h1 { font-size: 30px; margin-bottom: 20px; }
  .legal-document h2 { font-size: 21px; margin-top: 28px; }
  .legal-document .legal-lead { font-size: 17px; padding-bottom: 24px; }
}
@media (max-width: 360px) {
  .site-header { align-items: flex-start; flex-direction: column; padding-block: 12px; gap: 0; }
  .site-header nav { gap: 20px; }
  .hero h1 { font-size: 30px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .sample-paper { padding-inline: 16px; }
  .sample-paper h2 { font-size: 23px; }
  .preview-tabs { gap: 0; padding-inline: 6px; }
  .preview-tabs button { padding-inline: 12px; }
  .sample-cue { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .route-tabs button { font-size: 14px; padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .button { border-color: ButtonText; }
  .preview-sidebar .selected, .route-tabs button[aria-selected="true"] { outline: 1px solid Highlight; }
  .preview-tabs button[aria-selected="true"]::after { background: Highlight; }
}
