/* ===================================================================
   FRIENDS OF BLENMAN-ELM — design tokens

   The four PRIMARY brand colors do the heavy lifting:
     Strato Blue  -> header, hero, footer, body text
     Claeys Cream -> page background
     River Blue   -> the "What we work on" section, links, buttons
     Heartland Yellow -> the "Get involved" band, highlights, buttons

   The five SECONDARY colors appear in small doses only.

   Edit the hex values below to restyle the whole site.
   =================================================================== */
:root{
  /* -- primary brand colors -- */
  --strato-blue:      #1D253C;
  --claeys-cream:     #F2E4D6;
  --river-blue:       #004D80;
  --heartland-yellow: #F2BA42;

  /* -- secondary brand colors (use sparingly) -- */
  --calm-blue:    #EEF4F8;
  --blue-sky:     #85B6C5;
  --rust-belt:    #D34E23;
  --buddy-gold:   #B88A57;
  --truman-brown: #653727;

  /* -- roles: what each color is used for -- */
  --color-bg:        var(--claeys-cream);     /* page background */
  --color-ink:       var(--strato-blue);      /* primary text on light areas */
  --color-ink-soft:  var(--truman-brown);     /* secondary text on light areas */
  --color-line:      var(--buddy-gold);       /* hairlines on light areas */
  --color-surface:   var(--calm-blue);        /* cards */
  --color-accent:    var(--rust-belt);        /* card top rule, notes, focus ring on light areas */

  --color-dark:      var(--strato-blue);      /* header, hero, footer */
  --color-blue:      var(--river-blue);       /* blue feature section, links */
  --color-highlight: var(--heartland-yellow); /* yellow feature band, highlights */

  /* -- type -- */
  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Libre Franklin", -apple-system, Segoe UI, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, monospace;

  /* -- layout -- */
  --content-width: 1100px;
  --section-pad: clamp(3rem, 6vw, 6rem);
  --radius: 4px;
}

/* ===================================================================
   RESET
   =================================================================== */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: var(--color-blue); }
h1,h2,h3{ font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; }
p{ margin: 0 0 1em; }
ul, dl{ margin: 0; padding: 0; list-style: none; }

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

/* Focus ring: rust on light areas, yellow on dark/blue areas */
:focus-visible{
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}
.site-header :focus-visible,
.hero :focus-visible,
.section-blue :focus-visible,
.section-dark :focus-visible,
.site-footer :focus-visible{
  outline-color: var(--color-highlight);
}

.sr-only{
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
.skip-link{
  position: absolute; left: -999px; top: 0;
  background: var(--color-highlight); color: var(--color-dark);
  padding: .75em 1.25em; z-index: 100; font-weight: 600;
}
.skip-link:focus{ left: 1rem; top: 1rem; }

.wrap{
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.eyebrow{
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: .6em;
}

/* ===================================================================
   HEADER / NAV  (Strato Blue)
   =================================================================== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-dark);
  color: var(--claeys-cream);
  border-bottom: 1px solid var(--river-blue);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: .85rem;
}
.brand{
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: var(--claeys-cream);
}
.brand-mark{
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  background: var(--color-highlight);
  color: var(--color-dark);
  border-radius: 999px;
  padding: .3em .65em;
}
.brand-name{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.15;
}

.nav-toggle{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--blue-sky);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle-bar{
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: var(--claeys-cream);
}

.primary-nav{
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-dark);
  border-bottom: 1px solid var(--river-blue);
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.primary-nav.is-open{ max-height: 420px; }
.primary-nav a{
  padding: .9rem clamp(1.25rem, 4vw, 2.5rem);
  text-decoration: none;
  color: var(--claeys-cream);
  font-weight: 600;
  border-top: 1px solid var(--river-blue);
}
.primary-nav a:first-child{ border-top: none; }
.primary-nav a:hover{ color: var(--color-highlight); }

@media (min-width: 760px){
  .nav-toggle{ display: none; }
  .primary-nav{
    position: static;
    flex-direction: row;
    max-height: none;
    overflow: visible;
    background: none;
    border: none;
    gap: clamp(1rem, 2.5vw, 2rem);
  }
  .primary-nav a{ padding: 0; border: none; }
}

/* ===================================================================
   HERO  (Strato Blue)
   =================================================================== */
.hero{
  position: relative;
  overflow: hidden;
  background: var(--color-dark);
  color: var(--claeys-cream);
}
.hero-inner{
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 5vw, 3rem);
}
.hero .eyebrow{ color: var(--color-highlight); }
.hero-title{
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  max-width: 14ch;
}
.hero-title em{
  font-style: italic;
  color: var(--color-highlight);
}
.hero-lede{
  font-size: 1.1rem;
  color: var(--claeys-cream);
  max-width: 48ch;
}
.hero-actions{ display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.5rem; }

.hero-frame{
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--river-blue);
}
.hero-frame img{ width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 860px){
  .hero-inner{
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
  }
}

