/* Modernist — design-system tokens and component classes. This file is the source of truth for the system's look; retune it here and see readme.md. */

/* Fonts — @import rules must stay at the very top of the file (CSS ignores
   any @import that follows another rule). Archivo powers the design system;
   Poppins/Inter are used by the REMADE site theme at the bottom of this file. */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;600;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --color-bg: #ffffff;
  --color-surface: #f3f0fb;
  --color-dark: #2e1a5e;
  --color-text: var(--color-dark);
  --color-accent: #7748ea;
  --color-accent-2: #fe9c16;
  --color-divider: color-mix(in srgb, #2e1a5e 30%, transparent);

  /* Tonal ramps — generated in OKLCH on one shared lightness scale, so the
     same step of any role matches the others in visual value. Neutrals are
     violet-tinted; no true black anywhere on the site. */
  --color-neutral-100: #f8f6fc;
  --color-neutral-200: #ebe7f5;
  --color-neutral-300: #d8d2e8;
  --color-neutral-400: #bbb2d6;
  --color-neutral-500: #9c92be;
  --color-neutral-600: #7e74a0;
  --color-neutral-700: #615a7e;
  --color-neutral-800: #453f5c;
  --color-neutral-900: #2e1a5e;

  --color-accent-100: #ece4fc;
  --color-accent-200: #dccdf9;
  --color-accent-300: #c3aaf5;
  --color-accent-400: #9a77ef;
  --color-accent-500: #7748ea;
  --color-accent-600: #6a3fd6;
  --color-accent-700: #5c35bd;
  --color-accent-800: #47289a;
  --color-accent-900: #331c6e;

  --color-accent-2-100: #fff3e0;
  --color-accent-2-200: #ffe3b8;
  --color-accent-2-300: #ffce85;
  --color-accent-2-400: #feb44f;
  --color-accent-2-500: #fe9c16;
  --color-accent-2-600: #d97f0a;
  --color-accent-2-700: #ad6407;
  --color-accent-2-800: #7f4a08;
  --color-accent-2-900: #513008;

  --font-heading: "Archivo", system-ui, sans-serif;
  --font-heading-weight: 800;
  --font-body: "Archivo", system-ui, sans-serif;

  --space-1: 4.0px;
  --space-2: 8.0px;
  --space-3: 12.0px;
  --space-4: 16.0px;
  --space-6: 24.0px;
  --space-8: 32.0px;

  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;

  /* Elevation — derived from the ground: soft ink-tinted shadows on a
     light theme, a hairline edge + ambient darkness on a dark one. */
  --shadow-sm: 0 1px 2px color-mix(in srgb, #2e1a5e 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2e1a5e 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2e1a5e 22%, transparent);
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
}
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: var(--font-heading-weight); }

.grayscale{filter:grayscale(1) contrast(1.08)}

/* ══════════════════════════════════════════════════════════════════════════
   Components — built with the tokens above. Plain CSS
   on plain HTML: no JavaScript, no build step. Each class is documented in
   readme.md and demonstrated in foundations/ and components/.
   ══════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 15px; line-height: 1.55; font-weight: 400; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 var(--space-2);
}
h1 { font-size: 42px; }
h2 { font-size: 32px; }
h3 { font-size: 25px; }
h4 { font-size: 20px; }
h5 { font-size: 16px; }
h6 { font-size: 13px; }
h6 { letter-spacing: 0.08em; text-transform: uppercase; }
p { margin: 0 0 var(--space-3); }
a {
  color: var(--color-violet);
  text-underline-offset: 3px;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--color-orange);
}
img { display: block; max-width: 100%; }
figure { margin: 0; }
figcaption {
  font-size: 11px; margin-top: var(--space-1);
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.text-muted { color: color-mix(in srgb, var(--color-text) 55%, transparent); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-violet); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-violet) 30%, transparent); }

/* — rules — */
.hr {
  height: 2px; border: 0; margin: var(--space-4) 0;
  background: var(--color-divider);
}

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 14px; line-height: 1.2; color: var(--color-text); /* matches the .input's 14px —
     the pair sits side by side in sign-up rows */
  background: transparent; border: 1px solid transparent;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: var(--radius-md);
}
.btn svg { display: block; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary {
  background: var(--color-gradient-brand);
  color: #ffffff;
  text-decoration: none;
  transition: filter 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
  filter: brightness(1.08) saturate(1.1);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--color-violet) 35%, transparent);
  color: #ffffff !important;
}
.btn-primary:active { filter: brightness(0.9); }
.btn-secondary {
  border-color: var(--color-divider);
  text-decoration: none;
  color: inherit;
}
.btn-secondary:hover {
  background: #ffffff;
  color: var(--color-violet);
  border-color: var(--color-violet);
}
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.btn-ghost { color: var(--color-violet); padding-inline: var(--space-1); }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-violet) 10%, transparent); color: var(--color-violet); }
.btn-ghost:active { background: color-mix(in srgb, var(--color-violet) 18%, transparent); }
.btn-icon { width: 36px; height: 36px; padding: 0; }
.btn-block { width: 100%; margin-top: var(--space-2); justify-content: flex-start; text-align: left; }

