/* noahchelednik.com: locked design tokens (D-016).
   Approved by Noah on 2026-10-31 from palette study draft 3.
   Change only when she says so. The build copies these into the site. */

@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond-wght.woff2") format("woff2");
  font-weight: 400 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond-Italic-wght.woff2") format("woff2");
  font-weight: 400 800; font-style: italic; font-display: swap;
}

:root {
  /* Type */
  --serif: "EB Garamond", Garamond, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Dark: the true version. One job per color. */
  --bg: #1A1311;          /* Espresso: the page */
  --raised: #352722;      /* Roast: raised surfaces, dividers */
  --text: #F0DFD6;        /* Crema: words, her name */
  --muted: #CDBFAE;       /* Steamed Milk: quieter words */
  --link: #B79DEB;        /* Lavender: links */
  --hover: #D88AA8;       /* Dusty Rose: hover and active */
  --accent: #E8C374;      /* Crema Gold: sparkle and focus ring only */
  --th-venture: #EFC1AE;  /* Silk */
  --th-project: #A98AA8;  /* Mauve */
  --th-research: #D4924F; /* Copper */
  --th-writing: #B4586B;  /* Old Rose */
  --mark-ink: #BA3F45;         /* Rubric: the heart mark, the same in both versions (D-023) */
  --mark-ink-tab-dark: #E2817A; /* Light rubric: the tab icon in dark browser tabs only */

  /* Velvet: the same in both versions; text on it is always crema */
  --velvet:
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px),
    linear-gradient(100deg, #7A2E33 0%, #94404A 37%, #5B3B57 64%, #2E1A26 100%);
  --velvet-text: #F0DFD6;

  --hair: linear-gradient(90deg, transparent, #8d8487 15%, #f3ecee 48%, #a1979b 62%, transparent);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #F0DAD6;          /* Rose Cream */
    --raised: #DFC0BB;      /* Rose Cream Raised */
    --text: #1A1311;        /* Espresso Ink */
    --muted: #57433D;       /* Cocoa */
    --link: #62397D;        /* Lavender Plum */
    --hover: #7A2E33;       /* Oxblood */
    --accent: #87503F;      /* Rose Gold */
    --th-venture: #AD6457;  /* Terracotta Rose */
    --th-project: #4A4E86;  /* Indigo */
    --th-research: #6A4A14; /* Bronze */
    --th-writing: #3A2E46;  /* Plum Black */
    --hair: linear-gradient(90deg, transparent, #9c7f84 15%, #e2cdd0 48%, #a78b90 62%, transparent);
  }
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  text-decoration-color: color-mix(in srgb, var(--link) 70%, transparent);
}
a:hover { color: var(--hover); text-decoration-color: currentColor; text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
