@font-face {
  font-family: "Caladea";
  src: url("/public/assets/fonts/caladea-regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Caladea";
  src: url("/public/assets/fonts/caladea-bold.woff") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "PT Serif";
  src: url("/public/assets/fonts/pt-serif-regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light dark;
  --page: #eef0f3;
  --surface: #ffffff;
  --ink: #0a0b0d;
  --muted: #505866;
  --line: rgba(91, 97, 110, 0.2);
  --blue: #0052ff;
  --link: #0667d0;
  --hover: #578bfa;
  --focus: #0a0b0d;
  --display: "Caladea", Georgia, serif;
  --text: "PT Serif", Georgia, serif;
  --value: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}
* { box-sizing: border-box; }
html { background: var(--page); scroll-behavior: auto; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--text); font-size: 18px; line-height: 1.6; }
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; }
button, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: var(--link); text-underline-offset: 5px; text-decoration-thickness: 1px; }
a, button { -webkit-tap-highlight-color: transparent; transition: background-color 220ms ease-out, color 220ms ease-out, border-color 220ms ease-out; }
a:hover { text-decoration-color: var(--hover); }
a:focus-visible, button:focus-visible, textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
textarea { accent-color: var(--blue); }
[hidden] { display: none !important; }
.u-wrap { width: min(100% - 48px, 1232px); margin-inline: auto; }
.u-measure { max-width: 68ch; }
.u-stack { display: flex; flex-direction: column; gap: 20px; }
.u-gap-small { gap: 12px; }
.u-gap-large { gap: 28px; }
.u-flex { display: flex; flex-wrap: wrap; align-items: center; }
.u-flex-between { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.u-mb { margin-bottom: 24px; }
.u-pad { padding: 28px; }
.u-pad-large { padding: clamp(32px, 4vw, 56px); }
.u-kicker { font-family: var(--text); font-size: 16px; line-height: 1.5; font-weight: 700; letter-spacing: 0.015em; }
.u-muted { color: var(--muted); }
.u-small { font-size: 16px; line-height: 1.6; }
.u-lead { font-size: 21px; line-height: 1.5; }
.u-title { font-size: clamp(36px, 3.7vw, 56px); line-height: 1.1; font-weight: 700; letter-spacing: -0.025em; max-width: 24ch; }
.u-display { font-size: clamp(46px, 5.65vw, 80px); line-height: 1; letter-spacing: -0.04em; font-weight: 400; max-width: 16ch; }
.u-h2 { font-size: 28px; line-height: 1.22; letter-spacing: -0.01em; }
.u-h3 { font-size: 22px; line-height: 1.3; }
.u-card-display { font-size: clamp(48px, 4.3vw, 64px); line-height: 1.02; letter-spacing: -0.025em; font-weight: 400; }
.u-section-title { font-size: clamp(36px, 4vw, 56px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 400; margin-block: 16px 24px; max-width: 23ch; }
.u-icon { width: 24px; height: 24px; flex: 0 0 24px; }
.u-check { width: 24px; height: 24px; color: var(--link); margin-top: 3px; flex: 0 0 24px; }
.u-deep { --surface: #282b31; --ink: #eef0f3; --muted: #bcc3ce; --line: rgba(238, 240, 243, 0.2); --link: #6898ff; --focus: #ffffff; background: #0a0b0d; color: var(--ink); color-scheme: dark; }
.u-surface { background: var(--surface); }
.u-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 2px 12px rgba(10, 11, 13, 0.035); }
.u-card.u-deep { background: #0a0b0d; }
.u-pill { min-height: 56px; min-width: 44px; padding: 14px 24px; border: 1px solid transparent; border-radius: 56px; display: inline-flex; gap: 16px; align-items: center; justify-content: center; font-size: 17px; font-family: var(--text); font-weight: 700; line-height: 1.35; text-decoration: none; }
.u-primary { background: var(--blue); color: #ffffff; }
.u-primary:hover { background: var(--hover); color: #0a0b0d; }
.u-outline { border-color: var(--line); background: transparent; color: var(--ink); }
.u-outline:hover { background: var(--surface); border-color: var(--hover); }
.u-link { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; gap: 16px; padding-block: 10px; font-size: 17px; line-height: 1.4; }
.u-light-link { color: #6898ff; }
.u-crumbs { display: flex; flex-wrap: wrap; align-items: center; list-style: none; padding: 0; gap: 0; font-size: 16px; }
.u-crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.u-crumbs li + li::before { content: "/"; padding-inline: 12px; color: var(--muted); }
.u-crumbs a { font-size: 16px; min-height: 44px; padding: 10px 4px; }
.u-crumbs span { padding-block: 10px; }
.u-guide-label { display: inline-flex; align-items: center; font-size: 16px; padding: 10px 18px; min-height: 44px; border: 1px solid var(--line); border-radius: 56px; }
.u-mast-sub { font-size: 18px; letter-spacing: 0; }
.u-mast-divider { color: var(--link); }
.u-hero-grid { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.u-section-space { margin-block: clamp(64px, 7vw, 112px); }
.u-section-pad { padding-block: clamp(56px, 6.7vw, 104px); }
.u-stage-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.u-reverse > :first-child { grid-column: 2; grid-row: 1; }
.u-reverse > :last-child { grid-column: 1; grid-row: 1; }
.u-stage-word { font-size: clamp(56px, 7vw, 104px); line-height: 1; letter-spacing: -0.025em; font-weight: 400; }
.u-stage-lead { max-width: 30ch; }
.u-card-links { list-style: none; display: flex; flex-direction: column; padding: 0; gap: 12px; }
.u-card-link { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 24px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; color: var(--ink); font-size: 18px; line-height: 1.45; text-decoration: none; box-shadow: 0 2px 12px rgba(10, 11, 13, 0.035); }
.u-card-link:hover { border-color: var(--hover); color: var(--link); }
.u-card-link .u-icon { color: var(--link); }
.u-notes-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: clamp(40px, 7vw, 104px); align-items: start; }
.u-reader-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(40px, 5.5vw, 80px); align-items: start; }
.u-reader-grid > * { min-width: 0; }
.u-checklist { list-style: none; padding: 0; }
.u-check-row { display: flex; gap: 18px; padding-block: 24px; border-top: 1px solid var(--line); }
.u-check-row > div { min-width: 0; }
.u-check-row:last-child { border-bottom: 1px solid var(--line); }
.u-compact .u-check-row { padding-block: 18px; gap: 14px; }
.u-note { border-left: 3px solid var(--blue); padding: 28px; background: var(--surface); border-radius: 0 12px 12px 0; margin-top: 24px; }
.u-reading-gap { margin-top: 48px; }
.u-reading-list { list-style: none; padding: 0; }
.u-source { padding-block: 16px; border-bottom: 1px solid var(--line); }
.u-source-link { display: flex; justify-content: space-between; font-weight: 700; font-size: 18px; }
.u-source-link .u-icon { color: var(--link); }
.u-label { font-size: 17px; font-weight: 700; }
.u-input { display: block; width: 100%; resize: vertical; min-height: 152px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--page); color: var(--ink); font-size: 18px; line-height: 1.55; }
.u-note-entry { border: 1px solid var(--line); padding: 24px; border-radius: 12px; background: var(--surface); }
.u-note-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.u-error { min-height: 55vh; padding-block: 64px 96px; align-items: flex-start; }
.page-masthead { padding-block: 24px 18px; border-bottom: 1px solid var(--line); }
.page-name { font-family: var(--display); font-size: 29px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.3; }
.page-breadcrumb { padding-block: 12px; }
.page-hero { padding-top: 44px; }
.page-hero-card { margin-top: 8px; }
.page-intro { margin-block: 48px 56px; }
.page-copy { max-width: 72ch; }
.page-notes { position: sticky; top: 24px; gap: 16px; }
.page-notes .u-pill { font-size: 16px; padding-inline: 20px; }
.page-footer { padding-block: 40px 48px; margin-top: clamp(64px, 7vw, 112px); border-top: 1px solid var(--line); }
.page-skip { position: absolute; top: 8px; left: 24px; transform: translateY(-150%); z-index: 5; background: var(--ink); color: var(--surface); }
.page-skip:focus { transform: translateY(0); }
@media (prefers-color-scheme: dark) {
  :root { --page: #0a0b0d; --surface: #282b31; --ink: #eef0f3; --muted: #bcc3ce; --line: rgba(238, 240, 243, 0.2); --link: #6898ff; --focus: #ffffff; }
  .u-deep { background: #111318; }
  .u-card.u-deep { background: #282b31; }
  .u-card-link { box-shadow: none; }
}
@media (max-width: 850px) {
  .u-reader-grid { grid-template-columns: minmax(0, 1fr); }
  .page-notes { position: static; max-width: 72ch; }
  .u-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .u-display { max-width: 19ch; }
  .u-stage-grid, .u-notes-grid { gap: 40px; }
  .u-guide-label { max-width: 21ch; }
}
@media (max-width: 600px) {
  body { font-size: 18px; }
  .u-wrap { width: calc(100% - 40px); }
  .u-title { font-size: 38px; }
  .u-display { font-size: 50px; max-width: 13ch; }
  .u-lead { font-size: 20px; }
  .u-stage-grid, .u-notes-grid { grid-template-columns: minmax(0, 1fr); }
  .u-reverse > :first-child, .u-reverse > :last-child { grid-column: auto; grid-row: auto; }
  .u-stage-word { font-size: 72px; }
  .u-flex-between { align-items: flex-start; flex-direction: column; gap: 14px; }
  .u-guide-label { max-width: none; padding: 0; border: 0; min-height: 26px; }
  .u-pad, .u-note { padding: 24px; }
  .u-pad-large { padding: 28px; }
  .u-pill { padding-inline: 22px; font-size: 17px; }
  .u-card-link { padding: 18px 20px; gap: 16px; }
  .u-check-row { gap: 14px; }
  .u-crumbs li + li::before { padding-inline: 8px; }
  .page-masthead { padding-top: 20px; }
  .page-hero { padding-top: 24px; }
  .page-intro { margin-block: 28px 40px; }
  .page-next .u-flex { align-items: flex-start; }
  .page-footer { padding-block: 32px; }
}
@media (prefers-reduced-motion: no-preference) {
  .page-intro, .page-hero { animation: page-arrive 240ms ease-out; }
  @keyframes page-arrive { from { transform: translateY(5px); } to { transform: translateY(0); } }
}
@media (prefers-reduced-motion: reduce) {
  a, button { transition: none; }
}
