/* Oak Grove Club. Logo: the club seal (logo/concepts/c-club-seal). Layout follows the Squarespace "Zaatar" template: photo hero with
   the header laid over it, a scrolling announcement band, a product grid, a tinted
   feature block, a big statement line, and a full-width sign-up band. Light only. */
:root {
  --paper: #f7f9f3;
  --mist: #e6ede1;
  --oak: #2c5a3a;
  --ink: #16301f;
  --ink-soft: #4d6152;
  --navy: #22345a;
  --line: #cdd8c9;
  --on-oak: #f7f9f3;
  --white: #ffffff;
  --display: "Libre Baskerville", Baskerville, "Baskerville Old Face", Georgia, serif;
  --text: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.55;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

.wrap {
  max-width: 1600px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 900px) {
  .wrap {
    padding-left: max(28px, env(safe-area-inset-left, 0px));
    padding-right: max(28px, env(safe-area-inset-right, 0px));
  }
}

/* Type pieces */
.label {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-title,
.band-title,
.page-title,
.post-title,
.display-lg,
.statement-text {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-wrap: balance;
}
.section-title { font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.2; margin-bottom: 28px; }
.page-title { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.05; }
.display-lg { font-size: clamp(1.8rem, 4.2vw, 3.4rem); line-height: 1.12; max-width: 22ch; letter-spacing: 0.005em; }
.statement-text { font-size: clamp(1.35rem, 2.6vw, 2.1rem); line-height: 1.25; max-width: 34ch; letter-spacing: 0.01em; }
.statement-text a { text-decoration-thickness: 2px; text-underline-offset: 0.18em; }

.pill {
  display: inline-block;
  padding: 15px 38px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.pill-light { color: var(--white); }
.pill-light:hover { background: var(--white); color: var(--ink); }
.pill-ink { color: var(--ink); }
.pill-ink:hover { background: var(--ink); color: var(--paper); }

/* Header */
.site-head { position: relative; z-index: 3; background: var(--paper); color: var(--ink); }
.site-head--over { position: absolute; top: 0; left: 0; right: 0; background: transparent; color: var(--white); }
.site-head--over a:focus-visible { outline-color: var(--white); }
.head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  padding-block: 14px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.seal { flex: none; }
.head-row .seal { width: 46px; height: 46px; }
.foot-brand .seal { width: 72px; height: 72px; }
.band .seal { width: 88px; height: 88px; margin-bottom: 8px; }
.main-nav { display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 0.9375rem; }
.main-nav a { text-decoration: none; padding-block: 3px; border-bottom: 1px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: currentColor; }

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(520px, 78vh, 820px);
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 30%; }
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 28, 18, 0.55) 0%, rgba(12, 28, 18, 0) 26%),
    linear-gradient(0deg, rgba(12, 28, 18, 0.82) 0%, rgba(12, 28, 18, 0.35) 45%, rgba(12, 28, 18, 0) 75%);
}
.hero-copy {
  position: relative;
  width: 100%;
  display: grid;
  justify-items: start;
  gap: 18px;
  padding-block: 120px clamp(32px, 6vw, 72px);
}
.hero-title {
  margin: 0;
  max-width: 12.5ch;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.7rem, 7.4vw, 6.6rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.hero-reply {
  margin: 0 0 8px;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.4rem, 3.2vw, 2.4rem);
  line-height: 1.1;
}

