@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

/* Typed so the page canvas can interpolate: an unregistered custom property would snap, not shift. */
@property --canvas {
  syntax: "<color>";
  inherits: true;
  initial-value: #f6f4ed;
}

@property --paper {
  syntax: "<color>";
  inherits: true;
  initial-value: #fffdf7;
}

@property --ink {
  syntax: "<color>";
  inherits: true;
  initial-value: #16211e;
}

@property --muted {
  syntax: "<color>";
  inherits: true;
  initial-value: #5c6763;
}

@property --leaf {
  syntax: "<color>";
  inherits: true;
  initial-value: #356d5d;
}

@property --line {
  syntax: "<color>";
  inherits: true;
  initial-value: #d9ddd1;
}

:root {
  --ink: #16211e;
  --muted: #5c6763;
  --canvas: #f6f4ed;
  --paper: #fffdf7;
  --line: #d9ddd1;
  --sun: #f0a44b;
  --sun-soft: #f9e0bb;
  --leaf: #356d5d;
  --leaf-dark: #20493d;
  --radius: 1.5rem;
  --wide: min(1120px, calc(100% - 3rem));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; border-radius: .35rem; }
.skip-link { position: fixed; inset-inline-start: 1rem; inset-block-start: -4rem; z-index: 10; background: var(--ink); color: white; padding: .7rem 1rem; }
.skip-link:focus { inset-block-start: 1rem; }

.site-header, footer {
  inline-size: var(--wide);
  margin-inline: auto;
  display: flex;
  align-items: safe center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-header { padding-block: 1.35rem; }
.wordmark { font-size: 1.13rem; font-weight: 800; letter-spacing: -.07em; }
.wordmark span { color: var(--leaf); }
nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: clamp(.85rem, 2vw, 1.8rem); color: var(--muted); font-size: .83rem; font-weight: 700; }
nav a:hover { color: var(--leaf); }

.hero { inline-size: var(--wide); margin: clamp(2rem, 8vw, 7.25rem) auto clamp(5rem, 13vw, 10.5rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, .75fr); align-items: center; gap: clamp(3rem, 10vw, 9rem); }
.hero-copy { container: hero / inline-size; }
.eyebrow, .section-label, .moment-kicker { margin: 0 0 1rem; color: var(--leaf); font: 500 .72rem/1.2 "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3, p { margin-block-start: 0; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -.055em; }
h1 { max-inline-size: 12ch; margin-block-end: 1.45rem; font-size: clamp(2.75rem, 7cqi, 5.7rem); line-height: .98; }
h2 { max-inline-size: 19ch; margin-block-end: 1.2rem; font-size: clamp(2.1rem, 4.4vw, 4.1rem); line-height: 1.02; }
h3 { margin-block-end: .6rem; font-size: 1.25rem; }
.lede { max-inline-size: 34rem; margin-block-end: 2rem; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.18rem); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-block-size: 3.15rem; padding: .75rem 1.1rem; border: 1px solid transparent; border-radius: 999px; font-size: .88rem; font-weight: 800; transition: transform 180ms ease, background 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--leaf-dark); color: white; }
.button-primary:hover { background: var(--leaf); }
.button-secondary { border-color: var(--line); background: var(--paper); }
.button-secondary:hover { border-color: var(--leaf); }

