/* NITORVA order tracking — brand system
   Palette and typography sampled from nitorva.com
   (Playfair Display + Montserrat, forest green, warm paper, brass). */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/fonts/playfair-display-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/playfair-display-italic-latin.woff2") format("woff2");
}

:root {
  --paper: #faf9f7;
  --cream: #f7f2e6;
  --cream-deep: #f1ece3;
  --white: #ffffff;
  --ink: #1a1a1a;
  --muted: #6f6b64;
  --soft: #7f796f;
  --line: #e5dfd5;
  --line-strong: #d2cabd;
  --forest: #213728;
  --forest-bright: #2a402b;
  --gold: #c9a24b;
  --gold-light: #d8b876;
  --error: #a33e2c;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --page: 1280px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--gold);
  color: var(--forest);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  font-size: 11px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ------------------------------------------------------------
   Announcement + header
------------------------------------------------------------ */

.announcement {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 20px;
  background: #0b0b0b;
  color: #f3eee4;
  text-align: center;
}

.announcement p {
  margin: 0;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.announcement span {
  margin: 0 7px;
  color: #9b958b;
}

.announcement a {
  border-bottom: 1px solid rgba(243, 238, 228, 0.45);
  padding-bottom: 1px;
  transition: border-color 180ms ease;
}

.announcement a:hover {
  border-color: #f3eee4;
}

.site-header {
  position: relative;
  z-index: 5;
  background: var(--white);
  border-bottom: 1px solid #eee9e1;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  max-width: var(--page);
  min-height: 84px;
  margin: 0 auto;
  padding: 0 32px;
}

.header-nav,
.header-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.header-nav a,
.header-help {
  position: relative;
  padding: 4px 0;
}

.header-nav a::after,
.header-help::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms var(--ease);
}

.header-nav a:hover::after,
.header-help:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-links {
  justify-self: end;
}

.header-bag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: -6px;
}

.brand {
  justify-self: center;
  display: inline-flex;
  padding: 6px 0;
}

.brand img {
  width: 138px;
  height: auto;
  mix-blend-mode: multiply;
}

/* ------------------------------------------------------------
   Hero + lookup
------------------------------------------------------------ */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  min-height: 610px;
  background: var(--cream);
}

.hero-copy {
  display: flex;
  align-items: center;
  padding: 66px 64px 62px max(32px, calc((100vw - var(--page)) / 2));
}

