/* Prairie Futures Society — Shared Styles */

:root {
  --dark: #1A1F0E;
  --olive: #2E3C1E;
  --olive-mid: #4A5E30;
  --olive-light: #7A8F5A;
  --amber: #C28A0E;
  --amber-light: #EDB83A;
  --amber-pale: #F7EBC9;
  --sky: #4A7C9A;
  --parchment: #F4EFE0;
  --text: #1A1F0E;
  --text-mid: #3E4A2A;
  --text-muted: #6A7855;
  --border: #D4CDB8;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Rubik', sans-serif; font-size: 1.0625rem; line-height: 1.7; color: var(--text); background: var(--parchment); }

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3 { font-family: 'Playfair Display', serif; line-height: 1.05; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 900; margin-bottom: 1.5rem; }
h2 { font-size: clamp(1.875rem, 4vw, 3rem); font-weight: 800; margin-bottom: 1rem; }
h3 { font-size: 1.375rem; font-weight: 700; margin-bottom: 0.75rem; }
/* h4 stays Rubik — it's a UI label, not a display heading */
h4 { font-family: 'Rubik', sans-serif; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }

h2.white { color: white; }
h2.dark { color: var(--dark); }
h3.white { color: white; }

.body-text { font-size: 1rem; color: var(--text-muted); line-height: 1.8; max-width: 540px; }
.body-text.light { color: rgba(255,255,255,0.65); }
.lead { font-size: 1.0625rem; line-height: 1.8; }

/* ─── Skip link ──────────────────────────────────────────── */
.skip-link { position: absolute; top: -100%; left: 1rem; padding: 0.5rem 1rem; background: var(--amber); color: var(--dark); font-weight: 700; border-radius: 0 0 4px 4px; z-index: 9999; transition: top 0.2s; }
.skip-link:focus { top: 0; }

/* ─── Nav ────────────────────────────────────────────────── */
.nav { background: var(--dark); position: sticky; top: 0; z-index: 100; }
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-brand { text-decoration: none; display: flex; align-items: center; gap: 0.875rem; }
.brand-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-wordmark { display: flex; flex-direction: column; line-height: 1.15; }
.brand-primary { font-family: 'Rubik', sans-serif; font-size: 1rem; font-weight: 600; color: white; letter-spacing: 0.01em; }
.brand-secondary { font-size: 0.625rem; font-weight: 400; color: rgba(255,255,255,0.4); letter-spacing: 0.1em; text-transform: uppercase; }
.nav-links { display: flex; list-style: none; gap: 0; }
.nav-links a { display: block; padding: 0.5rem 0.875rem; font-size: 0.875rem; font-weight: 400; color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: white; }
.nav-links a.active { color: var(--amber-light); }
.nav-links a:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 2px; }
.nav-btn { padding: 0.55rem 1.375rem; background: var(--amber); color: var(--dark); font-family: 'Rubik', sans-serif; font-size: 0.8125rem; font-weight: 600; text-decoration: none; border-radius: 2px; text-transform: uppercase; letter-spacing: 0.08em; transition: background 0.2s; white-space: nowrap; }
.nav-btn:hover { background: var(--amber-light); }
.nav-btn:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: white; border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-hamburger[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--olive); padding: 1.25rem 1.5rem; flex-direction: column; gap: 0.125rem; }
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 0.75rem 1rem; color: rgba(255,255,255,0.75); text-decoration: none; font-weight: 400; border-radius: 2px; transition: color 0.2s; }
.mobile-nav a:hover { color: white; }
.mobile-nav a.active { color: var(--amber-light); }
.mobile-nav .nav-btn { text-align: center; margin-top: 0.75rem; display: block; }

/* ─── Buttons ────────────────────────────────────────────── */
.btn-amber { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.875rem 1.875rem; background: var(--amber); color: var(--dark); font-family: 'Rubik', sans-serif; font-size: 0.875rem; font-weight: 600; text-decoration: none; border-radius: 2px; text-transform: uppercase; letter-spacing: 0.07em; transition: background 0.2s; }
.btn-amber:hover { background: var(--amber-light); }
.btn-amber:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.btn-ghost-white { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.875rem 1.875rem; background: transparent; border: 1px solid rgba(255,255,255,0.35); color: rgba(255,255,255,0.85); font-family: 'Rubik', sans-serif; font-size: 0.875rem; font-weight: 500; text-decoration: none; border-radius: 2px; text-transform: uppercase; letter-spacing: 0.07em; transition: border-color 0.2s, color 0.2s; }
.btn-ghost-white:hover { border-color: rgba(255,255,255,0.7); color: white; }
.btn-ghost-white:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.btn-dark { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.875rem 1.875rem; background: var(--dark); color: white; font-family: 'Rubik', sans-serif; font-size: 0.875rem; font-weight: 600; text-decoration: none; border-radius: 2px; text-transform: uppercase; letter-spacing: 0.07em; transition: background 0.2s; border: none; cursor: pointer; }
.btn-dark:hover { background: var(--olive-mid); }
.btn-dark:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* ─── Sections ───────────────────────────────────────────── */
.section { padding: 5.5rem 1.5rem; }
.section.dark { background: var(--dark); }
.section.olive { background: var(--olive); }
.section.light { background: var(--parchment); }
.section.white-bg { background: white; }
.wrap { max-width: 1280px; margin: 0 auto; }

