:root {
  color-scheme: light;
  --ink: #183638;
  --muted: #586b68;
  --paper: #f6f7f1;
  --line: #d8e0d5;
  --teal: #126256;
  --lime: #ddf5a0;
  --error: #9b2c2c;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, select, summary, input[type="radio"], input[type="checkbox"] { cursor: pointer; }
button { transition: background .15s, color .15s; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: #043e36; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, pre:focus-visible {
  outline: 3px solid #b06d11; outline-offset: 4px;
}
button:disabled, select:disabled { opacity: .5; cursor: not-allowed; }
[hidden] { display: none !important; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 5; background: white; padding: 1rem; }
.skip-link:focus { top: 1rem; }
.topbar { max-width: 1440px; margin: auto; min-height: 94px; padding: 20px 5%; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; font-size: 22px; font-weight: 750; color: var(--ink); text-decoration: none; letter-spacing: -.8px; }
.brand-mark { background: var(--ink); color: var(--lime); border-radius: 11px; padding: 6px 10px 9px; font-family: Georgia, serif; font-size: 25px; }
.brand-note { font-size: 12px; font-weight: 400; color: var(--muted); letter-spacing: 0; border-left: 1px solid var(--line); margin-left: 10px; padding-left: 20px; }
.repo-link { font-size: 13px; font-weight: 600; text-decoration: none; }
main { max-width: 1320px; padding: 0 28px; margin: auto; }
.hero { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 75px; padding: 62px 0 56px; }
.eyebrow { font-size: 11px; font-weight: 750; letter-spacing: 1.9px; display: flex; align-items: center; gap: 9px; margin: 0 0 17px; }
.dot { width: 7px; height: 7px; background: var(--teal); border-radius: 50%; }
h1 { font-size: clamp(42px, 4.7vw, 65px); font-weight: 650; line-height: 1.08; letter-spacing: -2.7px; margin: 0 0 22px; }
h1 em { color: var(--teal); font-family: Georgia, serif; font-weight: 400; }
.hero-description { color: var(--muted); font-size: 16px; max-width: 480px; line-height: 1.7; margin: 0 0 25px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; color: var(--muted); }
.hero-tags span::before { content: "+"; color: var(--teal); font-weight: 800; margin-right: 6px; }
.target-card { background: #e9eee1; padding: 26px 30px; border: 1px solid #d5dec9; border-radius: 16px; box-shadow: 9px 9px 0 #eff1e9; max-width: 430px; justify-self: end; width: 100%; }
.target-heading { display: flex; align-items: center; gap: 12px; font-size: 10px; letter-spacing: 1px; font-weight: 750; margin-bottom: 22px; }
.chip-icon { font-size: 25px; }
.badge { border: 1px solid #becdb4; border-radius: 4px; padding: 3px 7px; font-size: 10px; white-space: nowrap; font-weight: 500; }
.target-heading .badge { margin-left: auto; }
.target-card label { font-size: 12px; }
.target-card select { background: #f8faf3; margin-top: 6px; }
.machine-line { display: flex; justify-content: space-between; gap: 5px; font: 10px ui-monospace, monospace; margin: 13px 0 20px; }
.machine-line code { color: #145b47; font-size: 12px; }
.target-divider { border-top: 1px dashed #bbc9b3; }
.target-card p { font-size: 13px; line-height: 1.6; }
.target-card .small { font-size: 11px; margin-bottom: 0; }
.muted { color: var(--muted); }
.small, small { font-size: 12px; line-height: 1.6; }
.workspace-nav { border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 15px; }
[role="tablist"] { display: flex; gap: 20px; }
[role="tab"] { background: transparent; border: 0; border-bottom: 3px solid transparent; padding: 18px 4px; color: var(--muted); font-size: 13px; font-weight: 600; }
[role="tab"] span { font: 11px ui-monospace, monospace; margin-right: 6px; opacity: .8; }
[role="tab"][aria-selected="true"] { border-color: var(--teal); color: var(--teal); }
.offline-note { color: var(--muted); font: 10px ui-monospace, monospace; text-transform: uppercase; }
.offline-note::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #699067; margin-right: 6px; vertical-align: middle; }
.section-intro { display: flex; justify-content: space-between; align-items: center; gap: 25px; margin: 36px 0 25px; }
.section-intro .eyebrow { font-size: 9px; margin-bottom: 9px; color: var(--teal); }
h2 { font-size: 27px; font-weight: 620; letter-spacing: -.8px; margin: 0; }
.section-intro > p { font-size: 12px; line-height: 1.7; color: var(--muted); }
.workbench { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; gap: 24px; }
.workbench > * { min-width: 0; }
.form-card, .output-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.form-card { padding: 25px; }
.card-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 25px; }
.card-heading h3 { font-size: 14px; font-weight: 650; margin: 0; }
.card-heading .badge, .card-heading .text-button { margin-left: auto; }
.step-number { display: grid; place-items: center; width: 24px; height: 24px; font-size: 11px; font-weight: 700; border: 1px solid var(--line); border-radius: 50%; flex-shrink: 0; }
.text-button { border: 0; background: none; font-size: 11px; padding: 5px; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
legend, label { font-size: 12px; font-weight: 600; }
legend { margin-bottom: 10px; }
.template-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.template-options label { display: flex; gap: 6px; border: 1px solid var(--line); border-radius: 7px; padding: 12px 8px; cursor: pointer; }
.template-options label:has(:checked) { border-color: var(--teal); background: #edf4e8; }
.template-options input { width: 13px; height: 13px; margin: 2px 0 0; accent-color: var(--teal); flex-shrink: 0; }
.template-options strong { font-size: 12px; font-weight: 650; display: block; }
.template-options small { font-size: 10px; color: var(--muted); font-weight: 400; white-space: nowrap; }
.field { margin: 0 0 17px; }
.field label { display: block; margin-bottom: 6px; }
input:not([type="radio"]):not([type="checkbox"]), textarea, select { width: 100%; border: 1px solid #c8d2c6; border-radius: 5px; background: #fcfdf9; color: var(--ink); padding: 10px 11px; font-size: 13px; min-height: 41px; }
textarea { resize: vertical; line-height: 1.6; }
input::placeholder { color: #697971; opacity: 1; }
.field small { display: block; color: var(--muted); font-size: 10px; margin-top: 5px; }
.field .field-error { color: var(--error); }
[aria-invalid="true"] { border-color: var(--error) !important; }
.two-columns { display: grid; grid-template-columns: 1.8fr 1fr; gap: 14px; }
.optional { color: var(--muted); font-size: 10px; font-weight: 400; margin-left: 5px; }
.primary-button { background: var(--teal); color: #fff; border: 1px solid var(--teal); border-radius: 6px; padding: 11px 16px; font-size: 12px; font-weight: 600; }
.primary-button:hover:not(:disabled) { background: #0a453d; }
.form-card > .primary-button { width: 100%; display: flex; justify-content: space-between; }
.validation-status { font-size: 12px; color: var(--error); }
.output-card .card-heading { padding: 22px 22px 0; margin-bottom: 17px; }
.file-picker-label { margin: 0 22px 6px; display: block; font-size: 11px; }
#file-picker { margin: 0 22px; width: calc(100% - 44px); font: 11px ui-monospace, monospace; }
#path-note { margin: 10px 22px 19px; color: var(--muted); font-size: 10px; }
.code-toolbar { background: #19393a; color: #bfd2c8; padding: 9px 17px; display: flex; align-items: center; gap: 7px; font: 9px ui-monospace, monospace; letter-spacing: .7px; }
.code-toolbar span { margin-right: auto; }
.code-toolbar button, .guide-code button { font-size: 10px; color: #e0eddc; background: #284b48; border: 1px solid #48635b; border-radius: 4px; padding: 5px 8px; }
pre { margin: 0; overflow: auto; font: 11px/1.95 "Cascadia Code", "SFMono-Regular", Consolas, monospace; tab-size: 4; }
.recipe-preview { background: #102a2b; color: #dce7de; min-height: 415px; max-height: 630px; padding: 22px; }
.token-comment { color: #8caea3; }
.token-variable { color: #e7c985; }
.token-string { color: #c4e7a8; }
.token-task { color: #80d4d3; }
.download-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px; background: #f3f6ed; border-top: 1px solid var(--line); }
.download-bar strong { font-size: 12px; display: block; margin-bottom: 4px; }
.download-bar small { font-size: 10px; display: block; color: var(--muted); }
.download-bar button { white-space: nowrap; }
.notice { border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; background: #eef2e7; font-size: 12px; line-height: 1.8; }
.notice strong { display: inline; }
.notice.warning { background: #f5f0df; border-color: #e4d8b1; color: #67511b; }
.output-column > .notice { margin: 17px 0; }
code:not(pre code) { font: .92em ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
.explanation { font-size: 12px; line-height: 1.8; padding: 13px 2px; border-bottom: 1px solid var(--line); }
.explanation summary { font-weight: 650; }
.next-link { border: 0; padding: 22px 0; background: none; color: var(--teal); font-size: 13px; font-weight: 650; text-align: left; }
.next-link span { margin-left: 10px; }
.guide-layout { display: grid; grid-template-columns: 235px minmax(0, 1fr); gap: 45px; margin-top: 35px; align-items: start; }
.guide-layout > * { min-width: 0; }
.guide-sidebar { position: sticky; top: 20px; padding: 8px 0; }
.guide-sidebar ol { padding: 0 0 0 23px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.guide-sidebar li { margin: 0 0 14px; padding-left: 5px; }
.guide-sidebar a { color: var(--muted); text-decoration: none; }
.guide-sidebar a:hover { color: var(--teal); text-decoration: underline; }
.guide-sidebar p:not(.eyebrow) { font-size: 11px; margin-top: 25px; }
.guide-sidebar small { font-size: 10px; color: var(--muted); }
progress { width: 100%; height: 7px; accent-color: var(--teal); display: block; margin: 12px 0; }
.guide-step { border: 1px solid var(--line); border-radius: 10px; background: white; padding: 25px; margin-bottom: 24px; scroll-margin-top: 24px; }
.guide-step h3 { margin: 0; font-size: 20px; letter-spacing: -.4px; }
.guide-step header { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.guide-step p, .guide-step dd, .guide-step dt { font-size: 13px; line-height: 1.9; }
.guide-step p, .guide-step dd { color: #425a57; }
.guide-code { background: #102a2b; color: #dce7de; border-radius: 6px; margin: 20px 0; overflow: hidden; }
.guide-code .code-toolbar { padding: 8px 14px; }
.guide-code pre { padding: 17px; }
.checkpoint { display: flex; gap: 9px; align-items: flex-start; padding-top: 5px; line-height: 1.7; font-size: 12px; color: var(--teal); }
.checkpoint input { margin: 4px 0 0; flex-shrink: 0; accent-color: var(--teal); }
.troubleshooting dt { font-weight: 700; margin-top: 14px; }
.troubleshooting dd { margin: 2px 0 10px; }
.sources { border-top: 1px solid var(--line); padding: 20px 0; }
.sources h3 { font-size: 19px; }
.sources p, .sources li { font-size: 13px; line-height: 1.9; }
.sources li { margin-bottom: 8px; }
.concept-flow { background: #eaf0df; border: 1px solid #d6dfc8; padding: 25px; border-radius: 9px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-around; gap: 15px; font: 13px ui-monospace, monospace; }
.concept-flow b { color: var(--teal); }
.concept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 25px 0; }
.concept-grid article { padding: 25px; border-radius: 9px; background: white; border: 1px solid var(--line); }
.concept-index { font: 10px ui-monospace, monospace; color: var(--teal); }
.concept-grid h3 { font-size: 18px; }
.concept-grid p { font-size: 13px; line-height: 1.9; color: var(--muted); }
.quiz-card { background: #eaf0df; border: 1px solid var(--line); border-radius: 9px; padding: 30px; }
.quiz-card label { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0; line-height: 1.7; }
.quiz-card input { margin-top: 4px; accent-color: var(--teal); }
#quiz-result { font-size: 13px; }
.action-status { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--ink); color: white; padding: 12px 20px; border-radius: 7px; font-size: 12px; z-index: 4; max-width: 90vw; box-shadow: 0 3px 18px #102a2b22; }
.action-status:empty { display: none; }
footer { max-width: 1320px; margin: 50px auto 0; border-top: 1px solid var(--line); padding: 26px 28px 32px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 10px; line-height: 1.8; }
@media (min-width: 1100px) { .output-column { position: sticky; top: 20px; } }
@media (max-width: 1000px) {
  .hero { gap: 35px; }
  .workbench { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
  .form-card { padding: 19px; }
  .template-options label { padding: 10px 5px; }
  .download-bar { flex-direction: column; align-items: stretch; }
  .brand-note { display: none; }
  .guide-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 25px; }
}
@media (max-width: 760px) {
  main { padding: 0 20px; }
  .topbar { padding: 16px 20px; min-height: 78px; }
  .brand { font-size: 20px; }
  .repo-link { font-size: 11px; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 37px 0; }
  h1 { font-size: 50px; }
  .target-card { max-width: none; justify-self: stretch; padding: 22px; }
  .target-heading { margin-bottom: 12px; }
  .hero-description { max-width: none; font-size: 15px; }
  .offline-note { display: none; }
  [role="tablist"] { gap: 10px; width: 100%; justify-content: space-between; }
  [role="tab"] { font-size: 11px; padding: 16px 0; }
  [role="tab"] span { display: none; }
  .section-intro { margin-top: 28px; align-items: flex-start; flex-direction: column; gap: 5px; }
  .section-intro > p { margin: 5px 0; }
  h2 { font-size: 24px; }
  .workbench { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .form-card { padding: 22px; }
  .template-options label { padding: 12px 8px; }
  .download-bar { flex-direction: row; align-items: center; }
  .recipe-preview { min-height: 300px; max-height: 500px; }
  .guide-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 24px; }
  .guide-sidebar { position: static; }
  .guide-sidebar ol { columns: 2; gap: 30px; }
  .guide-sidebar li { break-inside: avoid; }
  .guide-step { padding: 20px; }
  .guide-step h3 { font-size: 18px; }
  .concept-grid { grid-template-columns: 1fr; }
  .concept-flow { justify-content: flex-start; padding: 20px; font-size: 11px; gap: 12px; }
  footer { flex-direction: column; gap: 8px; padding: 22px 20px; margin-top: 25px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
