/* thesimple.focus · shared tokens (J · azure) — every direction builds on these */
:root {
  --bg: #FCFCFB;
  --ink: #1C1C1B;
  --ink85: rgba(28, 28, 27, .85);
  --soft: rgba(28, 28, 27, .62);
  --faint: rgba(28, 28, 27, .45);
  --label: #55534D;
  --journal: #7A776F;
  --hair: rgba(28, 28, 27, .08);
  --ring: rgba(28, 28, 27, .12);
  --azure: #339BEB;
  --on-azure: #FFFFFF;
  --accent-ink: #2776B3;
  --surface: rgba(255, 255, 255, .78);
  --surface-shadow: 0 1px 0 rgba(28, 28, 27, .04), 0 8px 26px rgba(28, 28, 27, .07);
  --card: #FFFFFF;
  --neutral: #E8E6E1;
  --empty-num: #9A978F;
  --chevron: #BDBAB3;
  --energized: #8DDA54;
  --calm: #55D7CB;
  --okay: #74CEF2;
  --tired: #A8A6E5;
  --struggling: #924FD8;
  --unsaid: #B7B5AF;
  --timer: #A8D77A;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --spring: cubic-bezier(.34, 1.36, .64, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1C1C1B;
    --ink: #F2F1EE;
    --ink85: rgba(242, 241, 238, .85);
    --soft: rgba(242, 241, 238, .62);
    --faint: rgba(242, 241, 238, .40);
    --label: rgba(242, 241, 238, .72);
    --journal: #A6A39B;
    --hair: rgba(255, 255, 255, .07);
    --ring: rgba(255, 255, 255, .14);
    --accent-ink: #3FA1EC;
    --surface: rgba(255, 255, 255, .07);
    --surface-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05), 0 8px 26px rgba(0, 0, 0, .28);
    --card: #262625;
    --neutral: #2F2E2C;
    --empty-num: #7A776F;
    --chevron: #5F5D58;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #1C1C1B;
  --ink: #F2F1EE;
  --ink85: rgba(242, 241, 238, .85);
  --soft: rgba(242, 241, 238, .62);
  --faint: rgba(242, 241, 238, .40);
  --label: rgba(242, 241, 238, .72);
  --journal: #A6A39B;
  --hair: rgba(255, 255, 255, .07);
  --ring: rgba(255, 255, 255, .14);
  --accent-ink: #3FA1EC;
  --surface: rgba(255, 255, 255, .07);
  --surface-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05), 0 8px 26px rgba(0, 0, 0, .28);
  --card: #262625;
  --neutral: #2F2E2C;
  --empty-num: #7A776F;
  --chevron: #5F5D58;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
}
img, svg { display: block; max-width: 100%; }
p, h1, h2, h3, figure, ul, ol { margin: 0; }
h1, h2, h3 { font-weight: 400; }
button, input { font: inherit; color: inherit; }
::selection { background: rgba(51, 155, 235, .22); }

a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: var(--ring); transition: text-decoration-color .2s; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 16px; top: -120px; z-index: 50; padding: 10px 16px; border-radius: 22px; background: var(--card); box-shadow: var(--surface-shadow); text-decoration: none; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the logo: fraunces "thesimple." + dm sans semibold "focus" — the only semibold anywhere */
.logo { display: inline-flex; align-items: baseline; white-space: nowrap; color: var(--ink); text-decoration: none; line-height: 1; letter-spacing: 0; }
.logo .a { font-family: var(--serif); font-weight: 400; }
.logo .b { font-family: var(--sans); font-weight: 600; color: var(--azure); }

/* pills — the app's buttons, same press feel */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 28px; border: 0; border-radius: 28px;
  background: var(--azure); color: var(--on-azure);
  font: 400 17px/1 var(--sans); text-decoration: none; white-space: nowrap;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .42s var(--spring), filter .42s var(--spring);
}
.pill svg { width: 18px; height: 18px; flex: none; }
.pill:hover { filter: brightness(1.04); }
.pill:active { transform: scale(.965); filter: brightness(.945); transition-duration: .11s; }
.pill.secondary { background: var(--surface); color: var(--ink); box-shadow: var(--surface-shadow); }
.pill.secondary svg { color: var(--accent-ink); }
.pill.small { height: 44px; padding: 0 20px; border-radius: 22px; font-size: 16px; }

/* the app store qr, desktop only — always dark on white so any camera reads it */
.qr { display: none; align-items: center; gap: 14px; color: var(--soft); font-size: 14px; line-height: 1.35; }
.qr svg { width: 84px; height: 84px; padding: 6px; border-radius: 12px; background: #FFFFFF; box-shadow: var(--surface-shadow); flex: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 900px) { .qr { display: inline-flex; } }

.hex { overflow: visible; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* legal text (privacy + terms) — shared reading rhythm; each direction sets the frame */
.legal { max-width: 40rem; }
.legal h2 { font-size: 24px; line-height: 1.25; letter-spacing: -.015em; margin: 56px 0 6px; }
.legal h3 { font-size: 17px; line-height: 1.4; margin: 30px 0 4px; color: var(--ink); }
.legal p { color: var(--ink85); line-height: 1.65; margin: 0 0 12px; }
.legal .short { padding: 22px 24px; border-radius: 22px; background: var(--surface); box-shadow: var(--surface-shadow); }
.legal .short p { margin: 0; color: var(--ink); font-size: 19px; line-height: 1.5; }
.legal .short h2 { margin: 0 0 8px; font-size: 15px; color: var(--soft); letter-spacing: 0; }
