:root {
  --day-ink: #6d331f;
  --day-deep-ink: #3c1d16;
  --day-muted: #885c49;
  --day-surface: #ffe5d2;
  --day-paper: #fff6eb;
  --day-line: #d89670;
  --day-accent: #e36b36;
  --day-space-sm: 12px;
  --day-space-md: 24px;
  --day-space-lg: 48px;
  --day-space-xl: 96px;
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  color: var(--day-ink);
  background: var(--day-surface);
  font-family: var(--habito-font);
  font-kerning: normal;
  transition: color .4s ease, background-color .65s ease;
}
body[data-time="afternoon"] {
  --day-ink: #704411;
  --day-deep-ink: #422a0e;
  --day-muted: #805c24;
  --day-surface: #ffe5a5;
  --day-paper: #fff8e3;
  --day-line: #d49d36;
  --day-accent: #d78911;
}
body[data-time="evening"] {
  --day-ink: #4d3a70;
  --day-deep-ink: #2d2445;
  --day-muted: #67567f;
  --day-surface: #e8ddf4;
  --day-paper: #fbf8ff;
  --day-line: #a88fca;
  --day-accent: #7d60aa;
}
button, a { font: inherit; -webkit-tap-highlight-color: transparent; }

.day-skip-link {
  position: fixed;
  z-index: 30;
  top: 12px;
  left: 12px;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 12px 16px;
  color: var(--day-paper);
  background: var(--day-deep-ink);
  transform: translateY(-160%);
}
.day-skip-link:focus { transform: translateY(0); }

.day-header,
.day-hero,
.day-timeline-shell,
.day-summary,
.day-close,
.day-footer {
  width: min(calc(100% - 32px), 1280px);
  margin-inline: auto;
}

.day-header {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--day-line);
}
.day-wordmark {
  display: inline-flex;
  min-height: 64px;
  align-items: center;
  gap: 2px;
  color: var(--day-ink);
  font-size: 2.125rem;
  font-weight: 750;
  letter-spacing: -.075em;
  text-decoration: none;
}
.day-wordmark img {
  width: 72px;
  height: 72px;
  margin-left: -13px;
  object-fit: contain;
}
.day-header p,
.day-kicker,
.chapter-eyebrow {
  margin: 0;
  font-size: .625rem;
  font-weight: 800;
  letter-spacing: .035em;
}
.day-header p {
  max-width: 116px;
  text-align: right;
  word-break: keep-all;
}

.day-hero {
  display: grid;
  gap: 40px;
  padding-block: 56px 64px;
}
.day-hero h1,
.chapter-copy h2,
.day-summary h2,
.day-close h2 {
  margin: 16px 0 0;
  color: var(--day-deep-ink);
  font-weight: 550;
  letter-spacing: -.065em;
  text-wrap: balance;
  word-break: keep-all;
}
.day-hero h1 {
  font-size: clamp(2.75rem, 12.2vw, 4rem);
  line-height: 1.01;
}
.day-hero h1 em { color: var(--day-accent); font-style: normal; }
.day-hero__copy > p:not(.day-kicker),
.day-close > p:not(.day-kicker) {
  max-width: 32rem;
  margin: 24px 0;
  color: var(--day-muted);
  font-size: 1rem;
  line-height: 1.72;
  text-wrap: pretty;
  word-break: keep-all;
}
.day-store-links { display: grid; grid-template-columns: 1fr; gap: 8px; }
.day-store-links a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 1px solid var(--day-deep-ink);
  color: var(--day-deep-ink);
  font-size: .8125rem;
  font-weight: 800;
  text-decoration: none;
}
.day-store-links a:first-child { color: var(--day-paper); background: var(--day-deep-ink); }

