/* Aumakua Defense — tokens taken from brand.html.
   Copper values are measured from assets/logo/aumakua-lockup-copper.png
   (opaque warm pixels, alpha > 220, luminance percentiles).
   --brand, --ink, and --paper are proposed and need Mike's sign-off.
   Do not add a color here that brand.html does not list. */

/* Self-hosted fonts (latin subset, SIL OFL). Size-adjusted local fallbacks keep the swap from shifting layout. */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Saira Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/saira-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Saira Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/saira-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Fallback"; font-weight: 400; src: local("Arial"), local("Liberation Sans"), local("Helvetica"); size-adjust: 97.5%; ascent-override: 102.6%; descent-override: 20.5%; line-gap-override: 0%; }
@font-face { font-family: "Barlow Fallback"; font-weight: 600; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Helvetica Bold"); size-adjust: 91.7%; ascent-override: 109%; descent-override: 21.8%; line-gap-override: 0%; }
/* Android has no Arial/Helvetica: match Barlow with Roboto instead of falling through to an unadjusted sans-serif. */
@font-face { font-family: "Barlow Fallback Roboto"; font-weight: 400; src: local("Roboto"), local("Roboto-Regular"); size-adjust: 97%; ascent-override: 103.1%; descent-override: 20.6%; line-gap-override: 0%; }
@font-face { font-family: "Barlow Fallback Roboto"; font-weight: 600; src: local("Roboto Medium"), local("Roboto-Medium"); size-adjust: 97.7%; ascent-override: 102.4%; descent-override: 20.5%; line-gap-override: 0%; }
@font-face { font-family: "Saira Fallback"; font-weight: 600 700; src: local("Arial Narrow Bold"), local("ArialNarrow-Bold"), local("Liberation Sans Narrow Bold"); size-adjust: 90.4%; ascent-override: 125.5%; descent-override: 48.5%; line-gap-override: 0%; }
/* Most phones have no Arial Narrow: a regular-width bold needs a much smaller size-adjust to match Saira Condensed line widths. */
@font-face { font-family: "Saira Fallback Wide"; font-weight: 600 700; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Helvetica Bold"), local("Helvetica-Bold"); size-adjust: 70%; ascent-override: 162.1%; descent-override: 62.7%; line-gap-override: 0%; }
@font-face { font-family: "Saira Fallback Roboto"; font-weight: 600 700; src: local("Roboto Bold"), local("Roboto-Bold"); size-adjust: 75%; ascent-override: 151.3%; descent-override: 58.5%; line-gap-override: 0%; }

:root {
  --accent: #C07A5A;            /* copper mid, measured p50 */
  --copper-shadow: #673A27;     /* oxide / copper shadow, measured near p08 */
  --copper-highlight: #DF9A73;  /* measured p75; text on --brand clears WCAG AA */
  --copper-bright: #F7BA96;     /* measured p90; highlight reference */

  /* Measured copper only. Metal and edge are the jewelry gradients.
     Button and type gradients drop the oxide stop so text stays AA. */
  --copper-metal: linear-gradient(135deg, #673A27 0%, #C07A5A 22%, #F7BA96 42%, #C07A5A 58%, #8A4E33 78%, #DF9A73 100%);
  --copper-edge: linear-gradient(90deg, transparent, #F7BA96 30%, #C07A5A 60%, transparent);
  --copper-type: linear-gradient(110deg, #DF9A73 0%, #F7BA96 46%, #DF9A73 100%);
  --copper-on-paper: linear-gradient(110deg, #673A27 0%, #8A4E33 48%, #673A27 100%);
  --copper-btn: linear-gradient(115deg, #C07A5A 0%, #F7BA96 42%, #C07A5A 58%, #F7BA96 100%);

  --brand: #2C3324;             /* PROPOSED military green. Darker than mockup wall. */
  --ink: #1A1916;               /* PROPOSED gunmetal */
  --paper: #F4F0E8;             /* PROPOSED warm paper */

  --olive-wall: #7D7359;        /* brief sample of the mockup wall; not a room color */
  --olive-wall-alt: #8A795D;    /* brief sample of the mockup wall; not a room color */

  --font-display: "Saira Condensed", "Saira Fallback", "Saira Fallback Wide", "Saira Fallback Roboto", "Arial Narrow", Impact, sans-serif;
  --font-body: "Barlow", "Barlow Fallback", "Barlow Fallback Roboto", "Segoe UI", sans-serif;

  --measure: 1040px;
  --header-h: 64px;
  --frame: min(1640px, 88vw);
  --shadow: 0 0 100px rgba(0, 0, 0, 0.2);
  --line: rgba(255, 255, 255, 0.16);
  --line-ink: rgba(26, 25, 22, 0.16);
}