.hero-content {
  width: 100%;
  max-width: 558px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #5e5a53;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow-rule {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  margin: 19px 0 22px;
  font-family: var(--serif);
  font-size: clamp(53px, 4.9vw, 70px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

.hero h1 em {
  color: var(--forest);
  font-weight: 400;
}

.lede {
  max-width: 500px;
  margin: 0 0 34px;
  color: #67625a;
  font-size: 13.5px;
  line-height: 1.8;
}

.track-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.field label {
  margin-bottom: 8px;
  color: #4e4a44;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  height: 54px;
  padding: 0 15px;
  border: 1px solid #d7d0c4;
  border-radius: 1px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.015em;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field input::placeholder {
  color: #a8a197;
}

.field input:hover {
  border-color: #bcb3a5;
}

.field input:focus {
  border-color: var(--forest);
  box-shadow: inset 0 0 0 1px var(--forest);
  outline: none;
}

.field input[aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: inset 0 0 0 1px var(--error);
}

.field-error {
  margin-top: 6px;
  color: var(--error);
  font-size: 10px;
  line-height: 1.4;
}

.track-button {
  grid-column: 1 / -1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  height: 54px;
  margin-top: 2px;
  padding: 0 22px;
  border: 1px solid #151515;
  border-radius: 1px;
  background: #151515;
  color: var(--white);
  cursor: pointer;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background-color 220ms ease, border-color 220ms ease;
}

.track-button:hover {
  background: var(--forest);
  border-color: var(--forest);
}

.track-button:disabled {
  cursor: wait;
  opacity: 0.86;
}

.button-arrow {
  transition: transform 220ms var(--ease);
}

.track-button:hover .button-arrow {
  transform: translateX(4px);
}

.button-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.track-button.is-loading .button-spinner {
  display: inline-block;
}

.track-button.is-loading .button-arrow {
  display: none;
}

.form-note {
  max-width: 470px;
  margin: 14px 0 0;
  color: #756f66;
  font-size: 10.5px;
  line-height: 1.7;
}

.form-error {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-left: 2px solid var(--error);
  background: #fdf1ed;
  color: #823224;
  font-size: 11px;
  line-height: 1.55;
}

.demo-link {
  margin: 13px 0 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(33, 55, 40, 0.45);
  background: transparent;
  color: var(--forest);
  cursor: pointer;
  font-size: 10px;
  letter-spacing: 0.04em;
  line-height: 1.7;
}

.demo-link:hover {
  border-color: var(--forest);
}

.hero-media {
  position: relative;
  min-height: 610px;
  margin: 0;
  overflow: hidden;
  background: #e7e0d5;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(to top, rgba(17, 25, 18, 0.5), rgba(17, 25, 18, 0));
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 55%;
  filter: saturate(0.94);
}

.hero-media figcaption {
  position: absolute;
  z-index: 1;
  right: 28px;
  bottom: 24px;
  left: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fffdf8;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
}

.hero-media figcaption span + span {
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.42);
}

/* ------------------------------------------------------------
   Results
------------------------------------------------------------ */

.results {
  max-width: var(--page);
  margin: 0 auto;
  padding: 44px 32px 96px;
  scroll-margin-top: 20px;
}

.status-panel {
  position: relative;
  overflow: hidden;
  padding: 42px 48px 32px;
  background: var(--forest);
  color: #f7f2e6;
}

.status-panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--gold);
}

.status-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.status-panel .eyebrow {
  color: #c8b98e;
}

.status-panel .eyebrow-rule {
  background: #c8b98e;
}

.status-panel h2 {
  margin: 11px 0 10px;
  color: #fbf7ed;
  font-family: var(--serif);
  font-size: clamp(42px, 4.1vw, 56px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.status-note {
  max-width: 590px;
  margin: 0;
  color: #c3cbbf;
  font-size: 13px;
  line-height: 1.75;
}

.status-aside {
  flex: 0 0 auto;
  padding-top: 5px;
  text-align: right;
}

.status-aside span {
  display: block;
  margin-bottom: 5px;
  color: #a6b1a3;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.status-aside strong {
  display: block;
  color: #f4efe3;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.55;
}

.status-aside a {
  display: inline-block;
  margin-top: 13px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(247, 242, 230, 0.35);
  color: #e7d2a5;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color 180ms ease;
}

.status-aside a:hover {
  border-color: #e7d2a5;
}

.steps-wrap {
  position: relative;
  margin: 37px 0 30px;
  padding-top: 1px;
}

.steps-track,
.steps-fill {
  position: absolute;
  top: 6px;
  left: 10%;
  height: 1px;
  background: rgba(247, 242, 230, 0.22);
  pointer-events: none;
}

.steps-track {
  right: 10%;
}

.steps-fill {
  width: calc(80% * var(--progress, 0));
  background: var(--gold);
  transition: width 900ms var(--ease);
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  min-width: 0;
  text-align: center;
}

.step-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  margin: 0 auto;
  border: 1px solid rgba(247, 242, 230, 0.45);
  border-radius: 50%;
  background: var(--forest);
  transition: background-color 300ms ease, border-color 300ms ease;
}

.step.is-complete .step-dot,
.step.is-current .step-dot {
  border-color: var(--gold);
  background: var(--gold);
}

.step.is-current .step-dot {
  box-shadow: 0 0 0 4px rgba(201, 162, 75, 0.18);
}

.step-label {
  display: block;
  max-width: 104px;
  margin: 13px auto 0;
  color: #9aa798;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.11em;
  line-height: 1.55;
  text-align: center;
  text-transform: uppercase;
}

.step.is-complete .step-label {
  color: #bcc7b9;
}

.step.is-current .step-label {
  color: #f6f1e5;
}

.step:nth-last-child(2) .step-label {
  max-width: 88px;
}

.step-label-short {
  display: none;
}

.status-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 4px;
  padding-top: 22px;
  border-top: 1px solid rgba(247, 242, 230, 0.16);
}

