:root {
  color-scheme: light;
  --paper: #f3f0e8;
  --paper-raised: #faf8f2;
  --ink: #19221d;
  --ink-soft: #53605a;
  --line: rgba(25, 34, 29, 0.16);
  --line-strong: rgba(25, 34, 29, 0.36);
  --accent: #d84a2f;
  --accent-soft: #f0c6b8;
  --moss: #244738;
  --sage: #9cb09f;
  --code-bg: #17231d;
  --code-ink: #e9f0e7;
  --topbar-height: 84px;
  --sidebar-width: 220px;
  --content-width: 1120px;
  --body-size: 17px;
  --shadow: 0 26px 80px rgba(26, 35, 30, 0.08);
  --transition: 220ms cubic-bezier(.2, .7, .2, 1);
}

[data-theme="dark"] {
  color-scheme: dark;
  --paper: #111713;
  --paper-raised: #18201b;
  --ink: #edf1eb;
  --ink-soft: #aab4ad;
  --line: rgba(237, 241, 235, 0.14);
  --line-strong: rgba(237, 241, 235, 0.34);
  --accent: #f06a4d;
  --accent-soft: #5e3027;
  --moss: #c6dfce;
  --sage: #63796b;
  --code-bg: #090e0b;
  --code-ink: #e9f0e7;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-height) + 28px);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 5%, rgba(216, 74, 47, 0.055), transparent 24rem),
    var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: var(--body-size);
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--transition), color var(--transition);
}

