/* Layout: paper page on a faint build-plate grid; content in one 1120px column; full-width bands for hero and CTA. */
:root {
  --bg: #fafaf7;          /* Paper */
  --surface: #ffffff;
  --sunk: #f1f0ea;
  --fg: #1d1d1f;          /* Ink */
  --muted: #5f5f5c;
  --hair: #e2e1da;
  --grid: rgba(29,29,31,.045);
  --orange: #F26B21;      /* heater block, buttons */
  --orange-text: #b54a0f; /* orange that passes contrast as text on paper */
  --filament: #23824A;    /* filament line */
  --ph: rgba(242,107,33,.13);
  --band: #1d1d1f; --band-fg: #fafaf7; --band-muted: #a8a8a8; --band-filament: #36A862;
  --display: "Sora", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --step--1: .8125rem; --step-0: 1rem; --step-1: 1.25rem; --step-2: 1.6rem; --step-3: 2.25rem; --step-4: clamp(2.4rem, 6vw, 3.9rem);
  --radius: 10px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #1d1d1f; --surface: #262628; --sunk: #18181a; --fg: #fafaf7; --muted: #a8a8a8; --hair: #39393b;
  --grid: rgba(250,250,247,.04); --orange-text: #f68a4e; --filament: #36A862; --ph: rgba(242,107,33,.22);
  --band: #111112; color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #1d1d1f; --surface: #262628; --sunk: #18181a; --fg: #fafaf7; --muted: #a8a8a8; --hair: #39393b;
  --grid: rgba(250,250,247,.04); --orange-text: #f68a4e; --filament: #36A862; --ph: rgba(242,107,33,.22);
  --band: #111112; color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 var(--step-0)/1.6 var(--body); }
img, svg { max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--orange); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -.01em; }
h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font: 500 var(--step--1)/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--orange-text); }
.lead { font-size: var(--step-1); color: var(--muted); max-width: 38em; }
.measure { max-width: 65ch; }
.stack { display: grid; gap: 1rem; }
.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section-head { display: grid; gap: .75rem; margin-bottom: 2.25rem; max-width: 46rem; }

/* placeholder copy */
.ph { background: var(--ph); border-bottom: 1.5px dashed var(--orange); border-radius: 2px; padding: 0 .15em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.draft-note { background: var(--sunk); border-bottom: 1px solid var(--hair); font: 400 var(--step--1)/1.5 var(--mono); color: var(--muted); }
.draft-note .wrap { padding-block: .5rem; }

/* header */
.site-header { border-bottom: 1px solid var(--hair); background: var(--bg); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; padding-block: 1rem; }
.logo { height: 56px; width: auto; display: block; font-family: var(--display); }
.brand { display: block; text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.nav a { display: block; padding: .45rem .8rem; border-radius: 6px; text-decoration: none; font-weight: 500; color: var(--muted); }
.nav a:hover { color: var(--fg); background: var(--sunk); }
.nav a[aria-current="page"] { color: var(--fg); box-shadow: inset 0 -3px 0 var(--filament); border-radius: 0; }

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.25rem; border-radius: 8px; font: 600 var(--step-0)/1 var(--body);
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.btn-primary { background: var(--orange); color: #1d1d1f; }
.btn-primary:hover { background: #ff7c33; }
.btn-ghost { border-color: var(--hair); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--fg); }

/* hero: a build plate */
.plate { background-color: var(--bg);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px; border-bottom: 1px solid var(--hair); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 2rem; align-items: center; padding-block: clamp(3rem, 8vw, 6rem); }
.hero-copy { display: grid; gap: 1.4rem; min-width: 0; }
.hero-art { position: relative; justify-self: center; width: min(100%, 360px); }
.hero-mark { width: 100%; height: auto; display: block; }
.readout { display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; margin-top: 1rem; font: 400 var(--step--1)/1.5 var(--mono); color: var(--muted);
  font-variant-numeric: tabular-nums; border-top: 1px dashed var(--hair); padding-top: .8rem; }
.readout dt { color: var(--fg); }
.readout dd { margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  .hero-mark .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: print 1.6s .35s cubic-bezier(.5,0,.4,1) forwards; }
  @keyframes print { to { stroke-dashoffset: 0; } }
}
.page-hero .wrap { padding-block: clamp(2.5rem, 6vw, 4rem); display: grid; gap: 1rem; }

/* cards & lists */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
.card { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: .6rem; align-content: start; min-width: 0; }
.card p { color: var(--muted); }
.card .tag { font: 500 var(--step--1)/1 var(--mono); color: var(--orange-text); }
.link-more { font-weight: 600; text-decoration-color: var(--filament); text-underline-offset: 4px; text-decoration-thickness: 2px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0; counter-reset: s;
  border-top: 7px solid var(--filament); border-radius: 4px 4px 0 0; }
.steps li { counter-increment: s; padding: 1.25rem 1.25rem 0 0; display: grid; gap: .4rem; align-content: start; }
.steps li::before { content: "0" counter(s); font: 500 var(--step--1)/1 var(--mono); color: var(--orange-text); }
.steps p { color: var(--muted); }

.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }

/* services page */
.service { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 1rem 2.5rem; padding-block: 2rem; border-top: 1px solid var(--hair); }
.service:last-child { border-bottom: 1px solid var(--hair); }
.service ul { margin: .25rem 0 0; padding-left: 1.1rem; color: var(--muted); display: grid; gap: .25rem; }
.service .body { display: grid; gap: .75rem; min-width: 0; }
.table-scroll { overflow-x: auto; border: 1px solid var(--hair); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: .95rem; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--hair); vertical-align: top; }
th { font: 500 var(--step--1)/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--sunk); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-family: var(--display); font-weight: 700; white-space: nowrap; }
.note { font-size: var(--step--1); color: var(--muted); }

