/* AsterisMC Design Tokens
   Primary:   Maroon     #78243c   (logo gradient #541830 -> #78243c -> #903c3c)
   Accent:    Coral      #e8735a
   Secondary: Emerald    #1a5c3a

   The red redesign (2026-11-19) replaced the navy fills with the logo's
   maroon gradient, the navy backgrounds with warm near-blacks, and the wine
   accent #d65c7e with coral. White text is 9.92:1 on --cmc-blue, 7.25:1 on
   the hover fill and 5.92:1 on the mid fill. The coral is at least 5.66:1 on
   every background and --cmc-gold-light at least 7.81:1. See
   01-Brand/Palette.md.

   The variables below keep their old names (--cmc-blue, --cmc-gold) so
   polish.css, wiki.css and the built asset Staff/static/dist/cratermc-ui.css
   keep working. The names are stale, not the values. New code should use the
   --brand-* aliases.
*/

/* Self-hosted fonts (latin woff2 from @fontsource 5.3.0, OFL 1.1, see
   fonts/LICENSE-*). Roboto is the wordmark "MC", the wiki and the element
   styles; Montserrat and Open Sans replace the old Google Fonts @imports in
   main_styles.css and elements_styles.css. */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/roboto-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/roboto-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/roboto-latin-900-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/open-sans-latin-300-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/open-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/open-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/open-sans-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/open-sans-latin-800-normal.woff2") format("woff2");
}

:root {
  --cmc-blue:        #78243c;
  --cmc-blue-hover:  #903c3c;
  --cmc-blue-mid:    #a8405a;
  --cmc-blue-deep:   #541830;
  --cmc-gold:        #e8735a;
  --cmc-gold-light:  #f19a85;
  --cmc-emerald:     #1a5c3a;

  --bg-void:         #0d080b;
  --bg-base:         #170d12;
  --bg-header:       #120a0e;
  --bg-card:         #21121a;
  --bg-card-alt:     #2a1720;

  --brand-fill:       var(--cmc-blue);
  --brand-fill-hover: var(--cmc-blue-hover);
  --brand-fill-mid:   var(--cmc-blue-mid);
  --brand-fill-deep:  var(--cmc-blue-deep);
  --brand-accent:     var(--cmc-gold);
  --brand-accent-light: var(--cmc-gold-light);
}

/* Wordmark lockup: the white Asteris wordmark plus a coral "MC" in Roboto
   Black, upright, sitting on the baseline of "steris". Everything scales off
   --wm-h (the wordmark's height); "steris" sits on a line about 31% down the
   image, which is where the MC baseline goes, and MC overlaps the
   swoosh tip so it sits on the swoosh like the letters do. Used in the header, the footer
   (footer.js) and the homepage hero h1. */
.brand_lockup {
  --wm-h: 52px;
  display: inline-flex;
  align-items: flex-start;
  line-height: 1;
  text-decoration: none;
}
.brand_lockup:hover,
.brand_lockup:focus { text-decoration: none; }
.brand_lockup .brand_wordmark {
  display: block;
  height: var(--wm-h);
  width: auto;
  max-width: none;
}
.brand_mc {
  font-family: "Roboto", sans-serif;
  font-weight: 900;
  font-size: calc(var(--wm-h) * 0.4);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin-top: calc(var(--wm-h) * -0.04);
  margin-left: calc(var(--wm-h) * -0.1);
}
.brand_lockup--footer { --wm-h: 46px; }
.brand_lockup--hero   { --wm-h: 150px; }
@media (max-width: 991px) {
  .brand_lockup         { --wm-h: 44px; }
  .brand_lockup--footer { --wm-h: 42px; }
  .brand_lockup--hero   { --wm-h: 120px; }
}
@media (max-width: 575px) {
  .brand_lockup         { --wm-h: 38px; }
  .brand_lockup--hero   { --wm-h: 84px; }
}