.status-panel.is-inactive .status-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.status-meta span {
  display: block;
  margin-bottom: 6px;
  color: #a6b1a3;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.status-meta strong {
  display: block;
  color: #f1ecdf;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.5;
}

.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(290px, 0.75fr);
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

.result-grid.is-single {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}

.panel {
  min-width: 0;
  padding: 28px 30px 26px;
  border: 1px solid var(--line);
  background: var(--white);
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 17px;
  border-bottom: 1px solid #eee9e1;
}

.panel-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.panel-head span {
  color: var(--soft);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-align: right;
  text-transform: uppercase;
}

.timeline {
  margin: 0;
  padding: 5px 0 0;
  list-style: none;
}

.event {
  position: relative;
  display: grid;
  grid-template-columns: 62px 15px minmax(0, 1fr);
  column-gap: 14px;
  padding: 17px 0;
}

.event::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 84px;
  width: 1px;
  background: #ece6dc;
}

.event:first-child::before {
  top: 25px;
}

.event:last-child::before {
  bottom: calc(100% - 25px);
}

.event-date {
  padding-top: 2px;
  color: var(--soft);
  font-size: 9px;
  line-height: 1.55;
  text-align: right;
}

.event-date strong {
  display: block;
  color: #4f4b45;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.event-date span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.02em;
}

.event-dot {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border: 1px solid #c9c2b6;
  border-radius: 50%;
  background: var(--white);
}

.event.is-latest .event-dot {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 0 4px #faf4e5;
}

.event-body h4 {
  margin: 0 0 4px;
  color: #3a3732;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.5;
}

.event.is-latest .event-body h4 {
  color: var(--forest);
}

.event-body p {
  margin: 0 0 5px;
  color: #6f6b64;
  font-size: 12px;
  line-height: 1.65;
}

.event-location {
  display: block;
  color: #7f786d;
  font-size: 9px;
  letter-spacing: 0.07em;
  line-height: 1.5;
  text-transform: uppercase;
}

.package-tag {
  display: inline-block;
  margin-left: 7px;
  padding: 1px 5px;
  border: 1px solid #e3ddd3;
  color: #7b746a;
  font-size: 7.5px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.06em;
  vertical-align: 1px;
}

.latest-label {
  display: inline-block;
  margin-left: 7px;
  padding: 1px 5px;
  background: #f5eddb;
  color: #765a22;
  font-size: 7.5px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 1px;
}

.timeline-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 0 2px;
  border: 0;
  border-top: 1px solid #eee9e1;
  background: transparent;
  color: var(--forest);
  cursor: pointer;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-align: left;
  text-transform: uppercase;
}

.timeline-toggle svg {
  transition: transform 220ms var(--ease);
}

.timeline-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.updates-panel.is-collapsed .event:nth-child(n + 6) {
  display: none;
}

.timeline-empty {
  padding: 24px 0 8px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.order-panel {
  position: sticky;
  top: 24px;
}

.order-items {
  margin: 0;
  padding: 0;
  list-style: none;
}

.order-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid #f0ebe3;
}

.order-item:first-child {
  padding-top: 19px;
}

.order-item-image {
  width: 54px;
  height: 58px;
  overflow: hidden;
  background: #f4f0e9;
}

.order-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #a59d90;
  font-family: var(--serif);
  font-size: 20px;
}

