/* ===========================
   No Biosolids Ohio — Static Site
   Aesthetic: Environmental urgency meets grassroots activism
   Palette: Deep earth tones, warning amber, clean white
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=Source+Serif+4:opsz,wght@8..60,300;8..60,400;8..60,600&family=DM+Mono:wght@400;500&display=swap');

:root {
  --soil: #2C1810;
  --bark: #5C3D2E;
  --amber: #D4820A;
  --amber-light: #F5A623;
  --sage: #7A9E7E;
  --cream: #FAF6EE;
  --white: #FFFFFF;
  --danger: #B83232;
  --text: #1A1008;
  --muted: #7A6A5A;
  --border: #DDD5C8;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
}

/* ---- NAVIGATION ---- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--soil);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.nav-brand span {
  color: var(--amber-light);
}

.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
}

.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250,246,238,0.75);
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  transition: color 0.2s, background 0.2s;
  border-radius: 3px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--amber-light);
  background: rgba(255,255,255,0.05);
}

/* hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  transition: all 0.3s;
}

/* ---- HERO ---- */
.hero {
  background: var(--soil);
  color: var(--cream);
  padding: 5rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,0.015) 40px,
    rgba(255,255,255,0.015) 41px
  );
}

.hero-inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: italic;
  color: var(--amber-light);
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(250,246,238,0.8);
  max-width: 580px;
  margin-bottom: 2.2rem;
  font-weight: 300;
}

.btn {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  border-radius: 3px;
  transition: all 0.2s;
  font-weight: 500;
}

.btn-primary {
  background: var(--amber);
  color: var(--white);
  border: 2px solid var(--amber);
}
.btn-primary:hover { background: var(--amber-light); border-color: var(--amber-light); }

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 2px solid rgba(250,246,238,0.4);
  margin-left: 0.8rem;
}
.btn-outline:hover { border-color: var(--cream); background: rgba(250,246,238,0.08); }

/* ---- PAGE LAYOUT ---- */
.page-header {
  background: var(--bark);
  color: var(--cream);
  padding: 3rem 2rem 2.5rem;
}
.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  max-width: 820px;
  margin: 0 auto;
}
.page-header .eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-light);
  max-width: 820px;
  margin: 0 auto 0.7rem;
  display: block;
}

.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 3.5rem 2rem;
}

/* ---- CONTENT TYPOGRAPHY ---- */
.content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  font-weight: 700;
  margin: 2.5rem 0 0.8rem;
  color: var(--soil);
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.4rem;
}

.content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2rem 0 0.5rem;
  color: var(--bark);
}

.content p { margin-bottom: 1.2rem; }

.content ul, .content ol {
  margin: 0 0 1.2rem 1.5rem;
}
.content li { margin-bottom: 0.4rem; }

.content a {
  color: var(--bark);
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-underline-offset: 3px;
}
.content a:hover { color: var(--amber); }

.content blockquote {
  border-left: 4px solid var(--amber);
  margin: 1.8rem 0;
  padding: 1rem 1.5rem;
  background: rgba(212,130,10,0.07);
  border-radius: 0 4px 4px 0;
  font-style: italic;
  font-size: 1.05rem;
}
.content blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-size: 0.85rem;
  font-family: 'DM Mono', monospace;
  color: var(--muted);
}
.content blockquote cite a { color: var(--muted); }

.content figure { margin: 1.5rem 0; text-align: center; }
.content figure img { max-width: 100%; border-radius: 4px; box-shadow: 0 4px 20px rgba(0,0,0,0.12); }
.content figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 0.5rem; font-family: 'DM Mono', monospace; }

.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}
.content table th {
  background: var(--soil);
  color: var(--cream);
  padding: 0.7rem 1rem;
  text-align: left;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.content table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
}
.content table tr:hover td { background: rgba(212,130,10,0.05); }

/* ---- HOME SECTIONS ---- */
.section-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.8rem;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); border-color: var(--amber); }

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}
.card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--soil);
}
.card p { font-size: 0.9rem; color: var(--muted); line-height: 1.5; }

.banner {
  background: var(--danger);
  color: var(--white);
  padding: 1.2rem 2rem;
  text-align: center;
  font-family: 'DM Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}
.banner strong { color: var(--amber-light); }
.banner a { color: var(--white); }

/* ---- BLOG LIST ---- */
.post-list { list-style: none; }
.post-item {
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}
.post-item:first-child { padding-top: 0; }
.post-meta {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.post-item h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.post-item h2 a {
  color: var(--soil);
  text-decoration: none;
}
.post-item h2 a:hover { color: var(--amber); }

/* ---- CONTACT FORM ---- */
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2.5rem;
  margin-top: 1.5rem;
}
.form-group { margin-bottom: 1.3rem; }
.form-group label {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'Source Serif 4', serif;
  font-size: 1rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--amber);
  background: var(--white);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* ---- FOOTER ---- */
footer {
  background: var(--soil);
  color: rgba(250,246,238,0.7);
  padding: 2.5rem 2rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
}
.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--cream);
}
.footer-brand small {
  display: block;
  font-family: 'Source Serif 4', serif;
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(250,246,238,0.55);
  margin-top: 0.2rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.2rem;
  list-style: none;
}
.footer-links a {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250,246,238,0.6);
  text-decoration: none;
}
.footer-links a:hover { color: var(--amber-light); }
.footer-copy {
  width: 100%;
  font-size: 0.78rem;
  font-family: 'DM Mono', monospace;
  color: rgba(250,246,238,0.35);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(250,246,238,0.1);
  margin-top: 0.5rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 680px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--soil); padding: 1rem; gap: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.7rem 1rem; border-radius: 0; }
  .nav-toggle { display: flex; }
  .btn-outline { margin-left: 0; margin-top: 0.6rem; }
  .hero { padding: 3rem 1.5rem 2.5rem; }
}
