/*
 * Omnitub Journey — Heritage Botanical theme.
 * Forest #2C3E2D · Cream #F7F4ED · Brass #B89B5E · Aubergine #7A5A6E
 * Espresso #403326 · Linen #D9CFB6 · Forest-dark #1E2C1F
 */

@import url('https://fonts.googleapis.com/css2?family=Tenor+Sans&family=Outfit:wght@300;400;500&family=Shippori+Mincho:wght@400;500&display=swap');

:root {
  --forest: #2C3E2D;
  --forest-dark: #1E2C1F;
  --cream: #F7F4ED;
  --brass: #B89B5E;
  --aubergine: #7A5A6E;
  --espresso: #403326;
  --linen: #D9CFB6;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--forest);
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(184, 155, 94, 0.55);
}
a:hover { text-decoration-color: var(--brass); color: var(--forest-dark); }

/* ── Topbar ─────────────────────────────────────────── */

.topbar {
  background: var(--forest-dark);
  color: var(--cream);
  padding: 16px 24px;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.topbar__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar__logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--cream);
  text-decoration: none;
}

.topbar__logo-img {
  display: block;
  height: 28px;
  width: auto;
  /* The original logo is dark — invert to cream for the forest-dark topbar.
     Brightness:0 then invert + slight cream tint via drop-shadow keeps the silhouette
     crisp without visible halo. */
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

.topbar__logo-eyebrow {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 400;
  padding: 3px 10px;
  border: 1px solid rgba(184, 155, 94, 0.55);
  border-radius: 999px;
  line-height: 1;
}

@media (max-width: 540px) {
  .topbar__logo-img { height: 22px; }
  .topbar__logo-eyebrow { display: none; }
}

.topbar__right {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.72;
}

/* ── Page wrap ─────────────────────────────────────── */

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

/* ── Hero / order summary ──────────────────────────── */

.order {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
  padding: 36px 0 32px;
  border-bottom: 1px solid rgba(184, 155, 94, 0.32);
}

.order__photo {
  width: 220px;
  height: 220px;
  border-radius: 14px;
  background: var(--linen);
  background-size: cover;
  background-position: center;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 18px 38px -22px rgba(44, 62, 45, 0.25);
}

.order__meta-eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 8px;
}

.order__title {
  font-family: 'Tenor Sans', serif;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: var(--forest-dark);
  margin: 0 0 14px;
}

.order__line {
  font-size: 15px;
  margin: 0 0 6px;
}

.order__line strong {
  font-weight: 400;
  color: var(--forest-dark);
}

.order__line .dim {
  opacity: 0.72;
  font-size: 13.5px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.02em;
  background: var(--cream);
  border: 1px solid rgba(184, 155, 94, 0.55);
}

.status-pill::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--brass);
  flex: 0 0 auto;
}

.status-pill[data-status="delivered"]    { background: rgba(44, 62, 45, 0.08); }
.status-pill[data-status="delivered"]::before { background: var(--forest); }
.status-pill[data-status="out"]::before   { background: var(--brass); animation: pulse 1.5s ease-in-out infinite; }
.status-pill[data-status="transit"]::before { background: var(--brass); }

@keyframes pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.55; }
}

/* ── Section headings ──────────────────────────────── */

.section-title {
  font-family: 'Tenor Sans', serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--forest-dark);
  margin: 56px 0 8px;
}

.section-title__kanji {
  font-family: 'Shippori Mincho', serif;
  color: var(--brass);
  margin-right: 10px;
  font-size: 18px;
}

.section-sub {
  font-size: 13.5px;
  opacity: 0.74;
  margin: 0 0 24px;
}

/* ── Timeline ──────────────────────────────────────── */

.timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 4px 0 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    rgba(184, 155, 94, 0.6) 0%,
    rgba(184, 155, 94, 0.6) calc(var(--progress, 100%)),
    rgba(184, 155, 94, 0.18) calc(var(--progress, 100%)),
    rgba(184, 155, 94, 0.18) 100%
  );
}

.event {
  position: relative;
  padding: 14px 0 22px 40px;
}

.event__dot {
  position: absolute;
  left: 4px;
  top: 16px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--cream);
  border: 2px solid var(--brass);
  box-shadow: 0 0 0 4px var(--cream);
}

.event--done .event__dot {
  background: var(--forest);
  border-color: var(--forest);
}

.event--current .event__dot {
  background: var(--brass);
  border-color: var(--brass);
  animation: pulse 1.5s ease-in-out infinite;
}

.event__when {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 4px;
}

.event__title {
  font-family: 'Tenor Sans', serif;
  font-weight: 400;
  font-size: 18px;
  color: var(--forest-dark);
  margin: 0 0 4px;
  letter-spacing: 0.01em;
}

