/* Recursive (SIL OFL, fonts/OFL.txt): weight and the Casual axis. Linear for reading, Casual for
   the routines themselves. */
@font-face {
  font-family: "Recursive";
  font-weight: 300 1000;
  font-display: swap;
  src: url(/fonts/recursive-latin-casl-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Recursive";
  font-weight: 300 1000;
  font-display: swap;
  src: url(/fonts/recursive-latin-ext-casl-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* The icon's colours: a blue ring of steps around a brass bell. */
:root {
  --paper: #f7f9fc;
  --ink: #0f2340;
  --soft: #4d5f7a;
  --rule: #dce4f0;
  --ocean: #1e6fd9;
  --sky: #a9cfff;
  --brass: #e8a93a;
  --tint: var(--tint-light, var(--ocean));
  --on-tint: #fff;
  --band: #0f2340;
  --device: #1d3557;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0c1a30;
    --ink: #eaf1fb;
    --soft: #9fb0c8;
    --rule: #1f3352;
    --ocean: #5aa2ff;
    --sky: #2b4c7a;
    --tint: var(--tint-dark, var(--ocean));
    --on-tint: #0c1a30;
    --band: #16325a;
    --device: #24426b;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Recursive", -apple-system, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  font-variation-settings: "CASL" 0;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 980px; margin-inline: auto; padding-inline: 24px; }
.measure { max-width: 34em; }

/* Wordmark */

.mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  font-variation-settings: "CASL" 1;
  text-decoration: none;
}
.mark img { width: 44px; height: 44px; border-radius: 10px; display: block; }

/* Hero: the pour-over routine, set as the headline, on the icon's blue. */

.hero {
  background: #1e6fd9;
  color: #fff;
  padding: 28px 0 72px;
}
.hero .mark { color: #fff; }

.picker { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.picker button {
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  font-variation-settings: "CASL" 1;
  color: #fff;
  background: none;
  border: 1.5px solid rgb(255 255 255 / 0.45);
  border-radius: 999px;
  padding: 6px 16px;
  cursor: pointer;
}
.picker button:hover { border-color: #fff; }
.picker button[aria-pressed="true"] { background: #fff; border-color: #fff; color: #1e6fd9; }
.picker[inert] { opacity: 0.6; }

.routine-head {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  font-variation-settings: "CASL" 1;
  font-weight: 800;
  font-size: clamp(40px, 9vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.routine-head li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  transition: opacity 0.25s;
}
.routine-head .t {
  font-weight: 350;
  font-size: 0.42em;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
}
.routine-head.playing li { opacity: 0.38; }
.routine-head.playing li.now { opacity: 1; }

.hero .bar { margin-top: 36px; --seg: rgb(255 255 255 / 0.32); --fill: #fff; }

.player {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.player p { margin: 0; color: rgb(255 255 255 / 0.85); }

.play {
  font: inherit;
  font-weight: 650;
  font-variation-settings: "CASL" 1;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px 12px 18px;
  background: var(--brass);
  color: #2a1a00;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.play svg { width: 20px; height: 20px; }
.play[disabled] { cursor: default; opacity: 0.8; }

.pitch {
  margin-top: 48px;
  font-size: clamp(20px, 2.4vw, 24px);
  line-height: 1.45;
}
.pitch p { margin: 0 0 12px; }
.pitch strong {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  font-variation-settings: "CASL" 1;
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.pitch .soon { font-size: 18px; color: rgb(255 255 255 / 0.8); }

/* Segmented bars: one segment per step, as long as the step. */

.bar {
  --seg: var(--sky);
  --fill: var(--tint);
  display: flex;
  gap: 4px;
  height: 14px;
}
.bar span {
  position: relative;
  min-width: 3px;
  border-radius: 999px;
  background: var(--seg);
  overflow: hidden;
}
.bar span.rest { opacity: 0.45; }
.bar span i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--fill);
}
.bar span.done i { width: 100%; }

/* Sections */

main > section { margin-top: 112px; }

h2 {
  font-variation-settings: "CASL" 1;
  font-weight: 750;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
}

.lede { color: var(--soft); margin: 0 0 44px; font-size: 19px; }

/* Templates, on three shelves like the app's library */

.shelves {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 48px 40px;
}
.shelf h3 {
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
  font-size: 15px;
  font-weight: 700;
}
.templates { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.templates li { display: grid; gap: 2px; }
.templates h4 { margin: 0; font-size: 20px; font-weight: 700; font-variation-settings: "CASL" 1; }
.templates .total { color: var(--ink); font-weight: 600; }
.templates .bar { margin: 8px 0 6px; height: 12px; --seg: var(--ocean); }
.templates p { margin: 0; color: var(--soft); font-size: 15px; line-height: 1.45; }

/* Chimes, on a dark band */

.band {
  padding: 88px 0 96px;
  background: var(--band);
  color: #eaf1fb;
}
.band .lede { color: #a9bbd6; }

.chimes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 36px 32px;
}
.chime-group h3 { margin: 0 0 14px; font-size: 15px; font-weight: 700; color: var(--brass); }
.chime-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 4px; }
@media (min-width: 700px) { .chime-row { flex-direction: column; } }

.chime {
  position: relative;
  font: inherit;
  font-size: 17px;
  font-variation-settings: "CASL" 1;
  font-weight: 550;
  color: inherit;
  background: none;
  border: 0;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.chime svg {
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.1);
  color: var(--brass);
  flex: none;
}
.chime:hover svg { background: rgb(255 255 255 / 0.18); }
.chime::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  border-radius: 50%;
  border: 2px solid var(--brass);
  opacity: 0;
  pointer-events: none;
}
.chime.ringing svg { background: var(--brass); color: #0f2340; }
.chime.ringing::before { animation: ring var(--ring, 1.5s) ease-out; }
@keyframes ring {
  from { transform: scale(1); opacity: 0.9; }
  to { transform: scale(2.6); opacity: 0; }
}

/* Where the countdown shows: drawn from the widget's layouts */

.surfaces {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 40px 28px;
  align-items: start;
}
.surfaces figure { margin: 0; }
.surfaces figcaption { margin-top: 16px; color: var(--soft); font-size: 15px; line-height: 1.45; }

.lock, .island-stage, .watch {
  font-family: -apple-system, system-ui, sans-serif;
  font-variation-settings: normal;
  color: #fff;
  font-size: 13px;
  line-height: 1.3;
}
.lock p, .island-stage p, .watch p { margin: 0; }
.dim { color: rgb(255 255 255 / 0.6); }
svg use { color: inherit; }

.lock {
  background: var(--device);
  border-radius: 36px 36px 0 0;
  padding: 26px 14px 18px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lock-clock {
  text-align: center;
  font-size: 64px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 6px 0 22px !important;
  font-family: -apple-system-ui-rounded, ui-rounded, -apple-system, system-ui, sans-serif;
}
.note-card {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: 20px;
  background: rgb(255 255 255 / 0.16);
}
.note-card img { width: 38px; height: 38px; border-radius: 9px; flex: none; }
.note-card > div { min-width: 0; }
.note-head { display: flex; justify-content: space-between; gap: 8px; }
.note-head span { color: rgb(255 255 255 / 0.6); font-size: 12px; }

.activity, .island.expanded {
  background: #000;
  border-radius: 22px;
  padding: 16px;
  display: grid;
  gap: 6px;
}
.act-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px !important; }
.act-top b { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.act-name { display: inline-flex; align-items: center; gap: 6px; color: #5aa2ff; font-weight: 500; font-size: 14px; }
.act-name svg, .island svg, .watch-top svg { width: 16px; height: 16px; flex: none; }
.act-step { font-size: 16px; font-weight: 600; }
.act-progress { height: 4px; border-radius: 2px; background: rgb(255 255 255 / 0.2); margin: 2px 0; }
.act-progress i { display: block; height: 100%; width: 30%; border-radius: inherit; background: #5aa2ff; }
.act-end { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }

.island-stage {
  background: var(--device);
  border-radius: 36px 36px 0 0;
  padding: 12px 14px 18px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.island.compact {
  width: 190px;
  height: 36px;
  border-radius: 999px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  color: #5aa2ff;
}
.island.compact b { color: #5aa2ff; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 14px; }
.island.expanded { width: 100%; border-radius: 40px; padding: 20px 22px; }
.act-name.small { font-size: 12px; }

.watch {
  width: 220px;
  margin: 30px auto 0;
  background: #000;
  border-radius: 54px;
  padding: 18px;
  border: 10px solid #24324a;
}
.watch-card {
  background: #1c1c1e;
  border-radius: 24px;
  padding: 12px;
  display: grid;
  gap: 3px;
}
.watch-top {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  color: #5aa2ff;
  font-size: 11px;
  font-weight: 600;
}
.watch-top span:first-child { display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; overflow: hidden; }
.watch-top svg { width: 12px; height: 12px; }
.watch-step { font-size: 15px; font-weight: 600; }
.watch-time {
  font-size: 26px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-family: -apple-system-ui-rounded, ui-rounded, -apple-system, system-ui, sans-serif;
}
.watch-end { display: flex; justify-content: space-between; font-size: 11px; font-variant-numeric: tabular-nums; }

/* Share */

.share {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 32px 64px;
  align-items: center;
}
.share figure { margin: 0; display: grid; justify-items: end; }
.share figcaption { margin-top: 14px; color: var(--soft); font-size: 15px; max-width: 300px; }

.bubble {
  display: block;
  width: 260px;
  border-radius: 20px 20px 6px 20px;
  overflow: hidden;
  background: var(--rule);
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 1px 0 var(--rule);
}
.bubble img { display: block; width: 100%; height: auto; }
.bubble-text { display: grid; padding: 10px 14px 12px; font-size: 15px; line-height: 1.3; }
.bubble-text span { color: var(--soft); font-size: 13px; }
.bubble:hover b { text-decoration: underline; }

/* Closing */

.closing { padding-bottom: 8px; }
.statement {
  font-variation-settings: "CASL" 1;
  font-weight: 800;
  font-size: clamp(32px, 5.6vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 15em;
  margin: 0 0 20px;
}
.closing .soon { color: var(--soft); margin: 0; }

footer {
  margin-top: 96px;
  padding: 24px 24px 40px;
  border-top: 1px solid var(--rule);
  color: var(--soft);
  font-size: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}
.page footer { padding-left: 0; padding-right: 0; }

/* Plain pages: shared routine, privacy, not found */

.page { padding-top: 28px; }
.page .mark { color: var(--ink); }
.page main { padding-top: 56px; }

.page h1 {
  font-variation-settings: "CASL" 1;
  font-weight: 800;
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}
.page h2 { font-size: 24px; margin: 40px 0 8px; }
.page .sub { color: var(--soft); margin: 0 0 32px; font-size: 20px; }

.shared .bar { height: 18px; margin-bottom: 32px; --seg: var(--tint); }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 20px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps .title { font-weight: 650; font-size: 20px; font-variation-settings: "CASL" 1; overflow-wrap: anywhere; }
.steps .time { font-variant-numeric: tabular-nums; font-size: 20px; }
.steps .note { grid-column: 1 / -1; color: var(--soft); white-space: pre-line; overflow-wrap: anywhere; }
.steps .link { grid-column: 1 / -1; font-size: 16px; overflow-wrap: anywhere; color: var(--tint); }

.open {
  display: inline-block;
  margin-top: 36px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--on-tint);
  font-weight: 650;
  font-variation-settings: "CASL" 1;
  text-decoration: none;
}
.hint { color: var(--soft); margin: 16px 0 0; }

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .routine-head li { transition: none; }
  .chime.ringing::before { animation: none; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