/* Announcement band */
.marquee {
  overflow: hidden;
  padding-block: 14px;
  background: var(--oak);
  color: var(--on-oak);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.marquee-track { display: flex; width: max-content; animation: marquee 144s linear infinite; }
.marquee ul { display: flex; gap: 36px; margin: 0; padding: 0 36px 0 0; list-style: none; white-space: nowrap; }
.marquee li { display: flex; align-items: center; gap: 36px; }
.marquee li::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { padding-block: clamp(48px, 7vw, 96px); }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
/* a flex column, so the Buy buttons line up along a row of cards */
.card { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tile {
  aspect-ratio: 1;
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--white);
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.card-name { margin: 0; font-size: 1.0625rem; font-weight: 400; }
.card-price { margin: 0; font-size: 1rem; font-weight: 500; }
.card-meta { margin: 0; font-size: 0.875rem; color: var(--ink-soft); }

/* Buy form (the checkout contract is in tools/build.py buy_form) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.buy { display: grid; gap: 10px; margin-top: auto; padding-top: 10px; }
.buy-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.field { display: grid; gap: 4px; min-width: 0; font-size: 0.8125rem; color: var(--ink-soft); }
.field select, .qty select {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
}
.buy-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.qty select { width: auto; height: 100%; }
.buy-button {
  padding: 12px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.buy-button:hover { background: var(--oak); }
.buy-button:disabled { background: var(--line); color: var(--ink-soft); cursor: not-allowed; }
.field select:focus-visible, .qty select:focus-visible, .buy-button:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.notice { margin: 0 0 24px; padding: 12px 16px; border-left: 3px solid var(--oak); background: var(--mist); }

/* Feature block */
.feature { background: var(--mist); }
.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
}
.feature-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.feature-side { display: grid; grid-template-rows: auto 1fr; gap: 32px; min-width: 0; }
.feature-text { display: grid; justify-items: start; gap: 14px; }
.feature-text .section-title { margin: 0 0 8px; }
.feature .card { align-self: end; justify-self: end; width: min(100%, 340px); }
/* photo on the right and no tint, so consecutive features alternate */
.feature--flip { background: var(--paper); }
.feature--flip .feature-img { order: 2; }
.feature--flip .card { justify-self: start; }

/* Sign-up band */
.band { background: var(--oak); color: var(--on-oak); }
.band-inner {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding-block: clamp(48px, 7vw, 88px);
  text-align: center;
}
.band-title { font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.15; }
.band-text { margin: 0 0 12px; max-width: 40ch; }
.band .pill-light:hover { color: var(--oak); }

/* Footer */
.site-foot { border-top: 1px solid var(--line); }
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px 40px;
  padding-block: 40px 48px;
  font-size: 0.875rem;
}
.foot-brand p { margin: 10px 0 0; max-width: 36ch; color: var(--ink-soft); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-legal { margin: 0; color: var(--ink-soft); }

/* Inner pages */
.page-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: clamp(32px, 5vw, 64px) 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.count { margin: 0; font-size: 0.9375rem; color: var(--ink-soft); }
.shop-note { margin: 36px 0 0; max-width: 60ch; color: var(--ink-soft); }
.policy { padding-bottom: clamp(48px, 7vw, 96px); }
.policy h2 { margin: 16px 0 0; font-family: var(--display); font-size: 1.25rem; line-height: 1.25; }
.policy ul { display: grid; gap: 6px; margin: 0; padding-left: 1.2em; font-size: 1.0625rem; }
.thanks { display: grid; justify-items: start; gap: 18px; padding-block: clamp(48px, 8vw, 120px); }
.thanks p { margin: 0; max-width: 46ch; font-size: 1.125rem; }
.thanks .pill { margin-top: 8px; }

.prose { display: grid; gap: 16px; max-width: 60ch; min-width: 0; }
.prose p { margin: 0; font-size: 1.0625rem; }
.prose .section-title { margin: 0; }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 5vw, 72px);
}
figure { margin: 0; min-width: 0; }
figcaption { margin-top: 10px; font-size: 0.875rem; color: var(--ink-soft); }

.post {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(20px, 4vw, 56px);
  padding-block: 36px;
  border-bottom: 1px solid var(--line);
}
.post:last-child { border-bottom: 0; }
.post img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post-meta { margin: 0; font-size: 0.875rem; color: var(--ink-soft); }
.post-title { margin: 6px 0 14px; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.15; }

.contact-banner img { width: 100%; height: clamp(180px, 22vw, 340px); object-fit: cover; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 48px;
  padding-block: clamp(40px, 6vw, 80px) 24px;
}
.contact-item { min-width: 0; }
.contact-value {
  margin: 8px 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  overflow-wrap: anywhere;
}
.contact-value a { text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.contact-note { margin: 0; padding-bottom: clamp(48px, 7vw, 96px); max-width: 60ch; color: var(--ink-soft); }

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  /* phones only see about the middle 40% of the banner; keep the two guys on the left of the tailgate in frame */
  .hero-img { object-position: 82% 30%; }
  /* the headline sits over the people here, so darken the lower half more */
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(12, 28, 18, 0.55) 0%, rgba(12, 28, 18, 0) 26%),
      linear-gradient(0deg, rgba(12, 28, 18, 0.9) 0%, rgba(12, 28, 18, 0.6) 45%, rgba(12, 28, 18, 0) 80%);
  }
  .feature-grid, .about-grid, .post, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .feature .card { justify-self: stretch; width: 100%; }
  .feature--flip .feature-img { order: 0; }
}
@media (max-width: 640px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .pill { transition: none; }
}