.day-hero__journey { display: grid; gap: 24px; margin: 0; }
.day-hero__art {
  overflow: hidden;
  border: 1px solid var(--day-line);
  background: #fff1e5;
  box-shadow: 8px 10px 0 color-mix(in srgb, var(--day-accent) 22%, transparent);
}
.day-hero__art img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.day-journey-label {
  display: block;
  margin-bottom: 12px;
  color: var(--day-accent);
  font-size: .625rem;
  font-weight: 800;
  letter-spacing: .035em;
}
.hero-day-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--day-deep-ink);
  list-style: none;
}
.hero-day-list li {
  display: grid;
  min-height: 52px;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  padding-right: 8px;
  border-bottom: 1px solid var(--day-line);
  color: var(--day-ink);
  font-size: .8125rem;
  font-weight: 800;
}
.hero-day-list li:nth-child(odd) { border-right: 1px solid var(--day-line); }
.hero-day-list li:nth-child(even) { padding-left: 10px; }
.hero-day-list li:last-child { grid-column: 1 / -1; border-right: 0; }
.hero-day-list time {
  color: var(--day-accent);
  font-size: .625rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
.hero-day-list span { word-break: keep-all; }

.day-timeline-shell {
  position: relative;
  padding: 0 0 72px 48px;
}
.day-timeline-shell::before {
  position: absolute;
  top: 0;
  bottom: 72px;
  left: 16px;
  width: 1px;
  background: var(--day-line);
  content: "";
}
.day-compass {
  position: sticky;
  z-index: 8;
  top: 12px;
  display: flex;
  width: fit-content;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  margin: 12px 0 -64px -55px;
  padding: 6px 14px 6px 7px;
  border: 1.5px solid #271815;
  border-radius: 999px;
  color: var(--day-ink);
  background: var(--day-paper);
  box-shadow: 0 0 0 4px var(--day-surface);
  transition: color .4s ease, background-color .65s ease;
}
.day-clock {
  position: relative;
  display: block;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border: 2px solid var(--day-ink);
  border-radius: 50%;
  background: var(--day-paper);
  box-shadow: 0 0 0 5px var(--day-surface);
  transition: border-color .4s ease, background-color .65s ease, box-shadow .65s ease;
}
.day-clock::before,
.day-clock::after {
  position: absolute;
  left: 50%;
  width: 1px;
  height: 4px;
  background: var(--day-ink);
  content: "";
  transform: translateX(-50%);
}
.day-clock::before { top: 3px; }
.day-clock::after { bottom: 3px; }
.day-clock__hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  display: block;
  border-radius: 999px;
  transform-origin: bottom center;
  transition: transform .32s cubic-bezier(.22, 1, .36, 1), background-color .4s ease;
}
.day-clock__hand--hour {
  width: 2px;
  height: 8px;
  background: var(--day-ink);
}
.day-clock__hand--minute {
  width: 2px;
  height: 11px;
  background: var(--day-accent);
}
.day-clock em {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--day-ink);
  transform: translate(-50%, -50%);
}
.day-compass__copy { display: grid; gap: 1px; }
.day-compass__copy p { margin: 0; }
.day-compass__time {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 800;
}
.day-compass__time time {
  color: var(--day-accent);
  font-size: .875rem;
  font-variant-numeric: tabular-nums;
}
.day-compass__time span { font-size: .6875rem; }
.day-compass__status {
  max-width: 22ch;
  color: var(--day-muted);
  font-size: .6875rem;
  font-weight: 700;
  line-height: 1.35;
  word-break: keep-all;
}
.day-chapters { min-width: 0; }
.day-chapter {
  position: relative;
  display: grid;
  gap: 32px;
  padding-block: 104px 72px;
  border-bottom: 1px solid var(--day-line);
}
.day-chapter--review { border-bottom: 0; }
.chapter-marker {
  display: none;
  position: absolute;
  top: 30px;
  left: -46px;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: var(--day-ink);
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .025em;
  white-space: nowrap;
}
.chapter-marker time {
  color: var(--day-accent);
  font-size: .875rem;
  font-variant-numeric: tabular-nums;
}
.chapter-clock {
  position: relative;
  display: block;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border: 2px solid var(--day-ink);
  border-radius: 50%;
  background: var(--day-paper);
  box-shadow: 0 0 0 5px var(--day-surface);
}
.chapter-clock::before,
.chapter-clock::after {
  position: absolute;
  left: 50%;
  width: 1px;
  height: 4px;
  background: var(--day-ink);
  content: "";
  transform: translateX(-50%);
}
.chapter-clock::before { top: 3px; }
.chapter-clock::after { bottom: 3px; }
.chapter-clock i,
.chapter-clock b {
  position: absolute;
  bottom: 50%;
  left: 50%;
  display: block;
  border-radius: 999px;
  transform-origin: bottom center;
}
.chapter-clock i {
  width: 2px;
  height: 8px;
  background: var(--day-ink);
  transform: translateX(-50%) rotate(var(--hour-angle));
}
.chapter-clock b {
  width: 2px;
  height: 11px;
  background: var(--day-accent);
  transform: translateX(-50%) rotate(var(--minute-angle));
}
.chapter-clock span { display: none; }
.chapter-clock::selection { background: transparent; }
.chapter-eyebrow { color: var(--day-accent); }
.chapter-copy h2 { font-size: clamp(2.5rem, 11vw, 3.5rem); line-height: 1; }
.chapter-outcome {
  max-width: 32rem;
  margin: 20px 0 0;
  color: var(--day-muted);
  font-size: 1rem;
  line-height: 1.7;
  text-wrap: pretty;
  word-break: keep-all;
}

