:root {
  --red: #dc0028;
  --red-dark: #a9001f;
  --ink: #171717;
  --paper: #f4f0e9;
  --white: #fffdf9;
  --muted: #6e6a65;
  --line: #d9d2c8;
  --display: "Avenir Next Condensed", "DIN Condensed", "Franklin Gothic Condensed", sans-serif;
  --body: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(23, 23, 23, .035) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(rgba(23, 23, 23, .025) 1px, transparent 1px) 0 0 / 72px 72px,
    var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
}

button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.page-shell {
  width: min(1440px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: rgba(244, 240, 233, .72);
}

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 112px;
  padding: 22px clamp(24px, 5vw, 76px);
  border-bottom: 1px solid rgba(23, 23, 23, .18);
}

.brand { display: inline-flex; }
.brand-logo { width: 185px; height: auto; display: block; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
  min-height: 680px;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0 43% 0 0;
  background:
    radial-gradient(circle at 18% 24%, rgba(255,255,255,.72), transparent 25%),
    linear-gradient(126deg, transparent 52%, rgba(220,0,40,.06) 52% 53%, transparent 53%),
    var(--paper);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -3;
  inset: 0 0 0 57%;
  background: var(--red);
}

.hero-copy {
  align-self: center;
  padding: 72px clamp(24px, 7vw, 104px) 90px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  font-family: var(--display);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: .66rem;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4rem, 7.4vw, 7rem);
  font-stretch: condensed;
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: .82;
  text-transform: uppercase;
}

.hero h1 em {
  color: var(--red);
  font-style: normal;
}

.hero-intro {
  max-width: 510px;
  margin: 36px 0 0;
  color: #57524d;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.65;
}

.route-code {
  margin-top: 54px;
  color: #77716a;
  font-family: var(--display);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .22em;
}

.route-code b { color: var(--red); font-size: 1.2em; }

.route-lines {
  position: absolute;
  z-index: -1;
  right: 38%;
  bottom: 54px;
  left: -20px;
  height: 68px;
  transform: rotate(-5deg);
  opacity: .6;
  overflow: hidden;
}

.route-lines span {
  display: block;
  width: 112%;
  height: 1px;
  margin-top: 16px;
  background: var(--red);
}
.route-lines span:nth-child(2) { margin-left: 8%; opacity: .5; }
.route-lines span:nth-child(3) { margin-left: 16%; opacity: .2; }

.search-card {
  position: relative;
  align-self: center;
  width: min(520px, calc(100% - 64px));
  margin: 48px auto;
  padding: clamp(32px, 4.5vw, 58px);
  background: var(--white);
  box-shadow: 0 30px 75px rgba(69, 0, 13, .22);
}

.search-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-top: 30px solid var(--red-dark);
  border-left: 30px solid transparent;
}

.card-index {
  position: absolute;
  top: 18px;
  right: 48px;
  color: #a29b92;
  font-family: var(--display);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .17em;
}

.card-kicker {
  margin: 0 0 6px;
  color: var(--red);
  font-family: var(--display);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.search-card h2 {
  margin: 0 0 34px;
  font-family: var(--display);
  font-size: clamp(2.1rem, 3.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1;
}

label {
  display: block;
  margin-bottom: 9px;
  font-size: .82rem;
  font-weight: 700;
}

.input-wrap { position: relative; }

input {
  width: 100%;
  height: 64px;
  padding: 0 18px;
  border: 1px solid #aaa39b;
  border-radius: 0;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 750;
  letter-spacing: .045em;
  text-transform: uppercase;
  transition: border-color .2s, box-shadow .2s;
}

input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(220, 0, 40, .1);
}

input[aria-invalid="true"] { border-color: var(--red); }

.scan-corner {
  position: absolute;
  z-index: 2;
  width: 10px;
  height: 10px;
  pointer-events: none;
}
.scan-corner--tl { top: 6px; left: 6px; border-top: 2px solid var(--red); border-left: 2px solid var(--red); }
.scan-corner--br { right: 6px; bottom: 6px; border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); }

.field-help, .form-error {
  margin: 9px 0 0;
  font-size: .76rem;
}
.field-help { color: var(--muted); }
.form-error { min-height: 21px; color: var(--red-dark); font-weight: 700; }

#submit-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 62px;
  margin-top: 21px;
  padding: 0 22px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--ink);
  color: white;
  font-family: var(--display);
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
  transition: transform .2s, background .2s;
}

#submit-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: translateX(-101%);
  transition: transform .28s ease;
}
#submit-button:hover::before, #submit-button:focus-visible::before { transform: translateX(0); }
#submit-button:hover { transform: translateY(-2px); }
#submit-button:disabled { cursor: wait; opacity: .75; }
#submit-button span { position: relative; z-index: 1; }
.button-arrow { font-size: 1.25rem; }

