:root {
  color-scheme: light;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
  --ink: #24221e; --muted: #5d574f; --line: #dfd9cf; --paper: #fbfaf7; --accent: #764d2e;
  color: var(--ink); background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
header, main, footer { width: min(calc(100% - 2.5rem),62rem); margin: auto; }
header, footer { display: flex; align-items: center; justify-content: space-between; gap: 1.3rem; }
header { min-height: 5rem; border-bottom: 1px solid var(--line); }
header a:first-child { display: inline-flex; font-weight: 750; font-size: 1.45rem; letter-spacing: -.055em; color: var(--ink); text-decoration: none; }
header img { max-width: 8.5rem; height: auto; }
header a:last-child, footer { font-size: .89rem; }
main { min-height: 69vh; padding: clamp(2rem, 5vw, 4.3rem) 0 3rem; }
footer { flex-wrap: wrap; padding: 1.4rem 0 2.4rem; border-top: 1px solid var(--line); }
h1, h2, h3 { line-height: 1.16; text-wrap: balance; }
h1 { font-size: clamp(2.25rem,5vw,4.1rem); font-weight: 600; letter-spacing: -.055em; margin: 0 0 1.8rem; }
h2 { font-size: clamp(1.35rem,2.5vw,1.8rem); margin: 2rem 0 .85rem; letter-spacing: -.035em; }
h3 { font-size: 1.12rem; margin: 0 0 .4rem; }
p, li { max-width: 70ch; }
a { color: var(--accent); text-underline-offset: .2em; }
label { display: block; margin: .9rem 0; font-weight: 550; color: #423c36; }
input, textarea, select, button { font: inherit; }
input:not([type=checkbox]), select, textarea { display:block; width: min(100%,36rem); border: 1px solid #aaa094; border-radius: .45rem; background: #fff; color: var(--ink); padding: .62rem .75rem; margin-top: .28rem; min-height: 2.75rem; }
textarea { resize: vertical; }
input[type=checkbox] { accent-color: var(--accent); width: 1.1rem; height: 1.1rem; vertical-align: middle; }
button, a.action { display: inline-flex; align-items: center; min-height: 2.75rem; border: 1px solid var(--ink); border-radius: .45rem; background: var(--ink); color: white; padding: .58rem 1.08rem; font-weight: 600; text-decoration: none; cursor: pointer; }
button:hover, a.action:hover { background: #473a2d; color: white; }
.secondary, a.action.secondary { color: var(--ink); border-color: #9b8e7d; background: white; }
:focus-visible { outline: 3px solid #a15a24; outline-offset: 3px; }
form { margin: .75rem 0; }
fieldset, article, .action-grid section, .pilot-layout, .view-verify main > form:first-of-type { min-width: 0; background: white; border: 1px solid var(--line); border-radius: .85rem; }
fieldset, article, .action-grid section, .view-verify main > form:first-of-type { padding: clamp(1rem,3vw,1.65rem); margin: 1rem 0; }
fieldset legend { font-weight: 650; padding: 0 .4rem; } summary { cursor: pointer; }
article p, .prose { overflow-wrap: anywhere; white-space: pre-wrap; }
.notice, .error { border-left: 4px solid #586c4c; background: #edf2e9; padding: .9rem 1.15rem; border-radius: .25rem; }
.error { background: #fbefe9; border-color: #a23c2a; }
.action-grid, .pilot-layout { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.25rem; }
.action-grid section { display: flex; flex-direction: column; align-items: flex-start; margin: 0; }
.action-grid section:first-child { background: #f1ece4; }
.action-grid h2 { margin: 0; } .action-grid p { flex: 1; margin: .65rem 0 1rem; color:var(--muted); } .action-grid form { margin: 0; }
.pilot-layout { overflow: hidden; grid-template-columns: 1.1fr 1fr; gap: 0; }
.pilot-entry { padding: clamp(1.25rem,4vw,3rem); align-self: center; } .pilot-entry > p { margin-top: 0; } .pilot-entry > a { font-size: .9rem; }
.pilot-image { width: 100%; height:100%; object-fit: cover; max-height: 23rem; }
.view-intake main, .view-case main, .view-review main, .view-received main, .view-verify main { max-width:49rem; }
.view-review main > form, .view-home article form { display: inline-block; margin-right:.65rem; }
.view-review main > form:last-child button { background: white; color: var(--ink); }
@media(max-width:620px) {
  header, main, footer { width: calc(100% - 2rem); }
  header { min-height:4.2rem; } header a:last-child { text-align:right; max-width:12rem; }
  .action-grid,.pilot-layout { grid-template-columns:1fr; }
  .pilot-image { height:10rem; } h1 { margin-bottom:1.3rem; }
  .view-intake button, .view-verify button { width:100%; justify-content:center; }
}

.order-link { margin-top:.7rem; font-size:.92rem; }
