/* ============================================================================
   Matou — Forgejo theme
   Brand source: matou-resources (brand-identity.md, visual-design-principles.md)
   Approach: extend Forgejo's light theme, then override the brand-defining
   CSS variables + fonts. Only loaded when the "matou" theme is active, so the
   :root overrides apply globally.

   Accessibility note (matou visual-design-principles "Accessibility"): the brand
   names teal-medium #619793 for primary actions, but white/teal text on it fails
   WCAG (≈2.9:1). So solid primary surfaces + links use teal-DEEP #395E58 (white
   text ≈4.8:1; link-on-cream ≈5:1), and #619793 / #9AC7BF are used for accents,
   hovers and soft fills. Same teal ramp, accessible contrast.
   ========================================================================== */

@import url("./theme-forgejo-light.css");

/* Self-hosted fonts — NO external Google Fonts dependency. Loading from
   fonts.googleapis.com leaks visitor data to Google on every page load, which
   contradicts the data-sovereignty value this whole forge exists to express.
   latin + latin-ext subsets so te reo Māori macrons (ā ē ī ō ū) render.
   Files: custom/public/assets/fonts/ -> served at /assets/fonts/. */
@font-face { font-family: 'Merriweather'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/merriweather-400-latinext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Merriweather'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/merriweather-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Merriweather'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/merriweather-700-latinext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Merriweather'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/merriweather-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Roboto Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/robotomono-400-latinext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Roboto Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/robotomono-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Roboto Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/robotomono-500-latinext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Roboto Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/robotomono-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Roboto Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/robotomono-600-latinext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Roboto Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/robotomono-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Roboto Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/robotomono-700-latinext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Roboto Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/robotomono-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* ---- Primary: teal ramp (deep as the accessible base) ---- */
  --color-primary: #395E58;
  --color-primary-contrast: #FFFFFF;
  --color-primary-hover: #31524d;
  --color-primary-active: #253D39;
  --color-primary-dark-1: #33544f;
  --color-primary-dark-2: #2e4b46;
  --color-primary-dark-3: #28423e;
  --color-primary-dark-4: #253D39;
  --color-primary-dark-5: #1f3330;
  --color-primary-dark-6: #192926;
  --color-primary-dark-7: #131f1d;
  --color-primary-light-1: #4a716b;
  --color-primary-light-2: #5c857f;
  --color-primary-light-3: #6f9892;
  --color-primary-light-4: #88b3ad;
  --color-primary-light-5: #9AC7BF;
  --color-primary-light-6: #c2dcd8;
  --color-primary-light-7: #e3eeec;
  --color-primary-alpha-10: rgba(57, 94, 88, 0.10);
  --color-primary-alpha-20: rgba(57, 94, 88, 0.20);
  --color-primary-alpha-30: rgba(57, 94, 88, 0.30);
  --color-primary-alpha-40: rgba(57, 94, 88, 0.40);
  --color-primary-alpha-50: rgba(57, 94, 88, 0.50);
  --color-primary-alpha-60: rgba(57, 94, 88, 0.60);
  --color-primary-alpha-70: rgba(57, 94, 88, 0.70);
  --color-primary-alpha-80: rgba(57, 94, 88, 0.80);
  --color-primary-alpha-90: rgba(57, 94, 88, 0.90);

  /* ---- Accent / focus: teal medium ---- */
  --color-accent: #619793;
  --color-active: var(--color-primary-light-7);
  --color-hover: rgba(0, 0, 0, 0.03);

  /* ---- Surfaces: warm cream page, white boxes ---- */
  --color-body: #F5F5F0;
  --color-box-body: #FFFFFF;
  --color-box-body-highlight: #f0f4f3;
  --color-box-header: #F5F5F0;
  --color-footer: #FFFFFF;
  --color-nav-bg: #FFFFFF;
  --color-header-wrapper: #FFFFFF;
  --color-header-wrapper-transparent: rgba(255, 255, 255, 0.9);
  --color-nav-hover-bg: var(--color-primary-light-7);

  /* ---- Text ---- */
  --color-text: #1a1a1a;
  --color-text-dark: #000000;
  --color-text-light: #444444;
  --color-text-light-1: #555555;
  --color-text-light-2: #666666;
  --color-text-light-3: #888888;

  /* ---- Borders / dividers ---- */
  --color-secondary: rgba(0, 0, 0, 0.10);
  --color-secondary-bg: rgba(0, 0, 0, 0.03);

  /* ---- Destructive (brand error colour) ---- */
  --color-red: #c8463a;

  /* ---- Fonts (brand: Roboto Mono for UI/body, Merriweather for headings) ---- */
  --fonts-proportional: "Roboto Mono", ui-monospace, monospace;
  --fonts-monospace: "Roboto Mono", ui-monospace, monospace;
}

/* Headings use Merriweather (serif) for warmth + authority. */
h1, h2, h3, h4, h5, h6,
.ui.header,
.repository .header-wrapper .repo-title,
.markup h1, .markup h2, .markup h3, .markup h4, .markup h5, .markup h6 {
  font-family: "Merriweather", Georgia, serif !important;
}

/* Subtle brand tint on the navbar's bottom edge + brand-teal active links. */
.page-content .ui.secondary.menu .active.item,
.ui.menu .active.item {
  border-color: var(--color-primary);
}

/* Primary buttons: brand teal-deep with white text (accessible). */
.ui.primary.button,
.ui.primary.buttons .button {
  background: var(--color-primary);
  color: var(--color-primary-contrast);
}
.ui.primary.button:hover,
.ui.primary.buttons .button:hover {
  background: var(--color-primary-hover);
}

/* Keep the navbar a solid surface on every page. Forgejo makes it transparent
   on the landing page, which let the dark teal hero show through and hid the
   teal bird logo (brand-identity.md logo rules: needs contrast with its
   surface). A solid surface keeps the logo + nav items readable everywhere,
   including over the hero. */
#navbar {
  background: var(--color-nav-bg) !important;
  border-bottom: 1px solid var(--color-secondary);
}
