/* Belfry Capital tokens, generated by hand from the design system's tokens.json (v1).
   Parchment is the default theme. Set data-theme="forest" on <html> for the dark theme. */

@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;

  /* Color: Parchment */
  --surface: #F4EDDC;
  --surface-raised: #FAF5E8;
  --surface-sunken: #E9DFC6;
  --surface-brand: #074133;
  --brand-edge: #031F18;
  --ink: #14231D;
  --ink-muted: #475247;
  --ink-on-brand: #F4EDDC;
  --brass: #BC9B5A;
  --brass-edge: #8A6B2C;
  --brass-text: #7A5C1E;
  --brass-on-brand: #D2B473;
  --rule: #CDBB8F;
  --rule-strong: #8F7A47;
  --focus: #074133;
  --positive: #1D6236;
  --negative: #8A2432;
  --nav-glass: rgba(250, 245, 232, 0.68); /* surface-raised, semi-transparent */

  /* Shadow: Parchment */
  --shadow-raised: inset 0 1px 0 rgba(255,251,238,0.85), inset 0 -2px 0 rgba(122,92,30,0.14), 0 2px 0 #cdbb8f, 0 10px 18px rgba(52,36,8,0.22);
  --shadow-pressed: inset 0 2px 5px rgba(52,36,8,0.32), inset 0 -1px 0 rgba(255,251,238,0.6);
  --shadow-panel: inset 0 1px 0 rgba(255,251,238,0.9), inset 0 -3px 0 rgba(122,92,30,0.12), 0 3px 0 #cdbb8f, 0 4px 0 #b9a573, 0 22px 40px rgba(52,36,8,0.28);
  --shadow-glass: inset 0 1px 0 rgba(255,255,255,0.6), inset 0 -1px 0 rgba(7,65,51,0.25), 0 1px 0 rgba(255,255,255,0.35), 0 16px 32px rgba(7,40,30,0.32);

  /* Type families */
  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-text: "EB Garamond", Georgia, "Times New Roman", serif;
  /* Labels switched from Montserrat to the display serif at the client's request. */
  --font-label: "Cormorant Garamond", "Times New Roman", Georgia, serif;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --space-32: 128px;

  /* Radius */
  --radius-none: 0px;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-arch: 999px;
}

:root[data-theme="forest"] {
  color-scheme: dark;
  --surface: #04271E;
  --surface-raised: #073B2F;
  --surface-sunken: #031C16;
  --surface-brand: #0C5A47;
  --brand-edge: #021510;
  --ink: #F4EDDC;
  --ink-muted: #C4BBA0;
  --ink-on-brand: #F4EDDC;
  --brass: #BC9B5A;
  --brass-edge: #8A6B2C;
  --brass-text: #D2B473;
  --brass-on-brand: #E0C688;
  --rule: #2C5A4C;
  --rule-strong: #7E8F6F;
  --focus: #E0C688;
  --positive: #7FCB99;
  --negative: #F09AA6;
  --nav-glass: rgba(7, 59, 47, 0.7);
  --shadow-raised: inset 0 1px 0 rgba(244,237,220,0.14), inset 0 -2px 0 rgba(0,0,0,0.35), 0 2px 0 #021510, 0 10px 18px rgba(0,0,0,0.45);
  --shadow-pressed: inset 0 2px 6px rgba(0,0,0,0.6), inset 0 -1px 0 rgba(244,237,220,0.08);
  --shadow-panel: inset 0 1px 0 rgba(244,237,220,0.16), inset 0 -3px 0 rgba(0,0,0,0.35), 0 3px 0 #021510, 0 4px 0 #010b08, 0 22px 40px rgba(0,0,0,0.55);
  --shadow-glass: inset 0 1px 0 rgba(244,237,220,0.4), inset 0 -1px 0 rgba(0,0,0,0.35), 0 1px 0 rgba(244,237,220,0.08), 0 16px 32px rgba(0,0,0,0.5);
}
