/* ---------- Tokens ---------- */
:root {
  --cream: #F7F2E8;
  --ink: #1E241C;
  --amber: #C97D3E;
  --amber-deep: #9C5A24;
  --white: #FFFDF9;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Clash Display", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1180px;

  /* Brand green, shared by the hero and the day section */
  --forest: #1F3327;
  --forest-deep: #16241B;
  --forest-soft: #263D2C;
  --hairline: rgba(247, 242, 232, 0.16);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
ol, ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }

/* ---------- Shared bits ---------- */
.icon-wpp { width: 18px; height: 18px; fill: currentColor; flex: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn--primary {
  background: var(--amber);
  color: var(--white);
}
.btn--primary:hover { background: var(--amber-deep); transform: translateY(-1px); }

.btn--ghost {
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255,255,255,0.16); }

.btn--small { padding: 0.55rem 1.1rem; font-size: 0.85rem; }

.btn--text {
  padding: 0.9rem 0.2rem;
  color: var(--white);
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  border-radius: 0;
  gap: 0.4rem;
}
.btn--text:hover { border-color: var(--white); }

/* ---------- Hero ---------- */
/* Mobile-first: brand + time marker + headline + phrase + CTA stack in normal
   flow on a solid brand-green ground; the photo follows as its own block,
   shown close to its native crop so every dog stays in frame. Desktop switches
   .hero__media to a full-bleed absolute layer behind an overlaid content block. */
.hero {
  display: flex;
  flex-direction: column;
  background: var(--forest);
  color: var(--white);
}

.hero__topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.25rem 0.5rem;
}

.wordmark {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
}
.wordmark em { font-style: normal; color: var(--amber); }

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 0.6rem 1.25rem 1.9rem;
}

.hero__time {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
}
.hero__time-clock {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--cream);
}
.hero__time-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  flex: none;
}
.hero__time-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 242, 232, 0.68);
}

.hero__headline {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.9rem, 7.5vw, 2.5rem);
  line-height: 1.18;
  letter-spacing: -0.005em;
  color: var(--white);
  text-wrap: balance;
  margin-bottom: 0.3rem;
}

.hero__subheadline {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(247, 242, 232, 0.86);
  max-width: 40ch;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.3rem;
}

.hero__media {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  overflow: hidden;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: none;
}

/* ---------- Day section ---------- */
/* Mobile-first: a plain vertical sequence, one moment after another, with a
   thin spine tying the times together. Desktop keeps the same DOM and just
   re-composes each chapter on its own terms (grid-area / bleed / overlap),
   so no two moments share the same image-left/text-right template. */
.day {
  position: relative;
  overflow-x: hidden;
  background: var(--forest);
  color: var(--cream);
  padding: 6rem 1.5rem 5rem;
}

.day__intro {
  max-width: 560px;
  margin: 0 auto 5rem;
  text-align: center;
}

.day__eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}

.day__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 2.7rem);
  margin-bottom: 1.1rem;
  color: var(--white);
}

.day__lede {
  font-size: 1.02rem;
  color: rgba(247, 242, 232, 0.8);
  line-height: 1.6;
}

.day__chapters {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
  padding-left: 1.5rem;
}
.day__chapters::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--amber) 0%, rgba(247, 242, 232, 0.22) 55%, rgba(247, 242, 232, 0.06) 100%);
}

.chapter {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.chapter__time { order: 1; }
.chapter__media { order: 2; }
.update-card { order: 2; }
.chapter__caption { order: 3; }

.chapter__time {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 0.3rem;
}
.chapter__time::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px var(--forest);
}
.chapter__time-period {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
}
.chapter__time-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  flex: none;
  margin: 0 0.55rem;
}
.chapter__time-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 242, 232, 0.68);
}

.chapter__bignum { display: none; }

.chapter__media {
  border-radius: 20px;
  overflow: hidden;
  background: var(--forest-soft);
  box-shadow: 0 24px 44px -26px rgba(8, 12, 9, 0.6);
  aspect-ratio: 4 / 5;
}
.chapter__media img { width: 100%; height: 100%; object-fit: cover; }
.chapter--01 .chapter__media { aspect-ratio: 5 / 4; }
.chapter--01 .chapter__media img { object-position: center 42%; }
.chapter--02 .chapter__media { aspect-ratio: 4 / 3; }
.chapter--03 .chapter__media { aspect-ratio: 3 / 4; max-width: 320px; }

.chapter__caption h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.35rem, 4vw, 1.6rem);
  line-height: 1.22;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.chapter__caption p {
  font-family: var(--sans);
  font-size: 0.98rem;
  color: rgba(247, 242, 232, 0.78);
  line-height: 1.6;
  max-width: 38ch;
}

