/* =====================================================================
   GREEN RIVER MAPLE CAMP — shared stylesheet
   ---------------------------------------------------------------------
   One stylesheet for every page. Owners: you shouldn't need to edit
   this file to change text or prices — those live in the .html files
   and in js/site.js.
   ===================================================================== */

:root {
  --green:      #1f4d33;   /* brand green — wordmark, buttons, footer */
  --green-deep: #163a26;   /* hover/darker green */
  --amber:      #a06b1e;   /* syrup gold — used sparingly */
  --ink:        #24231f;   /* body text */
  --muted:      #6c6a62;   /* secondary text */
  --rule:       #e7e3da;   /* hairline dividers */
  --paper:      #faf8f4;   /* off-white panels (photo placeholders etc.) */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
           "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
           "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */

* { box-sizing: border-box; }

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

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

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover { color: var(--green-deep); }

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

.wrap {
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.narrow { max-width: 42rem; }

.muted { color: var(--muted); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: #fff;
  padding: 0.6em 1em;
  font-family: var(--sans);
  z-index: 10;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

/* ---------- Header & nav ---------- */

.site-header {
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.1rem;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--green);
  text-decoration: none;
  line-height: 1.2;
}

.wordmark span {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.site-nav a {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding-block: 0.3em;
}

.site-nav a:hover {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.site-nav a[aria-current="page"] {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.nav-toggle {
  display: none;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  background: none;
  border: 1px solid var(--rule);
  color: var(--ink);
  padding: 0.45em 1em;
  cursor: pointer;
}

@media (max-width: 47rem) {
  .nav-toggle { display: block; }

  .site-nav ul {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--rule);
    padding: 0.5rem 1.25rem 1rem;
    z-index: 5;
  }

  .site-nav.open ul { display: flex; }

  .site-nav a {
    display: block;
    padding-block: 0.6em;
    font-size: 1rem;
  }

  .site-header { position: relative; }
}

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

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 2px;
  padding: 0.7em 1.6em;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--green);
}

.btn-secondary:hover {
  background: var(--paper);
  color: var(--green-deep);
}

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

.section {
  padding-block: 3.75rem;
  border-top: 1px solid var(--rule);
}

.section:first-of-type { border-top: none; }

.section-intro {
  max-width: 42rem;
}

/* Two-column split (text + photo) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 47rem) {
  .split { grid-template-columns: 1fr; gap: 1.75rem; }
}

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

.hero {
  padding-block: 4rem 3rem;
}

.hero .lede {
  font-size: 1.15rem;
  max-width: 40rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-block: 1.6rem 0.9rem;
}

.hero-note {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-photo {
  margin-top: 2.75rem;
}

/* ---------- Photos & placeholders ---------- */

.photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--paper);
}

.photo-wide { aspect-ratio: 21 / 9; }
.photo-tall { aspect-ratio: 4 / 5; }

/* Shown automatically when an image file is missing (see js/site.js).
   Lists the expected filename and the shot needed, so the site still
   looks intentional before photos are added. */
.img-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  padding: 2rem 1.5rem;
  border: 1px dashed #cbc5b6;
  background: var(--paper);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.85rem;
  line-height: 1.5;
}

.img-fallback strong {
  font-weight: 600;
  color: var(--ink);
}

.img-fallback code {
  font-size: 0.85rem;
  color: var(--green);
}

.img-fallback span { max-width: 26rem; }

/* ---------- Product / price presentation ---------- */

.grade-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-block: 2rem;
}

@media (max-width: 47rem) {
  .grade-grid { grid-template-columns: 1fr; }
}

.grade-card h3 { margin-top: 1rem; }

.grade-flag {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}

.price-table {
  width: 100%;
  max-width: 30rem;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.95rem;
  margin-block: 1.5rem;
}

.price-table th,
.price-table td {
  text-align: left;
  padding: 0.6em 0.25em;
  border-bottom: 1px solid var(--rule);
}

.price-table th { font-weight: 600; }

.price-table td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ---------- Shop: size strip & buy rows ---------- */

.size-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-block: 2rem;
}

@media (max-width: 47rem) {
  .size-strip { grid-template-columns: repeat(2, 1fr); }
}

.size-strip figure { margin: 0; }

.size-strip figcaption {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.5rem;
  text-align: center;
}

.buy-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
}

.buy-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1rem;
  border-top: 1px solid var(--rule);
}

.buy-item:last-child { border-bottom: 1px solid var(--rule); }

.buy-info { flex: 1 1 10rem; }

.buy-info h3 {
  margin: 0;
  font-size: 1.05rem;
}

.buy-info p {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
}

.buy-price {
  margin: 0;
  font-family: var(--sans);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---------- Checkout notes (shop) ---------- */

.checkout-note {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--amber);
  margin-top: 0.6rem;
}

.buy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.paypal-link {
  font-family: var(--sans);
  font-size: 0.85rem;
}

/* ---------- Newsletter ---------- */

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.newsletter-form label { flex-basis: 100%; }

.newsletter-form input[type="email"] {
  flex: 1 1 16rem;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.65em 0.9em;
  border: 1px solid #c4bfb2;
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
}

.newsletter-form input[type="email"]:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 1px;
  border-color: var(--green);
}

.form-label {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
}

.form-confirm {
  font-family: var(--sans);
  color: var(--green);
  font-weight: 600;
}

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

.footer-newsletter { margin-top: 1.25rem; }

.site-footer .form-label { color: #fff; }

.site-footer .newsletter-form input[type="email"] {
  flex: 1 1 12rem;
  border-color: transparent;
}

.site-footer .btn {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}

.site-footer .btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.site-footer .form-confirm { color: #fff; }

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

.site-footer {
  margin-top: 4rem;
  background: var(--green);
  color: #dfe8df;
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.6;
}

.site-footer a { color: #fff; }

.site-footer a:hover { color: #fff; text-decoration-thickness: 2px; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 2.5rem;
  padding-block: 3rem 2rem;
}

@media (max-width: 47rem) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

.footer-wordmark {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 0.75rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li { margin-bottom: 0.4em; }

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-block: 1.25rem;
  font-size: 0.82rem;
  color: #c4d4c6;
}

.footer-legal p { margin: 0; }
