/* Shared styles for Unplug Edtech in Alaska
   ----------------------------------------
   Everything used by every page lives here. Page-specific styles
   (hero, forms, .timeline, etc.) stay in each HTML file's <style> block.
   To avoid drift between pages, edit shared rules here only.
*/

:root {
  --bg: #f1ead6;              /* birch bark cream */
  --ink: #0d1b2a;             /* midnight sky */
  --accent: #d12c2f;          /* fireweed red */
  --accent-dark: #9a1c22;     /* deep berry */
  --soft: #d9e3dc;            /* glacial sage */
  --aurora-green: #2e9d6c;
  --aurora-violet: #7c5cbe;
  --aurora-pink: #d6699a;
  --rule: #0d1b2a;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Aurora gradient strip — always visible at the very top */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg,
    var(--aurora-green) 0%,
    #4cc9a0 18%,
    var(--aurora-violet) 38%,
    var(--aurora-pink) 60%,
    #4cc9a0 78%,
    var(--aurora-green) 100%);
  background-size: 200% 100%;
  animation: aurora 18s ease-in-out infinite;
  z-index: 100;
  pointer-events: none;
}
@keyframes aurora {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

a { color: var(--accent-dark); text-decoration: underline; text-decoration-thickness: 2px; }
a:hover { color: var(--ink); }

/* ----- Nav (identical on every page) ----- */
nav.top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 40px; border-bottom: 3px solid var(--rule);
  background: rgba(241, 234, 214, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky; top: 6px; z-index: 10;
}
nav.top .brand {
  font-weight: 900; font-size: 20px; letter-spacing: -0.02em;
  text-transform: uppercase;
}
nav.top .brand a {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit;
}
nav.top .brand svg { width: 24px; height: 24px; flex-shrink: 0; }
nav.top .links a { text-decoration: none; color: var(--ink); font-weight: 700; margin-left: 24px; }
nav.top .links a.cta {
  background: var(--accent); color: white; padding: 10px 18px; border-radius: 4px;
}
nav.top .links a.cta:hover { background: var(--accent-dark); }

/* ----- Article pages (.page wrapper used on learn-more + privacy) ----- */
.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 40px;
  line-height: 1.6;
}
.page .eyebrow {
  display: inline-block; background: var(--accent); color: white;
  font-weight: 800; font-size: 13px; letter-spacing: 0.1em;
  padding: 6px 12px; border-radius: 3px; text-transform: uppercase;
  margin-bottom: 24px;
}
.page h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.98; letter-spacing: -0.03em; font-weight: 900;
  margin: 0 0 28px;
}
.page h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 900; letter-spacing: -0.02em; line-height: 1.15;
  margin: 56px 0 16px;
}
.page h3 {
  font-size: 20px; font-weight: 800; margin: 32px 0 10px;
}
.page p { font-size: 18px; margin: 0 0 18px; }
.page ul { font-size: 18px; padding-left: 22px; }
.page ul li { margin-bottom: 10px; }
.page .meta {
  font-size: 14px; color: #555; margin-bottom: 32px;
  font-weight: 500;
}
.page blockquote {
  border-left: 5px solid var(--accent);
  margin: 28px 0; padding: 12px 0 12px 24px;
  font-size: 22px; font-style: italic;
  color: #333;
}
.page blockquote cite {
  display: block; margin-top: 12px; font-size: 14px;
  font-style: normal; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent-dark);
}
.page .timeline {
  border-left: 3px solid var(--ink);
  padding-left: 24px; margin: 32px 0;
}
.page .timeline .event {
  margin-bottom: 24px; position: relative;
}
.page .timeline .event::before {
  content: ''; position: absolute; left: -33px; top: 8px;
  width: 14px; height: 14px; background: var(--accent);
  border-radius: 50%; border: 3px solid var(--bg);
}
.page .timeline .date {
  font-size: 13px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent-dark);
}
.page .timeline .event p { margin: 4px 0 0; }
.page .cta-box {
  background: var(--ink); color: white;
  padding: 48px; border-radius: 8px;
  margin: 64px 0 0; text-align: center;
}
.page .cta-box h2 { color: white; margin-top: 0; }
.page .cta-box a.btn {
  display: inline-block;
  background: var(--accent); color: white; text-decoration: none;
  padding: 18px 36px; font-weight: 900; font-size: 17px;
  text-transform: uppercase; letter-spacing: 0.05em;
  border-radius: 4px; margin-top: 16px;
}
.page .cta-box a.btn:hover { background: var(--accent-dark); }

/* ----- Mountain silhouettes above the footer ----- */
.mountains {
  line-height: 0;
  margin-top: 60px;
}
.mountains svg {
  display: block;
  width: 100%;
  height: clamp(140px, 18vw, 220px);
}

/* ----- Footer ----- */
footer {
  background: var(--ink);
  color: #c9d4cf;
  padding: 32px 40px 40px;
  text-align: center; font-size: 14px;
  margin-top: 0;
}
footer a { color: var(--aurora-green); }
footer a:hover { color: var(--aurora-pink); }

/* ----- Mobile (≤640px) — applies on every page ----- */
@media (max-width: 640px) {
  nav.top {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px;
    gap: 10px;
  }
  nav.top .brand { font-size: 15px; letter-spacing: 0; }
  nav.top .brand a { justify-content: center; }
  nav.top .brand svg { width: 20px; height: 20px; }
  nav.top .links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
  }
  nav.top .links a { margin-left: 0; font-size: 13px; white-space: nowrap; }
  nav.top .links a.cta { padding: 8px 14px; font-size: 13px; }
  .page { padding: 50px 20px; }
  .page .cta-box { padding: 32px 20px; }
}