.event__where {
  font-size: 13.5px;
  opacity: 0.7;
  margin: 0 0 8px;
}

.event__body {
  font-size: 14.5px;
  margin: 0;
  line-height: 1.6;
  max-width: 60ch;
}

/* ── POD card ──────────────────────────────────────── */

.pod {
  margin-top: 32px;
  background: #FFFFFF;
  border: 1px solid rgba(184, 155, 94, 0.32);
  border-radius: 14px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 12px 32px -16px rgba(44, 62, 45, 0.18);
}

.pod__title {
  font-family: 'Tenor Sans', serif;
  font-weight: 400;
  font-size: 20px;
  margin: 0 0 8px;
  color: var(--forest-dark);
}

.pod__meta {
  font-size: 13.5px;
  opacity: 0.78;
  margin: 0 0 14px;
}

.pod__sig {
  margin-top: 14px;
  background: var(--cream);
  border-radius: 8px;
  padding: 18px 20px;
  font-family: 'Caveat', 'Lucida Handwriting', cursive;
  font-size: 30px;
  color: var(--forest-dark);
  letter-spacing: 0.02em;
  border-left: 3px solid var(--brass);
}

.pod__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pod-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pod-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--cream);
  border: 1px solid rgba(184, 155, 94, 0.4);
  border-radius: 10px;
  text-decoration: none;
  color: var(--forest-dark);
  font-size: 14px;
  font-weight: 400;
  transition: background-color 180ms ease, border-color 180ms ease, transform 100ms ease;
}

.pod-link:hover {
  background: #FBF9F2;
  border-color: var(--brass);
  transform: translateY(-1px);
}

.pod-link span {
  font-family: 'Shippori Mincho', serif;
  color: var(--brass);
  font-size: 16px;
  line-height: 1;
}

.pod__photo {
  background: var(--linen);
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
}

/* ── Footer ─────────────────────────────────────────── */

.foot {
  margin-top: 80px;
  padding: 24px 0;
  border-top: 1px solid rgba(184, 155, 94, 0.28);
  font-size: 12.5px;
  color: var(--forest);
  opacity: 0.78;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.foot a { white-space: nowrap; }

/* ── Subscribe widget ──────────────────────────────────── */

.subscribe {
  margin-top: 56px;
  background: #FFFFFF;
  border: 1px solid rgba(184, 155, 94, 0.32);
  border-radius: 14px;
  padding: 26px 32px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 12px 28px -16px rgba(44, 62, 45, 0.16);
}

.subscribe__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.subscribe__eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 8px;
}

.subscribe__title {
  font-family: 'Tenor Sans', serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.01em;
  color: var(--forest-dark);
  margin: 0 0 8px;
  line-height: 1.25;
}

.subscribe__body {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 8px;
  opacity: 0.85;
  max-width: 50ch;
}

.subscribe__status {
  margin: 6px 0 0;
  font-size: 12.5px;
  font-style: italic;
  opacity: 0.78;
  min-height: 1.4em;
}

.subscribe__btn {
  appearance: none;
  border: 1px solid var(--brass);
  background: var(--forest);
  color: var(--cream);
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: background-color 200ms ease, transform 100ms ease, color 200ms ease;
  white-space: nowrap;
}

.subscribe__btn:hover:not(:disabled) {
  background: var(--forest-dark);
  transform: translateY(-1px);
}

.subscribe__btn:disabled { opacity: 0.6; cursor: progress; }

.subscribe__btn span:first-child {
  font-family: 'Shippori Mincho', serif;
  color: var(--brass);
  font-size: 16px;
  line-height: 1;
}

.subscribe__btn--active {
  background: #FBF9F2;
  color: var(--forest-dark);
  border-color: rgba(122, 90, 110, 0.55);
}

.subscribe__btn--active span:first-child { color: var(--aubergine); }

@media (max-width: 600px) {
  .subscribe { padding: 22px 20px; }
  .subscribe__inner { grid-template-columns: 1fr; }
  .subscribe__btn { width: 100%; justify-content: center; }
}

.demo-banner {
  background: rgba(122, 90, 110, 0.18);
  color: var(--espresso);
  text-align: center;
  font-size: 13px;
  padding: 11px 18px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(184, 155, 94, 0.32);
}

@media (max-width: 720px) {
  .wrap { padding: 36px 18px 64px; }
  .order { grid-template-columns: 1fr; gap: 18px; }
  .order__photo { width: 100%; max-width: 320px; height: 240px; }
  .pod { grid-template-columns: 1fr; padding: 22px; }
}
