@font-face {
  font-family: "IBM Plex Mono Local";
  src: url("assets/ibm-plex-mono-var.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f3f2ec;
  --paper-card: rgba(255, 255, 251, .74);
  --ink: #171914;
  --muted: #6d7268;
  --line: rgba(38, 44, 33, .18);
  --lime: #e4f5c5;
  --green: #657f41;
  --dark: #1d211a;
  --mono: "IBM Plex Mono Local", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 76px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(51, 57, 45, .065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 57, 45, .065) 1px, transparent 1px),
    linear-gradient(90deg, transparent 0 28%, rgba(228, 245, 197, .22) 28% 40%, transparent 40% 68%, rgba(228, 245, 197, .18) 68% 78%, transparent 78%);
  background-size: 88px 88px, 88px 88px, 100% 100%;
}

button { font: inherit; }
a { color: inherit; }
pre, code { font-family: var(--mono); }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-250%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  min-height: 76px;
  padding: 12px 4.2vw;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 245, 239, .78);
  backdrop-filter: blur(22px) saturate(1.08);
}
.brand { width: 142px; line-height: 0; }
.brand img, .footer-brand img { display: block; width: 100%; height: auto; }
.site-header nav { display: flex; gap: 28px; font-family: var(--mono); font-size: 9px; }
.site-header nav a { text-underline-offset: 5px; }
.header-mark { justify-self: end; display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 9px; }
.header-mark span { color: var(--muted); }
.header-mark b { padding: 6px 8px; background: var(--lime); font-weight: 500; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(390px, .85fr);
  min-height: calc(100svh - 76px);
  border-bottom: 1px solid var(--line);
  background: #f3f2ed;
}
.wave-canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, rgba(247,246,240,.98) 0%, rgba(247,246,240,.86) 40%, rgba(247,246,240,.24) 70%, transparent 88%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 4vw 8vh 4.2vw;
}
.eyebrow, .section-index, .install-main > span, .copy-head, .four-steps article > span, .workflow-grid article > span, .inspiration-grid span, .skill-list > a > span, .course-branches > div:first-child > span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow span { display: inline-block; margin-right: 10px; padding: 5px 8px; background: var(--lime); }
.hero h1 { max-width: 920px; margin: 5vh 0 3.5vh; font-family: var(--serif); font-size: clamp(62px, 6.5vw, 108px); line-height: .95; letter-spacing: -.07em; }
.hero h1 em { font-style: normal; box-shadow: inset 0 -.13em 0 var(--lime); }
.hero-lead { max-width: 680px; margin: 0 0 32px; font-size: clamp(15px, 1.25vw, 19px); line-height: 1.8; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-width: 210px;
  padding: 15px 17px;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  text-decoration: none;
  transition: color .18s ease, background .18s ease;
}
.button-dark { color: #fff; background: var(--ink); }
.button-dark:hover, .button-dark:focus-visible { color: var(--ink); background: var(--lime); }
.button-outline { background: transparent; }
.button-outline:hover, .button-outline:focus-visible { background: var(--lime); }

.hero-map {
  position: relative;
  z-index: 2;
  align-self: center;
  margin: 4vw 4.2vw 4vw 0;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255,255,251,.58);
  box-shadow: 0 30px 90px rgba(48,55,41,.1);
  backdrop-filter: blur(24px);
}
.map-head { display: flex; justify-content: space-between; color: var(--muted); font-family: var(--mono); font-size: 9px; }
.map-head strong { color: var(--green); }
.hero-map ol { margin: 34px 0 24px; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.hero-map li { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.hero-map li > b, .hero-map li > i { color: var(--muted); font-family: var(--mono); font-size: 9px; font-style: normal; font-weight: 500; }
.hero-map li strong { display: block; margin-bottom: 6px; font-family: var(--serif); font-size: 23px; font-weight: 500; }
.hero-map li small { color: var(--muted); }
.hero-map p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }

.paths, .install, .first-project, .workflow, .inspiration, .skills, .course-branches { padding: 11vh 4.2vw; border-bottom: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 8vw; margin-bottom: 58px; }
.section-index { margin-bottom: 5vh; color: var(--muted); }
.section-heading h2, .course-branches h2 { margin: 0; font-family: var(--serif); font-size: clamp(48px, 6vw, 88px); line-height: 1; letter-spacing: -.065em; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.section-heading code { padding: 2px 5px; background: rgba(255,255,251,.72); font-size: 11px; }

.route-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-bottom: 0; }
.route-tab { display: grid; min-height: 166px; padding: 20px; border: 0; border-right: 1px solid var(--line); color: var(--ink); background: rgba(255,255,251,.5); text-align: left; cursor: pointer; }
.route-tab:last-child { border-right: 0; }
.route-tab:hover, .route-tab.is-active { background: var(--lime); }
.route-tab span { color: var(--green); font-family: var(--mono); font-size: 9px; }
.route-tab strong { align-self: end; font-family: var(--serif); font-size: 30px; font-weight: 500; }
.route-tab small { margin-top: 8px; color: var(--muted); }
.route-panel { display: grid; grid-template-columns: .8fr 1.2fr; border: 1px solid var(--line); background: var(--paper-card); }
.route-summary { display: flex; flex-direction: column; align-items: flex-start; padding: 30px; border-right: 1px solid var(--line); background: var(--dark); color: #f3f4ed; }
.route-summary > span { color: #b9ca9e; font-family: var(--mono); font-size: 9px; }
.route-summary h3 { margin: 70px 0 32px; font-family: var(--serif); font-size: clamp(28px, 3vw, 43px); font-weight: 500; line-height: 1.16; }
.route-summary a { margin-top: auto; color: #dff2bc; font-family: var(--mono); font-size: 9px; }
.route-steps { margin: 0; padding: 0; list-style: none; }
.route-steps li { display: grid; grid-template-columns: 52px 1fr; align-items: center; min-height: 74px; padding: 0 24px; border-bottom: 1px solid var(--line); }
.route-steps li:last-child { border-bottom: 0; }
.route-steps b { color: var(--green); font-family: var(--mono); font-size: 10px; }
.route-steps span { font-size: 15px; }

.install { background: rgba(228,245,197,.28); }
.install-card { display: grid; grid-template-columns: .9fr 1.1fr; border: 1px solid var(--line); background: var(--paper-card); }
.install-main { display: flex; flex-direction: column; padding: clamp(26px, 3.5vw, 54px); border-right: 1px solid var(--line); }
.install-main > span { color: var(--green); }
.install-main h3 { margin: 8vh 0 28px; font-family: var(--serif); font-size: clamp(34px, 3.7vw, 56px); font-weight: 500; line-height: 1.08; letter-spacing: -.045em; }
.install-main ul { margin: 0 0 44px; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.install-main li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.copy-panel { min-width: 0; color: #f4f5ed; background: var(--dark); }
.copy-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,.15); color: #b9ca9e; }
.copy-button { padding: 8px 11px; border: 1px solid currentColor; color: inherit; background: transparent; font-family: var(--mono); font-size: 9px; cursor: pointer; }
.copy-button:hover, .copy-button:focus-visible { color: var(--ink); background: var(--lime); }
.copy-panel pre, .project-prompt pre { min-height: 320px; margin: 0; padding: 26px; overflow: auto; white-space: pre-wrap; word-break: break-word; font-family: var(--sans); font-size: 12px; line-height: 1.85; }
.copy-panel > p { margin: 0; padding: 18px 26px 24px; border-top: 1px solid rgba(255,255,255,.15); color: #c8ccc1; font-size: 11px; line-height: 1.7; }
.copy-panel code { color: var(--lime); }
.safety-strip { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-top: 0; }
.safety-strip article { min-height: 150px; padding: 20px; border-right: 1px solid var(--line); background: rgba(255,255,251,.44); }
.safety-strip article:last-child { border-right: 0; }
.safety-strip span { color: var(--green); font-family: var(--mono); font-size: 9px; }
.safety-strip b { display: block; margin: 24px 0 8px; font-family: var(--serif); font-size: 23px; font-weight: 500; }
.safety-strip p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }

.four-steps { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.four-steps article { display: flex; flex-direction: column; min-height: 330px; padding: 22px; border-right: 1px solid var(--line); background: rgba(255,255,251,.48); }
.four-steps article:last-child { border-right: 0; background: rgba(228,245,197,.56); }
.four-steps article > span { color: var(--green); }
.four-steps h3 { margin: auto 0 18px; font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1.12; }
.four-steps p { margin: 0 0 22px; color: var(--muted); font-size: 12px; line-height: 1.72; }
.four-steps b { padding-top: 16px; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.55; }
.project-prompt { margin-top: 24px; border: 1px solid var(--line); background: rgba(255,255,251,.72); }
.project-prompt .copy-head { color: var(--green); border-color: var(--line); }
.project-prompt pre { min-height: auto; }

.workflow { background: var(--dark); color: #f1f2eb; }
.workflow .section-heading > p, .workflow .section-index { color: #adb3a5; }
.workflow-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid rgba(255,255,255,.17); }
.workflow-grid article { min-height: 310px; padding: 22px; border-right: 1px solid rgba(255,255,255,.17); }
.workflow-grid article:last-child { border-right: 0; }
.workflow-grid article > span { color: #b9d38f; }
.workflow-grid h3 { margin: 9vh 0 18px; font-family: var(--serif); font-size: 29px; font-weight: 500; line-height: 1.12; }
.workflow-grid p { margin: 0; color: #bfc4b8; font-size: 12px; line-height: 1.75; }

.inspiration-grid { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); }
.inspiration-grid a { display: flex; flex-direction: column; min-height: 270px; padding: 20px; border-right: 1px solid var(--line); background: rgba(255,255,251,.48); text-decoration: none; transition: background .18s ease, transform .18s ease; }
.inspiration-grid a:last-child { border-right: 0; }
.inspiration-grid a:hover, .inspiration-grid a:focus-visible { background: var(--lime); transform: translateY(-4px); }
.inspiration-grid span { color: var(--green); }
.inspiration-grid h3 { margin: auto 0 14px; font-family: var(--serif); font-size: 30px; font-weight: 500; }
.inspiration-grid p { margin: 0 0 24px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.inspiration-grid b { font-family: var(--mono); font-size: 9px; font-weight: 500; }
.reference-flow { display: grid; grid-template-columns: .82fr 1.18fr; margin-top: 24px; border: 1px solid var(--line); }
.flow-visual { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 12px; padding: 32px; border-right: 1px solid var(--line); background: var(--lime); }
.flow-visual i { padding: 12px; border: 1px solid rgba(41,51,31,.18); background: rgba(255,255,251,.48); font-family: var(--mono); font-size: 9px; font-style: normal; }
.flow-visual b { align-self: center; color: var(--green); font-family: var(--serif); }
.copy-panel.dark pre { min-height: 380px; }

.skills { background: rgba(255,255,251,.32); }
.skill-list { border-top: 1px solid var(--line); }
.skill-list > a { display: grid; grid-template-columns: 140px 1fr auto; align-items: center; gap: 28px; min-height: 126px; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.skill-list > a:hover div, .skill-list > a:focus-visible div { transform: translateX(8px); }
.skill-list > a > span { color: var(--green); }
.skill-list > a > div { transition: transform .18s ease; }
.skill-list h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 31px; font-weight: 500; }
.skill-list p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.skill-list > a > b { font-family: var(--mono); font-size: 9px; font-weight: 500; }

.course-branches { display: grid; grid-template-columns: .7fr 1.3fr; align-items: end; gap: 8vw; background: rgba(228,245,197,.42); }
.course-branches > div:first-child > span { color: var(--green); }
.course-branches h2 { margin-top: 6vh; }
.branch-cards { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.branch-cards article, .branch-cards a { display: flex; flex-direction: column; min-height: 300px; padding: 24px; text-decoration: none; }
.branch-cards article { border-right: 1px solid var(--line); background: var(--dark); color: #f3f4ed; }
.branch-cards a { background: rgba(255,255,251,.58); }
.branch-cards span { color: var(--green); font-family: var(--mono); font-size: 10px; }
.branch-cards h3 { margin: auto 0 14px; font-family: var(--serif); font-size: 32px; font-weight: 500; }
.branch-cards p { margin: 0 0 24px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.branch-cards article p { color: #bdc2b6; }
.branch-cards b { font-family: var(--mono); font-size: 9px; font-weight: 500; }

footer { display: grid; grid-template-columns: .6fr 1fr 1fr; align-items: end; gap: 6vw; padding: 7vh 4.2vw; background: rgba(247,246,241,.82); }
.footer-brand { width: 180px; }
footer p { margin: 0; font-family: var(--serif); font-size: 24px; line-height: 1.35; }
footer > div { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; font-family: var(--mono); font-size: 9px; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 80; padding: 12px 17px; color: var(--ink); background: var(--lime); box-shadow: 0 12px 40px rgba(40,45,34,.13); font-family: var(--mono); font-size: 10px; opacity: 0; transform: translateY(12px); transition: opacity .18s ease, transform .18s ease; pointer-events: none; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
:focus-visible { outline: 3px solid #6f8c47; outline-offset: 3px; }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { min-height: 74svh; }
  .hero-map { margin: 0 4.2vw 7vh; }
  .four-steps, .workflow-grid { grid-template-columns: 1fr 1fr; }
  .four-steps article:nth-child(2), .workflow-grid article:nth-child(2) { border-right: 0; }
  .four-steps article:nth-child(-n+2), .workflow-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .inspiration-grid { grid-template-columns: repeat(2, 1fr); border-bottom: 0; }
  .inspiration-grid a { border-bottom: 1px solid var(--line); }
  .inspiration-grid a:nth-child(2n) { border-right: 0; }
  .inspiration-grid a:last-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  section[id] { scroll-margin-top: 64px; }
  .site-header { min-height: 64px; padding: 10px 18px; }
  .brand { width: 128px; }
  .header-mark span { display: none; }
  .hero-copy { min-height: 72svh; padding: 9vh 20px 6vh; }
  .hero h1 { margin: 5vh 0 3vh; font-size: clamp(51px, 15vw, 72px); }
  .hero-lead { font-size: 14px; }
  .hero-map { margin: 0 18px 38px; padding: 18px; }
  .hero-map li strong { font-size: 20px; }
  .paths, .install, .first-project, .workflow, .inspiration, .skills, .course-branches { padding: 76px 18px; }
  .section-heading { grid-template-columns: 1fr; gap: 28px; margin-bottom: 36px; }
  .section-index { margin-bottom: 34px; }
  .section-heading h2, .course-branches h2 { font-size: clamp(44px, 13.2vw, 66px); }
  .route-tabs { grid-template-columns: 1fr; border-bottom: 1px solid var(--line); }
  .route-tab { min-height: 120px; border-right: 0; border-bottom: 1px solid var(--line); }
  .route-tab:last-child { border-bottom: 0; }
  .route-panel, .install-card, .reference-flow, .course-branches { grid-template-columns: 1fr; }
  .route-summary, .install-main, .flow-visual { border-right: 0; border-bottom: 1px solid var(--line); }
  .route-summary h3 { margin: 46px 0 30px; }
  .route-summary a { margin-top: 0; }
  .install-main h3 { margin-top: 48px; }
  .button-row { display: grid; }
  .button { width: 100%; }
  .copy-panel pre, .project-prompt pre { padding: 20px; font-size: 11px; }
  .safety-strip, .four-steps, .workflow-grid, .inspiration-grid { grid-template-columns: 1fr; }
  .safety-strip article, .four-steps article, .workflow-grid article, .inspiration-grid a { border-right: 0; border-bottom: 1px solid var(--line); }
  .safety-strip article:last-child, .four-steps article:last-child, .workflow-grid article:last-child, .inspiration-grid a:last-child { border-bottom: 0; }
  .four-steps article, .workflow-grid article { min-height: 270px; }
  .inspiration-grid { border-bottom: 1px solid var(--line); }
  .inspiration-grid a:last-child { grid-column: auto; }
  .flow-visual { justify-content: flex-start; }
  .skill-list > a { grid-template-columns: 1fr auto; gap: 12px; }
  .skill-list > a > span { grid-column: 1 / -1; }
  .skill-list h3 { font-size: 27px; }
  .course-branches { align-items: stretch; }
  .branch-cards { grid-template-columns: 1fr; }
  .branch-cards article { border-right: 0; border-bottom: 1px solid var(--line); }
  footer { grid-template-columns: 1fr; gap: 34px; padding: 54px 18px; }
  footer > div { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