.wake-moment { position: relative; display: flex; flex-direction: column; min-block-size: 34rem; margin: 0; padding: 1.2rem; overflow: clip; border: 1px solid #d6c5ae; border-radius: var(--radius); background: linear-gradient(180deg, #b8d4d2 0%, #e8d9c2 37%, #edbb77 67%, #315847 100%); isolation: isolate; }
.wake-moment::before { position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, rgb(255 255 255 / .08), transparent 42%, rgb(16 45 37 / .16)); content: ""; pointer-events: none; }
.moment-header { position: relative; z-index: 2; display: flex; align-items: center; gap: .55rem; font: 500 .67rem/1 "DM Mono", monospace; letter-spacing: .03em; text-transform: uppercase; }
.moment-header time { margin-inline-start: auto; }
.status-dot { inline-size: .5rem; block-size: .5rem; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 .2rem rgb(53 109 93 / .17); }
.dawn-scene { position: absolute; z-index: 0; inset: 0; overflow: clip; }
.dawn-glow { position: absolute; inset: 18% -20% auto; block-size: 19rem; border-radius: 50%; background: radial-gradient(circle, rgb(255 241 184 / .78) 0 9%, rgb(255 209 125 / .36) 33%, transparent 70%); }
.dawn-sun { position: absolute; z-index: 1; inset: auto auto 23% 50%; inline-size: 9.5rem; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 36% 31%, #fff8d7 0 8%, #ffd27b 36%, #ef9440 73%); box-shadow: 0 0 0 1px rgb(255 243 201 / .4), 0 0 4.5rem rgb(255 194 101 / .65); transform: translateX(-50%); }
.dawn-horizon { position: absolute; inset-inline: -18%; border-radius: 50% 50% 0 0 / 42% 42% 0 0; }
.dawn-horizon-back { z-index: 2; inset-block-end: 7%; block-size: 29%; background: #739779; transform: rotate(-4deg); }
.dawn-horizon-front { z-index: 3; inset-block-end: -15%; block-size: 36%; background: #214b3e; transform: rotate(3deg); }
.wake-plan { position: relative; z-index: 4; display: grid; gap: .45rem; margin: auto 0 .95rem; padding: 0; list-style: none; }
.wake-plan li { display: grid; grid-template-columns: 2.9rem minmax(0, 1fr); gap: .1rem .6rem; padding: .5rem .72rem; border: 1px solid rgb(22 33 30 / .13); border-radius: .7rem; background: rgb(255 253 247 / .86); backdrop-filter: blur(4px); }
.wake-plan time { grid-row: span 2; color: var(--leaf); font: 500 .74rem/1.35 "DM Mono", monospace; }
.plan-label { font-size: .89rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.25; }
.plan-note { color: var(--muted); font-size: .75rem; line-height: 1.3; }
.moment-copy { position: relative; z-index: 4; padding-inline: .3rem; padding-block-end: .3rem; color: white; }
.moment-kicker { color: #d0efcf; }
.moment-title { margin-block-end: .35rem; font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 800; letter-spacing: -.06em; line-height: 1; }
.moment-detail { margin: 0; color: rgb(255 255 255 / .78); font-size: .86rem; }
figcaption { position: absolute; z-index: 2; inset: 4.4rem 1.2rem auto; max-inline-size: 18rem; margin: 0; padding: .6rem .72rem; border: 1px solid rgb(22 33 30 / .13); border-radius: .7rem; background: rgb(255 253 247 / .86); color: #16211e; font-size: .86rem; backdrop-filter: blur(4px); }

.principle { inline-size: var(--wide); margin-inline: auto; padding-block: clamp(4.5rem, 11vw, 9rem); border-block: 1px solid var(--line); }
.principle > p:last-child { max-inline-size: 39rem; margin: 0; color: var(--muted); font-size: 1.15rem; }
.how { inline-size: var(--wide); margin-inline: auto; padding-block: clamp(4.5rem, 12vw, 9rem); }
.section-intro { display: grid; grid-template-columns: minmax(9rem, .55fr) 1.45fr; gap: 1rem; margin-block-end: clamp(2.5rem, 5vw, 4.5rem); }
.section-intro .section-label { margin-block-start: .55rem; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); margin: 0; padding: 0; list-style: none; counter-reset: none; }
.steps li { padding-block-start: 1.25rem; border-block-start: 1px solid var(--ink); }
.step-number { display: block; margin-block-end: 3.2rem; color: var(--leaf); font: 500 .7rem/1 "DM Mono", monospace; }
.steps p { max-inline-size: 19rem; margin: 0; color: var(--muted); font-size: .93rem; }

.routine { inline-size: var(--wide); margin-inline: auto; display: grid; grid-template-columns: minmax(0, .88fr) minmax(310px, 1fr); gap: clamp(2.5rem, 10vw, 9rem); padding: clamp(2rem, 5vw, 4.25rem); border-radius: var(--radius); background: var(--paper); }
.routine-copy > p:not(.section-label) { max-inline-size: 30rem; color: var(--muted); }
.routine-copy .tier-note { margin-block-start: 2rem; color: var(--ink); font-size: .9rem; }
.timeline { display: grid; gap: 1.45rem; padding-block: .3rem; }
.timeline-start, .timeline-event { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; align-items: start; }
.timeline-start { grid-template-columns: 4.5rem 1fr; }
.timeline-start > span { position: relative; display: block; justify-self: center; inline-size: .85rem; aspect-ratio: 1; margin-block-start: .25rem; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 .32rem var(--sun-soft); }
.timeline-start > span::after { position: absolute; inset-block-start: 1.25rem; inset-inline-start: 50%; inline-size: 1px; block-size: 14.2rem; background: var(--line); content: ""; }
.timeline-start p, .timeline-event p { margin: 0; font-size: .95rem; font-weight: 800; }
.timeline-start time { color: var(--muted); font: 500 .72rem/1 "DM Mono", monospace; }
.timeline-event time { color: var(--leaf); font: 500 .75rem/1.4 "DM Mono", monospace; text-align: center; }
.timeline-event p span { color: var(--muted); font-size: .78rem; font-weight: 500; }

.availability { inline-size: var(--wide); margin: clamp(5rem, 13vw, 10rem) auto; text-align: center; }
.availability .section-label { margin-block-end: 1rem; }
.availability h2, .availability p { margin-inline: auto; }
.availability p { max-inline-size: 35rem; margin-block-end: 1.8rem; color: var(--muted); }
footer { padding-block: 1.7rem; border-block-start: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
footer p { margin: 0; }
.button:active { transform: scale(.96); }

@keyframes hero-reveal {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes dawn-rise {
  from { opacity: .18; transform: translateX(-50%) translateY(7.2rem) scale(.72); }
  to { opacity: 1; transform: translateX(-50%) translateY(-1rem) scale(1.04); }
}

@keyframes sunrise-drift {
  from { opacity: .12; transform: scale(.58); }
  to { opacity: 1; transform: scale(1.24); }
}

@keyframes horizon-back-shift {
  from { transform: rotate(-7deg) translateY(1.15rem); }
  to { transform: rotate(-1.8deg) translateY(-.35rem); }
}

@keyframes horizon-front-shift {
  from { transform: rotate(5deg) translateY(1.25rem); }
  to { transform: rotate(1deg) translateY(-.25rem); }
}

@keyframes plan-arrive {
  from { opacity: 0; transform: translateY(.9rem) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Night blue at the top; the page reaches the warm, settled morning as its story concludes. */
@keyframes dawn-canvas {
  0% { --canvas: #0f1c2a; --paper: #172937; }
  40% { --canvas: #324e60; --paper: #486170; }
  50% { --canvas: #d8ddcf; --paper: #e9ebdf; }
  75% { --canvas: #f6d8ad; --paper: #fff0d9; }
  100% { --canvas: #fbe6cd; --paper: #fff6e8; }
}

/* Keep copy light during night; switch it at the deliberately light horizon. */
@keyframes dawn-foreground {
  0% { --ink: #f8f5ee; --muted: #d1dddc; --leaf: #b8e3ca; --line: #416171; }
  49.9% { --ink: #f8f5ee; --muted: #d1dddc; --leaf: #b8e3ca; --line: #416171; }
  50% { --ink: #16211e; --muted: #5c6763; --leaf: #356d5d; --line: #d9ddd1; }
  100% { --ink: #16211e; --muted: #5c6763; --leaf: #356d5d; --line: #d9ddd1; }
}

@keyframes scroll-reveal {
  from { opacity: .2; transform: translateY(1.25rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow { animation: hero-reveal 560ms cubic-bezier(.2, 0, 0, 1) both; }
  .hero h1 { animation: hero-reveal 680ms 100ms cubic-bezier(.2, 0, 0, 1) both; }
  .hero .lede { animation: hero-reveal 620ms 180ms cubic-bezier(.2, 0, 0, 1) both; }
  .hero .actions { animation: hero-reveal 560ms 260ms cubic-bezier(.2, 0, 0, 1) both; }
  .wake-moment { animation: hero-reveal 760ms 150ms cubic-bezier(.2, 0, 0, 1) both; }

  @supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    /* The whole page starts in night and follows the same scroll path into dawn. */
    :root {
      animation: dawn-canvas linear both, dawn-foreground linear both;
      animation-timeline: scroll(root block), scroll(root block);
      animation-range: 0% 100%, 0% 100%;
    }

    .wake-moment { view-timeline-name: --dawn-scroll; view-timeline-axis: block; }
    .dawn-sun { animation: dawn-rise linear both; animation-timeline: --dawn-scroll; animation-range: entry 0% cover 80%; will-change: transform, opacity; }
    .dawn-glow { animation: sunrise-drift linear both; animation-timeline: --dawn-scroll; animation-range: entry 0% cover 80%; will-change: transform, opacity; }
    .dawn-horizon-back { animation: horizon-back-shift linear both; animation-timeline: --dawn-scroll; animation-range: entry 0% cover 80%; will-change: transform; }
    .dawn-horizon-front { animation: horizon-front-shift linear both; animation-timeline: --dawn-scroll; animation-range: entry 0% cover 80%; will-change: transform; }

    /* The stack lands after the sun has substantially risen, still on --dawn-scroll. */
    .wake-plan li { animation: plan-arrive linear both; animation-timeline: --dawn-scroll; will-change: transform, opacity; }
    .wake-plan li:nth-child(1) { animation-range: cover 54% cover 66%; }
    .wake-plan li:nth-child(2) { animation-range: cover 62% cover 74%; }
    .wake-plan li:nth-child(3) { animation-range: cover 70% cover 82%; }

    .principle, .how, .routine, .availability {
      animation: scroll-reveal linear both;
      animation-timeline: view();
      animation-range: entry 12% cover 32%;
    }
  }
}

@media (max-width: 760px) {
  :root { --wide: min(100% - 2rem, 1120px); }
  .site-header { align-items: flex-start; }
  nav { gap: .8rem; font-size: .72rem; }
  .hero, .routine { grid-template-columns: 1fr; }
  .hero { margin-block-start: 3rem; }
  .wake-moment { min-block-size: 30rem; }
  .wake-plan { gap: .4rem; margin-block-end: .8rem; }
  .wake-plan li { grid-template-columns: 2.6rem minmax(0, 1fr); padding: .45rem .62rem; }
  .section-intro { grid-template-columns: 1fr; gap: 0; }
  .steps { grid-template-columns: 1fr; gap: 2.1rem; }
  .step-number { margin-block-end: 1.15rem; }
  .routine { padding: 1.5rem; }
}

@media (max-width: 420px) {
  .site-header { gap: 1rem; }
  nav { justify-content: flex-start; }
  .wake-plan li { grid-template-columns: 2.4rem minmax(0, 1fr); gap: .05rem .5rem; }
  .plan-note { font-size: .72rem; }
  .timeline-start, .timeline-event { grid-template-columns: 3.4rem 1fr; }
  .timeline-start > span::after { block-size: 14.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Nothing animates, so hold the settled warm morning rather than a half-lit canvas. */
  :root { --canvas: #fbe6cd; --paper: #fff6e8; --ink: #16211e; --muted: #5c6763; --leaf: #356d5d; --line: #d9ddd1; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