.grid-divider{
  display: block;
  width: 100%;
  height: 24px;
  stroke: var(--river-blue);
  stroke-width: 1;
}

/* ===================================================================
   BUTTONS
   .btn-primary  = yellow (use on dark or blue backgrounds)
   .btn-ghost    = cream outline (use on dark backgrounds)
   .btn-dark     = River Blue (use on cream or yellow backgrounds)
   =================================================================== */
.btn{
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .8em 1.5em;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease;
}
.btn-primary{
  background: var(--color-highlight);
  color: var(--color-dark);
}
.btn-primary:hover{ background: var(--claeys-cream); }
.btn-ghost{
  border-color: var(--claeys-cream);
  color: var(--claeys-cream);
}
.btn-ghost:hover{ background: var(--claeys-cream); color: var(--color-dark); }
.btn-dark{
  background: var(--color-blue);
  color: #fff;
}
.btn-dark:hover{ background: var(--color-dark); }

/* ===================================================================
   SECTIONS (generic)
   =================================================================== */
.section{ padding-block: var(--section-pad); }
.section-title{
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  max-width: 20ch;
  margin-bottom: 1.2em;
}

/* Feature section: River Blue */
.section-blue{
  background: var(--color-blue);
  color: var(--claeys-cream);
}
.section-blue .eyebrow{ color: var(--color-highlight); }
.section-blue a{ color: var(--claeys-cream); }

