:root {
  --bg: #f5f4ee;
  --bg-2: #ebe9df;
  --card: #fffdf7;
  --ink: #17232a;
  --mute: #4f5c59;
  --teal: #1d5f5a;
  --teal-2: #d6e5e0;
  --orange: #a93f17;
  --orange-soft: #e8673a;
  --on-teal: #f5f4ee;
  --rule: rgba(23, 35, 42, 0.14);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 68rem;
  --radius: 14px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11181b;
    --bg-2: #172126;
    --card: #1a252a;
    --ink: #e7ebe6;
    --mute: #a6b2ae;
    --teal: #74c3b7;
    --teal-2: #1f3a37;
    --orange: #f2905f;
    --orange-soft: #e8733f;
    --on-teal: #10181b;
    --rule: rgba(231, 235, 230, 0.15);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  overflow-x: hidden;
}
svg { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--orange-soft); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.site-head { border-bottom: 1px solid var(--rule); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1rem; min-height: 4.25rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; font-weight: 750; letter-spacing: -.01em; font-size: 1.1rem; line-height: 1.2; }
.brand img { width: 34px; height: 34px; }
.brand small { display: block; font: 500 .68rem/1.3 var(--mono); color: var(--mute); letter-spacing: .06em; text-transform: uppercase; }
.nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; padding: .45rem .85rem; border-radius: 999px; font-size: .95rem; font-weight: 550; }
.nav a:hover { background: var(--bg-2); }
.nav a[aria-current="page"] { background: var(--teal); color: var(--on-teal); }
.nav-toggle { display: none; }
@media (max-width: 40rem) {
  .nav-toggle { display: inline-flex; align-items: center; background: none; border: 1px solid var(--rule); color: var(--ink); border-radius: 999px; padding: .4rem .9rem; font: 600 .9rem var(--sans); cursor: pointer; }
  .nav { display: none; width: 100%; flex-direction: column; padding-bottom: .9rem; }
  .nav.open, .no-js .nav { display: flex; }
}

/* hero */
.hero { padding: 3.5rem 0 3rem; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.eyebrow { font: 600 .78rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin: 0 0 .9rem; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); font-weight: 800; }
h1 em { font-style: normal; color: var(--orange); }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.3vw, 2rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
.lede { font-size: 1.2rem; color: var(--mute); max-width: 36rem; }
.hero-art { background: var(--teal-2); border-radius: 999px 999px var(--radius) var(--radius); padding: 2.5rem 1.25rem 1.25rem; }
.hero-art svg { width: 100%; }
.btns { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.btn { display: inline-block; padding: .7rem 1.2rem; border-radius: 999px; font-weight: 650; text-decoration: none; border: 2px solid var(--teal); color: var(--teal); }
.btn.solid { background: var(--teal); color: var(--on-teal); }
.btn:hover { text-decoration: none; filter: brightness(1.1); }

.page-head { padding: 3rem 0 2rem; }
.page-head .lede { margin-bottom: 0; }

/* decorative band: brick gable + canal ripple */
.band { height: 18px; position: relative; margin-bottom: 14px;
  background: repeating-linear-gradient(90deg, var(--orange-soft) 0 44px, var(--bg) 44px 48px); opacity: .9; }
.band::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px;
  background: radial-gradient(circle at 10px -3px, transparent 9px, var(--teal) 10px, var(--teal) 12px, transparent 13px) 0 0 / 20px 14px repeat-x; }