.update-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 0.7rem 1rem 0.7rem 0.7rem;
  transform: rotate(-1.5deg);
}
.update-card__media {
  width: 84px;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  flex: none;
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.6);
}
.update-card__media img { width: 100%; height: 100%; object-fit: cover; }
.update-card__note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--cream);
}
.update-card__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  flex: none;
}

/* The payoff moment gets its own quiet panel, breaking the rhythm on purpose */
.chapter--04 {
  background: var(--forest-soft);
  border-radius: 24px;
  padding: 2rem 1.5rem;
}
.chapter--04 .chapter__time::before { display: none; }

.day__closing {
  max-width: 560px;
  margin: 6rem auto 0;
  text-align: center;
  padding-top: 3rem;
  border-top: 1px solid var(--hairline);
}
.day__closing p {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 1.6rem;
}
.day__closing .btn { justify-content: center; }

/* ---------- Scroll reveal (progressive enhancement) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Tablet / desktop ---------- */
@media (min-width: 620px) {
  .hero__topbar { padding: 1.8rem 3rem 0.5rem; }
  .hero__content { padding: 0.6rem 3rem 2.2rem; }
  .day { padding-inline: 3rem; }
}

/* Hero switches from a stacked mobile layout to a full-bleed overlay here */
@media (min-width: 860px) {
  .hero {
    position: relative;
    min-height: 100svh;
    justify-content: flex-end;
    overflow: hidden;
    isolation: isolate;
    background: none;
  }

  .hero__media {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
    z-index: -2;
  }

  .hero__image { object-position: center 38%; }

  .hero__scrim {
    z-index: -1;
    background: linear-gradient(
      180deg,
      rgba(15, 22, 15, 0.4) 0%,
      rgba(15, 22, 15, 0.05) 22%,
      rgba(15, 22, 15, 0.05) 48%,
      rgba(16, 24, 17, 0.7) 78%,
      var(--forest-deep) 100%
    );
  }

  .hero__content { max-width: 660px; padding-left: 4.75rem; }

  .hero__headline {
    font-size: clamp(2rem, 3vw, 2.35rem);
    line-height: 1.14;
    margin-top: 0.4rem;
  }
}

@media (min-width: 900px) {
  .day__intro { margin-bottom: 3rem; }
  .day__chapters { padding-left: 2rem; gap: 9rem; }

  .chapter__time-period { font-size: 0.95rem; }
  .chapter__time-label { font-size: 0.78rem; }

  /* Morning — a wide establishing shot, almost the full measure */
  .chapter--01 .chapter__media { aspect-ratio: 16 / 9; }
  .chapter--01 .chapter__caption { max-width: 46ch; margin-top: 0.5rem; }

  /* Midday — caption stays on the grid, the photo breaks past its edge */
  .chapter--02 {
    display: grid;
    grid-template-columns: minmax(220px, 340px) 1fr;
    grid-template-areas: "time media" "caption media";
    align-items: center;
    column-gap: 3rem;
  }
  .chapter--02 .chapter__time { grid-area: time; align-self: end; }
  .chapter--02 .chapter__caption { grid-area: caption; align-self: start; }
  .chapter--02 .chapter__media {
    grid-area: media;
    aspect-ratio: 16 / 10;
    width: calc(100% + 4rem);
    justify-self: start;
  }

  /* Afternoon — a small vertical frame in front of its own oversized watermark */
  .chapter--03 {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    column-gap: 2rem;
    padding-block: 2rem;
  }
  .chapter--03 .chapter__time { grid-column: 1; }
  .chapter--03 .chapter__media {
    grid-column: 2;
    justify-self: end;
    width: min(300px, 90%);
    z-index: 1;
  }
  .chapter--03 .chapter__caption {
    grid-column: 2;
    justify-self: end;
    text-align: right;
    max-width: 24ch;
    margin-top: 1.25rem;
    z-index: 1;
  }
  .chapter--03 .chapter__bignum {
    display: flex;
    align-items: center;
    position: absolute;
    inset: 0;
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(5.5rem, 12vw, 9.5rem);
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: rgba(247, 242, 232, 0.05);
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
  }

  /* End of day — the payoff: quiet panel, time and caption beside the update */
  .chapter--04 {
    padding: 2.75rem 3.5rem;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 3rem;
  }
  .chapter--04 .chapter__time { grid-column: 1; }
  .chapter--04 .chapter__caption { grid-column: 1; max-width: 34ch; }
  .chapter--04 .update-card { grid-column: 2; grid-row: 1 / span 2; transform: rotate(-2deg); }
}

@media (min-width: 1100px) {
  .hero__topbar { padding: 2.4rem 4rem 0; }
  .hero__content { padding: 3rem 4rem 6rem; padding-left: 5.75rem; }
  .hero__headline { font-size: clamp(2.2rem, 3vw, 2.6rem); }
  .day { padding: 8rem 4rem 6rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
