/* Miguel Wilson Living: "Measure & Fit". A drawing sheet on pale oak: a yellow tape measure on the page edge is the scroll progress,
   the header is a drawing title block, products are plates framed by dimension lines (outline only, no sizes), the cart is a delivery ticket
   and the footer is the sheet's title block. */
:root {
  --oak: #efe6d8; --oak-2: #e6d9c4; --paper: #f8f3ea; --ink: #2f2f2f; --ink-2: #4a4744; --muted: #6b645b;
  --clay: #c8693d; --clay-dk: #a5512a; --tape: #f2c230; --tape-dk: #d9a915;
  --line: rgba(47, 47, 47, .16); --line-2: rgba(47, 47, 47, .4); --error: #a3261b;
  --sans: 'Jost', 'Futura', 'Century Gothic', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'Consolas', monospace;
  --grid: linear-gradient(rgba(47, 47, 47, .055) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, rgba(47, 47, 47, .055) 1px, transparent 1px) 0 0 / 24px 24px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--oak); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); overflow-x: clip; }
@media (min-width: 900px) { body { padding-left: 30px; } }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
.wrap { width: min(1240px, 100% - 2 * clamp(16px, 4vw, 48px)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 40px; top: -60px; z-index: 300; background: var(--ink); color: var(--oak); padding: .7rem 1rem; }
.skip-link:focus { top: 12px; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; flex: none; }
[hidden] { display: none !important; }

h1, h2 { font-weight: 500; line-height: 1.04; letter-spacing: -.015em; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h1 span, h2 span { display: block; color: var(--clay); }
.label { margin-bottom: 1.1rem; font: 500 .74rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.label::before { content: ''; display: inline-block; width: 26px; height: 1px; margin-right: .7rem; vertical-align: middle; background: var(--clay); }
.lede { font-size: 1.14rem; color: var(--ink-2); max-width: 34rem; }
.cur { margin-right: .06em; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .8rem 1.5rem; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); text-decoration: none; font: 500 .82rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; transition: background-color .2s, color .2s; }
.btn:hover { background: var(--clay); border-color: var(--clay); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }

/* Tape measure: vertical on the left page edge (desktop), along the header's bottom edge (mobile). Fill grows with scroll. */
.tape { position: fixed; left: 0; top: 0; bottom: 0; width: 30px; z-index: 70; background: var(--ink); pointer-events: none; }
.tape-fill { position: absolute; left: 0; top: 0; width: 100%; height: calc(var(--p, 0) * 100%); min-height: 14px;
  background: repeating-linear-gradient(180deg, transparent 0 49px, var(--ink) 49px 51px) 0 0 / 70% 100% no-repeat,
              repeating-linear-gradient(180deg, transparent 0 9px, rgba(47, 47, 47, .75) 9px 10px) 0 0 / 38% 100% no-repeat,
              repeating-linear-gradient(180deg, transparent 0 24px, rgba(47, 47, 47, .75) 24px 25px) 0 0 / 52% 100% no-repeat, var(--tape);
  border-right: 1px solid var(--tape-dk); }
.tape-fill::after { content: ''; position: absolute; left: -1px; right: -1px; bottom: -6px; height: 6px; background: #8d8a86; border-radius: 0 0 2px 2px; }

/* Header: a title block of ruled cells. No filter, transform or backdrop-filter. */
.header { position: sticky; top: 0; z-index: 60; background: var(--paper); border-bottom: 1px solid var(--ink); }
.nav { display: flex; align-items: stretch; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; padding: .5rem 1.4rem .5rem clamp(16px, 2vw, 28px); margin-right: auto; text-decoration: none; }
.brand-mark { width: 52px; height: 52px; mix-blend-mode: multiply; }
.brand-word { display: grid; line-height: 1.05; }
.brand-word span:first-child { font-weight: 500; font-size: 1.02rem; letter-spacing: .2em; text-transform: uppercase; }
.brand-word span:last-child { font: 500 .66rem/1.4 var(--mono); letter-spacing: .5em; text-transform: uppercase; color: var(--clay); }
.nav-list { display: flex; }
.nav-list > li:not(.nav-close-li) { display: flex; }
.nav-link { display: flex; flex-direction: column; justify-content: center; gap: .15rem; padding: 0 1.5rem; border-left: 1px solid var(--line-2); text-decoration: none; font-size: .95rem; font-weight: 500; transition: background-color .2s; }
.nav-link:hover { background: var(--oak); }
.cell-no { font: 500 .64rem/1 var(--mono); letter-spacing: .14em; color: var(--clay); }
.nav-close-li { display: none; }
.cart-btn { display: flex; align-items: center; gap: .8rem; padding: 0 1.4rem; background: var(--ink); color: var(--paper); border: 0; font: 500 .8rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.cart-btn:hover { background: var(--clay); }
.cart-count { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 .35rem; background: var(--tape); color: var(--ink); font: 500 .95rem/1 var(--mono); letter-spacing: 0; }
.cart-btn.pop .cart-count { animation: pop .45s ease; }
@keyframes pop { 40% { transform: scale(1.25); } }
.nav-toggle, .nav-close { display: none; width: 56px; place-items: center; background: transparent; border: 0; border-left: 1px solid var(--line-2); color: var(--ink); }
.back-link { margin-left: auto; padding-right: clamp(16px, 2vw, 28px); }
@media (max-width: 899px) {
  .tape { position: absolute; top: auto; bottom: -1px; right: 0; width: auto; height: 9px; background: var(--oak-2); }
  .tape-fill { width: calc(var(--p, 0) * 100%); height: 100%; min-height: 0; min-width: 14px; border-right: 0;
    background: repeating-linear-gradient(90deg, transparent 0 49px, var(--ink) 49px 51px) 0 0 / 100% 80% no-repeat,
                repeating-linear-gradient(90deg, transparent 0 9px, rgba(47, 47, 47, .75) 9px 10px) 0 0 / 100% 40% no-repeat, var(--tape); }
  .tape-fill::after { left: auto; top: -1px; bottom: -1px; right: -5px; width: 5px; height: auto; }
  .nav { min-height: 64px; }
  .brand { padding-right: .6rem; }
  .brand-mark { width: 42px; height: 42px; }
  .nav-toggle { display: grid; flex: 0 0 auto; }
  .nav-list { display: none; }
  .nav-list.open { display: flex; position: fixed; inset: 0; z-index: 200; height: 100dvh; overflow-y: auto; flex-direction: column; justify-content: center; padding: 5rem 1.5rem 3rem; background: var(--grid), var(--paper); }
  .nav-list.open > li:not(.nav-close-li) { display: block; border-top: 1px solid var(--ink); }
  .nav-list.open > li:nth-last-child(2) { border-bottom: 1px solid var(--ink); }
  .nav-list.open .nav-link { min-height: 76px; padding: 0 .4rem; border: 0; font-size: 1.9rem; }
  .nav-list.open .nav-close-li { display: block; position: absolute; top: 12px; right: 12px; }
  .nav-close { display: grid; height: 52px; border: 1px solid var(--ink); }
  .cart-btn { padding: 0 .9rem; }
}
@media (max-width: 440px) { .cart-word { display: none; } .brand-word span:first-child { font-size: .86rem; letter-spacing: .14em; } .brand-word span:last-child { letter-spacing: .4em; } }

/* Dimension lines: outline only, never numbers */
.dim { position: absolute; color: var(--line-2); transition: color .25s; pointer-events: none; }
.dim-w { top: 4px; left: 0; right: 18px; height: 9px; border-inline: 1px solid currentColor; }
.dim-w::before { content: ''; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: currentColor; }
.dim-h { top: 18px; bottom: 0; right: 4px; width: 9px; border-block: 1px solid currentColor; }
.dim-h::before { content: ''; position: absolute; top: 0; bottom: 0; left: 4px; width: 1px; background: currentColor; }
.dim-w::after, .dim-h::after { content: ''; position: absolute; width: 7px; height: 7px; border: 1px solid currentColor; background: var(--paper); border-radius: 50%; }
.dim-w::after { left: 50%; top: 1px; margin-left: -3.5px; }
.dim-h::after { top: 50%; left: 1px; margin-top: -3.5px; }

/* Hero */
.hero { background: var(--grid), var(--oak); border-bottom: 1px solid var(--ink); padding: clamp(2.4rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; gap: 2.4rem; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.8rem); margin-bottom: 1.4rem; }
.hero-fig { position: relative; }
.hero-frame { position: relative; padding: 22px 22px 0 0; }
.hero-frame .dim-w { right: 22px; top: 5px; } .hero-frame .dim-h { top: 22px; right: 5px; }
.hero-frame img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid var(--ink); }
.hero-fig figcaption { margin-top: .7rem; font: 400 .76rem/1.4 var(--mono); letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1fr 1.35fr; gap: 3.5rem; } }

/* Shop: four sheets, each a rail plus a grid of plates */
.shop { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.shop-head { display: grid; gap: 1rem; margin-bottom: 1.8rem; }
.shop-head p { max-width: 36rem; color: var(--muted); }
@media (min-width: 900px) { .shop-head { grid-template-columns: 1.3fr 1fr; align-items: end; gap: 3rem; } }
.sheet-index { display: flex; flex-wrap: wrap; border: 1px solid var(--ink); background: var(--paper); }
.sheet-index li { flex: 1 1 auto; }
.sheet-index li + li { border-left: 1px solid var(--line-2); }
.sheet-index a { display: flex; align-items: center; gap: .7rem; min-height: 52px; padding: .4rem 1rem; text-decoration: none; font-weight: 500; }
.sheet-index a:hover { background: var(--oak); }
.sheet-index span { font: 500 .74rem/1 var(--mono); color: var(--clay); }
@media (max-width: 699px) { .sheet-index li { flex-basis: 50%; } .sheet-index li:nth-child(3) { border-left: 0; } .sheet-index li:nth-child(n+3) { border-top: 1px solid var(--line-2); } }
.sheet { display: grid; gap: 1.6rem; margin-top: clamp(2.8rem, 5vw, 4rem); padding-top: 1.4rem; border-top: 1px solid var(--ink); }
.sheet-rail h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 500; line-height: 1.1; margin: .3rem 0 .5rem; }
.sheet-rail p { color: var(--muted); max-width: 22rem; }
.sheet-no, .sheet-count { font: 500 .74rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--clay) !important; }
.sheet-count { margin-top: 1rem; color: var(--muted) !important; }
@media (min-width: 1000px) { .sheet { grid-template-columns: 230px 1fr; gap: 2.4rem; } .sheet-rail { position: sticky; top: 100px; align-self: start; } }
.plates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem .9rem; }
@media (min-width: 700px) { .plates { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem 1.6rem; } }
.plate { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line-2); padding: .8rem; }
.plate-fig { position: relative; padding: 18px 18px 0 0; }
.plate-fig img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--ink); background: var(--oak-2); }
.plate:hover .dim, .plate.in-cart .dim { color: var(--clay); }
.plate-block { flex: 1; display: flex; flex-direction: column; margin-top: .8rem; border-top: 1px solid var(--ink); }
.plate-meta { display: flex; justify-content: space-between; gap: .5rem; padding: .45rem 0; border-bottom: 1px solid var(--line); font: 400 .68rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.plate h4 { margin: .6rem 0 .25rem; font-size: clamp(1rem, 1.7vw, 1.16rem); font-weight: 500; line-height: 1.2; }
.plate-desc { font-size: .9rem; line-height: 1.45; color: var(--ink-2); }
.plate-foot { margin-top: auto; padding-top: .8rem; display: grid; gap: .6rem; }
.price { font: 500 1.3rem/1 var(--mono); }
.add { width: 100%; min-height: 46px; padding: .5rem; background: transparent; border: 1px solid var(--ink); font: 500 .74rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; transition: background-color .2s, color .2s; }
.add:hover { background: var(--ink); color: var(--paper); }
.stepper { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 1px solid var(--clay); background: #fbeee6; }
.stepper button, .qty button { display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; }
.stepper button:hover, .qty button:hover { background: var(--oak-2); }
.stepper button:disabled, .qty button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output, .qty output { min-width: 2ch; text-align: center; font: 500 1rem/1 var(--mono); }
@media (max-width: 440px) { .plate { padding: .55rem; } .plate-fig { padding: 14px 14px 0 0; } .dim-w { right: 14px; top: 2px; } .dim-h { top: 14px; right: 2px; } .plate-meta { flex-direction: column; gap: .1rem; } .plate-desc { font-size: .84rem; } .add { font-size: .68rem; letter-spacing: .05em; } }

/* How to order */
.how { padding: clamp(3.5rem, 7vw, 5.5rem) 0; background: var(--ink); color: var(--paper); }
.how .label { color: #bdb4a8; }
.how h2 span { color: var(--tape); }
.how-grid { display: grid; gap: 2.4rem; align-items: center; }
.steps { margin-top: 1.8rem; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid rgba(248, 243, 234, .25); }
.steps b { font: 500 1.1rem/1.5 var(--mono); color: var(--tape); }
.steps h3 { font-size: 1.3rem; font-weight: 500; margin-bottom: .2rem; }
.steps p { color: #d7cfc3; }
.how-fig { border: 1px solid rgba(248, 243, 234, .4); padding: 10px; }
@media (min-width: 900px) { .how-grid { grid-template-columns: 1fr 1.1fr; gap: 4.5rem; } }

/* Story */
.story { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.story-grid { display: grid; gap: 2.4rem; align-items: center; }
.story-fig { max-width: 420px; padding: 10px; background: var(--paper); border: 1px solid var(--ink); }
.story-copy h2 { margin-bottom: 1.3rem; }
.story-copy p + p { margin-top: 1rem; }
.story-copy > p:not(.label) { max-width: 34rem; }
@media (min-width: 900px) { .story-grid { grid-template-columns: 1fr 1.3fr; gap: 5rem; } }

/* FAQ */
.faq-sec { padding: clamp(3.5rem, 7vw, 5.5rem) 0; background: var(--grid), var(--oak-2); border-block: 1px solid var(--ink); }
.faq-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 1fr 1.6fr; gap: 4rem; } }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:first-child { border-top: 1px solid var(--ink); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 60px; padding: 1rem 0; cursor: pointer; list-style: none; font-size: 1.2rem; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--clay); transition: transform .25s; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.2rem; max-width: 38rem; }
.faq a { color: var(--clay-dk); }

/* Visit */
.visit { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.visit-grid { display: grid; gap: 2.4rem; align-items: center; }
.visit h2 { margin-bottom: 1.6rem; }
.visit-list > div { display: grid; gap: .2rem; padding: .9rem 0; border-top: 1px solid var(--line-2); }
.visit-list dt { font: 500 .72rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--clay-dk); }
.visit-list a { text-underline-offset: 3px; overflow-wrap: anywhere; }
.visit-fig { max-width: 400px; justify-self: center; padding: 10px; background: var(--paper); border: 1px solid var(--ink); }
@media (min-width: 900px) { .visit-grid { grid-template-columns: 1.2fr 1fr; gap: 4rem; } .visit-list > div { grid-template-columns: 8rem 1fr; } }

/* Footer: the sheet's title block */
.footer { padding: clamp(3rem, 6vw, 4.5rem) 0 3rem; background: var(--ink); color: var(--paper); }
.titleblock { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid rgba(248, 243, 234, .5); }
.tb-cell { padding: 1rem 1.1rem 1.1rem; border: 1px solid rgba(248, 243, 234, .2); font-size: .92rem; line-height: 1.5; }
.tb-k { display: block; margin-bottom: .45rem; font: 500 .66rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--tape); }
.tb-brand { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 0 1rem; align-items: center; }
.tb-brand .tb-k { grid-column: 1 / -1; }
.tb-brand img { grid-row: span 2; width: 64px; height: 64px; background: var(--oak); }
.tb-name { font-size: 1.2rem; letter-spacing: .14em; text-transform: uppercase; }
.tb-brand p:last-child { color: #bdb4a8; }
.tb-links { grid-column: 1 / -1; }
.tb-links ul { display: flex; flex-wrap: wrap; gap: 0 1.4rem; }
.tb-links a { display: inline-block; padding: .4rem 0; text-decoration: none; border-bottom: 1px solid transparent; }
.tb-links a:hover { border-color: var(--tape); }
.tb-cell a { overflow-wrap: anywhere; }
.scalebar { display: block; height: 10px; margin-top: .5rem; border: 1px solid var(--paper); background: repeating-linear-gradient(90deg, var(--paper) 0 20%, transparent 20% 40%); }
@media (min-width: 900px) { .titleblock { grid-template-columns: 1.6fr 1.2fr 1.2fr 1fr; } .tb-brand { grid-column: 1; grid-row: span 2; } .tb-links { grid-column: 2 / 4; } }

/* Cart: a delivery ticket with a perforated top and a tear-off stub */
.cart-overlay { position: fixed; inset: 0; z-index: 150; background: rgba(47, 47, 47, .5); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.cart-overlay.active { opacity: 1; visibility: visible; }
.cart-sidebar { position: fixed; top: 0; right: 0; bottom: 0; z-index: 160; width: min(420px, 100%); display: flex; flex-direction: column; padding-top: 14px; background: radial-gradient(circle at 8px 0, rgba(47, 47, 47, .5) 5px, transparent 5.5px) 0 0 / 16px 10px repeat-x, var(--paper); border-left: 1px solid var(--ink); font-family: var(--mono); transform: translateX(104%); visibility: hidden; transition: transform .4s cubic-bezier(.2, .8, .2, 1), visibility .4s; }
.cart-sidebar.open { transform: none; visibility: visible; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1.3rem; border-bottom: 2px solid var(--ink); }
.cart-head h2 { font: 500 1.1rem/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.cart-close { display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 1px solid var(--ink); }
.ticket-meta { display: grid; gap: .15rem; padding: .7rem 1.3rem; border-bottom: 1px dashed var(--line-2); font-size: .74rem; color: var(--muted); }
.cart-items { flex: 1; overflow-y: auto; padding: .4rem 1.3rem; }
.cart-item { display: grid; grid-template-columns: 56px 1fr; gap: .8rem; padding: .9rem 0; border-bottom: 1px dashed var(--line-2); }
.cart-item img { width: 56px; height: 56px; object-fit: cover; border: 1px solid var(--line-2); }
.cart-item h3 { font: 500 .9rem/1.3 var(--sans); }
.cart-item-row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: .4rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--ink); }
.qty button { width: 40px; height: 40px; }
.cart-item-sub { font-size: .95rem; font-weight: 500; }
.cart-remove { margin-top: .2rem; padding: .3rem 0; background: none; border: 0; font: 400 .76rem/1.2 var(--mono); color: var(--muted); text-decoration: underline; }
.cart-empty { padding: 3rem 0; text-align: center; }
.cart-empty p { font: 500 1.1rem/1.4 var(--sans); margin-bottom: 1.2rem; }
.cart-foot { padding: 1rem 1.3rem 1.3rem; border-top: 2px solid var(--ink); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.cart-total .price { font-size: 1.4rem; letter-spacing: 0; }
.cart-foot .btn { width: 100%; }
.stub { margin-top: 1rem; padding-top: .9rem; border-top: 1px dashed var(--ink); font-size: .74rem; text-align: center; color: var(--muted); position: relative; }
.stub::before { content: '\2702'; position: absolute; top: -.75em; left: 0; padding-right: .3rem; background: var(--paper); color: var(--ink); font-size: .9rem; }

/* Order page */
.order-page { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(4rem, 8vw, 6rem); background: var(--grid), var(--oak); }
.order-intro { max-width: 40rem; margin-bottom: 2.4rem; }
.order-intro h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); margin-bottom: .9rem; }
.order { display: grid; gap: 2rem; align-items: start; }
.order-form { background: var(--paper); padding: 2rem clamp(1.1rem, 4vw, 2.2rem); border: 1px solid var(--ink); }
.order-form h2, .summary h2 { font-size: 1.7rem; margin-bottom: 1.4rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; margin-bottom: .4rem; font: 500 .78rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.field label span { font-weight: 400; text-transform: none; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: .8rem .9rem; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 0; }
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--clay); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-hint { margin-top: .35rem; font-size: .8rem; color: var(--muted); }
.field-error { margin-top: .35rem; font-size: .86rem; font-weight: 500; color: var(--error); }
.field-error:empty { display: none; }
.order-submit { width: 100%; margin-top: .6rem; }
.summary { background: radial-gradient(circle at 8px 0, var(--oak) 5px, transparent 5.5px) 0 0 / 16px 10px repeat-x, var(--paper); padding: 2rem clamp(1.1rem, 4vw, 2rem); border: 1px solid var(--ink); font-family: var(--mono); }
.summary h2 { font-family: var(--mono); font-size: 1.1rem; letter-spacing: .16em; text-transform: uppercase; }
.summary table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.summary td { padding: .8rem 0; border-bottom: 1px dashed var(--line-2); vertical-align: top; }
.summary td small { display: block; margin-top: .2rem; color: var(--muted); font-size: .8rem; }
.summary td:last-child { text-align: right; white-space: nowrap; padding-left: 1rem; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 1.2rem; font-size: .8rem; text-transform: uppercase; }
.summary-total .price { font-size: 1.4rem; color: var(--clay-dk); }
.summary-note { margin-top: 1.2rem; font-size: .86rem; }
.summary-note a { color: var(--clay-dk); text-underline-offset: 4px; }
.sent { max-width: 44rem; background: var(--paper); padding: 2.4rem clamp(1.1rem, 4vw, 2.4rem); border: 1px solid var(--ink); }
.sent h2 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); margin-bottom: 1rem; }
.sent-copy { margin-top: 2rem; }
.sent-copy pre { margin-top: 1rem; padding: 1rem; background: var(--oak); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; font: .84rem/1.5 var(--mono); }
@media (min-width: 900px) { .order { grid-template-columns: 1.4fr 1fr; gap: 3rem; } .summary { position: sticky; top: 100px; } }

/* Legal pages */
.legal-head { background: var(--grid), var(--oak); border-bottom: 1px solid var(--ink); padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.4rem, 5vw, 3.5rem); }
.legal-head h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.legal-body { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(4rem, 8vw, 6rem); }
.legal { max-width: 46rem; }
.legal > p:first-child { font-size: 1.12rem; }
.legal h2 { font-size: 1.5rem; margin: 2.2rem 0 .7rem; }
.legal ul { padding-left: 1.3rem; list-style: disc; margin-top: .6rem; }
.legal li + li { margin-top: .45rem; }
.legal a { color: var(--clay-dk); text-underline-offset: 3px; overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
