/* Nispel Family Farm — shared stylesheet
   Plain CSS, no build step, no frameworks.
   Palette: dry-grass tans, prairie greens, clay browns. */

:root {
  --ink:        #2b2822;
  --ink-soft:   #5c5648;
  --ink-faint:  #857e6d;
  --paper:      #f7f4ec;
  --paper-alt:  #ece7d9;
  --rule:       #d6cfba;
  --green:      #4a6b3c;
  --green-deep: #2f4a28;
  --clay:       #8a5a34;
  --sun:        #c98a2b;

  --wrap: 68rem;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Times, serif;
  --sans:  ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header ---------- */

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

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.brand {
  text-decoration: none;
  color: inherit;
  display: block;
}

.brand-name {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--green-deep);
}

.brand-place {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.site-nav {
  display: flex;
  gap: 1.35rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--green-deep);
  border-bottom-color: var(--rule);
}

.site-nav a[aria-current="page"] {
  color: var(--green-deep);
  border-bottom-color: var(--green);
}

/* ---------- Hero ---------- */

.hero {
  background: var(--green-deep);
  color: #f2efe4;
  padding: 4.5rem 0 4rem;
  border-bottom: 4px solid var(--sun);
}

.hero-short { padding: 3.5rem 0 3rem; }

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4.6vw, 2.75rem);
  line-height: 1.2;
  font-weight: 400;
  max-width: 30ch;
}

.hero .lede {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #d8d5c4;
  max-width: 62ch;
}

/* ---------- Sections ---------- */

.section {
  padding: 3.25rem 0;
  border-bottom: 1px solid var(--rule);
}

.section-alt { background: var(--paper-alt); }
.section:last-of-type { border-bottom: 0; }

.section h2 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.3rem, 2.6vw, 1.65rem);
  font-weight: 400;
  color: var(--green-deep);
  letter-spacing: 0.005em;
}

.section h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clay);
  font-family: var(--sans);
  letter-spacing: 0.02em;
}

.section p { margin: 0 0 1rem; max-width: 68ch; }
.section p:last-child { margin-bottom: 0; }

.fine {
  font-size: 0.925rem;
  color: var(--ink-soft);
}

.note {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--ink-faint);
  text-transform: none;
}

/* ---------- Figures (dl) ---------- */

.figures {
  margin: 0 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.figures > div {
  background: var(--paper);
  padding: 1.1rem 1.15rem;
}

.figures dt {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.35rem;
}

.figures dd {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.15;
  color: var(--green-deep);
}

/* ---------- Lists ---------- */

.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 68ch;
}

.plain-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.85rem;
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.5rem;
  height: 2px;
  background: var(--sun);
}

.plain-list li:last-child { margin-bottom: 0; }

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 68ch;
}

.timeline li {
  padding: 0.55rem 0 0.55rem 1.4rem;
  border-left: 2px solid var(--rule);
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 1.15em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--green);
}

.timeline .when {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay);
}

/* ---------- Cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--green);
  padding: 1.25rem 1.25rem 1.1rem;
}

.card p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

/* ---------- Definition list zones ---------- */

.zones { margin: 0; }

.zones dt {
  font-weight: 700;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--green-deep);
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

.zones dt:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }

.zones dd {
  margin: 0.4rem 0 0;
  max-width: 68ch;
  color: var(--ink-soft);
}

/* ---------- Table ---------- */

.table-scroll {
  overflow-x: auto;
  margin: 0 0 1.25rem;
  border: 1px solid var(--rule);
  background: var(--paper);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 24rem;
  font-size: 0.95rem;
}

caption {
  caption-side: top;
  text-align: left;
  padding: 0.7rem 0.9rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--rule);
}

th, td {
  text-align: left;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--rule);
}

thead th {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--paper-alt);
}

tbody tr:last-child td { border-bottom: 0; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #cbc6b8;
  padding: 2.5rem 0;
  font-size: 0.95rem;
}

.site-footer p { margin: 0 0 0.4rem; }

.footer-name {
  font-size: 1.05rem;
  color: #f0ecdf;
  font-weight: 700;
}

.site-footer a {
  color: var(--sun);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 138, 43, 0.4);
}

.site-footer a:hover,
.site-footer a:focus { border-bottom-color: var(--sun); }

.footer-fine {
  margin-top: 1rem !important;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8d8879;
}

/* ---------- Focus ---------- */

a:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 3px;
}

/* ---------- Small screens ---------- */

@media (max-width: 34rem) {
  body { font-size: 1rem; }

  .site-header { position: static; }

  .site-header .wrap { flex-direction: column; align-items: flex-start; }

  .hero { padding: 3rem 0 2.75rem; }
  .hero-short { padding: 2.5rem 0 2.25rem; }

  .section { padding: 2.25rem 0; }

  .figures { grid-template-columns: repeat(2, 1fr); }
  .figures dd { font-size: 1.3rem; }

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

@media print {
  .site-header { position: static; }
  .hero { background: none; color: var(--ink); border-bottom: 2px solid var(--rule); }
  .hero h1, .hero .lede { color: var(--ink); }
  .site-footer { background: none; color: var(--ink); }
}