/* Feature band: Heartland Yellow */
.section-yellow{
  background: var(#ffda00);
  color: var(--color-dark);
}
.section-yellow .eyebrow{ color: var(--color-dark); }
.section-yellow a{ color: var(--color-dark); }

.placeholder-note{
  color: var(--color-ink-soft);
  font-style: italic;
  border-left: 4px solid var(--color-accent);
  padding-left: 1em;
}

/* ---- About ---- */
.about-grid{ display: grid; gap: 2rem; }
.about-lead{
  font-family: var(--font-display);
  font-size: 1.35rem;
  max-width: 30ch;
}

.about-body{
  font-family: var(--font-display);
  font-size: 1.35rem;
  max-width: 30ch;
}

@media (min-width: 760px){
  .about-grid{ grid-template-columns: 1fr 1fr; gap: 3rem; }
}

/* ---- Priorities / cards ---- */
.card-grid{
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px){
  .card-grid{ grid-template-columns: repeat(3, 1fr); }
}
.card{
  background: var(--color-surface);
  color: var(--color-ink);
  border: 4px solid var(--color-highlight);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.card-incidents{
  background: var(--color-dark);
  color: var(--claeys-cream);
  border: 4px solid var(--color-highlight);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.card-index{
  display: block;
  font-family: var(--font-mono);
  color: var(--color-ink-soft);
  margin-bottom: .75em;
}
.card h3{ font-size: 1.15rem; margin-bottom: .4em; }
.card p{ color: var(--color-ink-soft); margin: 0; }

/* ---- News ---- */
.news-list{ display: flex; flex-direction: column; }
.news-item{
  padding-block: 1.75rem;
  border-top: 1px solid var(--color-line);
}
.news-item:last-child{ border-bottom: 1px solid var(--color-line); }
.news-date{
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--color-ink-soft);
  display: block;
  margin-bottom: .5em;
}
.news-item h3{ font-size: 1.2rem; margin-bottom: .3em; }
.news-item p{ color: var(--color-ink-soft); margin: 0; max-width: 60ch; }

.bulleted{
  list-style: disc;
  padding-left: 1.5rem;
}
.bulleted li{
  margin-bottom: .4em;
}

/* ---- Get involved (yellow band) ---- */
.involved-grid{ display: grid; gap: 2rem; }
.involved-list{ display: grid; gap: 1.5rem; }
.involved-list li{
  border-top: 2px solid var(--color-dark);
  padding-top: 1rem;
}
.involved-list h3{ font-size: 1.05rem; margin-bottom: .3em; }
.involved-list p{ color: var(--color-ink-soft); margin: 0; }
@media (min-width: 760px){
  .involved-grid{ grid-template-columns: .9fr 1.1fr; gap: 3rem; }
}

/* ---- Contact ---- */
.contact-grid{ display: grid; gap: 2rem; }
.contact-details div{ padding-block: 1rem; border-top: 1px solid var(--color-line); }
.contact-details dt{
  font-family: var(--font-mono);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--color-ink-soft);
  margin-bottom: .3em;
}
.contact-details dd{ margin: 0; font-weight: 600; }
@media (min-width: 760px){
  .contact-grid{ grid-template-columns: .9fr 1.1fr; gap: 3rem; }
}

/* ===================================================================
   FOOTER  (Strato Blue)
   =================================================================== */
.site-footer{
  background: var(--color-dark);
  color: var(--claeys-cream);
  border-top: 4px solid var(--color-highlight);
}
.footer-inner{
  padding-block: 2rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  font-size: .9rem;
}
.footer-inner p{ margin: 0; }
.footer-inner p + p{ color: var(--blue-sky); }

/* ---- Evidence photo carousel (Strato Blue section) ---- */
.section-dark{
  background: var(--color-dark);
  color: var(--claeys-cream);
}
.section-dark .eyebrow{ color: var(--color-highlight); }
.section-dark a{ color: var(--claeys-cream); }

.carousel-intro{
  max-width: 60ch;
  margin-bottom: 1.75rem;
}

/* One carousel plus its title. max-width sets the overall size: raise or lower to taste. */
.carousel-group{
  max-width: 440px;
  margin: 0 auto 3rem;     /* centered; change "auto" to 0 to align left with the heading */
}
.carousel-group:last-child{ margin-bottom: 0; }
.carousel-title{
  font-size: 1.15rem;
  margin-bottom: .75rem;
}

.carousel{ position: relative; }

/* The track scrolls sideways; scroll-snap makes each swipe settle on a photo. */
.carousel-track{
  position: relative;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-inline: 11%;
  scroll-padding-inline: 11%;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar{ display: none; }

/* 78% wide so the edges of the neighboring photos peek in as a "swipe me" hint */
.carousel-slide{
  flex: 0 0 78%;
  margin: 0;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}
.carousel-slide img{
  width: 100%;
  height: auto;                    /* lets the square frame below set the height */
  aspect-ratio: 1 / 1;             /* square frame */
  object-fit: contain;             /* shows the whole photo, never crops it; use "cover" to fill the square and crop the edges */
  background: rgba(0, 0, 0, .28);
  border-radius: var(--radius);
}
.carousel-slide figcaption{
  padding-top: .75rem;
  font-size: .95rem;
  max-width: 60ch;
}

.carousel-controls{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
}
.carousel-btn{
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--color-highlight);
  color: var(--color-dark);
  cursor: pointer;
  transition: background .15s ease;
}
.carousel-btn:hover:not(:disabled){ background: var(--claeys-cream); }
.carousel-btn:disabled{ opacity: .35; cursor: default; }

.carousel-dots{ display: flex; gap: .15rem; }
.carousel-dot{
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.carousel-dot::before{
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--claeys-cream);
}
.carousel-dot[aria-current="true"]::before{
  background: var(--color-highlight);
  border-color: var(--color-highlight);
}
