/* ============================================================
   Green Mountain Orchards — site stylesheet
   Palette: spruce green, barn red, straw gold, warm white
   Display: Fraunces (old-style serif, warm without costume)
   Body: Nunito Sans · Chalk (board only): Caveat
   ============================================================ */

:root {
  --spruce: #1e3d2f;
  --spruce-deep: #142b21;
  --barn-red: #a8332a;
  --straw: #d9a441;
  --warm-white: #faf7f0;
  --paper: #f3eee2;
  --ink: #2b2b26;
  --ink-soft: #5c5c52;
  --chalk: #f2efe6;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --font-chalk: "Caveat", cursive;

  --maxw: 1280px;
}

* { box-sizing: border-box; }

/* Fluid type scale. Root grows with the viewport, so every rem-based
   size below scales together — 16px on a phone, ~20px on a wide desktop.
   Tune the middle term to shift the whole site up or down at once. */
html {
  font-size: clamp(16px, 0.34vw + 13.2px, 20.5px);
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--warm-white);
}

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

a { color: var(--barn-red); }
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--straw);
  outline-offset: 2px;
}

/* ---------- Header (thin bar) ---------- */

.site-header {
  background: var(--spruce);
  border-bottom: 3px solid var(--barn-red);
}

.bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.85rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.wordmark {
  display: block;
  color: var(--chalk);
  text-decoration: none;
}

.wm-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.15;
  white-space: nowrap;
}

.wm-est {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--straw);
  margin-top: 2px;
  white-space: nowrap;
}

.wordmark:hover .wm-name { color: var(--straw); }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.6rem;
}

.site-nav a {
  display: block;
  padding: 0.25rem 0;
  color: var(--chalk);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: var(--straw); }

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

@media (max-width: 600px) {
  .bar {
    justify-content: center;
    text-align: center;
    padding: 0.55rem 0.8rem;
    gap: 0.35rem 1rem;
  }
  .site-nav ul { justify-content: center; gap: 0.2rem 1.05rem; }
  .site-nav a { font-size: 0.8rem; letter-spacing: 0.06em; }
  .wm-name { font-size: 1.25rem; }
  .wm-est { font-size: 0.6rem; letter-spacing: 0.13em; }

  .hero { min-height: 44vh; }
  .hero-inner { padding-bottom: 1.6rem; }
  .hero-line { font-size: clamp(1.8rem, 8.5vw, 2.4rem); }

  main { padding-top: 1.6rem; }
  .two-col { gap: 1.4rem; }
}

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

.hero {
  position: relative;
  min-height: min(56vh, 460px);
  display: flex;
  align-items: flex-end;
  background-image: url("../images/hero-blueberries.jpg");
  background-size: cover;
  background-position: center 55%;
  background-color: var(--spruce-deep);
}

/* Larger file only where it's actually needed */
@media (min-width: 720px) {
  .hero { background-image: url("../images/hero-blueberries.jpg"); }
}

.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 43, 33, 0.88) 0%, rgba(20, 43, 33, 0.35) 45%, rgba(20, 43, 33, 0.05) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1rem 2.4rem;
}

.hero-line {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.03;
  color: #fff;
  margin: 0;
  max-width: 16ch;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.hero-line .crop-list { color: var(--straw); }

.hero-sub {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  margin: 0.9rem 0 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* ---------- Layout primitives ---------- */

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem 1rem 3.5rem;
}

.page-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 4.5vw, 2.5rem);
  color: var(--spruce);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 1.5rem;
}

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--spruce);
  letter-spacing: -0.005em;
  margin: 2.2rem 0 0.6rem;
}

h2:first-child { margin-top: 0; }

.lede { font-size: 1.15rem; }

.two-col {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .two-col { grid-template-columns: 1fr 1fr; align-items: stretch; }
}

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