.order-item-title {
  display: block;
  margin: 1px 0 5px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.order-item-meta {
  display: block;
  color: #7f786d;
  font-size: 9px;
  letter-spacing: 0.04em;
  line-height: 1.55;
  text-transform: uppercase;
}

.order-item-price {
  padding-top: 1px;
  color: #4f4b45;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}

.order-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 0 18px;
  border-bottom: 1px solid #eee9e1;
}

.order-total span {
  color: #6f6b64;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.order-total strong {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.order-details {
  margin: 17px 0 0;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 5px 0;
  font-size: 10.5px;
  line-height: 1.55;
}

.detail-row dt {
  color: #7f786d;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.detail-row dd {
  margin: 0;
  color: #4c4842;
  text-align: right;
  overflow-wrap: anywhere;
}

.tracking-number {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #4c4842;
  font-variant-numeric: tabular-nums;
}

.copy-button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid #d8d2c7;
  background: transparent;
  color: #756f66;
  cursor: pointer;
  font-size: 9px;
  letter-spacing: 0.04em;
  line-height: 1.7;
}

.copy-button:hover {
  color: var(--forest);
  border-color: var(--forest);
}

.tracking-status {
  color: #7f786d;
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.care-card {
  margin-top: 20px;
  padding: 17px 16px 16px;
  background: #f5f1e8;
}

.care-card .eyebrow {
  color: #6d685f;
  font-size: 8px;
  letter-spacing: 0.15em;
}

.care-card p {
  margin: 8px 0 9px;
  color: #615c54;
  font-size: 11px;
  line-height: 1.65;
}

.care-card a {
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(33, 55, 40, 0.42);
  color: var(--forest);
  font-size: 10px;
  font-weight: 500;
}

.care-card a:hover {
  border-color: var(--forest);
}

/* ------------------------------------------------------------
   Loading + empty/error states
------------------------------------------------------------ */

.result-loading {
  padding: 44px 0 0;
}

.loading-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 166px;
  padding: 40px 48px;
  background: var(--forest);
}

.loading-copy .eyebrow {
  color: #c8b98e;
}

.loading-copy p {
  margin: 12px 0 0;
  color: #c3cbbf;
  font-size: 12px;
}

.loading-bar {
  height: 9px;
  margin-top: 18px;
  background: rgba(247, 242, 230, 0.16);
  animation: shimmer 1.6s ease-in-out infinite;
}

.loading-bar.one {
  width: 210px;
}

.loading-bar.two {
  width: 330px;
  max-width: 60vw;
}

.loading-ring {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid rgba(201, 162, 75, 0.35);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

.loading-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(290px, 0.75fr);
  gap: 24px;
  margin-top: 24px;
}

.loading-panel {
  min-height: 260px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  background: var(--white);
}

.loading-panel .loading-bar {
  background: #f0ebe2;
}

.loading-panel .loading-bar.one {
  width: 36%;
}

.loading-panel .loading-bar.two {
  width: 82%;
}

.loading-panel .loading-bar.three {
  width: 64%;
}

.empty-result {
  max-width: 760px;
  margin: 20px auto 0;
  padding: 56px 48px;
  border: 1px solid var(--line);
  background: var(--white);
  text-align: center;
}

.empty-result .eyebrow {
  justify-content: center;
}

.empty-result h2:focus,
#status-heading:focus {
  outline: none;
}

