/* ==========================================================================
   base.css
   Design tokens, reset, typography, and the header/footer chrome shared by
   every page on the site. Loaded first, before any page-specific stylesheet.
   ========================================================================== */

:root{
  --navy:#0F3D4A;
  --navy-soft:#3A6B78;
  --slate:#5F8087;
  --bg:#F5FBF9;
  --bg-panel:#E5F3EE;
  --teal:#2F9E6F;
  --teal-dark:#1B6E4C;
  --teal-soft:#DCF0E6;
  --amber:#0F3D4A;
  --ink:#16262A;
  --line:#D3E6E0;
  --white:#FFFFFF;
  --radius-sm:10px;
  --radius-md:18px;
  --radius-lg:32px;
  --radius:var(--radius-sm);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:'IBM Plex Sans', sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3{
  font-family:'Fraunces', serif;
  font-weight:450;
  color:var(--navy);
  margin:0;
  letter-spacing:-0.01em;
}
.mono{font-family:'IBM Plex Mono', monospace; letter-spacing:0.02em;}
a{color:inherit;}
img{max-width:100%; display:block;}

.wrap{max-width:1120px; margin:0 auto; padding:0 32px;}
@media (max-width:640px){ .wrap{padding:0 20px;} }

/* Header */
header{
  position:sticky; top:0; z-index:50;
  background:rgba(245,251,249,0.92);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 0;
}
.brand{
  font-family:'Fraunces', serif; font-size:19px; color:var(--navy);
  display:flex; align-items:center; gap:10px;
}
.brand .logo-slot{
  width:34px; height:34px; flex-shrink:0;
  object-fit:cover; border-radius:8px;
}
nav ul{list-style:none; display:flex; gap:32px; margin:0; padding:0;}
nav ul a{
  text-decoration:none; font-size:14px; color:var(--navy-soft);
  font-weight:500; transition:color .15s ease;
}
nav ul a:hover{color:var(--teal);}
.nav-cta{
  font-size:14px; font-weight:600; color:var(--white);
  background:var(--navy); padding:10px 18px; border-radius:var(--radius-sm);
  text-decoration:none; white-space:nowrap; transition:background .15s ease, transform .15s ease;
}
.nav-cta:hover{background:var(--teal); transform:translateY(-1px);}
.menu-toggle{display:none;}
@media (max-width:800px){
  nav ul{display:none;}
  .menu-toggle{display:block; background:none; border:1px solid var(--line); padding:8px 12px; font-family:'IBM Plex Mono';font-size:12px;}
}

.back-link{
  display:inline-flex; align-items:center; gap:8px; font-size:14px; font-weight:500;
  color:var(--navy-soft); text-decoration:none; transition:color .15s ease;
}
.back-link:hover{color:var(--teal);}

/* Shared text/link treatments */
.eyebrow{
  font-family:'IBM Plex Mono', monospace; font-size:12px; letter-spacing:0.14em;
  text-transform:uppercase; color:var(--teal); margin-bottom:18px; display:flex; align-items:center; gap:10px;
}
.eyebrow::before{content:""; width:24px; height:1px; background:var(--teal); display:inline-block;}

.read-more{
  display:inline-flex; align-items:center; gap:8px;
  color:var(--teal); font-weight:600; font-size:15px; text-decoration:none; transition:gap .15s ease;
}
.read-more:hover{gap:12px;}

/* Footer */
footer{border-top:1px solid var(--line); padding:36px 0;}
.footer-row{display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px;}
.footer-row .mono{font-family:'IBM Plex Mono',monospace; font-size:12.5px; color:var(--slate);}
.footer-links{display:flex; gap:22px; list-style:none; padding:0; margin:0;}
.footer-links a{font-size:13px; color:var(--slate); text-decoration:none;}
.footer-links a:hover{color:var(--teal);}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{animation-duration:.001ms !important; animation-delay:0s !important; transition-duration:.001ms !important;}
  .reveal, .stagger-item, .hero-anim{opacity:1 !important; transform:none !important;}
}