section { padding: 3.25rem 0; }
section.alt { background: var(--bg-2); }
.prose { max-width: 42rem; }
.prose p { margin: 0 0 1.1em; }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.head-row h2 { margin: 0; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.25rem; }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.1rem; }
.card p { margin: 0 0 .6rem; color: var(--mute); }
.card .ico { width: 44px; height: 44px; margin-bottom: .9rem; }
.price { font: 600 .85rem var(--mono); color: var(--teal); }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.steps li { counter-increment: s; border-top: 3px solid var(--teal); padding-top: .9rem; }
.steps li::before { content: "0" counter(s); font: 700 .85rem var(--mono); color: var(--orange); display: block; margin-bottom: .3rem; }
.steps strong { display: block; margin-bottom: .2rem; }
.steps span { color: var(--mute); }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.facts li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--rule); }
.facts li span:first-child { color: var(--mute); }
.facts li span:last-child { font-weight: 600; text-align: right; }

/* table */
table { width: 100%; border-collapse: collapse; font-size: .98rem; }
th, td { text-align: left; padding: .7rem .5rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font: 600 .75rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
td:last-child, th:last-child { text-align: right; white-space: nowrap; }
td:last-child { font: 500 .9rem var(--mono); }
td small { display: block; color: var(--mute); }

/* build sheets */
.sheet { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.4rem; display: grid; grid-template-columns: 170px 1fr; gap: 1.5rem; align-items: center; }
.sheet + .sheet { margin-top: 1rem; }
.sheet svg { width: 170px; }
.sheet h3 { margin-bottom: .3rem; }
.sheet p { margin: 0 0 .5rem; color: var(--mute); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: .5rem 0 0; }
.tags li { font: 500 .75rem var(--mono); background: var(--teal-2); color: var(--ink); padding: .2rem .6rem; border-radius: 999px; }

/* notes */
.post { border-top: 1px solid var(--rule); padding: 2rem 0; display: grid; grid-template-columns: 9rem 1fr; gap: 1.5rem; }
.post:first-of-type { border-top: 0; padding-top: .5rem; }
.post time { font: 600 .85rem var(--mono); color: var(--teal); padding-top: .4rem; }
.post h2 { font-size: 1.4rem; }
.post p { margin: 0 0 1em; max-width: 40rem; }
.post .tag { font: 500 .75rem var(--mono); color: var(--mute); text-transform: uppercase; letter-spacing: .08em; }

blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem; border-left: 4px solid var(--orange-soft); background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.1rem; }
blockquote p, .prose blockquote p { margin: 0; }

/* footer */
.site-foot { background: #17232a; color: #e9ece6; padding: 2.5rem 0 2rem; margin-top: 3rem; }
.site-foot .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.5rem; }
.site-foot a { color: #f3b18f; }
.site-foot h2 { font: 600 .75rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: #a9b7b3; margin-bottom: .6rem; }
.site-foot p { margin: 0 0 .4rem; font-size: .95rem; }
.site-foot .small { grid-column: 1 / -1; border-top: 1px solid rgba(233, 236, 230, .2); padding-top: 1rem; font-size: .85rem; color: #a9b7b3; }
@media (prefers-color-scheme: dark) { .site-foot { background: #0a0f11; } }

.center { text-align: center; }
.big404 { font: 800 clamp(4rem, 3rem + 8vw, 8rem)/1 var(--sans); color: var(--orange); letter-spacing: -.04em; margin: 0 0 .5rem; }
.flat-tyre { max-width: 260px; margin: 0 auto 1.5rem; }

@media (max-width: 52rem) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 2rem; }
  .hero-art { max-width: 30rem; }
  .site-foot .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 34rem) {
  body { font-size: 1rem; }
  .post { grid-template-columns: 1fr; gap: .25rem; }
  .sheet { grid-template-columns: 1fr; }
  th, td { padding: .6rem .3rem; }
}

/* illustrations */
.ill .ln { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ill .thin { stroke-width: 1.4; opacity: .55; }
.ill .fr { fill: none; stroke: var(--orange-soft); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.ill .tl { fill: none; stroke: var(--teal); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ill .gable { fill: var(--teal); opacity: .16; }
.ill .dot { fill: var(--orange-soft); }
.ill .tealf { fill: var(--teal); }
.ill .ground { stroke: var(--teal); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; fill: none; }
