/* ============================================================
   THE QUIET OHIO PROJECT — STYLESHEET
   You shouldn't need to edit this file, but if you'd like to
   change the site's colors, they all live right here:
   ============================================================ */
:root {
  --fog:   #F1F2EF;   /* page background — pale overcast gray-green */
  --paper: #FAFAF8;   /* card background */
  --ink:   #24282A;   /* main text — dark slate */
  --slate: #5B6870;   /* secondary text */
  --river: #3E5C66;   /* accent — muted river blue */
  --gold:  #A07B3F;   /* small accent — late-light gold */
  --line:  #D9DBD5;   /* hairline rules */

  --serif: "Newsreader", Georgia, serif;
  --sans:  "Archivo", "Helvetica Neue", Arial, sans-serif;

  --measure: 62ch;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--fog);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.075rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--river); text-decoration: none; }
a:hover { color: var(--gold); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--river);
  outline-offset: 3px;
}

/* ---------- field-marker eyebrow (signature element) ---------- */
.marker {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.marker::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--gold);
  flex: none;
}

/* ---------- header / nav ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--fog) 88%, white);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem var(--pad);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.wordmark em { font-style: italic; color: var(--river); }

nav.menu { display: flex; gap: 1.75rem; }
nav.menu a {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
nav.menu a:hover { color: var(--ink); }
nav.menu a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.4rem 0.7rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 720px) {
  .menu-toggle { display: block; }
  nav.menu {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--pad) 1rem;
  }
  nav.menu.open { display: flex; }
  nav.menu a { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroFade 1.6s ease both;
}
@keyframes heroFade {
  from { opacity: 0; transform: scale(1.02); }
  to   { opacity: 1; transform: scale(1); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36,40,42,0) 35%, rgba(36,40,42,0.55) 100%);
}
.hero-text {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: var(--pad);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.hero-text .marker { color: #E7E4DC; }
.hero-text .marker::before { background: #E7E4DC; }
.hero-text h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.05;
  margin: 0.5rem 0 0.35rem;
  letter-spacing: -0.01em;
  max-width: 16ch;
  text-wrap: balance;
}
.hero-text p.tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: #E9E7E0;
  margin: 0 0 0.5rem;
}

/* ---------- layout ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section + .section { border-top: 1px solid var(--line); }

h2.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0.4rem 0 1.75rem;
  letter-spacing: -0.01em;
}
.lede {
  max-width: var(--measure);
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--ink);
}

/* ---------- story cards ---------- */
.card-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.card { background: none; }
.card a.cover { display: block; overflow: hidden; }
.card img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
  transition: transform 0.6s ease;
}
.card a.cover:hover img { transform: scale(1.03); }
.card .marker { margin-top: 0.9rem; }
.card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 0.4rem 0 0.35rem;
}
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--river); }
.card p.excerpt {
  margin: 0;
  color: var(--slate);
  font-size: 0.98rem;
  line-height: 1.55;
}
.card .date {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 0.5rem;
}

/* ---------- gallery ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.filters button {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  cursor: pointer;
}
.filters button:hover { color: var(--ink); border-color: var(--slate); }
.filters button.active {
  background: var(--river);
  border-color: var(--river);
  color: #fff;
}

.masonry { columns: 3; column-gap: 1.25rem; }
@media (max-width: 900px) { .masonry { columns: 2; } }
@media (max-width: 560px) { .masonry { columns: 1; } }
.masonry figure {
  break-inside: avoid;
  margin: 0 0 1.25rem;
  cursor: zoom-in;
}
.masonry img { width: 100%; }
.masonry figcaption {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--slate);
  padding-top: 0.45rem;
  border-top: 1px solid var(--line);
  margin-top: 0.55rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.masonry figcaption .county { color: var(--gold); white-space: nowrap; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(24, 27, 28, 0.94);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 78vh;
  object-fit: contain;
}
.lightbox .lb-caption {
  color: #D6D4CC;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  margin-top: 1rem;
  text-align: center;
  max-width: 70ch;
}
.lightbox .lb-caption .county { color: var(--gold); }
.lightbox button {
  position: absolute;
  background: none;
  border: none;
  color: #E7E4DC;
  font-family: var(--sans);
  font-size: 1rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  padding: 1rem;
}
.lightbox button:hover { color: #fff; }
.lb-close { top: 1rem; right: 1rem; text-transform: uppercase; font-size: 0.8rem; }
.lb-prev { left: 0.5rem; top: 50%; transform: translateY(-50%); font-size: 1.6rem; }
.lb-next { right: 0.5rem; top: 50%; transform: translateY(-50%); font-size: 1.6rem; }

/* ---------- story page ---------- */
.story-header { padding-top: clamp(2rem, 5vw, 3.5rem); }
.story-header h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0.5rem 0 0.4rem;
  max-width: 20ch;
  text-wrap: balance;
}
.story-header .date {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}
.story-body { padding: 2rem 0 1rem; }
.story-body p {
  max-width: var(--measure);
  font-size: 1.15rem;
  line-height: 1.75;
  margin: 0 0 1.4rem;
}
.story-body p:first-of-type::first-letter {
  font-size: 3.1em;
  line-height: 0.85;
  float: left;
  padding: 0.08em 0.12em 0 0;
  color: var(--river);
  font-weight: 500;
}
.story-body figure { margin: 2.5rem 0; }
.story-body figcaption {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--slate);
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
  margin-top: 0.6rem;
}
.story-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0 0;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid p { max-width: var(--measure); font-size: 1.12rem; line-height: 1.75; }
.contact-block {
  border-top: 2px solid var(--ink);
  padding-top: 1.25rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--slate);
}
.contact-block strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.contact-block > div { margin-bottom: 1.25rem; }

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
}
/* the quiet horizon line */
footer.site .horizon {
  height: 56px;
  background:
    linear-gradient(180deg, var(--fog) 0%, #E4E6E1 58%, #C9CCC4 58.5%, #D8DAD3 100%);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem var(--pad) 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--slate);
}
.footer-inner a { color: var(--slate); }
.footer-inner a:hover { color: var(--ink); }
