/* Paper, colour and the one motion (Nov 23).
   Brand colours, brightened, on eggshell. Pairs with /assets/js/motion.js. */
:root {
  --paper: #f7f7f3;   /* eggshell: soft, grey-green, no yellow */
  --ink: #1a1a1a; --ink-2: #333333; --muted: #6b6b6b;
  --rule: #e6e6e6;
  --good: #5fb883;   /* brand sage, brighter and cleaner */
  --bad: #ff3e3e;    /* brand red */
  --rest: #e3e3e3;   /* light grey: the bars that aren't the point */
}
body { background: var(--paper); color: var(--ink); }
a { text-decoration-color: #c4c4c4; }
.shelf a { text-decoration-color: #cfcfcf !important; }
.fbars i, .fstack i { background: var(--rest); }
.fbars li.hl i, .fstack i.good, .bars li.hl .f { background: var(--good); }
.fbars li.lo i, .fstack i.bad, .bars li.lo .f { background: var(--bad); }

/* The mark beside the name, still */
.mark { display: block; fill: none; stroke: currentColor; stroke-width: 36; stroke-linecap: round; stroke-linejoin: round; }
h1.mono-title { display: flex; align-items: center; gap: .4em; }
.mark-hero { width: 1.15em; height: 1.15em; flex: none; margin-left: -.1em; }

/* The one motion: bars grow from zero, once */
.motion .fbars i, .motion .fstack i, .motion .bars .f { transform: scaleX(0); transform-origin: left; transition: transform 1.1s cubic-bezier(.2,.7,.2,1) calc(.15s + var(--j, 0) * .09s); }
.motion .grown i, .motion .grown .f { transform: none; }

/* The name: no mono, no capitals */
h1.mono-title, .masthead .home { font-family: var(--display, var(--serif)); text-transform: none; letter-spacing: -.01em; font-weight: 600; }

/* Headings in Bodoni Moda, body in Host Grotesk (Nov 23) */
@font-face { font-display: swap; font-family: 'Bodoni Moda'; src: url('/public/fonts/BodoniModa-Medium-latin.woff2') format('woff2'); font-weight: 500; }
:root { --display: 'Bodoni Moda', 'Didot', Georgia, serif; }
h1, h1.mono-title, .subtitle, .projects-hara .head, .shelves > .shelf-group > h2 { font-family: var(--display) !important; font-weight: 500 !important; letter-spacing: 0; }
h1.mono-title { font-size: 2.2rem; }
.home-hara .subtitle { font-size: 1.3rem; }
.projects-hara .head { font-size: 1.15rem; line-height: 1.32; }

/* No italics anywhere (Nov 23). Emphasis is carried by the words, or by weight. */
em, i, cite, q, blockquote, dfn, var, address, figcaption, caption { font-style: normal !important; }
em { font-weight: 500; }
