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

@font-face {
  font-family: "Inclusive Sans";
  src: url("assets/fonts/InclusiveSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inclusive Sans";
  src: url("assets/fonts/InclusiveSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inclusive Sans";
  src: url("assets/fonts/InclusiveSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inclusive Sans";
  src: url("assets/fonts/InclusiveSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --olive-900: #223601;
  --olive-300: #dddd6b;
  --gray-500: #adadad;
  --gray-400: #b6b6b6;
  --gray-300: #f0f0f0;
  --toast-bg: #1f1f1f;
  --toast-fg: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--olive-900);
  font-family: "Inclusive Sans", sans-serif;
}

.tracking-page {
  width: min(100%, 393px);
  margin: 0 auto;
  min-height: 80vh;
  padding: 30px 30px 24px;
}

.brand-wrap {
  margin-bottom: 54px;
}

.brand-logo {
  display: block;
  width: 132px;
  max-width: 100%;
  height: auto;
}

.tracking-content h1 {
  margin: 0 0 44px;
  font-family: "Creolia", serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 1;
  white-space: nowrap;
  color: var(--olive-900);
}

#trackingForm {
  display: grid;
  gap: 20px;
}

.field-wrap {
  position: relative;
  min-height: 57px;
  display: flex;
  align-items: center;
}

.tracking-input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--olive-900);
  font-family: "Inclusive Sans", sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: 0.01em;
  padding: 0;
  outline: none;
}

.order-input {
  text-transform: uppercase;
}

.order-input::placeholder {
  text-transform: none;
}

.tracking-input::placeholder {
  color: var(--gray-500);
  font-weight: 500;
}

.tracking-input:focus::placeholder {
  color: var(--gray-400);
}

.search-btn {
  margin-top: 95px;
  width: 330.5px;
  max-width: 100%;
  justify-self: start;
  min-height: 53.5px;
  border-radius: 999px;
  border: 1.5px solid var(--gray-400);
  background: var(--gray-300);
  color: #b0b0b0;
  font-family: "Inclusive Sans", sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease;
}

.search-btn:not(:disabled) {
  border-color: var(--olive-900);
  background: var(--olive-300);
  color: var(--olive-900);
  cursor: pointer;
}

.search-btn:not(:disabled):active {
  transform: translateY(1px);
}

.status-page {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: #f5f5f5;
  -webkit-overflow-scrolling: touch;
}

.status-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(
    125% 92% at 50% 106%,
    #e5592e 0%,
    #f78731 35%,
    #f4bb88 58%,
    #fce4c9 74%,
    rgba(252, 228, 201, 0) 92%
  );
  transform: translateY(105%);
  will-change: transform;
  z-index: 1;
  pointer-events: none;
}

.status-page.is-animating::before {
  animation: pending-gradient-rise 1000ms ease-out forwards;
}

.status-shell {
  position: relative;
  z-index: 2;
  width: min(100%, 393px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 60px 30px calc(28px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

.status-shell--with-actions {
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

.status-progress {
  margin-bottom: 48px;
}

.status-progress__track {
  display: block;
  width: min(150px, 68vw);
  height: 12px;
  border-radius: 999px;
  background: #f0dcc2;
  overflow: hidden;
}

.status-progress__fill {
  display: block;
  width: calc(var(--progress, 0) * 1%);
  height: 100%;
  border-radius: 999px;
  background: #ff5a00;
  transform-origin: left center;
}

.status-page.is-animating .status-progress__fill {
  animation: progress-fill 600ms ease-out both;
}

.status-copy {
  display: grid;
  gap: 26px;
}

.status-title {
  margin: 0;
  color: var(--olive-900);
  font-family: "Creolia", serif;
  font-weight: 400;
  font-size: clamp(30px, 8.2vw, 32px);
  line-height: 1.02;
}

.status-text {
  margin: 0;
  color: var(--olive-900);
  font-family: "Inclusive Sans", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0.003em;
}

.status-text strong {
  font-weight: 700;
}

.status-text-italic {
  display: block;
  margin-top: 2px;
  font-style: italic;
}

.status-schedule {
  margin-top: 10px;
}

.status-schedule-title {
  margin: 0 0 22px;
  color: var(--olive-900);
  font-family: "Inclusive Sans", sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
}

.status-schedule-row {
  margin: 0 0 16px;
  color: var(--olive-900);
  font-family: "Inclusive Sans", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
}

.status-schedule-row strong {
  font-weight: 700;
}

.status-label {
  margin: 8px 0 -6px;
  color: var(--olive-900);
  font-family: "Inclusive Sans", sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
}

.status-tracking-number {
  width: 100%;
  min-height: 64px;
  margin: 0;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-radius: 12px;
  border: 0;
  background: rgba(247, 247, 247, 0.95);
  color: var(--olive-900);
  font-family: "Inclusive Sans", sans-serif;
  font-size: clamp(20px, 5.1vw, 22px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.005em;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.status-actions {
  margin-top: auto;
  padding-top: 40px;
}

.status-cta {
  width: 100%;
  min-height: 53.5px;
  border: 1.5px solid var(--olive-900);
  border-radius: 999px;
  background: var(--olive-300);
  color: var(--olive-900);
  font-family: "Inclusive Sans", sans-serif;
  font-size: clamp(20px, 5.1vw, 24px);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.status-cta:active {
  transform: translateY(1px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.toast-region {
  position: fixed;
  right: 14px;
  left: 14px;
  bottom: 18px;
  display: grid;
  gap: 10px;
  z-index: 50;
}

.toast {
  margin: 0 auto;
  width: min(100%, 393px);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--toast-bg);
  color: var(--toast-fg);
  font-family: "Inclusive Sans", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(8px);
  animation: toast-in 0.18s ease forwards;
}

@keyframes toast-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pending-gradient-rise {
  from {
    transform: translateY(105%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes progress-fill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (min-width: 768px) {
  .tracking-page {
    padding-top: 30px;
  }

  #trackingForm {
    gap: 20px;
  }

  .search-btn {
    margin-top: 95px;
  }
}
