/* arXte — Carteggio · shared design tokens (every component and the shell use ONLY these)
   Fonts are self-hosted: css/fonts.css (@font-face → assets/fonts/*.woff2, latin + latin-ext), linked
   by each page before this file. No request leaves the site. Faces: Bodoni Moda (wght 400 only),
   Fraunces (opsz, wght, SOFT, WONK), Newsreader (opsz, wght), Instrument Sans (wght), Mrs Saint
   Delafield, Pinyon Script. */

:root {
  /* Paper & ink */
  --paper: #f2ece0;          /* page: warm ivory laid paper */
  --paper-2: #e9e1d1;        /* cards, envelopes */
  --paper-3: #ddd2bd;        /* deeper fold / shadow paper */
  --ink: #1c1a16;            /* iron-gall ink */
  --ink-soft: rgba(28, 26, 22, 0.66);
  --ink-faint: rgba(28, 26, 22, 0.42);
  --hairline: rgba(28, 26, 22, 0.16);
  --hairline-strong: rgba(28, 26, 22, 0.32);

  /* Accents — use sparingly */
  --wax: #8e1b1b;            /* sealing wax, oxblood */
  --wax-deep: #5e1010;
  --gold: #a8834a;           /* gold leaf: hairlines and decoration only (≈2.7:1 on paper) */
  --gold-text: #7a5c2a;      /* gold for text on paper: ≥ 4.5:1 */
  --gold-light: #d9bf86;
  --gold-foil: linear-gradient(115deg, #8a6a35 0%, #d9bf86 22%, #f5e6bf 32%, #a8834a 48%, #e6cf98 64%, #8a6a35 100%);

  /* Night surfaces (the expert's cabinet, the desk blotter) */
  --night: #121110;
  --night-2: #1b1916;
  --leather: #1f2a22;        /* green leather desk blotter */
  --leather-tool: rgba(217, 191, 134, 0.55);

  /* Type */
  --font-brand: 'Bodoni Moda', 'Didot', 'Bodoni 72', serif;     /* ONLY the arXte wordmark and the wax seals */
  --font-display: 'Fraunces', 'Times New Roman', serif;          /* titles: soft high-contrast serif, wonky italics */
  --font-text: 'Newsreader', Georgia, serif;                     /* reading text, letters */
  --font-ui: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif; /* labels, navigation, buttons, figures in UI */
  --font-sign: 'Mrs Saint Delafield', cursive;                    /* signatures only */
  --font-hand: 'Pinyon Script', cursive;                          /* short handwritten notes */

  --fs-hero: clamp(3.4rem, 11.5vw, 12.5rem);
  --fs-h2: clamp(2.6rem, 7vw, 7.5rem);
  --fs-h3: clamp(1.6rem, 2.6vw, 2.4rem);
  --fs-body: clamp(1.06rem, 1.15vw, 1.25rem);
  --fs-small: 0.92rem;
  --fs-label: 0.7rem;        /* tracked uppercase labels in --font-ui */

  /* Space & motion */
  --gutter: clamp(18px, 4.5vw, 72px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --shadow-paper: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 18px 40px -18px rgba(40, 30, 15, 0.35), 0 2px 6px rgba(40, 30, 15, 0.08);
  --shadow-lift: 0 30px 60px -20px rgba(40, 30, 15, 0.45), 0 4px 12px rgba(40, 30, 15, 0.12);
}

/* Shared typographic utilities (components may use these class names) */
.t-label {
  font-family: var(--font-ui);
  font-size: var(--fs-label);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
}
.t-display {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 300;
  font-variation-settings: 'SOFT' 30, 'WONK' 0;
  line-height: 0.94;
  letter-spacing: -0.025em;
}
.t-display em { font-style: italic; font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.t-figures { font-variant-numeric: lining-nums tabular-nums; }
.t-oldstyle { font-variant-numeric: oldstyle-nums proportional-nums; }
.t-sign { font-family: var(--font-sign); font-weight: 400; line-height: 1; }
.t-hand { font-family: var(--font-hand); font-weight: 400; line-height: 1.15; }

/* Laid-paper texture: put on any surface that should feel like paper */
.paper {
  background-color: var(--paper);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.28 0 0 0 0 0.18 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(0deg, rgba(60, 45, 20, 0.025) 0 1px, transparent 1px 7px);
}
