/* =========================================================
   MN EMPOWERED — site styles
   Locked brand palette. Saturation-tuned from the MN flag
   for digital at-scale rendering.
   All brand colors live at :root; nothing below uses a hex.
   ========================================================= */

:root {
  /* Brand colors — locked */
  --blue-dark: #1a305b;
  --blue-on-dark: #08c1e5;
  --red: #D50000;
  --white: #FFFFFF;

  /* Surface colors — derived from brand navy */
  --bg: #1a305b;
  --bg-raised: #11213F;
  --bg-card: #1a305b;
  --border: rgba(8, 193, 229, 0.22);

  /* Text neutrals — cool-toned for legibility on navy */
  --text-primary: #FFFFFF;
  --text-muted: #DCE4EC;
  --text-soft: #C8D2DC;
  --text-faded: #9FB2C4;
  --gray-mid: #8FA3B8;

  /* Derived color effects */
  --red-glow: rgba(213, 0, 0, 0.12);

  /* Typography */
  --display: "Bebas Neue", "Impact", sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;

  /* Rhythm */
  --max: 1200px;
  --gutter: clamp(1rem, 4vw, 3rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--blue-on-dark); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* -------- Layout primitives -------- */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.spine {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 40px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.spine span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--white);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-transform: uppercase;
  white-space: nowrap;
}

.page { padding-left: 40px; }

/* -------- Header -------- */

.site-header {
  padding: 2rem var(--gutter) 1rem;
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand:hover { text-decoration: none; }

.brand img {
  height: 40px;
  width: auto;
}

.brand-text {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
}

nav.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
}

nav.site-nav a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 120ms ease;
}

nav.site-nav a:hover { border-bottom-color: var(--red); text-decoration: none; }
nav.site-nav a.active { border-bottom-color: var(--red); }

/* -------- Hero -------- */

.hero {
  padding: 5rem var(--gutter) 4rem;
}

.hero .inner {
  max-width: var(--max);
  margin: 0 auto;
}

.hero .eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue-on-dark);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  margin-bottom: 1.5rem;
}

.hero h1 .accent { color: var(--blue-on-dark); }

.hero p.lede {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  max-width: 52ch;
  color: var(--text-muted);
  line-height: 1.5;
}

/* -------- Section headings -------- */

.section {
  padding: 4rem var(--gutter);
}

.section .inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue-on-dark);
  padding-left: 12px;
  border-left: 4px solid var(--red);
  margin-bottom: 2rem;
}

.section h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
  margin-bottom: 2rem;
}

/* -------- Project cards (umbrella homepage) -------- */

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 150ms ease, transform 150ms ease;
  position: relative;
}

.project-card:hover {
  border-color: var(--red);
  transform: translateY(-2px);
  text-decoration: none;
}

.project-card.featured {
  border-color: var(--red);
  background:
    linear-gradient(180deg, var(--red-glow) 0%, transparent 60%),
    var(--bg-card);
}

.project-card .tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
}

.project-card h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1;
  color: var(--white);
}

.project-card .meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--blue-on-dark);
}

.project-card p {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.project-card .cta {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
}

.project-card.upcoming {
  opacity: 0.6;
  cursor: default;
}

.project-card.upcoming:hover { border-color: var(--border); transform: none; }

/* -------- Submission / contact block -------- */

.callout {
  background: var(--bg-raised);
  border-left: 4px solid var(--red);
  padding: 2rem 2.25rem;
  margin: 3rem auto;
  max-width: var(--max);
}

.callout h3 {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.callout p { color: var(--text-muted); margin-bottom: 1rem; }

.callout p:last-child { margin-bottom: 0; }

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.9rem 1.5rem;
  background: var(--red);
  color: var(--white);
  border: 1px solid var(--red);
  transition: background 120ms ease;
}

.btn:hover { background: transparent; color: var(--red); text-decoration: none; }

.btn.secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn.secondary:hover { background: var(--white); color: var(--bg); }

/* -------- MayDay page -------- */

.mayday-hero {
  padding: 4rem var(--gutter) 2rem;
}

.mayday-hero .inner {
  max-width: var(--max);
  margin: 0 auto;
}

.mayday-hero .eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.mayday-hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(4rem, 14vw, 10rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
}

.mayday-hero h1 .red { color: var(--red); }

.mayday-hero .date-bar {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
}

.mayday-hero .date-bar span.sep { color: var(--gray-mid); }

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.event {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.event.highlight {
  background: var(--red);
  border-color: var(--red);
}

.event.highlight * { color: var(--white); }

.event .time {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--blue-on-dark);
}

.event h4 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--white);
  letter-spacing: 0.02em;
}

.event .addr {
  font-size: 0.9rem;
  color: var(--text-faded);
}

.event .org {
  font-size: 0.95rem;
  color: var(--white);
  margin-top: 0.15rem;
}

.event .detail {
  font-size: 0.88rem;
  color: var(--text-soft);
  margin-top: 0.35rem;
}

.event .tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.15rem;
}

.note {
  background: var(--bg-raised);
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--blue-on-dark);
  margin: 2rem 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* -------- Footer -------- */

.site-footer {
  margin-top: 5rem;
  padding: 3rem var(--gutter) 4rem;
  border-top: 1px solid var(--border);
  background: var(--bg-raised);
}

.site-footer .inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.site-footer .chant {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--white);
}

.site-footer .chant span.accent { color: var(--blue-on-dark); }

.site-footer .meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--gray-mid);
  text-transform: uppercase;
}

/* -------- Utilities -------- */

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

@media (max-width: 640px) {
  .spine { width: 24px; }
  .spine span { font-size: 9px; }
  .page { padding-left: 24px; }
  .site-header { padding: 1.25rem var(--gutter); }
  nav.site-nav ul { gap: 1rem; }
}
