/* ============================================================
   Oberfelder Holdings — "Prairie Meadow" design system
   Sage greens, golden wheat, and wildflower accents, inspired
   by the open Chelan pasture and prairie the farm sits in.
   ============================================================ */

:root {
  --sage-900: #2f4423;
  --sage-700: #3f5a30;
  --sage-600: #4f6f3a;
  --sage-500: #5f8248;
  --sage-400: #7fa161;
  --sage-100: #e4ecdb;

  --wheat-600: #c9973c;
  --wheat-500: #dba94c;
  --wheat-300: #ecc978;
  --wheat-100: #f7e6c2;

  --lavender-500: #9678b6;
  --lavender-300: #c6aede;

  --cream: #faf5e8;
  --cream-deep: #f2e9d4;
  --paper: #fffdf8;

  --ink: #33301f;
  --ink-soft: #5b5640;
  --white: #ffffff;

  --shadow-sm: 0 2px 8px rgba(47, 68, 35, 0.12);
  --shadow-md: 0 8px 24px rgba(47, 68, 35, 0.16);
  --shadow-lg: 0 16px 40px rgba(47, 68, 35, 0.22);

  --radius: 16px;
  --radius-sm: 10px;

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", Calibri, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 15% 10%, var(--wheat-100) 0, transparent 45%),
    radial-gradient(circle at 90% 0%, var(--sage-100) 0, transparent 40%);
  background-attachment: fixed;
}

a {
  color: var(--sage-700);
  text-decoration: none;
}
a:hover { text-decoration: underline; color: var(--wheat-600); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--sage-700);
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 { font-size: 2.1rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; color: var(--sage-600); }

p { margin: 0 0 1em; }

ul { padding-left: 1.2em; margin: 0 0 1em; }
ul li { margin-bottom: 0.5em; }

img { max-width: 100%; height: auto; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--sage-700);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 1000;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

/* ---------------- Layout shell ---------------- */
.page-shell {
  max-width: 1140px;
  margin: 28px auto;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* ---------------- Header / nav ---------------- */
.site-header {
  background: linear-gradient(135deg, var(--sage-600), var(--sage-700));
  color: #fff;
}
.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; color: var(--wheat-300); }
.brand-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 4px;
  box-shadow: var(--shadow-sm);
}
.brand-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: #fff;
}
.brand-tag {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wheat-300);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.site-nav a {
  color: #f3f0e2;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.98rem;
  white-space: nowrap;
}
.site-nav a:hover {
  background: rgba(255, 255, 255, 0.14);
  text-decoration: none;
  color: #fff;
}
.site-nav a[aria-current="page"] {
  background: var(--wheat-500);
  color: var(--sage-900);
  font-weight: 600;
}

/* Grass / meadow divider */
.meadow-divider {
  height: 16px;
  background-image:
    linear-gradient(90deg, var(--wheat-500), var(--sage-500), var(--wheat-500)),
    repeating-linear-gradient(
      100deg,
      rgba(255, 255, 255, 0) 0,
      rgba(255, 255, 255, 0) 3px,
      rgba(255, 255, 255, 0.35) 3px,
      rgba(255, 255, 255, 0.35) 4px
    );
}
.meadow-divider.flip { transform: scaleY(-1); }

/* ---------------- Hero ---------------- */
.page-hero {
  padding: 26px 28px 6px;
  text-align: center;
}
.page-hero h1 { margin-bottom: 0.3em; }
.page-hero .lede {
  max-width: 760px;
  margin: 0 auto 1em;
  color: var(--ink-soft);
}

/* ---------------- Main content grid ---------------- */
.content-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  padding: 10px 24px 28px;
}
@media (max-width: 820px) {
  .content-grid { grid-template-columns: 1fr; }
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.slide-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background-color: var(--sage-900);
  background-size: cover;
  background-position: center;
  aspect-ratio: 350 / 513;
}
.slide-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s linear;
}
.slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 14px;
  background: linear-gradient(0deg, rgba(47,68,35,0.85), rgba(47,68,35,0));
  color: #f7f0dd;
  font-size: 0.82rem;
  font-family: var(--font-head);
  letter-spacing: 0.03em;
}