.app-pair {
  display: grid;
  width: 100%;
  max-width: 700px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  justify-self: end;
}
.app-shot { min-width: 0; margin: 0; }
.app-shot figcaption {
  min-height: 56px;
  margin-bottom: 10px;
  color: var(--day-ink);
  word-break: keep-all;
}
.app-shot figcaption strong,
.app-shot figcaption span { display: block; }
.app-shot figcaption strong {
  font-size: .75rem;
  font-weight: 800;
  line-height: 1.3;
}
.app-shot figcaption span {
  margin-top: 4px;
  color: var(--day-muted);
  font-size: .6875rem;
  font-weight: 650;
  line-height: 1.4;
}
.app-shot__screen {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--day-deep-ink);
  border-radius: clamp(22px, 6vw, 38px);
  background: #f8f5f0;
  box-shadow: 0 14px 26px color-mix(in srgb, var(--day-deep-ink) 13%, transparent);
}
.app-shot__screen > img { display: block; width: 100%; height: auto; aspect-ratio: 1320 / 2868; object-fit: cover; }
.app-shot--store .app-shot__screen {
  position: relative;
  aspect-ratio: 593 / 1270;
}
.app-shot--store .app-shot__screen > img {
  position: absolute;
  top: -32.68%;
  left: -41.15%;
  width: 182.12%;
  max-width: none;
  height: auto;
  aspect-ratio: auto;
  object-fit: initial;
}

.js-motion .day-chapter .chapter-copy,
.js-motion .day-chapter .app-shot {
  opacity: .35;
  transform: translateY(14px);
}
.js-motion .day-chapter.has-entered .chapter-copy,
.js-motion .day-chapter.has-entered .app-shot {
  opacity: 1;
  transform: none;
  transition: opacity .45s ease, transform .45s cubic-bezier(.22, 1, .36, 1);
}
.js-motion .day-chapter.has-entered .app-shot:nth-child(2) { transition-delay: 50ms; }

.day-summary { padding-block: 72px 80px; border-top: 1px solid var(--day-line); }
.day-summary h2,
.day-close h2 { font-size: clamp(2.625rem, 11vw, 4.75rem); line-height: 1; }
.day-summary ol {
  display: grid;
  margin: 44px 0 0;
  padding: 0;
  border-top: 1px solid var(--day-ink);
  border-bottom: 1px solid var(--day-line);
  list-style: none;
}
.day-summary li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 17px 0;
  border-top: 1px solid var(--day-line);
}
.day-summary li:first-child { border-top: 0; }
.day-summary strong {
  color: var(--day-deep-ink);
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -.04em;
}
.day-summary span { color: var(--day-muted); font-size: .8125rem; font-weight: 700; word-break: keep-all; }
.day-close {
  position: relative;
  overflow: hidden;
  padding: 64px 24px;
  color: var(--day-paper);
  background: var(--day-deep-ink);
}
.day-close::after {
  position: absolute;
  right: -28%;
  bottom: -22%;
  width: min(86vw, 620px);
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--day-paper) 58%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 48px color-mix(in srgb, var(--day-paper) 6%, transparent), 0 0 0 100px color-mix(in srgb, var(--day-paper) 4%, transparent);
  content: "";
}
.day-close > * { position: relative; z-index: 1; }
.day-close .day-kicker,
.day-close h2 { color: var(--day-paper); }
.day-close > p:not(.day-kicker) { color: color-mix(in srgb, var(--day-paper) 76%, transparent); }
.day-close .day-store-links a { border-color: var(--day-paper); color: var(--day-paper); }
.day-close .day-store-links a:first-child { color: var(--day-deep-ink); background: var(--day-paper); }
.day-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-block: 28px 34px;
  color: var(--day-muted);
  font-size: .5625rem;
  font-weight: 800;
  letter-spacing: .04em;
}

:is(.day-wordmark, .day-store-links a):focus-visible { outline: 3px solid var(--day-accent); outline-offset: 4px; }

