/* ── Long Sheppar3d — Magazine editorial ── */

:root {
  --cream: #f2ede4;
  --paper: #faf7f2;
  --ink: #1e1b16;
  --ink-light: #4a443b;
  --muted: #7a7265;
  --rule: #d6cdbc;
  --gold: #b8954a;
  --gold-dim: #8a7038;
  --clay: #8b5e3c;
  --clay-light: #c49a6e;
  --accent: var(--gold);
  --bg: var(--cream);
  --card-bg: var(--paper);
  --hero-overlay: rgba(30, 27, 22, 0.45);
}

@media (prefers-color-scheme: dark) {
  :root {
    --cream: #1a1713;
    --paper: #221f1a;
    --ink: #e6ddd0;
    --ink-light: #b8ae9e;
    --muted: #7d7567;
    --rule: #3a342c;
    --gold: #c9a84c;
    --gold-dim: #a0803a;
    --clay: #b87a4e;
    --clay-light: #8a5e3c;
    --bg: var(--cream);
    --card-bg: var(--paper);
    --hero-overlay: rgba(0, 0, 0, 0.55);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  font-family: Georgia, "Iowan Old Style", "Charter", "Times New Roman", serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Navigation ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}

.site-nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.75rem;
}

.nav-list a {
  color: var(--ink-light);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-list a:hover { color: var(--gold); }

/* ── Hero ── */

.hero {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-image {
  width: 100%;
  height: 60vh;
  min-height: 360px;
  max-height: 600px;
  background: linear-gradient(135deg, var(--clay-light) 0%, var(--gold-dim) 40%, var(--clay) 100%);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.hero-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 30% 70%, rgba(180,140,80,0.3) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 70% 30%, rgba(200,170,100,0.2) 0%, transparent 60%),
    linear-gradient(180deg, transparent 40%, rgba(30,27,22,0.4) 100%);
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 3px,
      rgba(255,255,255,0.015) 3px,
      rgba(255,255,255,0.015) 4px
    );
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

.hero-caption {
  position: absolute;
  bottom: 1rem;
  right: 1.25rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-text {
  position: relative;
  margin-top: -3rem;
  padding: 2rem 2rem 2.5rem;
  background: var(--paper);
  width: 90%;
  max-width: 680px;
  border-radius: 2px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.hero-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-dim);
  margin: 0 0 0.5rem;
}

.hero-title {
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--ink);
}

.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink-light);
  margin: 0;
  max-width: 48ch;
}

/* ── Section shared ── */

.section-title {
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.ornament {
  color: var(--gold-dim);
  margin-right: 0.4rem;
  font-size: 0.8em;
}

/* ── About ── */

.section-about {
  max-width: 1100px;
  margin: 5rem auto 4rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 3rem;
}

.col-text {
  font-size: 1.05rem;
  line-height: 1.8;
}

.col-text p {
  margin: 0 0 1.25em;
}

.dropcap::first-letter {
  float: left;
  font-size: 4.2em;
  line-height: 0.8;
  padding: 0.1em 0.12em 0 0;
  color: var(--gold-dim);
  font-weight: 700;
  font-family: "Iowan Old Style", Georgia, serif;
}

/* ── Sidebar stats ── */

.col-sidebar {
  border-left: 1px solid var(--rule);
  padding-left: 2rem;
}

.stat-block {
  margin-bottom: 2rem;
}

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 0.25rem;
}

.stat-value {
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold-dim);
  margin: 0 0 0.25rem;
}

.stat-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}

/* ── Herd grid ── */

.section-herd {
  max-width: 1100px;
  margin: 5rem auto;
  padding: 0 1.5rem;
}

.herd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.herd-card {
  background: var(--card-bg);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.herd-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}

.herd-card-img {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--clay-light), var(--gold-dim));
  position: relative;
  overflow: hidden;
}

.herd-card-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 80%, rgba(200,170,100,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 30% 30%, rgba(140,90,50,0.2) 0%, transparent 60%);
}

.herd-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.herd-card-title {
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.herd-card-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-light);
  margin: 0;
}

/* ── Contact ── */

.section-contact {
  max-width: 1100px;
  margin: 5rem auto 4rem;
  padding: 0 1.5rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  font-size: 1rem;
  line-height: 1.7;
}

.contact-info p { margin: 0 0 1em; }

.contact-note {
  font-style: italic;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink-light);
}

.contact-form input,
.contact-form textarea {
  font-family: Georgia, serif;
  font-size: 1rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(185, 149, 74, 0.15);
}

.contact-form button {
  align-self: flex-start;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.65rem 2rem;
  background: var(--gold-dim);
  color: #fff;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-form button:hover { background: var(--gold); }
.contact-form button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.form-status {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

/* ── Footer ── */

.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 5rem;
  padding: 2rem 1.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.site-footer .attribution {
  font-size: 0.75rem;
  margin: 0;
}

.site-footer .attribution a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer .attribution a:hover {
  color: var(--gold);
}

/* ── Responsive ── */

@media (max-width: 800px) {
  .section-about {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .col-sidebar {
    border-left: none;
    border-top: 1px solid var(--rule);
    padding-left: 0;
    padding-top: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .herd-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .site-nav {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
  }

  .nav-list {
    gap: 1rem;
  }

  .hero-text {
    width: 100%;
    margin-top: -2rem;
    padding: 1.5rem;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .col-sidebar {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .herd-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Accessibility ── */

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

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