/* Shoreline — warm, friendly, modern community club.
   Bricolage Grotesque display + Atkinson Hyperlegible body (designed for
   maximum legibility — a good fit for a largely senior membership).
   Warm sand palette with deep-tide teal and a driftwood-fire accent. */

:root {
  --sand: #faf5ec;
  --shell: #fffdf8;
  --tide: #14555a;
  --tide-deep: #0c3d41;
  --ember: #d96f3f;
  --dune: #e8dcc6;
  --char: #2e2a24;
  --soft: #6f675b;
  --radius: 18px;
}

* { margin: 0; box-sizing: border-box; }

body.sl {
  font-family: 'Atkinson Hyperlegible', sans-serif;
  background: var(--sand);
  color: var(--char);
  line-height: 1.65;
  font-size: 1.05rem;
}

h1, h2, h3, .sl-display { font-family: 'Bricolage Grotesque', sans-serif; }

/* ---------- header ---------- */
.sl-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--sand) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--dune);
}
.sl-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--char);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.15rem;
}
.sl-brand strong { color: var(--tide); font-weight: 800; }
.sl-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.sl-nav { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(0.6rem, 2vw, 1.4rem); }
.sl-nav a {
  text-decoration: none;
  color: var(--char);
  font-weight: 400;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.sl-nav a:hover { background: var(--dune); }
.sl-nav a.active { background: var(--tide); color: var(--shell); }
.sl-nav a.sl-cta {
  background: var(--ember);
  color: var(--shell);
  font-weight: 700;
  padding: 0.5rem 1.2rem;
}
.sl-nav a.sl-cta:hover { background: var(--tide); }

/* ---------- hero ---------- */
.sl-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 1.5rem 3rem;
}
.sl-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.sl-hero h1 em {
  font-style: normal;
  color: var(--tide);
  position: relative;
}
.sl-hero h1 em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08em;
  height: 0.28em;
  background: color-mix(in srgb, var(--ember) 35%, transparent);
  z-index: -1;
  border-radius: 4px;
}
.sl-hero .lede { margin-top: 1.2rem; font-size: 1.15rem; color: var(--soft); max-width: 32rem; }
.sl-hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.sl-hero-img {
  border-radius: 50% 50% var(--radius) var(--radius) / 38% 38% var(--radius) var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(20, 85, 90, 0.55);
  animation: sl-drift 1s ease both;
}
.sl-hero-img img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3.4; }
@keyframes sl-drift {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ---------- buttons ---------- */
.sl-btn {
  display: inline-block;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  text-decoration: none;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  border: 2px solid var(--tide);
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer;
  font-size: 1rem;
}
.sl-btn:hover { transform: translateY(-2px); }
.sl-btn.primary { background: var(--tide); color: var(--shell); }
.sl-btn.primary:hover { background: var(--tide-deep); }
.sl-btn.ghost { background: transparent; color: var(--tide); }
.sl-btn.ghost:hover { background: var(--dune); }

/* ---------- sections ---------- */
.sl-section { max-width: 72rem; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem; }
.sl-section.narrow { max-width: 48rem; }
.sl-eyebrow {
  display: inline-block;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 0.6rem;
}
.sl-section h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.01em; margin-bottom: 1rem; }
.sl-section h3 { font-size: 1.35rem; font-weight: 700; margin: 1.8rem 0 0.5rem; }
.sl-section p + p { margin-top: 1rem; }
.sl-section a:not(.sl-btn) { color: var(--tide); font-weight: 700; }

/* ---------- schedule cards ---------- */
.sl-sched-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
  margin-top: 1.8rem;
}
.sl-sched-card {
  background: var(--shell);
  border: 1px solid var(--dune);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sl-sched-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -24px rgba(20, 85, 90, 0.5); }
.sl-sched-day {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--tide);
}
.sl-sched-time { font-size: 1.05rem; margin-top: 0.2rem; }
.sl-sched-level {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  background: var(--dune);
  color: var(--char);
}