@media (min-width: 40rem) {
  .day-header,
  .day-hero,
  .day-timeline-shell,
  .day-summary,
  .day-close,
  .day-footer { width: min(calc(100% - 48px), 1280px); }
  .day-header { min-height: 96px; }
  .day-wordmark { font-size: 2.75rem; }
  .day-wordmark img { width: 92px; height: 92px; margin-left: -16px; }
  .day-header p { max-width: none; }
  .day-hero { gap: 56px; padding-block: 72px 88px; }
  .day-store-links { display: flex; flex-wrap: wrap; gap: 10px; }
  .day-hero__journey { grid-template-columns: minmax(0, 1fr) 170px; align-items: center; }
  .hero-day-list { grid-template-columns: 1fr; }
  .hero-day-list li,
  .hero-day-list li:nth-child(odd),
  .hero-day-list li:nth-child(even) { min-height: 58px; padding: 0; border-right: 0; }
  .hero-day-list li:last-child { grid-column: auto; }
  .day-timeline-shell { padding-left: 64px; }
  .day-timeline-shell::before { left: 22px; }
  .day-compass { margin-left: -69px; }
  .day-clock { flex-basis: 40px; width: 40px; height: 40px; }
  .day-clock__hand--hour { height: 10px; }
  .day-clock__hand--minute { height: 14px; }
  .day-chapter { grid-template-columns: minmax(170px, .5fr) minmax(0, 1.25fr); gap: 32px 24px; align-items: center; padding-block: 112px 88px; }
  .chapter-marker { top: 34px; left: -62px; }
  .chapter-clock { flex-basis: 40px; width: 40px; height: 40px; }
  .chapter-clock i { height: 10px; }
  .chapter-clock b { height: 14px; }
  .chapter-copy h2 { font-size: clamp(2.25rem, 5.3vw, 3.25rem); }
  .chapter-outcome { font-size: .9375rem; }
  .app-pair { gap: 16px; }
  .app-shot figcaption { min-height: 52px; }
  .app-shot figcaption strong { font-size: .8125rem; }
  .app-shot figcaption span { font-size: .75rem; }
  .day-summary ol { grid-template-columns: repeat(3, 1fr); }
  .day-summary li { min-height: 120px; justify-content: center; padding: 16px; border-top: 0; border-left: 1px solid var(--day-line); }
  .day-summary li:first-child { border-left: 0; }
  .day-summary li:nth-child(4) { border-top: 1px solid var(--day-line); border-left: 0; }
  .day-summary li:nth-child(5) { border-top: 1px solid var(--day-line); }
  .day-close { padding: 80px 72px; }
}

@media (min-width: 64rem) {
  .day-hero { min-height: calc(100svh - 96px); grid-template-columns: minmax(300px, .9fr) minmax(500px, 1.1fr); align-items: center; gap: clamp(56px, 7vw, 108px); }
  .day-hero h1 { font-size: clamp(3.5rem, 4.75vw, 4.5rem); }
  .day-hero__journey { grid-template-columns: minmax(0, 1fr) minmax(138px, .38fr); gap: 24px; }
  .day-hero__art { box-shadow: 12px 14px 0 color-mix(in srgb, var(--day-accent) 22%, transparent); }
  .day-timeline-shell { padding-left: 72px; }
  .day-timeline-shell::before { left: 24px; }
  .day-compass { margin-left: -75px; }
  .day-chapter { grid-template-columns: minmax(240px, .54fr) minmax(0, 1.46fr); gap: 48px; padding-block: 120px 104px; }
  .chapter-marker { top: 40px; left: -68px; gap: 10px; }
  .chapter-copy h2 { font-size: clamp(3rem, 4vw, 3.875rem); }
  .chapter-outcome { max-width: 22rem; font-size: 1rem; }
  .app-pair { gap: 20px; }
  .app-shot figcaption { min-height: 56px; margin-bottom: 12px; }
  .app-shot figcaption strong { font-size: .875rem; }
  .app-shot figcaption span { font-size: .8125rem; }
  .day-summary { padding-block: 96px 110px; }
  .day-summary ol { grid-template-columns: repeat(5, 1fr); margin-top: 64px; }
  .day-summary li,
  .day-summary li:nth-child(4),
  .day-summary li:nth-child(5) { min-height: 130px; border-top: 0; border-left: 1px solid var(--day-line); }
  .day-summary li:first-child { border-left: 0; }
  .day-close { min-height: 475px; padding: 112px; }
}

@media (hover: hover) and (pointer: fine) {
  .app-shot__screen { transition: transform .28s ease, box-shadow .28s ease; }
  .app-shot:hover .app-shot__screen { transform: translateY(-4px); box-shadow: 0 20px 38px color-mix(in srgb, var(--day-deep-ink) 16%, transparent); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body,
  .day-compass,
  .day-clock,
  .day-clock__hand,
  .app-shot__screen,
  .js-motion .day-chapter .chapter-copy,
  .js-motion .day-chapter .app-shot,
  .js-motion .day-chapter.has-entered .chapter-copy,
  .js-motion .day-chapter.has-entered .app-shot { transition: none; }
  .js-motion .day-chapter .chapter-copy,
  .js-motion .day-chapter .app-shot { opacity: 1; transform: none; }
}