/* — forms — */
.field > label {
  display: block; font-size: 12px; margin-bottom: 5px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.input {
  width: 100%; min-height: 36px; padding: 6px 10px; font: inherit;
  font-size: 14px; color: var(--color-text); caret-color: var(--color-violet);
  background: var(--color-surface);
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-violet); outline-offset: 0; }
textarea.input { min-height: 90px; resize: vertical; }
.radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.radio input, .seg-opt input {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}
.radio .dot {
  width: 16px; height: 16px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--color-divider);
}
.radio:hover .dot { border-color: var(--color-violet); }
.radio input:checked + .dot {
  border-color: var(--color-violet); background: var(--color-violet);
  box-shadow: inset 0 0 0 4px var(--color-bg);
}
.radio input:focus-visible + .dot { outline: 2px solid var(--color-violet); outline-offset: 2px; }
.seg {
  display: inline-flex; overflow: hidden;
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.seg-opt {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; font-size: 13px; cursor: pointer;
}
.seg-opt + .seg-opt { border-left: 1px solid var(--color-divider); }
.seg-opt:has(input:checked) { background: var(--color-violet); color: var(--color-bg); }
.seg-opt:not(:has(input:checked)):hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.seg-opt:has(input:focus-visible) { outline: 2px solid var(--color-violet); outline-offset: -2px; }

/* — cards — */
.card {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-3); border-radius: var(--radius-md); background: var(--color-surface);
}
.card-kicker { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-violet); }
.card-title {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 17px; line-height: 1.2;
}
.card-body { margin: 0; font-size: 13px; opacity: 0.8; flex: 1; }
.card-meta {
  display: flex; align-items: center; gap: 6px; font-size: 11px;
  color: color-mix(in srgb, var(--color-text) 50%, transparent);
}
.elev-sm { box-shadow: var(--shadow-sm); }
.elev-md { box-shadow: var(--shadow-md); }
.elev-lg { box-shadow: var(--shadow-lg); }

/* — tags — */
.tag {
  display: inline-flex; align-items: center; font-size: 11px;
  letter-spacing: 0.02em; padding: 3px 10px;
  border-radius: calc(var(--radius-md) * 0.75);
}
.tag-accent { background: var(--color-accent-100); color: var(--color-accent-800); }
.tag-accent-2 { background: var(--color-accent-2-100); color: var(--color-accent-2-800); }
.tag-neutral { background: var(--color-neutral-100); color: var(--color-neutral-800); }
.tag-outline { border: 1px solid var(--color-violet); color: var(--color-violet); }

/* — navigation — */
.nav {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-bottom: 2px solid var(--color-divider);
}
.nav-brand {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 18px; margin-right: auto;
}
.nav a { color: var(--color-text); text-decoration: none; font-size: 14px; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--color-violet); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #ffffff; }

/* — tables — */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-text);
  padding: var(--space-2); border-bottom: 2px solid var(--color-violet);
}
.table td {
  padding: var(--space-2);
  border-bottom: 1px solid var(--color-violet);
}

