/* Adouer Wood order tracking. Hand-written CSS — no build step. */
:root {
    --wood-50: #faf6f1;
    --wood-100: #f0e6d9;
    --wood-200: #e0cbb0;
    --wood-300: #cba77c;
    --wood-600: #7e532e;
    --wood-700: #5f3e24;
    --wood-800: #432c1a;
    --wood-900: #2c1c10;
    --ink: #171717;
    --ink-soft: #404040;
    --muted: #737373;
    --faint: #a3a3a3;
    --display: Georgia, Cambria, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--wood-50);
    color: var(--ink);
    font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

p, h1, h2, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }

.wrap { width: 100%; max-width: 48rem; margin: 0 auto; padding: 0 1rem; }

.sr-only {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

.link { color: var(--wood-700); font-weight: 500; text-decoration: none; }
.link:hover { text-decoration: underline; }
.link--block { display: inline-block; margin-top: 1rem; font-size: .875rem; }

/* Header / footer */
.site-header { background: #fff; border-bottom: 1px solid var(--wood-100); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .75rem; padding-bottom: .75rem; }
.site-header .link { font-size: .875rem; white-space: nowrap; }
.logo { display: block; height: 2.75rem; width: auto; }

.site-footer { background: #fff; border-top: 1px solid var(--wood-100); padding: 1.5rem 0; font-size: .875rem; color: var(--ink-soft); }
.site-footer__title { font-weight: 600; color: var(--ink); margin-bottom: .25rem; }
.site-footer__legal { margin-top: .75rem; font-size: .75rem; color: var(--muted); }

/* Page */
.main { flex: 1; padding-top: 2rem; padding-bottom: 3rem; }
h1 { font-family: var(--display); font-size: clamp(1.875rem, 5vw, 2.25rem); line-height: 1.15; color: var(--wood-900); }
.lead { margin-top: .5rem; color: var(--ink-soft); }
h2 { font-size: .8125rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }

.card { margin-top: 1.5rem; background: #fff; border: 1px solid var(--wood-100); border-radius: .75rem; box-shadow: 0 1px 2px rgb(44 28 16 / .05); overflow: hidden; }
.card--pad { padding: 1.25rem; }

/* Form */
.grid { display: grid; gap: 0 1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: .25rem; font-size: .875rem; font-weight: 500; color: var(--ink-soft); }
.field input { width: 100%; padding: .625rem .75rem; border: 1px solid var(--wood-200); border-radius: .375rem; background: #fff; color: var(--ink); font: inherit; }
.field input::placeholder { color: var(--faint); }
.field input:focus { outline: none; border-color: var(--wood-600); box-shadow: 0 0 0 3px var(--wood-100); }
.field__note { font-weight: 400; color: var(--muted); }

/* Country code + mobile number, joined into one control */
.phone { display: flex; }
.phone select { flex: none; width: 6.25rem; padding: .625rem .5rem; border: 1px solid var(--wood-200); border-right: 0; border-radius: .375rem 0 0 .375rem; background: var(--wood-50); color: var(--ink); font: inherit; }
.phone input { min-width: 0; border-radius: 0 .375rem .375rem 0; }
.phone select:focus { outline: none; border-color: var(--wood-600); box-shadow: 0 0 0 3px var(--wood-100); position: relative; }
.phone--attention select, .phone--attention input { border-color: #dc2626; }

.field__error { margin-top: .25rem; font-size: .8125rem; color: #b91c1c; }

.button { width: 100%; padding: .75rem 1.5rem; border: 0; border-radius: .375rem; background: var(--wood-800); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.button:hover { background: var(--wood-900); }
.button:disabled { opacity: .6; cursor: default; }

.alert { margin-top: 1rem; padding: .75rem 1rem; border: 1px solid #fecaca; border-radius: .375rem; background: #fef2f2; color: #991b1b; font-size: .875rem; }

/* Result */
.result__head { padding: 1.25rem; background: var(--wood-800); color: #fff; }
.result__head--muted { background: #f5f5f5; color: var(--ink); }
.result__head--muted .eyebrow { color: var(--muted); }
.eyebrow { font-size: .75rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--wood-200); }
.result__status { margin-top: .25rem; font-family: var(--display); font-size: clamp(1.5rem, 4.5vw, 1.875rem); font-weight: 700; line-height: 1.2; }
.result__sub { margin-top: .25rem; font-size: .875rem; color: var(--wood-100); }
.result__body { display: grid; gap: 1.5rem; padding: 1.25rem; }

.facts { display: grid; gap: .5rem 1.5rem; font-size: .875rem; }
.facts dt { color: var(--muted); }
.facts dd { font-weight: 600; overflow-wrap: anywhere; }

.facts { margin-top: .5rem; }
.hint--flush { margin: .5rem 0 .75rem; }
.hint { margin-top: .75rem; padding: .75rem 1rem; border-radius: .375rem; background: var(--wood-50); color: var(--ink-soft); font-size: .875rem; }

/* Timeline — courier scans and our own order steps share it */
.timeline { margin-top: 1rem; }
.timeline__item { position: relative; display: flex; gap: 1rem; padding-bottom: 1.25rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item:not(:last-child)::before { content: ""; position: absolute; left: .5625rem; top: 1.25rem; bottom: 0; width: 2px; background: var(--wood-100); }
.timeline__dot { position: relative; flex: none; width: 1.25rem; height: 1.25rem; margin-top: .125rem; border-radius: 50%; background: var(--wood-300); border: 4px solid #fff; display: grid; place-items: center; color: #fff; font-size: .6875rem; font-weight: 700; line-height: 1; }
.timeline__label { color: var(--ink-soft); overflow-wrap: anywhere; }
.timeline__remarks { font-size: .875rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.timeline__meta { font-size: .875rem; color: var(--muted); }

.timeline__item.is-current .timeline__dot { background: var(--wood-800); border-width: 0; box-shadow: 0 0 0 4px var(--wood-100); }
.timeline__item.is-current .timeline__label { color: var(--ink); font-weight: 600; }

.timeline--steps .timeline__dot { border-width: 0; }
.timeline--steps .is-done .timeline__dot { background: var(--wood-600); }
.timeline--steps .is-done:not(:last-child)::before { background: var(--wood-600); }
.timeline--steps .is-upcoming .timeline__dot { background: #fff; border: 2px solid var(--wood-200); }
.timeline--steps .is-upcoming .timeline__label { color: var(--muted); }

@media (min-width: 640px) {
    .main { padding-top: 3rem; }
    .card--pad, .result__head, .result__body { padding: 1.5rem; }
    .grid, .facts { grid-template-columns: 1fr 1fr; }
    .facts__wide { grid-column: 1 / -1; }
    .button { width: auto; }
    .logo { height: 3rem; }
}