/* gallery */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.chip { font: 500 .9rem/1 var(--body); padding: .55rem .95rem; border-radius: 999px; border: 1.5px solid var(--hair); background: var(--surface); color: var(--fg); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.tile { margin: 0; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.tile .shot { aspect-ratio: 4 / 3; max-width: 100%; position: relative; display: grid; place-items: center;
  background: repeating-linear-gradient(0deg, var(--layer-a) 0 3px, var(--layer-b) 3px 6px); }
.tile .shot span { font: 500 var(--step--1)/1 var(--mono); background: var(--surface); color: var(--muted); padding: .4rem .6rem; border-radius: 4px; border: 1px dashed var(--hair); }
.tile figcaption { padding: .9rem 1rem 1rem; display: grid; gap: .25rem; }
.tile figcaption b { font-family: var(--display); }
.tile figcaption small { font: 400 var(--step--1)/1.4 var(--mono); color: var(--muted); }
.t-orange { --layer-a: rgba(242,107,33,.30); --layer-b: rgba(242,107,33,.18); }
.t-green  { --layer-a: rgba(35,130,74,.30);  --layer-b: rgba(35,130,74,.18); }
.t-ink    { --layer-a: rgba(127,127,127,.30); --layer-b: rgba(127,127,127,.16); }

/* shop */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.product figcaption { gap: .6rem; }
.product .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.product .price { font: 700 var(--step-1)/1 var(--display); font-variant-numeric: tabular-nums; }
.product p { color: var(--muted); font-size: .95rem; }
.product .btn { justify-content: center; margin-top: .25rem; }
.swatches { display: flex; gap: .35rem; align-items: center; font: 400 var(--step--1)/1 var(--mono); color: var(--muted); }
.swatches i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--hair); display: inline-block; }

/* contact */
.form { display: grid; gap: 1rem; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); min-width: 0; }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 1rem; }
label { display: grid; gap: .35rem; font-weight: 500; font-size: .95rem; min-width: 0; }
label small { font-weight: 400; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--fg); background: var(--bg); border: 1.5px solid var(--hair); border-radius: 8px; padding: .7rem .8rem; width: 100%; }
textarea { min-height: 8rem; resize: vertical; }
.status { font-size: .95rem; padding: .8rem 1rem; border-radius: 8px; background: var(--sunk); border-left: 4px solid var(--filament); }
.details { display: grid; gap: 1.25rem; align-content: start; }
.details dl { margin: 0; display: grid; gap: 1rem; }
.details dt { font: 500 var(--step--1)/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.details dd a, .footer-cols li a { text-decoration-color: var(--filament); text-underline-offset: 3px; }
.details dd { margin: .2rem 0 0; font-size: var(--step-1); font-family: var(--display); font-weight: 500; overflow-wrap: anywhere; }

/* CTA band and footer */
.band { background: var(--band); color: var(--band-fg); }
.band .wrap { padding-block: clamp(2.5rem, 6vw, 4rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.band h2 { font-size: var(--step-2); }
.band p { color: var(--band-muted); margin-top: .4rem; }
.band .rule { display: block; width: 72px; height: 7px; border-radius: 4px; background: var(--band-filament); margin-bottom: 1rem; }
.site-footer { border-top: 1px solid var(--hair); }
.site-footer .wrap { padding-block: 2.5rem; display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; align-items: flex-start; }
.logo-stacked { width: 150px; height: auto; display: block; font-family: var(--display); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 2rem 3rem; font-size: .95rem; }
.footer-cols h3 { font: 500 var(--step--1)/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .6rem; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { text-decoration: underline; }
.fine { width: 100%; font-size: var(--step--1); color: var(--muted); }

@media (max-width: 760px) {
  .nav { gap: 0; }
  .nav a { padding: .45rem .45rem; font-size: .95rem; }
  .hero .wrap, .split, .service { grid-template-columns: minmax(0, 1fr); }
  .hero-art { order: -1; width: 150px; justify-self: start; }
  .readout { display: none; }
  .logo { height: 40px; }
}