/* — dialog — */
.dialog-backdrop {
  position: fixed; inset: 0; display: grid; place-items: center;
  padding: var(--space-4);
  background: color-mix(in srgb, var(--color-neutral-900) 50%, transparent);
}
.dialog {
  width: min(440px, 100%); display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-4); border-radius: var(--radius-lg);
  background: var(--color-surface); box-shadow: var(--shadow-lg);
}
.dialog-title {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 20px;
}
.dialog-body { font-size: 14px; opacity: 0.85; }
.dialog-actions { display: flex; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-2); }

/* ══════════════════════════════════════════════════════════════════════════
   REMADE site theme
   Overrides moved out of the inline <style> block that used to live in
   index.html's <helmet>. These rules intentionally come AFTER the design-system
   tokens above so their :root declarations win — the site runs on the Electric
   Violet / Tangerine Orange brand palette and the Poppins/Inter type families
   rather than the Modernist defaults.
   ══════════════════════════════════════════════════════════════════════ */

/* Motion — hero background Ken Burns drift and the pulsing map markers. */
@keyframes remadePulse {
  0%   { r: 9px;  opacity: .55; }
  100% { r: 26px; opacity: 0;   }
}
@keyframes remadeKen {
  0%   { transform: scale(1.06) translate(1.5%, 0); }
  50%  { transform: scale(1.12) translate(-1.5%, -1.2%); }
  100% { transform: scale(1.06) translate(1.5%, 0); }
}

/* Theme tokens — Electric Violet / Tangerine Orange brand palette and the
   Poppins/Inter type, overriding the Modernist defaults. Both :root and body
   are targeted so the tokens apply even when the component runtime scopes
   styles to <body>. */
:root, body {
  --font-heading: "Inter", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, sans-serif;
  --color-violet: #7748EA;        /* Electric Violet — primary accent */
  --color-orange: #FE9C16;        /* Tangerine Orange — secondary accent */
  --color-violet-deep: #2E1A5E;   /* text / "dark" role; the site uses no black */
  --color-tint: #f3f0fb;          /* violet-tinted off-white section background */
  --color-gradient-brand: linear-gradient(135deg, #7748EA 0%, #FE9C16 100%);
  --color-accent: var(--color-violet);
}
body { font-family: "Poppins", system-ui, sans-serif; }
h1, h2, h3, h4, h5, h6 { font-family: "Inter", system-ui, sans-serif !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--color-bg); }
a { color: var(--color-violet); text-underline-offset: 3px; }
a:hover { color: var(--color-orange); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ── Page components ────────────────────────────────────────────────────────
   Classes for inline-style patterns that repeated across index.html. One-off
   styles are left inline; only styling shared by several elements lives here. */

/* Section scaffolding — shared inner column, eyebrow label, and divider rule. */
.section-inner { max-width: 1180px; margin: 0 auto; padding: clamp(56px, 7vw, 104px) clamp(20px, 5vw, 72px); }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.rule { height: 2px; border: 0; margin: 0; background: var(--color-divider); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--color-violet); margin: 0 0 20px;
}
.eyebrow-dot { width: 10px; height: 10px; background: var(--color-violet); }

/* Cards — Approach (numbered) and Innovation/News feature cards, plus their
   shared icon box, index number, headings and body copy. */
