/* Backstage v2 in Hydrangea, light only: cream paper, white cards, linen hairlines, Rosewater for the
   one primary action, Fern for done and good, Clay for warnings, crak red only for down and remove.
   Cormorant Garamond for titles 20 px and up (always lining figures), Jost for everything else.
   Fonts are self-hosted in /fonts/. Tokens are copied from /backstage/backstage.css. */
@font-face {
  font-family: "Cormorant Garamond Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("/fonts/cormorant-garamond-latin-wght-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: "Cormorant Garamond Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("/fonts/cormorant-garamond-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jost Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/jost-latin-wght-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: "Jost Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/jost-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --canvas: #fbf7f0;
  --paper: #ffffff;
  --inset: #f6f0e5;
  --bar: #fffdf8;
  /* Rosewater keeps the old jade names: the one primary color. */
  --jade: #a85566;
  --jade-deep: #7e3c4b;
  --jade-ink: #5e2c38;
  --jade-soft: #f7e3e5;
  --fern: #4f6b55;
  --sage-soft: #e4ece0;
  --sage-line: #c9d8c4;
  --mist: #e5ebfa;
  --hydrangea-deep: #4a5e9c;
  --clay-soft: #f8e1d8;
  --clay-ink: #8f4630;
  --gilt-ink: #86652f;
  --gold: #c9a46a;
  --gold-soft: #f3e8d2;
  --plum-soft: #ece6f7;
  --plum-ink: #5b4a94;
  --crak: #c0261f;
  --crak-soft: #fbe7e5;
  --crak-ink: #a3201a;
  --ink: #2e2a33;
  --ink-soft: #615a66;
  --ink-faint: #6b6470;
  --line: #e4d6bc;
  --line-soft: #efe6d3;
  --field-line: #d9c9a8;
  --ring: #cbbd9c;
  --skeleton: #efe8da;

  --display: "Cormorant Garamond Variable", "Cormorant Garamond", Georgia, serif;
  --sans: "Jost Variable", "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Sizes from section 3.0: body 16, secondary 14, meta 13, nothing under 12. */
  --text: 16px;
  --text-2: 14px;
  --text-meta: 13px;
  --text-min: 12px;
  --tap: 44px;
  --pad: 16px;
  --radius: 16px;
  --radius-row: 12px;

  /* The frame's own edges: the phone's safe areas in a browser, the app's insets when embedded. */
  --top-space: env(safe-area-inset-top, 0px);
  --bottom-space: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
html.embed {
  --top-space: var(--embed-top, 0px);
  --bottom-space: var(--embed-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font: 400 var(--text) / 1.45 var(--sans);
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
h1,
h2,
h3,
.display {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  font-variant-numeric: lining-nums;
}
p {
  margin: 0;
}
a {
  color: var(--jade-deep);
}
/* No lone italic word: emphasis stays upright everywhere (Pat, 2026-10-10). */
em,
i {
  font-style: normal;
}
b,
strong {
  font-weight: 600;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
/* 16 px or larger in every field, so iOS never zooms (section 6.5). */
input,
textarea,
select {
  font-size: max(16px, 1em);
}
button {
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--jade);
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
svg {
  display: block;
}
.num {
  font-variant-numeric: lining-nums tabular-nums;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
