:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  --ink: #1f251f;
  --muted: #50584f;
  --canvas: #f1efe8;
  --paper: #fffdf8;
  --border: #bfc4b7;
  --rust: #a23417;
  --accent: #ff925a;
  background: var(--canvas);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
[hidden] { display: none !important; }
a { color: var(--rust); text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 3px solid #087458; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.topbar { background: #191c19; color: #fffdf8; }
.topbar-inner, main, footer { width: min(100% - 2rem, 55rem); margin-inline: auto; }
.topbar-inner, .topbar-tools, .brand, .section-bar, .button-row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.topbar-inner, .section-bar { justify-content: space-between; }
.topbar-inner { min-height: 4.4rem; padding-block: .5rem; }
.brand { color: inherit; text-decoration: none; font-size: 1.45rem; letter-spacing: .13em; }
.brand img { border-radius: .55rem; }
.brand span { color: var(--accent); }
.topbar select, .topbar button { background: #292f29; border-color: #677363; color: inherit; max-width: 11rem; }
.topbar :focus-visible { outline-color: var(--accent); }
main { padding-block: clamp(1.5rem, 5vw, 3.4rem); }
.hero { max-width: 44rem; margin-bottom: 1.5rem; }
.eyebrow { display: flex; align-items: center; gap: .65rem; color: var(--rust); margin: 0; font-weight: 760; font-size: .83rem; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow > span:first-child { width: 1.2rem; height: .2rem; background: var(--rust); border-radius: 1rem; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { font-size: clamp(1.95rem, 5.8vw, 3.8rem); line-height: 1.04; margin: .55rem 0; letter-spacing: -.04em; }
h2 { margin: 0 0 1rem; font-size: clamp(1.35rem, 4vw, 1.75rem); line-height: 1.2; }
h3 { margin: 0 0 .45rem; }
.hero-lead { margin: .75rem 0; color: var(--muted); max-width: 55ch; }
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.tabs a { min-height: 44px; padding: .6rem .85rem; color: var(--ink); text-decoration: none; border-radius: .5rem; }
.tabs a[aria-current] { background: var(--ink); color: white; font-weight: 720; }
.card { background: var(--paper); border: 1px solid #d2d4ca; border-radius: .85rem; padding: clamp(1rem, 4vw, 2rem); }
form, label { display: grid; gap: .4rem; }
form { gap: 1rem; }
label, legend { font-weight: 680; }
input, textarea, select { min-width: 0; width: 100%; border: 1px solid var(--border); border-radius: .45rem; padding: .62rem .68rem; min-height: 44px; background: #fff; }
input[type="file"] { padding-inline: .5rem; font-size: .9rem; }
textarea { resize: vertical; }
fieldset { margin: 0; border: 0; padding: 0; min-width: 0; }
legend { margin-bottom: .45rem; padding: 0; }
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.2rem), 1fr)); gap: .6rem; }
.upload { border: 1px dashed var(--border); border-radius: .55rem; padding: .8rem; }
.upload p { margin: .35rem 0 .6rem; color: var(--muted); font-size: .9rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); gap: .5rem; }
.gallery:not(:empty) { margin-block: .7rem; }
.gallery img { width: 100%; height: auto; aspect-ratio: 1.35; object-fit: cover; border-radius: .45rem; background: var(--canvas); }
.gallery figure { margin: 0; min-width: 0; }
.gallery button { width: 100%; }
.primary, .secondary, .quiet { min-height: 44px; width: fit-content; border: 1px solid var(--border); border-radius: .48rem; background: transparent; padding: .56rem .78rem; font-weight: 710; }
.primary { border-color: var(--rust); background: var(--rust); color: #fff; }
.primary:hover { background: #862b14; }
.secondary { background: #e9eee4; color: var(--ink); }
.notice:not(:empty) { padding: .65rem .8rem; background: #e4ede2; border-inline-start: .25rem solid #317456; border-radius: .35rem; }
.notice[data-error="true"]:not(:empty) { background: #fcebe2; border-color: var(--rust); }
.notice:empty { display: none; }
.track-form { grid-template-columns: 1fr auto; align-items: end; margin-bottom: .8rem; }
.tracking-box, .estimate { margin-block: 1rem; border-radius: .55rem; background: #e9eee4; padding: .85rem; }
.tracking-box p, .estimate p { margin: 0 0 .55rem; }
.estimate strong { font-size: 1.4rem; }
.order-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem; margin-block: .7rem; }
.order-head h3 { margin: 0; }
.badge { background: #f5e7cf; border-radius: 1rem; padding: .22rem .68rem; font-size: .88rem; font-weight: 730; }
.measurements { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 6.5rem), 1fr)); margin-block: .85rem; }
.measurements div { background: var(--canvas); padding: .5rem .68rem; border-radius: .4rem; }
.measurements dt, .updated { font-size: .85rem; color: var(--muted); }
.measurements dd { margin: 0; font-weight: 700; }
.description { white-space: pre-wrap; }
.queue-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .65rem; width: 100%; text-align: start; border: 0; border-bottom: 1px solid #d2d4ca; background: transparent; padding: .85rem .25rem; }
.queue-item:hover { background: #f4f3eb; }
.queue-item strong { display: block; }
.section-bar h2 { margin: 0; }
#more-orders, #quote-form { margin-top: 1rem; }
#quote-form { border-top: 1px solid #d2d4ca; padding-top: 1rem; }
footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem; border-top: 1px solid #d2d4ca; padding-block: .8rem 1.25rem; color: var(--muted); font-size: .87rem; }
footer a { display: inline-flex; align-items: center; min-height: 44px; }
dialog { width: min(30rem, calc(100% - 2rem)); border: 1px solid var(--border); border-radius: .7rem; padding: 1.1rem; color: var(--ink); background: var(--paper); }
dialog::backdrop { background: #191c19aa; }
@media (max-width: 380px) {
  .topbar-inner { gap: .4rem; }
  .topbar-tools { gap: .3rem; }
  .topbar select { max-width: 6rem; }
  .topbar button { padding-inline: .52rem; }
  .brand { font-size: 1.15rem; gap: .38rem; }
  .brand img { width: 33px; height: 33px; }
  .track-form { grid-template-columns: 1fr; }
}