body.font-large {
  --body-size: 19px;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
summary {
  font: inherit;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.reading-progress {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: 3px;
  background: transparent;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 80ms linear;
}

.topbar {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color var(--transition), background var(--transition);
}

.topbar.scrolled {
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 24px;
  line-height: 1;
  transition: transform var(--transition);
}

.brand:hover .brand-mark {
  transform: rotate(-12deg);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  letter-spacing: 0.17em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.13em;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button,
.menu-button {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.icon-button:hover,
.menu-button:hover {
  background: var(--paper-raised);
  border-color: var(--line-strong);
}

.icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.moon-icon,
[data-theme="dark"] .sun-icon {
  display: none;
}

[data-theme="dark"] .moon-icon {
  display: block;
}

.font-button {
  font-family: Georgia, serif;
  font-size: 14px;
}

.menu-button {
  display: none;
  position: relative;
}

.menu-button span:not(.sr-only) {
  position: absolute;
  width: 17px;
  height: 1px;
  background: currentColor;
  transition: transform var(--transition);
}

.menu-button span:first-child {
  transform: translateY(-3px);
}

.menu-button span:nth-child(2) {
  transform: translateY(3px);
}

.menu-open .menu-button span:first-child {
  transform: rotate(45deg);
}

.menu-open .menu-button span:nth-child(2) {
  transform: rotate(-45deg);
}

.sidebar {
  position: fixed;
  z-index: 20;
  top: var(--topbar-height);
  bottom: 0;
  left: 0;
  width: var(--sidebar-width);
  border-right: 1px solid var(--line);
}

.sidebar-inner {
  display: flex;
  height: 100%;
  flex-direction: column;
  padding: 58px 30px 34px 42px;
}

.eyebrow {
  margin: 0 0 26px;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 42px;
  color: var(--ink-soft);
  font-size: 13px;
  transition: color var(--transition), transform var(--transition);
}

.sidebar nav a span {
  color: var(--line-strong);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
}

.sidebar nav a:hover,
.sidebar nav a.active {
  color: var(--ink);
  transform: translateX(4px);
}

.sidebar nav a.active span {
  color: var(--accent);
}

.sidebar-note {
  margin-top: auto;
  color: var(--ink-soft);
  font-family: Georgia, "Songti SC", serif;
  font-size: 12px;
  line-height: 1.75;
}

.note-line {
  display: block;
  width: 34px;
  height: 1px;
  margin-bottom: 18px;
  background: var(--accent);
}

.sidebar-note p {
  margin: 0;
}

main,
footer {
  margin-left: var(--sidebar-width);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  padding: calc(var(--topbar-height) + 72px) clamp(50px, 7vw, 120px) 76px;
  align-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 96px 96px;
  content: "";
  opacity: 0.18;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 36px;
  color: var(--ink-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.hero-kicker span {
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--accent);
}

.hero h1 {
  max-width: 870px;
  margin: 0;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: clamp(54px, 7.4vw, 112px);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 1.04;
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero-intro {
  max-width: 600px;
  margin: 40px 0 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-top: 46px;
}

.primary-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  gap: 24px;
  padding: 0 22px 0 26px;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: transform var(--transition), background var(--transition), color var(--transition);
}

.primary-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  transition: transform var(--transition);
}

.primary-button:hover {
  transform: translateY(-2px);
}

.primary-button:hover svg {
  transform: translateX(3px);
}

.text-link {
  color: var(--ink-soft);
  font-size: 13px;
  border-bottom: 1px solid var(--line-strong);
}

.text-link span {
  color: var(--accent);
}

.hero-metrics {
  position: absolute;
  z-index: 2;
  right: clamp(35px, 5vw, 86px);
  bottom: 72px;
  display: flex;
  gap: clamp(24px, 3vw, 52px);
}

.hero-metrics div {
  display: flex;
  align-items: center;
  gap: 11px;
}

.hero-metrics strong {
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 37px;
  font-weight: 400;
  line-height: 1;
}

.hero-metrics span {
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: 66px;
  left: clamp(50px, 7vw, 120px);
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--ink-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.18em;
  transform: rotate(-90deg) translateX(100%);
  transform-origin: left bottom;
}

.scroll-cue i {
  display: block;
  width: 40px;
  height: 1px;
  overflow: hidden;
  background: var(--line);
}

.scroll-cue i::after {
  display: block;
  width: 50%;
  height: 100%;
  background: var(--accent);
  content: "";
  animation: scroll-line 2s infinite ease-in-out;
}

@keyframes scroll-line {
  0% { transform: translateX(-110%); }
  60%, 100% { transform: translateX(210%); }
}

.hero-orbit {
  position: absolute;
  z-index: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  width: min(44vw, 680px);
  height: min(44vw, 680px);
  top: 12%;
  right: -12%;
}

.orbit-two {
  width: min(28vw, 420px);
  height: min(28vw, 420px);
  top: 27%;
  right: -4%;
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
}

.content-shell {
  max-width: calc(var(--content-width) + 160px);
  margin: 0 auto;
  padding: 0 clamp(48px, 7vw, 100px);
}

.section {
  padding: 140px 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 74px;
}

.section-heading h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: clamp(38px, 4.4vw, 67px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.18;
}

.split-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
}

.heading-note {
  max-width: 315px;
  margin: 0 0 7px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.85;
}

.manifesto {
  position: relative;
  max-width: 920px;
  margin: 0 0 100px;
  padding: 0 0 0 78px;
  border: 0;
}

.quote-mark {
  position: absolute;
  top: -40px;
  left: 0;
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 108px;
  line-height: 1;
  opacity: 0.9;
}

.manifesto p {
  margin: 0;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: clamp(27px, 3.2vw, 46px);
  line-height: 1.55;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.principle-grid article {
  position: relative;
  min-height: 235px;
  padding: 34px 38px 25px 0;
}

.principle-grid article + article {
  padding-left: 38px;
  border-left: 1px solid var(--line);
}

.principle-number {
  position: absolute;
  top: 34px;
  right: 26px;
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 12px;
  font-style: italic;
}

.principle-grid h3 {
  margin: 55px 0 15px;
  font-size: 18px;
  font-weight: 700;
}

.principle-grid p {
  max-width: 270px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.role-list {
  border-top: 1px solid var(--line-strong);
}

.role-row {
  display: grid;
  grid-template-columns: 60px 1.1fr 1.6fr 1fr;
  min-height: 108px;
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid var(--line);
  transition: background var(--transition), padding var(--transition);
}

.role-row:hover {
  padding: 0 14px;
  background: var(--paper-raised);
}

.role-index {
  color: var(--ink-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.role-name {
  display: flex;
  align-items: center;
  gap: 16px;
}

.role-name h3 {
  margin: 0;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 23px;
  font-weight: 600;
}

.role-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.dot-paper { background: #c79556; }
.dot-codex { background: var(--accent); }
.dot-mac { background: #637d98; }
.dot-server { background: #557f5c; }
.dot-print { background: #776987; }

.role-row > p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
}

.role-row > small {
  color: var(--ink-soft);
  font-size: 11px;
}

.loop-layout {
  position: relative;
}

.loop-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 38px;
  width: 1px;
  background: var(--line);
}

.loop-rail-progress {
  display: block;
  width: 100%;
  height: 0;
  background: var(--accent);
}

.loop-steps {
  display: flex;
  flex-direction: column;
}

.loop-step {
  position: relative;
  display: grid;
  grid-template-columns: 78px 1fr 150px;
  min-height: 224px;
  gap: 44px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.loop-step:last-child {
  border-bottom: 1px solid var(--line);
}

.step-number {
  position: relative;
  z-index: 2;
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 18px;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.loop-step.is-visible .step-number {
  color: var(--paper);
  background: var(--accent);
  border-color: var(--accent);
}

.step-label {
  margin: 4px 0 8px;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.step-body h3 {
  margin: 0 0 14px;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 28px;
  font-weight: 600;
}

.step-body > p:not(.step-label) {
  max-width: 625px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.step-output {
  display: inline-block;
  margin-top: 18px;
  padding: 6px 12px;
  color: var(--moss);
  background: color-mix(in srgb, var(--sage) 20%, transparent);
  border-left: 2px solid var(--sage);
  font-size: 11px;
}

.step-time {
  padding-top: 8px;
  color: var(--ink-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-align: right;
}

.rhythm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.rhythm-card {
  min-height: 540px;
  padding: 44px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.daily-card {
  background: var(--paper-raised);
}

.weekly-card {
  color: #eff2ec;
  background: #203c30;
  border-color: transparent;
}

.rhythm-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.rhythm-card-top > span {
  padding-top: 10px;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.rhythm-card-top strong {
  display: flex;
  align-items: flex-end;
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 68px;
  font-weight: 400;
  line-height: 0.8;
}

.rhythm-card-top small {
  margin-left: 6px;
  font-family: "PingFang SC", sans-serif;
  font-size: 10px;
  font-weight: 400;
}

.rhythm-card h3 {
  margin: 70px 0 36px;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 33px;
  font-weight: 500;
}

.rhythm-card ol {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rhythm-card li {
  display: grid;
  grid-template-columns: 62px 1fr;
  min-height: 82px;
  align-items: start;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.weekly-card li {
  border-color: rgba(255, 255, 255, 0.17);
}

.rhythm-card li span {
  padding-top: 3px;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
}

.rhythm-card li p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.75;
}

.weekly-card li p {
  color: #bbc9c0;
}

.wip-limit {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border: 1px solid var(--line);
}

.wip-limit > span {
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.wip-limit strong {
  padding: 0 15px;
  font-family: Georgia, serif;
  font-size: 32px;
  font-weight: 400;
  border-right: 1px solid var(--line);
}

.wip-limit p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.5;
}

.state-flow {
  display: grid;
  grid-template-columns: repeat(7, auto);
  align-items: center;
  justify-content: space-between;
  padding: 58px 36px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
}

.state-item {
  display: grid;
  justify-items: center;
  min-width: 100px;
}

.state-mark {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-bottom: 15px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
}

.state-collect { background: transparent; }
.state-think { background: #d7a728; border-color: #d7a728; }
.state-do { background: var(--accent); border-color: var(--accent); }
.state-done { background: #427257; border-color: #427257; }
.state-wait { background: #73859d; border-color: #73859d; }
.state-drop { background: #847b75; border-color: #847b75; }

.state-item strong {
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 22px;
}

.state-item p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.state-arrow {
  color: var(--line-strong);
  font-family: Georgia, serif;
}

.state-asides {
  display: flex;
  justify-content: center;
  gap: 44px;
  padding: 22px 20px 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.state-asides .state-mark {
  width: 8px;
  height: 8px;
  margin: 0 8px 0 0;
  vertical-align: 1px;
}

.prompt-list {
  border-top: 1px solid var(--line-strong);
}

.prompt-card {
  border-bottom: 1px solid var(--line);
}

.prompt-card summary {
  display: grid;
  grid-template-columns: 60px 1fr 180px 30px;
  min-height: 102px;
  align-items: center;
  gap: 28px;
  cursor: pointer;
  list-style: none;
}

.prompt-card summary::-webkit-details-marker {
  display: none;
}

.prompt-index {
  color: var(--ink-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.prompt-title {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.prompt-title small {
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.prompt-title strong {
  margin-top: 5px;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 23px;
  font-weight: 600;
}

.prompt-purpose {
  color: var(--ink-soft);
  font-size: 12px;
}

.prompt-toggle {
  position: relative;
  display: block;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.prompt-toggle::before,
.prompt-toggle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1px;
  background: var(--ink);
  content: "";
  transform: translate(-50%, -50%);
  transition: transform var(--transition);
}

.prompt-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.prompt-card[open] .prompt-toggle::after {
  transform: translate(-50%, -50%) rotate(0);
}

.prompt-content {
  position: relative;
  padding: 0 0 34px 88px;
}

.prompt-content pre {
  margin: 0;
  padding: 38px 190px 38px 38px;
  overflow-x: auto;
  color: var(--code-ink);
  background: var(--code-bg);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.9;
  white-space: pre-wrap;
}

.copy-button {
  position: absolute;
  z-index: 2;
  top: 22px;
  right: 18px;
  padding: 8px 13px;
  color: var(--code-ink);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.24);
  cursor: pointer;
  font-size: 10px;
  transition: background var(--transition), border-color var(--transition);
}

.copy-button:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

.start-section {
  border-bottom: 0;
}

.start-panel {
  position: relative;
  padding: clamp(50px, 8vw, 100px);
  overflow: hidden;
  color: #f1f3ef;
  background: #1c392d;
}

.start-panel::after {
  position: absolute;
  right: -160px;
  bottom: -260px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 90px rgba(255, 255, 255, 0.025), 0 0 0 180px rgba(255, 255, 255, 0.018);
  content: "";
  pointer-events: none;
}

.start-panel h2 {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: clamp(42px, 5.5vw, 74px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.18;
}

.start-intro {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 32px 0 60px;
  color: #b9c6bd;
  font-size: 14px;
}

.start-steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 54px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.start-steps > div {
  min-height: 170px;
  padding: 28px 28px 20px 0;
}

.start-steps > div + div {
  padding-left: 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.start-steps span {
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
}

.start-steps p {
  margin: 35px 0 0;
  color: #b9c6bd;
  font-size: 12px;
  line-height: 1.8;
}

.start-steps strong {
  color: #f1f3ef;
  font-size: 14px;
}

.light-button {
  position: relative;
  z-index: 1;
  color: #1c392d;
  background: #f1f3ef;
  border-color: #f1f3ef;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 160px;
  align-items: center;
  padding: 0 clamp(48px, 7vw, 100px);
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: Georgia, serif;
  font-size: 13px;
  letter-spacing: 0.13em;
}

.footer-brand span {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  border-radius: 50%;
  font-size: 18px;
  letter-spacing: 0;
}

footer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.footer-meta {
  text-align: right;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 30px;
  bottom: 30px;
  padding: 12px 18px;
  color: var(--paper);
  background: var(--ink);
  box-shadow: var(--shadow);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  :root {
    --sidebar-width: 190px;
  }

  .sidebar-inner {
    padding-left: 30px;
  }

  .hero-metrics {
    display: none;
  }

  .role-row {
    grid-template-columns: 45px 1fr 1.6fr;
  }

  .role-row > small {
    display: none;
  }

  .state-flow {
    padding-inline: 20px;
  }

  .state-item {
    min-width: 78px;
  }
}

@media (max-width: 820px) {
  :root {
    --topbar-height: 70px;
    --sidebar-width: 0px;
  }

  .topbar {
    padding: 0 20px;
  }

  .brand-copy small {
    display: none;
  }

  .menu-button {
    display: grid;
  }

  .sidebar {
    top: var(--topbar-height);
    right: 0;
    width: 100%;
    background: var(--paper);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity var(--transition), transform var(--transition);
  }

  .menu-open .sidebar {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .sidebar-inner {
    padding: 38px 30px;
  }

  .sidebar nav a {
    min-height: 52px;
    font-family: "Songti SC", "STSong", Georgia, serif;
    font-size: 20px;
  }

  main,
  footer {
    margin-left: 0;
  }

  .hero {
    min-height: 760px;
    padding: 130px 25px 80px;
  }

  .hero h1 {
    font-size: clamp(50px, 14vw, 80px);
  }

  .hero-intro {
    font-size: 15px;
  }

  .scroll-cue {
    display: none;
  }

  .orbit-one {
    width: 560px;
    height: 560px;
    top: 30%;
    right: -400px;
  }

  .orbit-two {
    width: 310px;
    height: 310px;
    top: 42%;
    right: -210px;
  }

  .content-shell {
    padding: 0 25px;
  }

  .section {
    padding: 95px 0;
  }

  .section-heading {
    margin-bottom: 50px;
  }

  .split-heading {
    display: block;
  }

  .heading-note {
    margin-top: 28px;
  }

  .manifesto {
    margin-bottom: 72px;
    padding-left: 45px;
  }

  .quote-mark {
    font-size: 74px;
  }

  .principle-grid {
    grid-template-columns: 1fr;
  }

  .principle-grid article {
    min-height: auto;
    padding: 28px 20px 28px 0;
    border-bottom: 1px solid var(--line);
  }

  .principle-grid article + article {
    padding-left: 0;
    border-left: 0;
  }

  .principle-grid h3 {
    margin-top: 25px;
  }

  .role-row {
    grid-template-columns: 35px 1fr;
    gap: 18px;
    padding: 23px 0;
  }

  .role-row:hover {
    padding: 23px 8px;
  }

  .role-row > p {
    grid-column: 2;
  }

  .loop-step {
    grid-template-columns: 58px 1fr;
    gap: 25px;
    padding: 32px 0;
  }

  .loop-rail {
    left: 29px;
  }

  .step-number {
    width: 58px;
    height: 58px;
    font-size: 15px;
  }

  .step-time {
    display: none;
  }

  .rhythm-grid {
    grid-template-columns: 1fr;
  }

  .rhythm-card {
    min-height: auto;
    padding: 32px 26px;
  }

  .wip-limit {
    display: inline-grid;
    margin-top: 32px;
  }

  .state-flow {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 30px;
  }

  .state-item {
    display: grid;
    grid-template-columns: 18px 64px 1fr;
    width: 100%;
    align-items: center;
    justify-items: start;
    gap: 7px;
  }

  .state-mark {
    margin: 0;
  }

  .state-item p {
    margin: 0;
  }

  .state-arrow {
    transform: rotate(90deg);
  }

  .state-asides {
    flex-direction: column;
    gap: 10px;
  }

  .prompt-card summary {
    grid-template-columns: 35px 1fr 30px;
    gap: 15px;
  }

  .prompt-purpose {
    display: none;
  }

  .prompt-content {
    padding-left: 0;
  }

  .prompt-content pre {
    padding: 70px 22px 30px;
    font-size: 11px;
  }

  .start-panel {
    margin-inline: -25px;
    padding: 65px 25px;
  }

  .start-steps {
    grid-template-columns: 1fr;
  }

  .start-steps > div {
    min-height: 125px;
  }

  .start-steps > div + div {
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-left: 0;
  }

  .start-steps p {
    margin-top: 20px;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 38px 25px;
    text-align: center;
  }

  .footer-brand {
    justify-self: center;
  }

  .footer-meta {
    text-align: center;
  }
}

@media (max-width: 460px) {
  .font-button {
    display: none;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 23px;
  }

  .hero h1 {
    letter-spacing: -0.08em;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .topbar,
  .sidebar,
  .reading-progress,
  .hero-actions,
  .scroll-cue,
  .copy-button,
  .toast {
    display: none !important;
  }

  main,
  footer {
    margin-left: 0;
  }

  .hero {
    min-height: auto;
    padding: 40px 0 80px;
  }

  .content-shell {
    max-width: none;
    padding: 0;
  }

  .section {
    padding: 70px 0;
    break-inside: avoid;
  }

  .prompt-card {
    break-inside: avoid;
  }
}