.card {
  background: #fff;
  border: 1px solid #e4ddcc;
  border-radius: 10px;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 2px 10px rgba(43, 43, 38, 0.05);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.hours-table td {
  padding: 0.35rem 0;
  border-bottom: 1px dashed #e4ddcc;
}

.hours-table tr:last-child td { border-bottom: none; }
.hours-table td:last-child { text-align: right; font-weight: 700; }
.hours-table .closed td:last-child { color: var(--barn-red); }

/* ---------- The chalkboard (signature) ---------- */

.board {
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 20% 15%, rgba(255,255,255,0.06), transparent 55%),
    var(--spruce-deep);
  border: 10px solid #7a5230;
  border-radius: 6px;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.45), 0 4px 14px rgba(0,0,0,0.18);
  color: var(--chalk);
  padding: 1.4rem 1.6rem 1.6rem;
}

.board-title {
  font-family: var(--font-chalk);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--straw);
  margin: 0 0 0.2rem;
  transform: rotate(-1.2deg);
}

.board-updated {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242, 239, 230, 0.6);
  margin: 0 0 1.1rem;
}

.board ul { list-style: none; margin: 0; padding: 0; }
.board .status.done { opacity: 0.55; }

.board li {
  font-size: 1rem;
  line-height: 1.5;
  padding: 0.55rem 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid rgba(242, 239, 230, 0.14);
}

.board li:last-child { border-bottom: none; }

.board .crop { font-weight: 800; letter-spacing: 0.01em; }
.board .status { text-align: right; font-weight: 700; }
.board .status.yes { color: #9fd8a3; }
.board .status.soon { color: var(--straw); }
.board .status.done { color: rgba(242,239,230,0.5); text-decoration: line-through; }

.board-note {
  font-size: 0.9rem;
  color: rgba(242, 239, 230, 0.75);
  margin: auto 0 0;
  padding-top: 1.2rem;
}

/* ---------- Buttons ---------- */

.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.4rem; }

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--barn-red);
}

.btn-solid { background: var(--barn-red); color: #fff; }
.btn-solid:hover { background: #8d2a22; border-color: #8d2a22; }
.btn-ghost { color: var(--barn-red); background: transparent; }
.btn-ghost:hover { background: rgba(168, 51, 42, 0.08); }

/* ---------- About page media rows ---------- */

.media-row {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: 1fr;
  margin: 2.4rem 0;
  align-items: start;
}

@media (min-width: 760px) {
  .media-row { grid-template-columns: 340px 1fr; }
  .media-row.flip { grid-template-columns: 1fr 340px; }
  .media-row.flip img { order: 2; }
}

.media-row img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #e4ddcc;
}

.media-row h2 { margin-top: 0; }

/* ---------- Recipes ---------- */

.recipe { margin-bottom: 3rem; }

.recipe h3 {
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--barn-red);
  margin: 1.4rem 0 0.4rem;
}

.recipe ul, .recipe ol { padding-left: 1.3rem; }
.recipe li { margin-bottom: 0.35rem; }

/* ---------- Contact ---------- */

.contact-block address {
  font-style: normal;
  font-size: 1.15rem;
  line-height: 1.8;
}

.social-row { display: flex; gap: 1rem; margin-top: 1.2rem; }

.social-row a {
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

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

.site-footer {
  background: var(--spruce);
  color: rgba(242, 239, 230, 0.85);
  border-top: 6px solid var(--barn-red);
  margin-top: 2rem;
}

.site-footer .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.site-footer a { color: var(--straw); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }


/* ---------- Logo lockup (About page, print) ---------- */

.lockup {
  display: block;
  width: min(520px, 100%);
  height: auto;
  margin: 0 auto 2rem;
}

@media (max-width: 400px) {
  .wm-name { font-size: 1.12rem; }
  .wm-est { white-space: normal; }
  .site-nav a { font-size: 0.74rem; letter-spacing: 0.04em; }
  .site-nav ul { gap: 0.2rem 0.85rem; }
}


/* ---------- Inline content photo ---------- */

.photo-band {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 2rem 0;
  display: block;
}

.photo-band + p { margin-top: 0; }
