/* ============================================
   Bowl Club — shared stylesheet
   Palette + type are chosen to feel like a
   communal table, not a generic template.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&display=swap');

:root {
  --color-bg: #EAE2CE;         /* oat / linen */
  --color-surface: #F5F0E4;    /* card surface, slightly lighter */
  --color-ink: #2B2A25;        /* warm near-black, not pure black */
  --color-ink-soft: #5B5646;
  --color-accent: #8B3A3A;     /* dried-cranberry / mulled wine */
  --color-gold: #B9862F;       /* harvest gold, used sparingly */
  --color-sage: #63715A;       /* dried herb green, used sparingly */
  --color-line: #D8CDAF;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --measure: 640px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Salad photo fills the sides of the page, behind the centered content column.
   Each side strip gets its own copy of the photo, sized to the strip only,
   so the photo is never stretched past its real resolution. */
html { background: var(--color-ink); }

html::before,
html::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: calc((100vw - 1080px) / 2 + 40px); /* +40px tucks under the column's shadow */
  z-index: -1;
  background-image:
    linear-gradient(rgba(43, 42, 37, 0.18), rgba(43, 42, 37, 0.18)),
    url('images/background.jpg');
  background-size: cover;
}

html::before { left: 0;  background-position: left center; }
html::after  { right: 0; background-position: right center; }

body {
  margin: 0 auto;
  max-width: 1080px;
  min-height: 100vh;
  box-shadow: 0 0 40px rgba(43, 42, 37, 0.35);
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

a { color: var(--color-accent); text-underline-offset: 3px; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-ink);
  line-height: 1.15;
  margin-top: 0;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; color: var(--color-ink-soft); }
p:last-child { margin-bottom: 0; }

/* ---- Skip link (accessibility) ---- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-ink);
  color: var(--color-bg);
  padding: 0.6em 1em;
  z-index: 100;
}
.skip-link:focus { left: 1em; top: 1em; }

/* ---- Top navigation ---- */
.site-header {
  background: #D9C7A0;                /* beige-tan */
  border-bottom: 1px solid #C2AD82;   /* slightly darker tan edge */
}

.nav {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.4em 1.5em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5em;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-ink);
  text-decoration: none;
}

.brand-logo {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  margin: -0.5em 0;   /* lets the logo be big without making the bar taller */
}

/* Homepage: logo beside the "Bowl Club" heading */
.hero-title {
  display: flex;
  align-items: center;
  gap: 1.2em;
  margin-bottom: 1em;
}
.hero-title h1 { margin: 0; }
.hero-logo {
  flex-shrink: 0;
  width: clamp(96px, 14vw, 150px);
  height: auto;
}

.nav-links {
  display: flex;
  gap: 1.6em;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--color-ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--color-ink);
  border-bottom-color: var(--color-accent);
}

/* ---- Page shell ---- */
main { display: block; }

.page-header {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3.5em 1.5em 1.5em;
}

.page-header p {
  font-size: 1.1rem;
}

.container {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.5em 5em;
}

.container section + section {
  margin-top: 2.6em;
  padding-top: 2.6em;
  border-top: 1px solid var(--color-line);
}

/* ---- Hero (home page) ---- */
.hero {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4em 1.5em 2em;
  text-align: left;
}

.hero .kicker {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-sage);
  font-size: 1.1rem;
  margin: 0 0 0.4em;
}

.hero p.lede {
  max-width: var(--measure);
  font-size: 1.2rem;
}

/* Two columns: text on the left (60%), rotating photos on the right (40%) */
.hero {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2.5em;
  align-items: stretch;
}

.hero-text { min-width: 0; }

/* The photo column stretches to the text's height but never makes it taller */
.hero-photos { position: relative; min-height: 220px; }

.photo-stack {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.photo-slot {
  position: relative;
  flex: 1;
  overflow: hidden;
  border-radius: 3px;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
}

.photo-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.photo-slot img.is-visible { opacity: 1; }

/* Phones: photos drop below the text as one rotating photo */
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photos { min-height: 0; }
  .photo-stack { position: static; }
  .photo-slot { flex: none; aspect-ratio: 4 / 3; }
}

.bowl-divider {
  display: block;
  width: 100%;
  height: auto;
  margin: 1.5em 0 3em;
}

/* ---- Editable notice ---- */
.editme {
  background: var(--color-surface);
  border-left: 3px solid var(--color-gold);
  padding: 0.9em 1.2em;
  font-size: 0.92rem;
  color: var(--color-ink-soft);
  margin: 0 0 2em;
}
.editme strong { color: var(--color-ink); }

/* ---- Feature list (home) ---- */
.feature-grid {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5em 4em;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2em;
}

.feature h3 {
  margin-bottom: 0.4em;
}

.feature .mark {
  display: inline-block;
  width: 34px;
  height: 34px;
  margin-bottom: 0.8em;
}

@media (max-width: 720px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* ---- Buttons ---- */
.button {
  display: inline-block;
  background: var(--color-accent);
  color: #FBF6EA;
  text-decoration: none;
  font-weight: 500;
  padding: 0.85em 1.6em;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: var(--font-body);
}
.button:hover { background: #742E2E; }

.button.secondary {
  background: transparent;
  color: var(--color-ink);
  border: 1px solid var(--color-ink);
}
.button.secondary:hover { background: var(--color-surface); }

/* ---- Cards (partners / volunteer roles) ---- */
.card-list {
  display: grid;
  gap: 1.4em;
}

.card {
  background: var(--color-surface);
  padding: 1.6em 1.7em;
  border: 1px solid var(--color-line);
}

.card h3 { margin-bottom: 0.35em; }

/* ---- Simple two-column list (mission/vision) ---- */
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5em;
}

@media (max-width: 640px) {
  .pair { grid-template-columns: 1fr; }
}

.pair h2 {
  color: var(--color-accent);
  margin-bottom: 0.5em;
}

/* ---- Footer ---- */
.site-footer {
  background: #D9C7A0;                /* beige-tan, matches the top bar */
  border-top: 1px solid #C2AD82;
  padding: 2.5em 1.5em;
  text-align: left;
}

.site-footer .container-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1em;
  font-size: 0.9rem;
  color: var(--color-ink-soft);
}
