/* ==========================================================================
   Kopachuck Ridge Estates — Homeowners Association site
   Everything is pulled off the neighborhood entry sign: weathered board,
   carved tan lettering, rhododendron red, dark evergreen. The display face is
   the sign's own — Bookman Bold Italic, via the libre TeX Gyre Bonum cut.
   ========================================================================== */

@font-face {
  font-family: 'Bonum';
  src: url('/fonts/bonum-bolditalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --forest:      #1F4633;
  --paper:       #FBF7EF;
  --paper-2:     #F3EDE0;
  --ink:         #2A2A24;
  --muted:       #5F6357;
  --rhody:       #AF3620;
  --rhody-dark:  #8A2714;
  --gold:        #D99C2B;
  --gold-soft:   #E8C77A;
  --sage:        #E4E8DE;
  --edge:        #DED8C9;

  --display: 'Bonum', 'Bookman Old Style', Georgia, 'Times New Roman', serif;
  --sans: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --wrap: 1120px;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(30, 40, 25, .06), 0 4px 14px rgba(30, 40, 25, .06);
  --shadow-md: 0 2px 6px rgba(30, 40, 25, .07), 0 18px 44px rgba(30, 40, 25, .12);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--rhody-dark); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--rhody); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), calc(100% - 2.5rem)); margin-inline: auto; }
.wrap--narrow { width: min(720px, calc(100% - 2.5rem)); }

/* ============================== Type ============================== */

/* The sign's face is a bold italic, so every display style carries both. */
.h2, .hero__title, .hero__pizza, .card__title, .bring h3, .footer__h,
.helpers__lead, .thanks__line {
  font-family: var(--display);
  font-weight: 700;
  font-style: italic;
}

.h2 {
  font-size: clamp(1.9rem, 1.3rem + 2.3vw, 2.7rem);
  line-height: 1.12;
  margin: 0 0 1.75rem;
  color: var(--forest);
}
.h2--light { color: var(--paper); }

.section { padding: clamp(3.25rem, 7vw, 6rem) 0; }
.section--tight { padding: clamp(1rem, 3vw, 2rem) 0 clamp(2.5rem, 5vw, 4rem); }

/* ============================== Buttons ============================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn--primary {
  background: var(--rhody);
  color: #fff;
  box-shadow: 0 3px 0 var(--rhody-dark), 0 12px 26px rgba(138, 39, 20, .28);
}
.btn--primary:hover { background: #C13D24; color: #fff; transform: translateY(-1px); }
.btn--primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--rhody-dark); }
.btn--primary[disabled] { opacity: .65; cursor: progress; transform: none; }
.btn--full { width: 100%; margin-top: .5rem; }

.btn--ghost { background: transparent; border-color: #C9CFBE; color: var(--forest); }
.btn--ghost:hover { background: var(--sage); color: var(--forest); border-color: #ADB5A3; }

.linkish {
  background: none; border: 0; padding: 0;
  font: inherit; color: var(--rhody-dark);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.linkish:hover { color: var(--rhody); }

/* ============================== Logo lockup ============================== */

/* Stacked the way the sign is: rhododendron over the wordmark. */
.lockup {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  margin-bottom: clamp(1.25rem, 3.5vw, 2rem);
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .4));
}
/* The truss carries real detail — below about 60px it collapses into a blob. */
.lockup__mark { width: clamp(66px, 10vw, 88px); height: auto; }
.lockup__words { width: clamp(232px, 36vw, 340px); height: auto; }

/* ============================== Hero ============================== */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  text-align: center;
  min-height: min(740px, 92vh);
  padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(4.5rem, 9vw, 7rem);
  overflow: hidden;
}
.hero__photo, .hero__scrim { position: absolute; inset: 0; z-index: -1; }
.hero__photo {
  background: #23331F url('/img/hero.jpg') center 42% / cover no-repeat;
  transform: scale(1.04);
}
.hero__scrim {
  background:
    radial-gradient(115% 85% at 50% 42%, rgba(22, 45, 30, .34) 0%, rgba(18, 38, 26, .82) 72%, rgba(15, 32, 22, .93) 100%),
    linear-gradient(180deg, rgba(20, 40, 28, .55) 0%, rgba(20, 40, 28, 0) 30%);
}

.hero__inner { width: min(760px, calc(100% - 2.25rem)); color: var(--paper); }

.hero__eyebrow {
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gold-soft);
  margin: 0 0 .4rem;
}
.hero__title {
  font-size: clamp(2.5rem, 1.4rem + 5.4vw, 4.8rem);
  line-height: 1.02;
  margin: 0 0 1.3rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}

.hero__facts {
  list-style: none;
  margin: 0 auto 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem .7rem;
  max-width: 620px;
}
.hero__facts li {
  background: rgba(251, 247, 239, .1);
  border: 1px solid rgba(251, 247, 239, .28);
  border-radius: 999px;
  padding: .42rem 1rem;
  font-size: .93rem;
}