.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.is-loading .spinner { display: block; }
.is-loading .button-arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.privacy-note {
  display: flex;
  gap: 9px;
  margin: 26px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: #756f68;
  font-size: .71rem;
  line-height: 1.45;
}
.privacy-note span { color: var(--red); font-size: .62rem; }

.result-section {
  scroll-margin-top: 16px;
  padding: 88px clamp(24px, 7vw, 104px) 72px;
  background: var(--ink);
  color: var(--white);
}

.result-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .38fr);
  gap: 64px;
  align-items: end;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,.2);
}

.result-section .eyebrow { color: #bcb6ad; margin-bottom: 20px; }
.result-section .eyebrow span { color: var(--red); }
.tracking-reference { margin: 0 0 8px; color: #9f9991; font-size: .76rem; letter-spacing: .09em; text-transform: uppercase; }
.tracking-reference strong { color: white; }

.result-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.2rem, 6vw, 6.5rem);
  letter-spacing: -.05em;
  line-height: .92;
}

.current-description { max-width: 620px; margin: 20px 0 0; color: #bbb5ad; }

.status-meta {
  display: grid;
  gap: 14px;
  padding: 22px 0 2px 24px;
  border-left: 2px solid var(--red);
}
.status-meta p { margin: 0; }
.status-meta span, .status-meta strong { display: block; }
.status-meta span { color: #8f8982; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; }
.status-meta strong { margin-top: 3px; font-family: var(--display); font-size: 1.05rem; }

.timeline-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  padding: 58px 0 42px;
  list-style: none;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-rows: 32px auto auto;
  gap: 12px;
  min-width: 0;
  padding-right: 20px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 0;
  left: 0;
  height: 1px;
  background: #57534e;
}
.timeline-item.is-complete::before { background: var(--red); }

.timeline-marker {
  position: relative;
  z-index: 1;
  width: 25px;
  height: 25px;
  border: 7px solid var(--ink);
  border-radius: 50%;
  background: #65615c;
  box-shadow: 0 0 0 1px #65615c;
}
.is-complete .timeline-marker { background: var(--red); box-shadow: 0 0 0 1px var(--red); }
.is-current .timeline-marker { box-shadow: 0 0 0 1px var(--red), 0 0 0 7px rgba(220,0,40,.17); }

.timeline-copy strong {
  display: block;
  max-width: 155px;
  font-family: var(--display);
  font-size: .95rem;
  line-height: 1.15;
}
.timeline-copy p { max-width: 155px; margin: 8px 0 0; color: #8f8982; font-size: .72rem; line-height: 1.45; }
.timeline-item time { color: #7d7872; font-family: var(--display); font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.timeline-item.is-current strong { color: #fff; }
.timeline-item.is-current time { color: var(--red); }
.timeline-item.is-pending { opacity: .5; }

.result-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.result-foot p { margin: 0; color: #87817a; font-size: .72rem; }
.text-button { border: 0; background: none; color: white; font-family: var(--display); font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.text-button span { margin-left: 9px; color: var(--red); font-size: 1.1rem; }

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 28px clamp(24px, 5vw, 76px);
  border-top: 1px solid rgba(23,23,23,.18);
  color: #6f6962;
  font-size: .68rem;
}
footer span { flex: none; font-family: var(--display); font-weight: 800; letter-spacing: .16em; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero::before { inset: 0; }
  .hero::after { inset: auto 0 0; height: 44%; }
  .hero-copy { padding-bottom: 40px; }
  .search-card { margin: 22px auto 70px; }
  .route-lines { right: 0; bottom: 44%; }
  .result-head { grid-template-columns: 1fr; gap: 34px; }
  .timeline-list { grid-template-columns: repeat(3, 1fr); row-gap: 46px; }
}

@media (max-width: 640px) {
  .site-header { min-height: 86px; padding: 18px 20px; }
  .brand-logo { width: 142px; }
  .hero-copy { padding: 58px 22px 28px; }
  .hero h1 { font-size: clamp(3.3rem, 17vw, 5rem); }
  .hero-intro { margin-top: 28px; }
  .route-code { margin-top: 35px; }
  .search-card { width: calc(100% - 28px); padding: 34px 24px; }
  .result-section { padding: 64px 22px 46px; }
  .result-head h2 { font-size: 3.3rem; }
  .timeline-list { display: block; padding: 46px 0 24px; }
  .timeline-item {
    grid-template-columns: 35px 1fr auto;
    grid-template-rows: auto;
    gap: 12px;
    padding: 0 0 38px;
  }
  .timeline-item::before { top: 13px; right: auto; bottom: 0; left: 12px; width: 1px; height: auto; }
  .timeline-item:last-child::before { display: none; }
  .timeline-copy strong, .timeline-copy p { max-width: none; }
  .timeline-item time { text-align: right; }
  .result-foot { align-items: flex-start; flex-direction: column; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
