@font-face {
  font-family: Space;
  src: url('./space-grotesk.ttf') format('truetype');
  font-weight: 300 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #1b2c33;
  --body: #484848;
  --secondary: #717171;
  --muted: #777;
  --quiet: #9a9a9a;
  --line: #ebebeb;
  --orange: #f47920;
  --tint: #fef7f5;
  --peach: #facaa7;
  --green: #00a63e;
  --paper: #f8f8f8;
  --white: #fff;
  --radius: 16px;
  --gutter: 16px;
  --shell: 768px;
  --card-shadow: 0 2px 10px rgb(145 145 145 / 13%);
  font: 16px/1.32 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(43deg, #e7f9ff 0%, #f8f8f8 23.1% 80.6%, #fff2e8 98.04%) fixed;
}
button, input, select, textarea { font: inherit; color: inherit; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: default; opacity: .5; }
:focus-visible { outline: 3px solid #2678a3; outline-offset: 2px; }
h1,h2,h3,p { margin: 0; }
.ui-icon { width: 21px; height: 21px; flex: none; vertical-align: middle; }
body[data-page="home"] .topbar { position: sticky; top: 0; z-index: 3; }
.topbar { background: white; border-bottom: 1px solid var(--line); }
.top-inner {
  margin: auto;
  max-width: var(--shell);
  min-height: 47px;
  padding: calc(8px + env(safe-area-inset-top)) var(--gutter) 12px;
  display: flex; justify-content: space-between; align-items: center;
}
body:not(.signed-out):not([data-page="home"]) .topbar, .signed-out .home-bell { display: none; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--body); font-size: 18px; font-weight: 700; letter-spacing: -.5px; }
.brand strong { color: var(--orange); }
.brand-mark { width: 41px; height: 26px; }
.home-bell { color: var(--secondary); position: relative; width: 30px; height: 26px; display: grid; place-items: center; }
.home-bell::after { content: ''; position: absolute; right: 2px; top: 0; width: 7px; height: 7px; background: #e31b23; border: 1.5px solid white; border-radius: 50%; }
#navigation {
  position: fixed; inset: auto 0 0; z-index: 7; border-top: 1px solid var(--line); background: white;
  display: flex; justify-content: center; padding: 7px 12px max(24px, env(safe-area-inset-bottom));
}
#navigation a {
  flex: 1; max-width: calc(var(--shell) / 5); min-height: 44px; color: var(--quiet); font-size: 10px; font-weight: 500;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px;
}
#navigation a[aria-current] { color: var(--orange); font-weight: 600; }
#navigation .ui-icon { width: 23px; height: 23px; }
#navigation a[href="#review"] { position: relative; color: var(--secondary); font-weight: 600; justify-content: flex-start; padding-top: 26px; }
#navigation a[href="#review"] svg {
  position: absolute; top: -30px; width: 52px; height: 52px; padding: 15px; border-radius: 50%; fill: white; stroke: white;
  color: white; background: var(--orange); box-shadow: 0 6px 12px rgb(244 121 32 / 35%);
}
#content { max-width: var(--shell); margin: auto; padding: 14px var(--gutter) calc(100px + env(safe-area-inset-bottom)); outline: none; overflow-wrap: anywhere; }
body:not([data-page="home"]):not(.signed-out) #content { padding-top: calc(14px + env(safe-area-inset-top)); }
.skip { position: absolute; top: -100px; left: 8px; padding: 8px; background: white; z-index: 10; }
.skip:focus { top: 6px; }
#notice { position: sticky; top: 0; z-index: 6; color: #812e08; background: #fff1da; padding: 10px var(--gutter); }
.page-title { font-size: 24px; line-height: 1.2; letter-spacing: -.45px; font-weight: 550; }
.panel { border: 0; border-radius: var(--radius); background: white; box-shadow: var(--card-shadow); }
.primary, .secondary {
  min-height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 16px; font-size: 15px; font-weight: 600; line-height: 1.25; text-align: center;
}
.primary { background: var(--orange); border: 1px solid var(--orange); color: white; }
.primary:hover { background: #e76d19; }
.secondary { background: white; border: 1px solid var(--line); }
.text-link { color: #aa4d0b; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.section-label { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-head h2 { font-size: 20px; }
.home-page { display: grid; gap: 14px; line-height: 1.22; }
.home-reminder { display: flex; align-items: center; gap: 11px; color: white; background: var(--ink); padding: 13px; border-radius: 13px; box-shadow: 0 6px 18px rgb(27 44 51 / 19%); }
.home-reminder .bolt { width: 34px; height: 34px; border-radius: 9px; background: var(--orange); display: grid; place-items: center; }
.bolt svg { width: 16px; height: 16px; fill: white; }
.home-reminder strong, .home-reminder small { display: block; }
.home-reminder strong { font-size: 13px; font-weight: 600; }
.home-reminder small { color: #ccd1d2; font-size: 11px; margin-top: 1px; }
.home-reminder button { margin-left: auto; background: transparent; border: 0; color: #c4c9cb; padding: 8px; }
.home-reminder button svg { width: 14px; height: 14px; }
.home-greeting p { font-size: 13px; color: var(--secondary); }
.home-greeting h1 { font-size: 24px; font-weight: 500; letter-spacing: -.5px; }
.home-hero, .home-streak { padding: 16px; }
.due-summary { display: flex; align-items: center; gap: 15px; }
.home-ring { width: 70px; height: 70px; border-radius: 50%; flex: none; background: conic-gradient(from 90deg, var(--orange) var(--progress), #f1e7df 0); display: grid; place-items: center; }
.home-ring span { width: 54px; height: 54px; border-radius: 50%; background: white; display: flex; flex-direction: column; justify-content: center; align-items: center; line-height: 1.05; }
.home-ring b { font-size: 18px; font-weight: 650; }
.home-ring span small { font-size: 9px; color: var(--secondary); }
.due-summary > div + div { display: grid; gap: 4px; }
.due-summary strong { font-size: 16px; font-weight: 600; }
.due-summary small { color: var(--secondary); font-size: 12px; display: flex; align-items: center; gap: 5px; }
.due-summary small svg { width: 13px; height: 13px; }
.home-hero button { width: 100%; margin-top: 15px; }
.home-hero button svg { width: 17px; height: 17px; }
.caught-up { display: grid; justify-items: center; text-align: center; gap: 4px; }
.home-ring.complete { background: #00c950; color: var(--green); margin-bottom: 9px; }
.home-ring.complete svg { width: 26px; height: 26px; stroke-width: 3px; }
.caught-up h2 { font-size: 18px; }
.caught-up p { font-size: 13px; color: var(--secondary); }
.caught-up + button { color: var(--orange); }
.home-streak-head { display: flex; align-items: baseline; justify-content: space-between; }
.home-streak h2 { font-size: 13px; font-weight: 400; color: var(--secondary); }
.home-streak h2 strong { font-size: 28px; color: var(--ink); font-weight: 600; }
.home-streak-head > span { font-size: 11px; font-weight: 600; color: #be560e; background: var(--tint); padding: 4px 10px; border-radius: 20px; }
.home-streak ol { display: grid; grid-template-columns: repeat(7, 1fr); list-style: none; margin: 13px 0 0; padding: 0; }
.home-streak li { display: grid; justify-items: center; gap: 5px; font-size: 10px; color: var(--muted); }
.home-streak li span { width: min(30px, 100%); aspect-ratio: 1; border: 1.5px solid var(--line); border-radius: 50%; display: grid; place-items: center; }
.home-streak li.past:not(.done) span { border: 0; background: #f4f4f4; }
.home-streak li.future span { border: 1.5px dashed #d8d8d8; }
.home-streak li.done span { background: var(--tint); border-color: var(--peach); color: var(--orange); }
.home-streak li.today { color: #be560e; font-weight: 600; }
.home-streak li.today span { background: var(--orange); border: 0; color: white; box-shadow: 0 1px 6px rgb(244 121 32 / 35%); }
.home-streak li svg { width: 13px; height: 13px; stroke-width: 3px; }
.home-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.home-stats > div { padding: 14px; border-radius: 14px; display: grid; gap: 2px; }
.home-stats small { color: var(--secondary); font-size: 11px; }
.home-stats strong { font-size: 24px; font-weight: 600; }
.success { color: var(--green); }
.migration { max-width: 650px; padding: clamp(18px, 4vw, 32px); margin: 4vh auto; }
.migration p { margin: 18px 0; }
.migration button { margin: 4px 6px 0 0; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