/* Section eyebrow label — simplified, no decorative line */
.section-eyebrow { font-family: 'Rubik', sans-serif; font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--amber); margin-bottom: 0.875rem; }
.section-eyebrow.light { color: var(--amber-light); }

/* Arrow link */
.arrow-link { font-family: 'Rubik', sans-serif; font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--amber-light); text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; transition: gap 0.2s; }
.arrow-link:hover { gap: 0.875rem; }
.arrow-link:focus-visible { outline: 2px solid var(--amber); border-radius: 2px; }

/* Tags */
.tag { font-family: 'Rubik', sans-serif; font-size: 0.6875rem; font-weight: 600; padding: 0.25rem 0.625rem; background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.6); border-radius: 2px; text-transform: uppercase; letter-spacing: 0.05em; }

/* ─── Page hero (interior pages) ────────────────────────── */
.page-hero { background: var(--dark); padding: 5rem 1.5rem 4rem; }
.page-hero-inner { max-width: 1280px; margin: 0 auto; }
.page-hero-eyebrow { font-family: 'Rubik', sans-serif; font-size: 0.6875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em; color: rgba(255,255,255,0.35); margin-bottom: 1.25rem; }
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 900; color: white; line-height: 1.0; max-width: 800px; margin-bottom: 1.5rem; }
.page-hero h1 span { color: var(--amber-light); }
.page-hero-desc { font-size: 1rem; color: rgba(255,255,255,0.6); max-width: 580px; line-height: 1.8; }

/* ─── Footer ─────────────────────────────────────────────── */
footer { background: #0D1108; color: white; padding: 4rem 1.5rem 2rem; }
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.07); margin-bottom: 2rem; }
.footer-brand p { font-size: 0.875rem; color: rgba(255,255,255,0.45); line-height: 1.7; margin-top: 1rem; max-width: 280px; }
.footer-col h4 { font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.3); margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li + li { margin-top: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-col a:hover { color: white; }
.footer-col a:focus-visible { outline: 2px solid var(--amber); border-radius: 2px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p, .footer-bottom a { font-size: 0.8125rem; color: rgba(255,255,255,0.25); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,0.65); }
.footer-legal { display: flex; gap: 1.5rem; }

/* ─── Ticker (homepage only) ─────────────────────────────── */
.ticker { background: var(--amber); padding: 0.8125rem 1.5rem; overflow: hidden; }
.ticker-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 2rem; }
.ticker-label { font-family: 'Rubik', sans-serif; font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; background: var(--dark); color: var(--amber); padding: 0.2rem 0.625rem; border-radius: 2px; white-space: nowrap; }
.ticker-items { display: flex; gap: 2.5rem; font-family: 'Rubik', sans-serif; font-size: 0.875rem; font-weight: 400; color: var(--dark); overflow: hidden; }
.ticker-item { white-space: nowrap; display: flex; align-items: center; gap: 0.625rem; }
.ticker-sep { font-size: 0.5rem; opacity: 0.35; }

/* ─── Project cards (shared across homepage + projects) ──── */
.project-card { background: var(--dark); border: 1px solid rgba(255,255,255,0.08); overflow: hidden; transition: border-color 0.25s; }
.project-card:hover { border-color: rgba(237,184,58,0.5); }
.project-img { width: 100%; height: 220px; object-fit: cover; display: block; filter: grayscale(25%); transition: filter 0.35s; }
.project-card:hover .project-img { filter: grayscale(0%); }
.project-body { padding: 1.75rem; }
.project-region { font-family: 'Rubik', sans-serif; font-size: 0.6875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--amber); margin-bottom: 0.625rem; }
.project-body h3 { font-family: 'Playfair Display', serif; font-size: 1.125rem; font-weight: 700; color: white; margin-bottom: 0.75rem; }
.project-body p { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.75; margin-bottom: 1.25rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-btn { display: none; }
  .nav-hamburger { display: flex; }
  .ticker-items { display: none; }
}
@media (max-width: 480px) {
  .section { padding: 3.5rem 1rem; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
