/* Little Routine presentation site. Colours come from the logo. */
@font-face { font-family: Fraunces; src: url(fonts/fraunces-latin-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Fraunces; src: url(fonts/fraunces-latin-ext-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Nunito; src: url(fonts/nunito-latin-wght-normal.woff2) format('woff2'); font-weight: 200 1000; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Nunito; src: url(fonts/nunito-latin-ext-wght-normal.woff2) format('woff2'); font-weight: 200 1000; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light dark;
  --bg: #FBF6EE;
  --band: #F2ECDF;
  --surface: #FFFFFF;
  --ink: #1F3A2D;
  --muted: #4F6558;
  --line: #E2DBCC;
  --brand: #2F6B4F;
  --brand-ink: #FFFFFF;
  --accent: #2F6B4F;
  --sage-soft: #DCEBE1;
  --sun: #FFC970;
  --cheek: #F29E94;
  --sleep: #6E8FC4;
  --meal: #C96F42;
  --danger: #C2453D;
  --walk: #2F8A63;
  --bath: #4D87B0;
  --shadow: 0 18px 50px rgba(31, 58, 45, .13);
  --serif: Fraunces, Georgia, 'Times New Roman', serif;
  --sans: Nunito, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101C16;
    --band: #16261D;
    --surface: #1B2D23;
    --ink: #EEF3EC;
    --muted: #A9BCAF;
    --line: #2D4336;
    --brand: #9BD0B0;
    --brand-ink: #10231A;
    --accent: #9BD0B0;
    --sage-soft: #24402F;
    --sleep: #94B2E2;
    --meal: #E79A70;
    --danger: #EE8E86;
    --walk: #7ACBA3;
    --bath: #8DBEE0;
    --shadow: 0 18px 50px rgba(0, 0, 0, .4);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.25rem; line-height: 1.25; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.icon { flex: none; }
.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--brand); color: var(--brand-ink); padding: 10px 16px; border-radius: 10px; z-index: 30; }
.skip:focus { top: 12px; }
.eyebrow { color: var(--accent); font-weight: 800; font-size: .95rem; margin-bottom: 14px; }
.lede { font-size: 1.2rem; color: var(--muted); margin-top: 20px; max-width: 34em; }

.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 1.2rem var(--serif); }
.brand img { border-radius: 10px; }
.top nav { display: flex; gap: 4px; margin-left: auto; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 700; padding: 10px 12px; border-radius: 10px; transition: background-color .18s; }
.top nav a:hover { background: var(--sage-soft); }
.lang { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; color: var(--ink); font-weight: 700; text-decoration: none; border: 1px solid var(--line); border-radius: 12px; transition: background-color .18s; }
.lang:hover { background: var(--sage-soft); }

.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; background: var(--brand); color: var(--brand-ink); font-weight: 800; text-decoration: none; border-radius: 16px; transition: transform .18s, filter .18s; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.98); }

