:root {
  --ink: #13212f;
  --ink-2: #2b3a48;
  --muted: #5d6b78;
  --paper: #fbfaf6;
  --card: #ffffff;
  --line: #e3e0d8;
  --accent: #e2552c;
  --accent-ink: #b8401c;
  --sky: #e6edf3;
  --sand: #f3efe5;
  --shell: 1180px;
  --radius: 14px;
  --head: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
.shell { max-width: var(--shell); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 10; }
.site-header .shell { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 18px/1 var(--head); letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; }
.brand svg { flex: none; }
.nav { display: flex; gap: 26px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent-ink); }
.nav .cta { color: #fff; background: var(--ink); padding: 9px 16px; border-radius: 999px; }
.nav .cta:hover { background: var(--accent); color: #fff; }
.menu { display: none; }
@media (max-width: 860px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; font: 600 15px var(--body); padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] .menu-panel { display: grid; }
  .menu-panel { display: none; position: absolute; right: 0; top: 46px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; min-width: 220px; box-shadow: 0 18px 40px -20px rgba(19, 33, 47, .35); }
  .menu-panel a { padding: 10px 12px; text-decoration: none; border-radius: 8px; }
  .menu-panel a:hover { background: var(--sand); }
}

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px; opacity: .55;
  mask-image: linear-gradient(115deg, transparent 35%, #000 75%);
}
.hero .shell { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; padding-top: 84px; padding-bottom: 84px; align-items: center; }
.eyebrow { font: 600 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 18px; }
h1, h2, h3 { font-family: var(--head); letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 700; }
.hero p.lede { font-size: 20px; color: var(--ink-2); max-width: 34em; margin: 22px 0 32px; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font: 600 15px/1 var(--body); text-decoration: none; border: 1.5px solid var(--ink); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn.ghost:hover { background: var(--ink); color: #fff; }

/* Site-plan illustration */
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: 0 30px 60px -35px rgba(19, 33, 47, .45); }
.plan svg { width: 100%; height: auto; }
.plan-caption { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 12px; }
.plan-caption b { color: var(--ink); }

/* Sections */
section { padding: 76px 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 34px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); max-width: 18em; }
.section-head p { color: var(--muted); max-width: 30em; margin: 0; }
.grid { display: grid; gap: 18px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-decoration: none; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--ink); transform: translateY(-2px); color: var(--ink); }
.card .tag { display: inline-block; font: 600 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); background: #fdece6; padding: 6px 9px; border-radius: 6px; margin-bottom: 16px; }
.card h3 { font-size: 22px; margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }
.card .more { display: inline-block; margin-top: 16px; font-weight: 600; font-size: 15px; color: var(--ink); }
.band { background: var(--ink); color: #eef2f5; }
.band h2 { color: #fff; }
.band p { color: #c3ccd5; }
.band .btn.ghost { border-color: #fff; color: #fff; }
.band .btn.ghost:hover { background: #fff; color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.stat { border-top: 2px solid var(--accent); padding-top: 16px; }
.stat b { display: block; font: 700 44px/1 var(--head); color: #fff; }
.stat span { color: #c3ccd5; font-size: 15px; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font: 700 15px var(--head); color: var(--accent); margin-bottom: 14px; }
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Article pages */
.page-head { border-bottom: 1px solid var(--line); background: var(--sand); }
.page-head .shell { padding-top: 64px; padding-bottom: 54px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.page-head h1 { font-size: clamp(34px, 4.6vw, 54px); max-width: 16em; }
.page-head .lede { font-size: 20px; color: var(--ink-2); max-width: 36em; margin: 18px 0 0; }
.meta { font-size: 14px; color: var(--muted); margin-top: 18px; }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 64px; padding: 56px 24px 84px; }
.prose { max-width: 720px; }
.prose h2 { font-size: 30px; margin: 46px 0 14px; }
.prose h3 { font-size: 22px; margin: 32px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 15.5px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--sand); font-weight: 600; color: var(--ink); }
.callout { background: var(--sky); border-radius: var(--radius); padding: 20px 22px; margin: 26px 0; }
.callout p { margin: 0; }
.note { font-size: 14.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 44px; }
.aside { position: sticky; top: 92px; align-self: start; display: grid; gap: 16px; }
.aside .card { padding: 22px; }
.aside h3 { font-size: 17px; margin-bottom: 10px; }
.aside ul { list-style: none; margin: 0; padding: 0; }
.aside li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.aside li:last-child { border-bottom: 0; }
.aside a { text-decoration: none; }
.checklist { list-style: none; padding: 0 !important; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border: 2px solid var(--accent); border-radius: 4px; }
.worksheet { background: var(--card); border: 1px dashed var(--ink-2); border-radius: var(--radius); padding: 26px; }
.worksheet dl { display: grid; grid-template-columns: 200px 1fr; gap: 0; margin: 0; }
.worksheet dt, .worksheet dd { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.worksheet dt { font-weight: 600; color: var(--ink); }
.worksheet dd { color: var(--muted); }

/* Footer */
.site-footer { background: var(--ink); color: #c3ccd5; padding: 56px 0 30px; font-size: 15px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: #fff; }
.site-footer p { max-width: 26em; }
.site-footer h4 { color: #fff; font: 600 13px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; margin: 6px 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 8px 0; }
.site-footer a { color: #e7ecf0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .base { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid #2b3a48; margin-top: 44px; padding-top: 22px; font-size: 14px; color: #93a1ae; }
.site-footer .base a { color: #c3ccd5; }

@media (max-width: 960px) {
  .hero .shell { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; gap: 40px; }
  .grid.three, .steps, .stats { grid-template-columns: 1fr 1fr; }
  .article { grid-template-columns: 1fr; gap: 40px; }
  .aside { position: static; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16.5px; }
  .shell { padding: 0 16px; }
  .article { padding: 40px 16px 64px; }
  .grid.three, .grid.two, .steps, .stats, .site-footer .cols { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .section-head p { margin-top: 12px; }
  section { padding: 56px 0; }
  .worksheet dl { grid-template-columns: 1fr; }
  .worksheet dt { border-bottom: 0; padding-bottom: 0; }
  .site-footer .base { display: block; }
  .prose table { display: block; overflow-x: auto; }
}