.hero__lead {
  font-size: clamp(1.05rem, .95rem + .45vw, 1.25rem);
  font-weight: 700;
  color: #FFF;
  max-width: 24ch;
  margin: 0 auto .55rem;
  line-height: 1.4;
}
.hero__pizza {
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.9rem);
  color: var(--gold-soft);
  margin: 0 0 1.9rem;
  line-height: 1.2;
}
.hero__pizza em { font-style: italic; color: #FFF; }

.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(34px, 5vw, 62px); }

/* ============================== Activity cards ============================== */

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  /* 300px min caps this at three columns on desktop, one on a phone */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: start;   /* short cards stay short instead of stretching */
}
.card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card__icon { display: block; width: 40px; height: 40px; flex: none; }
.card__icon svg { width: 100%; height: 100%; }
.card__title {
  font-size: 1.3rem;
  line-height: 1.2;
  margin: 0;
  color: var(--forest);
}

/* The three that carry an explanation stack instead of sitting on one line. */
.card--tall {
  flex-direction: column;
  align-items: flex-start;
  gap: .7rem;
  padding: 1.4rem 1.3rem 1.5rem;
}
.card--tall .card__title { margin-bottom: -.15rem; }
.card--tall p { margin: 0; color: var(--muted); font-size: .97rem; }

.card--feature { background: linear-gradient(150deg, #FFF6E4 0%, #FFF 70%); border-color: #EBD9A8; }
.card--feature .card__title { color: var(--rhody-dark); }

/* ============================== "Please bring" band ============================== */

.band {
  background: linear-gradient(180deg, rgba(0,0,0,.14), rgba(0,0,0,.14)), var(--forest);
  color: #E8E4D8;
  position: relative;
}
.band::before, .band::after {
  content: '';
  position: absolute; left: 0; right: 0; height: 6px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 22px, transparent 22px 44px);
  opacity: .5;
}
.band::before { top: 0; }
.band::after { bottom: 0; }

.bring { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; }
.bring li { display: flex; gap: 1.1rem; align-items: flex-start; }
.bring__num {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--rhody);
  color: #fff;
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  box-shadow: 0 2px 0 var(--rhody-dark);
}
.bring h3 { font-size: 1.3rem; margin: .2rem 0 .3rem; color: #FFF; }
.bring h3:last-child { margin-bottom: 0; }   /* items with no explanation under them */
.bring p { margin: 0; color: #CFD3C4; }
.bring .note {
  display: block;
  margin-top: .4rem;
  font-size: .92rem;
  color: var(--gold-soft);
  font-style: italic;
}

/* ============================== Helpers table ============================== */

.helpers { text-align: center; }
.helpers__mark { width: clamp(88px, 16vw, 116px); height: auto; margin: 0 auto 1rem; }
.helpers__lead {
  font-size: clamp(1.15rem, 1rem + .7vw, 1.45rem);
  line-height: 1.35;
  color: var(--forest);
  margin: 0 0 1rem;
}
.helpers p { color: var(--muted); }

/* ============================== Gallery ============================== */

.gallery {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin: 0 auto;
  display: grid;
  gap: .9rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.gallery__item { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.gallery__item--wide { grid-column: span 2; }
@media (max-width: 700px) { .gallery__item--wide { grid-column: span 1; } }

/* ============================== Footer ============================== */

.footer {
  background: var(--forest);
  color: #DDE0D4;
  padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
  border-top: 6px solid var(--gold);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.75rem, 5vw, 4rem);
}
.plaque {
  width: clamp(180px, 26vw, 232px);
  height: auto;
  flex: none;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .35));
}
.footer__copy { max-width: 42ch; }
.footer__h { font-size: clamp(1.7rem, 1.35rem + 1.4vw, 2.2rem); color: var(--paper); margin: 0 0 .6rem; }
.footer__copy p { margin: 0 0 .85rem; }
.footer__copy strong { color: var(--paper); }
.footer__small { font-size: .9rem; color: #AFB6A5; }
.footer__small a { color: var(--gold-soft); }
.footer__small a:hover { color: #F0D08A; }

/* Give the small inline links a real hit area on touch screens. */
@media (pointer: coarse) {
  .footer__small { line-height: 2.1; }
  .footer__small a, .card--tall p a { display: inline-block; padding: .5rem .2rem; }
}

/* ============================== Narrow screens ============================== */

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap, .wrap--narrow, .gallery { width: calc(100% - 1.75rem); }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__copy { max-width: none; }
  .thanks__actions .btn { width: 100%; }
  .bring li { gap: .85rem; }
  .bring__num { width: 34px; height: 34px; font-size: 1.1rem; }
  .card { padding: 1rem 1.1rem; }
  .map { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .card:hover { transform: none; }
}