.hero { overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-block: 64px 80px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 32px; }
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 700; font-size: .98rem; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 600px; }
.ring { position: absolute; width: min(600px, 124%); max-width: none; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.ring-track { fill: none; stroke: var(--sage-soft); stroke-width: 34; }
.ring-sleep { fill: none; stroke: var(--sleep); stroke-width: 34; stroke-linecap: round; opacity: .55; }
.ring-feed { fill: var(--meal); stroke: var(--bg); stroke-width: 3; }
.ring-diaper { fill: var(--walk); stroke: var(--bg); stroke-width: 3; }
.ring-hour { display: none; }
.ring-legend { position: absolute; bottom: -18px; display: flex; gap: 18px; font-size: .9rem; font-weight: 700; color: var(--muted); }
.ring-legend li { display: inline-flex; align-items: center; gap: 6px; }
.key { width: 12px; height: 12px; border-radius: 50%; }
.key-sleep { background: var(--sleep); }
.key-feed { background: var(--meal); }
.key-diaper { background: var(--walk); }

.phone-figure { position: relative; margin: 0; z-index: 1; display: grid; justify-items: center; gap: 12px; }
.phone-figure figcaption { font-size: .82rem; color: var(--muted); text-align: center; }
.hero-art figcaption { display: none; }
.phone { width: 270px; padding: 9px; background: #17231C; border-radius: 40px; box-shadow: var(--shadow); }
.phone-screen { border-radius: 32px; background: #F9FAFB; color: #26352D; padding: 22px 15px 18px; min-height: 500px; font-size: 12.5px; line-height: 1.35; }
.p-title { font: 600 23px var(--serif); }
.p-sub { color: #5A6C61; margin-top: 2px; font-size: 11.5px; }
.p-card { background: #FFF; border: 1px solid #E5E7EB; border-radius: 15px; padding: 11px; margin-top: 11px; }
.p-label { color: #5A6C61; font-weight: 700; font-size: 11px; }
.p-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 7px; }
.p-stats div { display: grid; gap: 1px; }
.p-stats b { font-size: 17px; font-weight: 800; }
.p-stats span { color: #5A6C61; font-size: 10.5px; }
.p-last { display: flex; gap: 10px; }
.p-dot { flex: none; width: 10px; height: 10px; margin-top: 3px; border-radius: 50%; background: #C96F42; }
.p-value { font-weight: 800; font-size: 13px; margin-top: 2px; }
.p-next { color: #A5496F; font-weight: 700; font-size: 11px; margin-top: 3px; }
.p-section { font-weight: 800; font-size: 13.5px; margin-top: 15px; }
.p-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 8px; }
.p-tile { display: grid; justify-items: center; gap: 4px; padding: 10px 2px 8px; background: #FFF; border: 1px solid #E5E7EB; border-radius: 13px; }
.p-tile small { font-size: 9.5px; font-weight: 800; }
.tone-meal { color: #C96F42; } .tone-sleep { color: #4F72AC; } .tone-danger { color: #C2453D; } .tone-walk { color: #2F8A63; } .tone-bath { color: #3F7AA3; }

.section { padding-block: 88px; }
.band { background: var(--band); }
.section-head { max-width: 46em; margin-bottom: 44px; }
.section-head > p:last-child:not(.eyebrow) { color: var(--muted); font-size: 1.15rem; margin-top: 16px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px; }
.card-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: var(--sage-soft); color: var(--accent); margin-bottom: 16px; }
.card p { color: var(--muted); margin-top: 8px; }
.more { margin-top: 28px; font-weight: 800; }

/* Always dark: this section is the night mode itself, in both themes. */
.night { background: #000; color: #E8826A; padding-block: 88px; }
.night .eyebrow { color: #E8826A; }
.night h2 { color: #F4A08B; }
.night .lede { color: #D0735C; }
.night :focus-visible { outline-color: #F4A08B; }
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.ticks { margin-top: 24px; display: grid; gap: 10px; font-weight: 700; }
.ticks li { display: flex; gap: 10px; align-items: baseline; }
.ticks li::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #E8826A; transform: translateY(-2px); }
.night figcaption { color: #B9634E; }
.phone-dark { background: #1B0D09; box-shadow: 0 0 80px rgba(184, 69, 47, .22); }
.night-screen { background: #000; color: #E0674A; display: flex; flex-direction: column; gap: 9px; min-height: 0; padding-bottom: 24px; }
.n-exit { color: #A9543F; font-weight: 700; }
.n-clock { font-size: 54px; font-weight: 200; text-align: center; letter-spacing: 2px; line-height: 1.2; }
.n-line { color: #B05A45; text-align: center; font-weight: 600; font-size: 11.5px; }
.n-btn { display: grid; place-items: center; min-height: 58px; background: #120705; border: 1px solid #2A110B; border-radius: 16px; font-weight: 800; font-size: 14px; }
.n-filled { background: #B8452F; border-color: #B8452F; color: #000; margin-top: 10px; }
.n-row { display: flex; gap: 7px; }
.n-row .n-btn { flex: 1; }

.band h2 { margin-bottom: 18px; }
.band .narrow > p { color: var(--muted); }
.source-list { font: 600 1.25rem/1.45 var(--serif); color: var(--ink) !important; margin-top: 18px; }
.note { margin-top: 22px; padding-left: 16px; border-left: 3px solid var(--accent); }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding-block: 12px; font-weight: 800; font-size: 1.08rem; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary .icon { transition: transform .2s; color: var(--muted); }
details[open] summary .icon { transform: rotate(180deg); }
details p { color: var(--muted); padding-bottom: 20px; max-width: 42em; }

.foot { padding-block: 44px 28px; border-top: 1px solid var(--line); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot-row p { color: var(--muted); margin-top: 8px; }
.foot-row ul { display: grid; gap: 4px; }
.foot-row li a { display: inline-block; padding-block: 8px; font-weight: 700; }
.foot-note { color: var(--muted); font-size: .9rem; margin-top: 22px; }

.center-page { min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: 24px; }
.center-page main { display: grid; justify-items: center; gap: 16px; }
.center-page img { border-radius: 24px; }
.center-page p { color: var(--muted); margin-bottom: 8px; }

@media (max-width: 960px) {
  .top nav { display: none; }
  .lang { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; padding-block: 44px 72px; }
  .hero-art { min-height: 560px; overflow: visible; }
  .ring { width: min(560px, 118vw); }
  .cards, .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .section, .night { padding-block: 64px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .cards, .cards-3 { grid-template-columns: 1fr; }
  .lede { font-size: 1.08rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