.approach-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--color-violet);
  color: #ffffff;
}
.approach-card .icon-box {
  color: var(--color-orange);
  border-color: var(--color-orange);
}
.approach-card .card-title-lg {
  color: var(--color-orange);
}
.approach-card .card-desc-lg {
  color: #ffffff;
}
.feature-card  { border: 2px solid var(--color-divider); padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.news-card     { border: 2px solid var(--color-divider); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.card-head { display: flex; align-items: center; justify-content: space-between; }
.icon-box { display: grid; place-items: center; width: 56px; height: 56px; border: 2px solid var(--color-divider); color: var(--color-violet); }
.icon-accent { color: var(--color-violet); }
.card-index { font-family: var(--font-heading); font-weight: 800; font-size: 28px; color: color-mix(in srgb, var(--color-text) 22%, transparent); }
.card-title-lg { font-family: var(--font-heading); font-weight: 800; font-size: 22px; line-height: 1.15; margin: 0; }
.card-title    { font-family: var(--font-heading); font-weight: 800; font-size: 19px; line-height: 1.2;  margin: 0; }
.card-desc    { font-size: 14.5px; line-height: 1.58; color: color-mix(in srgb, var(--color-text) 78%, transparent); margin: 0; }
.card-desc-lg { font-size: 15px;   line-height: 1.6;  color: color-mix(in srgb, var(--color-text) 78%, transparent); margin: 0; }

/* Objectives — big stat figures and the bulleted outcomes list. */
.stat-num { font-family: var(--font-heading); font-weight: 800; font-size: clamp(38px, 4.5vw, 58px); line-height: 1; color: var(--color-violet); margin: 0 0 12px; }
.stat-label { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: color-mix(in srgb, var(--color-text) 68%, transparent); margin: 0; }
.bullet-row { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; }
.bullet-dot { width: 10px; height: 10px; background: var(--color-violet); flex: none; margin-top: 8px; }
.bullet-text { font-size: 16px; line-height: 1.55; margin: 0; color: color-mix(in srgb, var(--color-text) 85%, transparent); }

/* Demonstration sites — the numbered list beside the map. */
.site-row { display: flex; gap: 18px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--color-divider); }
.site-num { font-family: var(--font-heading); font-weight: 800; font-size: 15px; color: var(--color-violet); flex: none; }
.site-name { font-family: var(--font-heading); font-weight: 800; font-size: 18px; margin: 0 0 4px; }
.site-meta { font-size: 14px; color: color-mix(in srgb, var(--color-text) 60%, transparent); margin: 0; }

/* Stakeholders — value cards: three across on top, two across below,
   stacked in one column on small screens. */
.stakeholder-title { font-family: var(--font-heading); font-weight: 800; font-size: 18px; margin: 0; }
.stakeholder-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.stakeholder-card {
  grid-column: span 2;
  border: 2px solid var(--color-divider);
  background: var(--color-bg);
  padding: 30px;
  display: flex; flex-direction: column; gap: 16px;
}
.stakeholder-card:nth-child(n+4) { grid-column: span 3; }
@media (max-width: 900px) {
  .stakeholder-grid { grid-template-columns: 1fr; }
  .stakeholder-card, .stakeholder-card:nth-child(n+4) { grid-column: auto; }
}

/* Consortium — partner tiles: lavender cards that lift and go violet on hover. */
.partner-tile {
  border: 2px solid color-mix(in srgb, var(--color-violet) 25%, transparent);
  background: #e6dff5;
  aspect-ratio: 16/9; display: grid; place-items: center;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.partner-tile:hover {
  background: var(--color-violet);
  border-color: var(--color-violet);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--color-violet) 35%, transparent);
}
.partner-tile:hover .partner-label { color: #ffffff; }
.partner-label {
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 75%, transparent);
  transition: color .2s ease;
}
@media (prefers-reduced-motion: reduce) {
  .partner-tile, .partner-tile:hover { transform: none; }
}

/* News — card meta row, headings, dates and "read more" links. */
.news-meta { display: flex; gap: 10px; align-items: center; }
.news-title { font-family: var(--font-heading); font-weight: 800; font-size: 20px; line-height: 1.18; margin: 0; }
.news-date { font-size: 12px; color: color-mix(in srgb, var(--color-text) 55%, transparent); }
.news-more { font-size: 14px; font-weight: 600; text-decoration: none; }

/* Contact + footer gradient stack — on pages that wrap both blocks in
   .gradient-stack, the wrapper paints one continuous brand gradient and the
   footer's own background (set inline by js/footer.js) is switched off. */
.gradient-stack footer { background: transparent !important; }

/* Contact & footer — link styling on the dark/accent panels. */
.social-link {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 255, 255, .5);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.social-link:hover {
  color: var(--color-orange);
  border-bottom-color: var(--color-orange);
}
.footer-link {
  color: color-mix(in srgb, #ffffff 75%, transparent);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-link:hover {
  color: var(--color-orange);
}

