:root {
  color-scheme: light;
  --ink: #24201e;
  --muted: #625852;
  --paper: #fcf8f3;
  --line: #e8ded5;
  --accent: #92380f;
  --green: #216243;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 system-ui, sans-serif; }
a { color: var(--accent); text-underline-offset: .2em; }
button, input { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #b04c20; outline-offset: 3px; }
.wrap { width: min(100% - 32px, 1080px); margin-inline: auto; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner, .brand, .order-heading, .detail-links, footer { display: flex; align-items: center; gap: 14px; justify-content: space-between; }
.header-inner { min-height: 70px; }
.brand { justify-content: flex-start; gap: 10px; font-weight: 800; line-height: 1.15; color: var(--ink); text-decoration: none; }
.brand img { border-radius: 8px; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: .57rem; letter-spacing: .14em; }
.continue { font-weight: 650; font-size: .9rem; text-decoration: none; }
main { padding-block: clamp(28px, 6vw, 62px); }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(30px, 6vw, 49px); line-height: 1.12; letter-spacing: -.035em; }
h2 { font-size: 1.17rem; margin-bottom: 14px; }
.eyebrow { color: var(--accent); font-weight: 800; font-size: .72rem; letter-spacing: .13em; margin-bottom: 8px; }
.order-heading { flex-wrap: wrap; justify-content: flex-start; margin-bottom: 24px; }
#orderDate, #nextStep, .lookup-card > p:not(.eyebrow) { color: var(--muted); }
#orderDate { margin-top: 6px; }
.status { padding: 6px 12px; border-radius: 999px; background: #f6e8d9; color: #723c20; font-weight: 750; font-size: .82rem; }
.status[data-state="paid"], .status[data-state="delivered"] { background: #e3f2e9; color: var(--green); }
.status[data-state="cancelled"] { background: #f0eae7; color: #623b38; }
.panel, .lookup-card { background: white; border: 1px solid var(--line); border-radius: 17px; padding: clamp(17px, 4vw, 26px); }
.lookup-card { max-width: 560px; }
.lookup-card h1 + p { margin-top: 8px; }
.lookup-card form { display: grid; gap: 8px; margin-top: 20px; }
.lookup-card label { font-size: .9rem; font-weight: 700; }
.lookup-card input { min-width: 0; min-height: 46px; padding: 8px 12px; border: 1px solid #bcaea4; border-radius: 8px; color: var(--ink); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; padding: 9px 14px; border: 1px solid transparent; border-radius: 9px; background: var(--ink); color: white; text-decoration: none; font-weight: 750; cursor: pointer; }
.button:disabled { opacity: .6; }
.lookup-card .button { margin-top: 5px; }
#message { margin-block: 12px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; gap: 16px; }
.side { display: grid; gap: 16px; }
.products, .progress { list-style: none; margin: 0; padding: 0; }
.product { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); }
.product img { width: 58px; height: 58px; object-fit: contain; border: 1px solid var(--line); background: var(--paper); border-radius: 8px; }
.product small { display: block; color: var(--muted); }
.product strong { overflow-wrap: anywhere; }
.product .button { grid-column: 1 / -1; }
.total { display: flex; justify-content: space-between; gap: 10px; padding-top: 15px; border-top: 1px solid var(--line); font-weight: 750; }
.total strong { color: var(--green); font-size: 1.16rem; }
.progress { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.progress li { padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: .79rem; }
.progress .reached { background: #f3f8f4; color: var(--green); }
.progress [aria-current] { border-color: #557d66; font-weight: 750; }
.contact dl { margin: 0; }
.contact dl div + div { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.contact dt { color: var(--muted); font-size: .85rem; }
.contact dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.detail-links { flex-wrap: wrap; margin-top: 16px; }
.detail-links button { border: 0; background: transparent; color: var(--accent); text-decoration: underline; padding: 8px 0; cursor: pointer; }
footer { flex-wrap: wrap; color: var(--muted); border-top: 1px solid var(--line); padding-block: 18px 30px; font-size: .85rem; }
@media (max-width: 710px) { .detail-grid { grid-template-columns: 1fr; } }