/* ---------- banner / callout ---------- */
.sl-banner {
  background: var(--tide);
  color: var(--shell);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}
.sl-banner::before {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ember) 55%, transparent);
  filter: blur(2px);
}
.sl-banner h3 { margin: 0 0 0.5rem; font-size: 1.4rem; position: relative; }
.sl-banner p { position: relative; max-width: 40rem; }
.sl-banner .sl-btn { border-color: var(--shell); color: var(--shell); margin-top: 1.2rem; position: relative; }
.sl-banner .sl-btn:hover { background: var(--shell); color: var(--tide); }

/* ---------- cards (news / resources) ---------- */
.sl-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.2rem; margin-top: 1.8rem; }
.sl-card {
  background: var(--shell);
  border: 1px solid var(--dune);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sl-card .date { font-size: 0.82rem; font-weight: 700; color: var(--ember); text-transform: uppercase; letter-spacing: 0.06em; }
.sl-card h3 { margin: 0; font-size: 1.25rem; }
.sl-card p { color: var(--soft); font-size: 0.98rem; }
.sl-card a { margin-top: auto; }

/* resource pills */
.sl-res-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 0.9rem; margin-top: 1.8rem; }
.sl-res-list a {
  display: block;
  background: var(--shell);
  border: 1px solid var(--dune);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  text-decoration: none;
  color: var(--char);
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.sl-res-list a:hover { border-color: var(--tide); transform: translateY(-2px); }
.sl-res-list .t { display: block; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; color: var(--tide); }
.sl-res-list .b { display: block; font-size: 0.9rem; color: var(--soft); margin-top: 0.15rem; }
.sl-res-list .pdf {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--dune);
  border-radius: 4px;
  padding: 0.1rem 0.45rem;
  margin-top: 0.5rem;
}

/* ---------- article ---------- */
.sl-article { background: var(--shell); border: 1px solid var(--dune); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.2rem); margin-top: 1.5rem; }
.sl-article .date { font-size: 0.82rem; font-weight: 700; color: var(--ember); text-transform: uppercase; letter-spacing: 0.06em; }
.sl-article h3 { margin: 0.3rem 0 0.8rem; font-size: 1.45rem; }
.sl-article ul { margin: 0.8rem 0 0 1.3rem; }

/* ---------- form ---------- */
.sl-form { display: grid; gap: 1.1rem; margin-top: 1.8rem; }
.sl-form label { display: grid; gap: 0.35rem; font-weight: 700; font-size: 0.95rem; }
.sl-form input, .sl-form textarea {
  font: inherit;
  padding: 0.75rem 1rem;
  border: 2px solid var(--dune);
  border-radius: 12px;
  background: var(--shell);
  color: var(--char);
}
.sl-form input:focus, .sl-form textarea:focus { outline: none; border-color: var(--tide); }
.sl-form[hidden] { display: none; }
.sl-form-error { color: var(--ember); font-weight: 700; }
.sl-form-thanks {
  margin-top: 1.8rem;
  padding: 1.6rem 1.8rem;
  border-radius: var(--radius);
  background: var(--tide);
  color: var(--shell);
}
.sl-form-thanks h3 { font-family: 'Bricolage Grotesque', sans-serif; margin-bottom: 0.4rem; }

/* ---------- footer ---------- */
.sl-footer { background: var(--tide-deep); color: var(--sand); margin-top: 3rem; }
.sl-footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem;
  font-size: 0.95rem;
}
.sl-footer-brand { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; margin-bottom: 0.4rem; color: #fff; }
.sl-footer-logo { display: block; width: 150px; height: auto; border-radius: 10px; margin-bottom: 1rem; }
.sl-footer a { color: var(--sand); }
.sl-footer-legal {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--sand) 75%, transparent);
}

@media (max-width: 46rem) {
  .sl-hero { grid-template-columns: 1fr; }
  .sl-hero-img { max-width: 26rem; }
}
