:root {
  color-scheme: light;
  --ink: #17332c;
  --muted: #65746e;
  --line: #cbd8d2;
  --paper: #fbfdfa;
  --mist: #eef5f0;
  --green: #176b50;
  --lime: #d9f36a;
  --danger: #9a3d33;
  font-family: Inter, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: linear-gradient(180deg, #f5faf6 0, var(--paper) 340px); color: var(--ink); }
a { color: var(--green); }
.site-header { max-width: 1180px; margin: 0 auto; min-height: 78px; padding: 18px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 20px; font-weight: 750; }
.brand span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: var(--lime); font-size: 13px; }
nav { display: flex; flex-wrap: wrap; gap: 20px; }
nav a { text-decoration: none; color: var(--muted); font-weight: 600; }
main { max-width: 1180px; margin: 0 auto; padding: 54px 28px 80px; }
footer { max-width: 1180px; margin: 0 auto; padding: 24px 28px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
h1, h2 { font-family: Georgia, serif; letter-spacing: -.025em; }
h1 { max-width: 760px; margin: 12px 0 20px; font-size: clamp(42px, 7vw, 72px); line-height: 1.02; }
h2 { margin-top: 0; }
.hero { padding: 48px 0 66px; }
.lead { max-width: 720px; color: var(--muted); font-size: 19px; line-height: 1.65; }
.eyebrow, .tag { color: var(--green); font-size: 12px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.section-heading, .page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.page-heading { display: block; }
.page-heading h1 { font-size: clamp(38px, 6vw, 58px); }
.muted { color: var(--muted); }
.button, button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 9px; padding: 12px 18px; background: var(--green); color: white; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.button.secondary { background: white; color: var(--ink); border: 1px solid var(--line); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card, .panel { background: rgba(255, 255, 255, .88); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 30px rgba(23, 51, 44, .05); }
.card { padding: 24px; min-height: 210px; }
.card h2 { margin: 14px 0; font-size: 26px; }
.card a { color: var(--ink); text-decoration: none; }
code, pre { font-family: "Cascadia Code", Consolas, monospace; }
pre { max-width: 100%; overflow-x: auto; }
code { padding: 2px 5px; border-radius: 5px; background: var(--mist); overflow-wrap: anywhere; }
.panel { min-width: 0; padding: 30px; margin-bottom: 22px; }
label { display: block; margin: 18px 0 7px; font-weight: 700; }
input, textarea, select { width: 100%; border: 1px solid #aebdb7; border-radius: 8px; padding: 11px 12px; color: var(--ink); background: white; font: inherit; }
textarea { resize: vertical; min-height: 240px; font-family: "Cascadia Code", Consolas, monospace; line-height: 1.55; }
form button { margin-top: 18px; }
.form-help { display: flex; justify-content: space-between; gap: 20px; margin-top: 8px; color: var(--muted); font-size: 12px; }
.editor-panel { max-width: 900px; }
.preview-shell { min-height: 330px; }
.review-note { margin-top: 26px; padding: 16px; border-left: 4px solid var(--lime); background: var(--mist); }
.preview-toolbar { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 18px; margin-bottom: 24px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.prose { max-width: 800px; line-height: 1.7; }
.prose blockquote { margin: 20px 0; padding-left: 18px; border-left: 4px solid var(--lime); color: var(--muted); }
.prose pre { overflow-x: auto; background: #f1f6f3; padding: 16px; border-radius: 8px; }
.prose form { display: grid; gap: 8px; max-width: 460px; padding: 14px; background: var(--mist); border: 1px solid var(--line); border-radius: 10px; }
.notice { padding: 14px 16px; border: 1px solid #a9cfbc; border-radius: 10px; background: #eaf6ef; margin-bottom: 18px; }
.notice.error { border-color: #e3b3aa; background: #fff0ed; color: var(--danger); }
.text-link { font-weight: 700; }
.error-page { text-align: center; padding: 70px 24px; }
@media (max-width: 760px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  nav { gap: 14px; }
  main { padding: 38px 20px 60px; }
  .panel { padding: 22px; }
  .card-grid { grid-template-columns: 1fr; }
  .section-heading, .preview-toolbar, .form-help { align-items: flex-start; flex-direction: column; }
}
