/* parchment: warm paper, iron-gall ink, a red §, set in Junicode
   (Latin subset). The ⚙ dialog sets data-theme on <html>; the fonts
   load only once a rule here names them. */
@font-face {
  font-family: Junicode; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/junicode.woff2') format('woff2');
  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+2190-2193, U+2212, U+2215;
}
@font-face {
  font-family: Junicode; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url('/junicode-italic.woff2') format('woff2');
  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+2190-2193, U+2212, U+2215;
}

@layer base {
:root[data-theme="parchment"] {
  --bg: #f6f1eb; --desk: #e6dccb;
  --ink: #2c2416; --shade: #3c280a;
  --accent: #7a4e2d; --warn: #a3341f; --amber: #8f6410;
  --fun: #4f6a3e; --meh: #8a7d68; --ugh: #6b4a7a; --alert: #3d5a80;
  --hue-ink: oklch(42% .09 0);
  --font: Junicode, 'Iowan Old Style', Palatino, Georgia, serif;
  --round: .35;

  --dim: #7a6a55;
  --spent: var(--fun);
  --rubric: var(--warn);

  body {
    font-size: 16px; line-height: 1.27;
    font-feature-settings: "lnum";                /* Junicode's figures are old-style */
  }
}
} /* @layer base */

@layer components {
:root[data-theme="parchment"] {
  :is(#tabs .tab, #today, .row[data-kind="heading"], #settings h3, .calhead span,
      .cwd, .ahead b, .fgroup .fhead b) {
    font-variant-caps: small-caps; letter-spacing: .04em;
  }
  .row[data-kind="heading"] {
    font-weight: 500;
    :is(.hpath, .yr) { font-variant-caps: normal; font-style: italic; letter-spacing: 0; }
    &::after { font-variant-caps: normal; letter-spacing: 0; }
  }
  .asect { text-transform: none; font-variant-caps: all-small-caps; }
  :is(.row .fmt .est, .row::after, .pane .tot, .cday .cop) { font-variant-numeric: tabular-nums; }
}
} /* @layer components */
