/* with.inmywords.chat's Lightly Golded theme (site_with_theme, site
 * migration 0178; site/docs/designs/with-inmywords-colours-and-typography.pdf).
 *
 * Loaded after with.css only while the theme is chosen, and every rule is
 * under body.theme-golded, so the standard theme is exactly as it was.
 *
 *   Linen         #FFF1E5   main background
 *   Muted Gold    #B39A67   primary actions, rails and rules
 *   Muted Sage    #AAB7A5   secondary surfaces (the olive field's place)
 *   Bronze        #8C6239   supporting accent; the gold as text on linen
 *   Navy          #0B1B2F   dark accent and the dark field
 *   Deep Harbour  #0E2236   main text
 *
 * Noto Serif for titles, H1, H2 and button labels; Noto Sans for the rest.
 *
 * Muted Gold is 2.45 on linen, too faint for words, so the active role
 * (labels, the "with" of the wordmark, a picked-out word) is Bronze there,
 * and the gold is a fill or a rule. Contrast, WCAG 2:
 *
 *   linen   text #0E2236 14.58; secondary #3F4C5B 7.91; muted #59636D 5.53;
 *           bronze #8C6239 4.84; hover ground #FBEBDD: bronze 4.60
 *   gold    button #0E2236 on #B39A67 5.95
 *   bronze  button #FFF1E5 on #8C6239 4.84
 *   sage    #0B1B2F on #AAB7A5 8.27
 *   navy    #FFF1E5 on #0B1B2F 15.65; secondary #C7CDD2 10.80; gold as
 *           text #B39A67 6.38; button #0B1B2F on #B39A67 6.38 */

@font-face {
  font-family: "Noto Serif";
  src: url("/site-assets/fonts/NotoSerif-Brand-Latin.woff2?v=2026-11-06.1") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: optional;
}

body.theme-golded {
  --font-serif: "Noto Serif", Georgia, "Times New Roman", serif;
  --gold: #B39A67;
  --bronze: #8C6239;
  --bg-deep: #FFF1E5;
  --bg-warm: #FBEBDD;
  --bg-surface: #F6E2CF;
  --bg-elevated: #FFF8F2;
  --text-primary: #0E2236;
  --text-secondary: #3F4C5B;
  --text-muted: #59636D;
  --border: #DCC9A8;
  --border-strong: #B39A67;
  --brand-active: #8C6239;
  --brand-continuity: #AAB7A5;
}

/* The dark field: navy, linen words, the gold as an accent it can carry. */
body.theme-golded .field-navy {
  --bg-deep: #0B1B2F;
  --text-primary: #FFF1E5;
  --text-secondary: #C7CDD2;
  --border: #3A4A5C;
  --border-strong: #B39A67;
  --brand-active: #B39A67;
}

/* The secondary surface: sage in the olive field's place, navy words. */
body.theme-golded .field-olive {
  --bg-deep: #AAB7A5;
  --bg-warm: #AAB7A5;
  --bg-surface: #AAB7A5;
  --bg-elevated: #AAB7A5;
  --text-primary: #0B1B2F;
  --text-secondary: #0B1B2F;
  --text-muted: #0B1B2F;
  --border: #0B1B2F;
  --border-strong: #0B1B2F;
  --brand-active: #0B1B2F;
}

/* ---- type --------------------------------------------------------------- */

body.theme-golded h1,
body.theme-golded h2,
body.theme-golded .w-brand__with {
  font-family: var(--font-serif);
  font-weight: 400;
}
body.theme-golded .w-hero h1,
body.theme-golded .w-close h2,
body.theme-golded .w-sec h1,
body.theme-golded .w-sec h2 { letter-spacing: -0.02em; }
body.theme-golded.with .cta h2.cta__h { font-weight: 400; }
body.theme-golded .w-search .results h2 { font-weight: 400; }

/* Button labels in the serif, at its one weight. */
body.theme-golded .login,
body.theme-golded .button,
body.theme-golded .w-menutoggle {
  font-family: var(--font-serif);
  font-weight: 400;
}

/* ---- actions: the gold ------------------------------------------------- */

body.theme-golded .auth .login--primary,
body.theme-golded .w-drawer__end .login--primary,
body.theme-golded .button--primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #0E2236;
}
body.theme-golded .auth .login--primary:hover { border-color: var(--gold); }
body.theme-golded .button--campaign { background: #AAB7A5; color: #0B1B2F; }

/* ---- rails, rules and marks: the gold where no word sits on it --------- */

body.theme-golded .w-note::before { background: var(--gold); width: 4px; }
body.theme-golded .w-index a:hover,
body.theme-golded .w-index a[aria-current] { border-bottom-color: var(--gold); }
body.theme-golded .w-side a[aria-current="page"] { border-inline-start-color: var(--gold); }
body.theme-golded .w-drawer a[aria-current] { box-shadow: inset 3px 0 0 var(--gold); }
body.theme-golded .w-menucb:focus-visible ~ .w-bar .w-menutoggle { outline-color: var(--bronze); }
body.theme-golded .w-flow__box--ours { background: #0B1B2F; border-color: #0B1B2F; color: #FFF1E5; }
body.theme-golded .w-flow__box--ours .label { color: var(--gold); }

/* ---- calls to action --------------------------------------------------- */

body.theme-golded .cta--paper,
body.theme-golded .cta--line {
  --cta-fg: #0E2236; --cta-fg2: #3F4C5B; --cta-eyebrow: #8C6239;
  --cta-btn-bg: #B39A67; --cta-btn-fg: #0E2236; --cta-second-border: #0E2236; --cta-link: #0E2236;
}
body.theme-golded .cta--paper { border-top-color: var(--gold); }
body.theme-golded .cta--line { border-top-color: var(--gold); }
body.theme-golded .cta--navy-field {
  --cta-bg: #0B1B2F; --cta-fg: #FFF1E5; --cta-fg2: #C7CDD2; --cta-eyebrow: #B39A67;
  --cta-btn-bg: #B39A67; --cta-btn-fg: #0B1B2F; --cta-second-border: #FFF1E5; --cta-link: #FFF1E5;
}
body.theme-golded .cta--olive-field {
  --cta-bg: #AAB7A5; --cta-fg: #0B1B2F; --cta-fg2: #0B1B2F; --cta-eyebrow: #0B1B2F;
  --cta-btn-bg: #0B1B2F; --cta-btn-fg: #FFF1E5; --cta-second-border: #0B1B2F; --cta-link: #0B1B2F;
}
body.theme-golded .cta .cta__button { font-family: var(--font-serif); font-weight: 400; }