.sidebar-card {
  background: var(--sage-100);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.sidebar-card h3 { margin-top: 0; }
.sidebar-card img { border-radius: var(--radius-sm); margin-top: 8px; }
.sidebar-card p { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------------- Cards / sections ---------------- */
.card {
  background: var(--white);
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.card.tinted { background: var(--cream-deep); }
.card h2 { border-bottom: 2px solid var(--wheat-300); padding-bottom: 8px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 700px) {
  .two-col { grid-template-columns: 1fr; }
}

.callout {
  background: linear-gradient(135deg, var(--wheat-100), var(--cream));
  border: 1px solid var(--wheat-300);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  text-align: center;
  margin: 14px 0;
}
.callout a { font-weight: 700; }

.notice {
  background: var(--sage-100);
  border-left: 4px solid var(--sage-500);
  border-radius: 6px;
  padding: 12px 16px;
  color: var(--sage-900);
}

figure.inline-figure {
  float: right;
  max-width: 44%;
  margin: 4px 0 14px 18px;
  text-align: center;
}
figure.inline-figure img {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
figure.inline-figure figcaption {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 6px;
}
@media (max-width: 600px) {
  figure.inline-figure { float: none; max-width: 100%; margin: 0 0 14px; }
}

figure.inline-figure.left {
  float: left;
  margin: 4px 18px 14px 0;
}
@media (max-width: 600px) {
  figure.inline-figure.left { margin: 0 0 14px; }
}

/* Full-width banner photo, e.g. dropped into a long article */
figure.figure-banner {
  margin: 22px 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
figure.figure-banner img {
  display: block;
  width: 100%;
  height: auto;
}
figure.figure-banner figcaption {
  padding: 10px 16px;
  background: var(--sage-100);
  color: var(--sage-900);
  font-family: var(--font-head);
  text-align: center;
  font-size: 0.85rem;
}

/* ---------------- Tables ---------------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
table.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.95rem;
}
table.data-table caption {
  text-align: left;
  font-family: var(--font-head);
  color: var(--sage-700);
  padding: 10px 4px;
  font-size: 1.05rem;
}
table.data-table th {
  background: var(--sage-600);
  color: #fff;
  text-align: left;
  padding: 10px 14px;
  font-weight: 600;
}
table.data-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--cream-deep);
}
table.data-table tbody tr:nth-child(even) { background: var(--cream); }
table.data-table tbody tr:hover { background: var(--wheat-100); }

table.recipe-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--white);
}
table.recipe-table caption {
  text-align: left;
  font-family: var(--font-head);
  color: var(--sage-700);
  font-size: 1.1rem;
  padding: 8px 4px;
}
table.recipe-table th, table.recipe-table td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--cream-deep);
  text-align: left;
}
table.recipe-table thead th { background: var(--wheat-300); color: var(--ink); }
table.recipe-table tbody tr:nth-child(even) { background: var(--cream); }

/* Reference list */
.reference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.reference-card {
  background: var(--white);
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
}
.reference-card strong.name { display: block; color: var(--sage-700); font-size: 1rem; margin-bottom: 2px; }
.reference-card .meta { color: var(--ink-soft); font-size: 0.88rem; }

.helpful-links a { color: var(--wheat-300); }
.helpful-links a:hover { color: #fff; }

/* Security list */
.security-list { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--sage-700); color: #f3f0e2; }
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 28px 10px;
  text-align: center;
}
.footer-col { flex: 1 1 220px; }
.footer-col h3 {
  color: var(--wheat-300);
  font-family: var(--font-head);
  margin-bottom: 6px;
}
.footer-col p { margin: 0; color: #f3f0e2; }
.footer-col a { color: #f3f0e2; font-weight: 600; }
.footer-col a:hover { color: var(--wheat-300); }

.social-links { display: flex; gap: 12px; justify-content: center; margin-top: 8px; }
.social-links img { border-radius: 6px; background: #fff; padding: 3px; }

.footer-bottom {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 28px 20px;
  font-size: 0.72rem;
  color: var(--sage-100);
  border-top: 1px solid rgba(255,255,255,0.15);
}
.footer-bottom a { color: var(--sage-100); }
.footer-bottom a:hover { color: #fff; }

/* ---------------- Age gate splash ---------------- */
#splash {
  position: fixed;
  inset: 0;
  background: rgba(47, 68, 35, 0.82);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.age-card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 30px 32px;
  max-width: 340px;
  text-align: center;
}
.age-card img { width: 96px; margin-bottom: 12px; }
.age-card p { color: var(--ink-soft); margin-bottom: 18px; }
.age-card button {
  background: var(--sage-600);
  color: #fff;
  border: none;
  padding: 10px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.age-card button:hover { background: var(--sage-700); }

@media (max-width: 820px) {
  .header-inner { flex-wrap: wrap; }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding-top: 8px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { text-align: center; }
}

@media (max-width: 520px) {
  .page-shell { margin: 0; border-radius: 0; }
  h1 { font-size: 1.6rem; }
}
