/* MAMA design tokens — from "MAMA Brand and Visual Asset Library Specification" v1.0 (29 Nov 2026).
   The six HEX values are fixed by the spec. Everything else is a proposed default. */
:root {
  --mama-red: #FF002B;
  --mama-black: #141414;
  --mama-ivory: #F5F0EA;
  --mama-gold: #F4A632;
  --mama-grey: #666666;
  --mama-white: #FFFFFF;

  --color-bg: var(--mama-ivory);
  --color-surface: var(--mama-white);
  --color-text: var(--mama-black);
  --color-muted: var(--mama-grey);
  --color-action-bg: var(--mama-red);
  --color-action-text: var(--mama-black);

  /* System sans-serif until a licensed brand font is selected */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --space-1: 4px; --space-2: 8px; --space-3: 12px;
  --space-4: 16px; --space-6: 24px; --space-8: 32px;
  --space-12: 48px; --space-16: 64px;
  --radius-control: 8px; --radius-card: 16px;
  --content-max: 1200px; --motion-fast: 160ms;
}

html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); }

/* Text links: never small red or gold text on light surfaces */
a { color: var(--mama-black); }
a:hover { text-decoration: underline; }

/* Visible keyboard focus that works on dark and light surfaces */
:focus-visible {
  outline: 3px solid var(--mama-gold);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--mama-black);
  border-radius: 4px;
}

/* Button states */
.btn { transition: filter var(--motion-fast), transform var(--motion-fast); }
.btn:hover { filter: brightness(0.92); text-decoration: none; }
.btn:active { transform: translateY(1px); filter: brightness(0.85); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.10); }
.btn-outline-dark:hover { background: rgba(20, 20, 20, 0.06); }

/* Choice pills on the submit form */
.pill { position: relative; display: inline-flex; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span { display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; padding: 12px 22px; border-radius: 999px; font-size: 16px; font-weight: 700; cursor: pointer; background: var(--mama-white); color: var(--mama-black); border: 1.5px solid var(--mama-grey); }
.pill input:checked + span { background: var(--mama-red); color: var(--mama-black); border-color: var(--mama-black); }
.pill input:focus-visible + span { outline: 3px solid var(--mama-gold); outline-offset: 2px; box-shadow: 0 0 0 6px var(--mama-black); }

input, textarea, select { font: inherit; max-width: 100%; min-width: 0; box-sizing: border-box; }
fieldset { min-width: 0; }
html, body { overflow-x: clip; }
input:focus-visible, textarea:focus-visible, select:focus-visible { border-color: var(--mama-black); }

/* Navigation: drop secondary links before shrinking content */
@media (max-width: 1380px) { .nav-text { display: none !important; } }
@media (max-width: 1100px) { .nav-topics, .nav-divider { display: none !important; } }

/* Hero: below 768px the headline and actions come before the artwork */
@media (max-width: 1023px) {
  .hero-copy { order: 1; padding-bottom: 8px !important; }
  .hero-art { order: 2; margin-left: 0 !important; padding-bottom: clamp(80px, 13vw, 140px); justify-content: center; }
  .hero-art picture { max-width: 640px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