.empty-result h2 {
  margin: 18px 0 14px;
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.empty-result p {
  max-width: 470px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.empty-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 26px;
}

.text-button,
.text-link {
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(33, 55, 40, 0.45);
  background: transparent;
  color: var(--forest);
  cursor: pointer;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.9;
  text-transform: uppercase;
}

.text-button:hover,
.text-link:hover {
  border-color: var(--forest);
}

.notice {
  margin: 0 0 22px;
  padding: 13px 16px;
  border-left: 2px solid var(--gold);
  background: #fbf5e7;
  color: #6f5a2e;
  font-size: 11px;
  line-height: 1.6;
}

.freshness {
  margin: 22px 0 0;
  color: #999287;
  font-size: 9px;
  letter-spacing: 0.03em;
  text-align: right;
}

/* ------------------------------------------------------------
   Footer
------------------------------------------------------------ */

.site-footer {
  border-top: 1px solid #e5dfd5;
  background: var(--cream-deep);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  gap: 50px;
  max-width: var(--page);
  margin: 0 auto;
  padding: 58px 32px 46px;
}

.footer-brand img {
  width: 124px;
  height: auto;
  margin: 0 0 14px;
  mix-blend-mode: multiply;
}

.footer-brand p {
  max-width: 240px;
  margin: 0;
  color: #777169;
  font-size: 11px;
  line-height: 1.75;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-column h2 {
  margin: 1px 0 6px;
  color: #827b71;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.footer-column a {
  color: #4f4b45;
  font-size: 11px;
  line-height: 1.5;
  transition: color 160ms ease;
}

.footer-column a:hover {
  color: var(--forest);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--page);
  margin: 0 auto;
  padding: 17px 32px 21px;
  border-top: 1px solid #e1dbd1;
}

.footer-bottom p {
  margin: 0;
  color: #80796f;
  font-size: 8px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.noscript {
  position: fixed;
  z-index: 50;
  right: 20px;
  bottom: 20px;
  max-width: 340px;
  margin: 0;
  padding: 14px 16px;
  background: var(--ink);
  color: var(--white);
  font-size: 11px;
  line-height: 1.6;
}

.noscript a {
  border-bottom: 1px solid currentColor;
}

/* ------------------------------------------------------------
   Motion
------------------------------------------------------------ */

.results:not([hidden]) .status-panel {
  animation: rise 520ms var(--ease) both;
}

.results:not([hidden]) .result-grid {
  animation: rise 560ms 80ms var(--ease) both;
}

.results:not([hidden]) .empty-result {
  animation: rise 480ms var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shimmer {
  0%,
  100% {
    opacity: 0.48;
  }
  50% {
    opacity: 0.9;
  }
}

/* ------------------------------------------------------------
   Embedded mode (?embed=1)
   Used when the page sits inside a native Shopline page.
------------------------------------------------------------ */

body.is-embed {
  background: var(--paper);
}

body.is-embed .announcement,
body.is-embed .site-header,
body.is-embed .site-footer {
  display: none !important;
}

body.is-embed .hero {
  display: block;
  min-height: 0;
}

body.is-embed .hero-copy {
  justify-content: center;
  padding: 42px 28px 34px;
}

body.is-embed .hero-content {
  max-width: 640px;
  margin: 0 auto;
}

body.is-embed .hero-media {
  display: none;
}

body.is-embed .hero h1 {
  font-size: clamp(43px, 6vw, 58px);
}

body.is-embed .results {
  padding-top: 8px;
}

body.is-embed .result-loading {
  padding-top: 8px;
}

/* ------------------------------------------------------------
   Responsive
------------------------------------------------------------ */

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }

  .hero-copy {
    padding-right: 42px;
    padding-left: 42px;
  }

  .hero h1 {
    font-size: clamp(50px, 5.2vw, 62px);
  }

  .result-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-copy {
    padding: 50px 32px 42px;
  }

  .hero-content {
    max-width: 640px;
    margin: 0 auto;
  }

  .hero h1 {
    font-size: clamp(48px, 7.7vw, 62px);
  }

  .hero-media {
    min-height: 280px;
    max-height: 340px;
  }

  .hero-media img {
    object-position: 50% 55%;
  }

  .hero-media figcaption {
    right: 24px;
    bottom: 18px;
    left: 24px;
  }

  .result-grid,
  .loading-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .order-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .announcement {
    min-height: 34px;
  }

  .announcement p {
    font-size: 8.5px;
    letter-spacing: 0.1em;
  }

  .header-inner {
    min-height: 68px;
    padding: 0 20px;
  }

  .header-nav {
    gap: 0;
  }

  .header-nav a:nth-child(2),
  .header-help {
    display: none;
  }

  .brand img {
    width: 112px;
  }

  .hero-copy {
    padding: 42px 22px 36px;
  }

  .hero h1 {
    margin-top: 16px;
    margin-bottom: 17px;
    font-size: clamp(43px, 12vw, 56px);
  }

  .lede {
    margin-bottom: 27px;
    font-size: 12.5px;
  }

  .track-form {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .track-button {
    grid-column: 1;
    margin-top: 3px;
  }

  .hero-media {
    min-height: 235px;
    max-height: 260px;
  }

  .results {
    padding: 28px 16px 64px;
  }

  .status-panel {
    padding: 32px 22px 25px;
  }

  .status-head {
    display: block;
  }

  .status-panel h2 {
    font-size: clamp(39px, 10.5vw, 48px);
  }

  .status-aside {
    margin-top: 20px;
    padding-top: 0;
    text-align: left;
  }

  .status-aside span,
  .status-aside strong {
    display: inline-block;
    margin: 0 8px 0 0;
  }

  .status-aside a {
    display: block;
    width: fit-content;
    margin-top: 12px;
  }

  .steps-wrap {
    margin: 31px 0 25px;
  }

  .step-label {
    max-width: 62px;
    font-size: 8px;
    letter-spacing: 0.07em;
    line-height: 1.5;
    text-align: center;
  }

  .step:nth-last-child(2) .step-label {
    max-width: 56px;
  }

  .status-panel.is-inactive .status-meta > div:last-child {
    grid-column: auto;
  }

  .status-meta {
    grid-template-columns: 1fr 1fr;
    gap: 17px 20px;
    padding-top: 19px;
  }

  .status-meta > div:last-child {
    grid-column: 1 / -1;
  }

  .panel {
    padding: 23px 20px 21px;
  }

  .panel-head {
    display: block;
  }

  .panel-head h3 {
    font-size: 24px;
  }

  .panel-head span {
    display: block;
    margin-top: 6px;
    text-align: left;
  }

  .event {
    grid-template-columns: 52px 13px minmax(0, 1fr);
    column-gap: 11px;
    padding: 15px 0;
  }

  .event::before {
    left: 70px;
  }

  .event-date strong {
    font-size: 9.5px;
  }

  .event-date span {
    font-size: 8.5px;
  }

  .event-body h4 {
    font-size: 12px;
  }

  .event-body p {
    font-size: 11.5px;
  }

  .empty-result {
    padding: 42px 24px;
  }

  .footer-inner {
    grid-template-columns: 1.4fr 1fr;
    gap: 34px 24px;
    padding: 44px 22px 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand p {
    max-width: 280px;
  }

  .footer-bottom {
    padding: 15px 22px 18px;
  }

  .loading-head {
    min-height: 150px;
    padding: 30px 22px;
  }

  .loading-grid {
    margin-top: 16px;
  }

  .loading-panel {
    padding: 22px 20px;
  }
}

@media (max-width: 380px) {
  .step-label {
    font-size: 7px;
    letter-spacing: 0.02em;
  }

  .step-label-full {
    display: none;
  }

  .step-label-short {
    display: inline;
  }
}

@media (max-width: 430px) {
  .brand img {
    width: 102px;
  }

  .header-links {
    gap: 12px;
  }

  .header-bag {
    width: 24px;
  }

  .hero-copy {
    padding-top: 36px;
  }

  .hero h1 {
    font-size: 43px;
  }

  .eyebrow {
    font-size: 8.5px;
    letter-spacing: 0.17em;
  }

  .status-meta strong {
    font-size: 11px;
  }

  .result-grid {
    gap: 16px;
    margin-top: 16px;
  }

  .order-item {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 11px;
  }

  .order-item-image {
    width: 48px;
    height: 52px;
  }

  .footer-bottom p:last-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .announcement,
  .site-header,
  .hero,
  .site-footer,
  .timeline-toggle,
  .care-card,
  .status-aside a {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .results {
    padding: 0;
  }

  .status-panel {
    background: #fff;
    color: #000;
    border: 1px solid #000;
  }

  .status-panel h2,
  .status-note,
  .status-meta strong,
  .step-label {
    color: #000;
  }

  .result-grid {
    grid-template-columns: 1fr 1fr;
  }

  .panel {
    break-inside: avoid;
  }
}
