/* What the site pages and the task pages both use: tokens (docs/design.md section 4; the drift test holds
   the two equal), the reset, buttons, glass and the reduced-motion net. Every page links this, then its own file. */
/* biome-ignore-all lint/complexity/noImportantStyles: [hidden] must beat component display rules; the reduced-motion block is the house safety net */
/* biome-ignore-all lint/suspicious/noDuplicateProperties: 100vh is the fallback for browsers without 100dvh */
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  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+2074, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  size-adjust: 107.1%;
  ascent-override: 90.4%;
  descent-override: 22.5%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light;
  --font: "Inter", "Inter Fallback", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;

  --paper: #f3f3f0;
  --surface: #ffffff;
  --ink: #1e1e1c;
  --ink-2: #3a3a36;
  --muted: #66665f;
  --g2: #a3a39c;
  --g1: #dcdcd7;
  --g-select: #e6e6e2;
  --hairline: rgba(0, 0, 0, 0.08);
  --mint: #cce8df;
  --mint-ink: #1e3d35;
  --amber: #f6e7b2;
  --amber-ink: #57420f;
  --robin: #f4ba8b;
  --robin-ink: #a64f15;
  --robin-deep: #c8632a;
  --rose: #f8d7d3;
  --rose-ink: #9b2c22;
  --lead: #50504b;

  --r-chip: 8px;
  --r-field: 14px;
  --r-card: 20px;
  --r-stage: 28px;
  --r-content: 24px;
  --r-pill: 9999px;

  --sh-frame: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 30px 60px -30px rgba(0, 0, 0, 0.35);
  --sh-nav: 0 0 0 0.5px rgba(0, 0, 0, 0.08), 0 4px 18px rgba(0, 0, 0, 0.05);
  --sh-pill: 0 0 0 0.5px rgba(0, 0, 0, 0.08), 0 10px 30px rgba(0, 0, 0, 0.12);

  --glass: rgba(255, 255, 255, 0.62);
  --glass-solid: rgba(255, 255, 255, 0.92);
  --glass-firm: rgba(255, 255, 255, 0.8);
  --glass-filter: blur(24px) saturate(2);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  --glass-clear: rgba(255, 255, 255, 0.42);
  --glass-clear-filter: blur(20px) saturate(1.8) brightness(1.05);
  --nav-h: 56px;
  --wordmark: 22px;
  --mark: 32px;
  --glyph: 0.8;
  --glyph-dir: 0.88;
  --wash: rgba(120, 120, 128, 0.1);
  --r-sheet: 24px;
  --side: 280px;
  --row: 56px;
  --r-list: 24px;
  --list-pad: 8px;
  --display: clamp(44px, 5.5vw, 96px);
  --inset: 10px;
  --frame-h: 56px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-ui: cubic-bezier(0.4, 0, 0.2, 1);

  --pad: 24px;
  --section: 80px;
}
@media (min-width: 640px) {
  :root {
    --inset: 12px;
    --pad: 40px;
  }
}
@media (min-width: 768px) {
  :root {
    --section: 112px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px / 1.5 var(--font);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
h1,
h2,
p {
  margin: 0;
}
h1,
h2 {
  font-weight: 600;
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
input,
button {
  font: inherit;
  color: inherit;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
h1[tabindex="-1"]:focus {
  outline: none;
}
[hidden] {
  display: none !important;
}
/* Lucide fills more of its 24 box than the glyphs it replaced; scale shrinks the drawing, never the layout box. */
.icon {
  flex: none;
  scale: var(--glyph);
}
.icon.dir {
  scale: var(--glyph-dir);
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  z-index: 90;
  top: 8px;
  left: 8px;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: var(--sh-pill);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus-visible {
  transform: none;
}

/* Buttons: every one is a pill; ink is the action, white its alternative. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--r-pill);
  background: none;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms var(--ease-ui);
}
.btn.primary {
  background: var(--ink);
  color: var(--paper);
}
.btn:active {
  transform: scale(0.97);
}
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.38;
  cursor: default;
  transform: none;
}
/* The one glass recipe (design.md section 4). */
.glass {
  background: var(--glass-solid);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .glass {
    background: var(--glass);
    -webkit-backdrop-filter: var(--glass-filter);
    backdrop-filter: var(--glass-filter);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .glass {
    background: var(--surface);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
/* The sheen (design.md section 8): the landing's word and the app's loader. The sweep takes the first 45 percent
   of a 2.2 s cycle (1 s); the rest is the pause. */
@keyframes sheen {
  0% {
    background-position: 100% 0;
    animation-timing-function: var(--ease-out);
  }
  45%,
  100% {
    background-position: 0 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
