:root {
    color-scheme: light;
    --ink: #231c18;
    --muted: #62544b;
    --paper: #f7f2eb;
    --card: #fffcf8;
    --line: #dfd4c8;
    --orange: #e75b26;
    --orange-dark: #a33717;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
.site-header { border-bottom: 1px solid var(--line); background: var(--card); }
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1160px;
    margin: auto;
    min-height: 72px;
    padding: 0 28px;
}
.wordmark { font-weight: 850; font-size: 1.2rem; letter-spacing: -.045em; text-decoration: none; }
.wordmark span { margin-left: .18em; color: var(--orange-dark); }
.shop-link { font-weight: 650; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.shop-link span { margin-left: .2rem; }
.shop-link:hover { text-decoration: underline; text-underline-offset: .2em; }

.layout {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    grid-template-areas: "intro lookup" "help lookup";
    align-items: start;
    align-content: start;
    column-gap: clamp(32px, 7vw, 108px);
    row-gap: clamp(24px, 5vw, 48px);
    max-width: 1160px;
    margin: auto;
    padding: clamp(48px, 9vw, 110px) 28px 72px;
}
.intro { grid-area: intro; }
.intro h1 { font-size: clamp(3.35rem, 7.6vw, 6.5rem); line-height: .93; letter-spacing: -.085em; margin: 22px 0 18px; max-width: 8.5ch; }
.intro p { margin: 0; max-width: 29ch; color: var(--muted); font-size: clamp(1.05rem, 1.9vw, 1.28rem); line-height: 1.5; }
.package-icon { display: grid; place-items: center; background: #fbe1d2; width: 56px; height: 56px; border-radius: 15px; }
.package-icon span { position: relative; width: 23px; height: 20px; border: 2px solid var(--orange-dark); border-radius: 4px; }
.package-icon span::before { content: ""; position: absolute; top: 4px; inset-inline: 0; border-top: 2px solid var(--orange-dark); }
.package-icon span::after { content: ""; position: absolute; top: 5px; left: 8px; height: 6px; border-left: 2px solid var(--orange-dark); }

.lookup {
    grid-area: lookup;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--card);
    box-shadow: 0 16px 44px #42291d0d;
    padding: clamp(24px, 4.5vw, 42px);
}
form { display: grid; gap: 23px; }
.field { display: grid; gap: 9px; }
label { font-size: .97rem; font-weight: 730; }
input {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    border: 1px solid #b9ada1;
    border-radius: 11px;
    padding: 0 14px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}
input::placeholder { color: #695e55; }
:focus-visible { outline: 2px solid var(--orange-dark); outline-offset: 3px; }
.primary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 0 17px;
    border-radius: 11px;
    border: 0;
    background: var(--orange);
    color: #19110d;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}
.primary:hover { background: #f77949; }
.primary span { font-size: 1.4rem; }
.help { grid-area: help; border-top: 1px solid var(--line); padding-top: 20px; max-width: 33ch; }
.help h2 { margin: 0 0 8px; font-size: 1rem; }
.help p { color: var(--muted); margin: 0; line-height: 1.6; font-size: .95rem; }

.notice { margin: 20px 0 0; padding: 14px; border-radius: 10px; background: #f9eee4; color: #563324; line-height: 1.45; }
.results { margin-top: 30px; scroll-margin-top: 22px; }
.results > h2 { margin: 0 0 12px; font-size: 1.15rem; }
.shipment { border: 1px solid var(--line); border-radius: 13px; padding: 14px; }
.shipment + .shipment { margin-top: 10px; }
.shipment-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.carrier { font-size: .84rem; color: var(--muted); margin: 0 0 4px; }
.shipment h3 { margin: 0; font-size: 1rem; }
.updated { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.parcel-links { list-style: none; padding: 0; margin: 12px 0 0; }
.parcel-links li { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 10px 0 0; border-top: 1px solid var(--line); font-size: .87rem; }
.parcel-links li + li { margin-top: 9px; }
.parcel-links li > span, .results > h2 { overflow-wrap: anywhere; }
.parcel-links a { font-weight: 700; color: var(--orange-dark); text-underline-offset: .18em; }
.tracking-unavailable { color: var(--muted); font-size: .9rem; margin: 12px 0 0; }

@media (max-width: 700px) {
    .header-inner { min-height: 61px; padding: 0 18px; }
    .wordmark { font-size: 1.04rem; }
    .shop-link { font-size: .83rem; }
    .layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "lookup" "help"; padding: 36px 18px 45px; }
    .intro h1 { max-width: none; margin-top: 15px; }
    .package-icon { width: 46px; height: 46px; border-radius: 12px; }
    .lookup { border-radius: 18px; }
}
