/* =============================================================================
   shore.buzz — stylesheet v2 ("beach sticker book")
   Link from every page:  <link rel="stylesheet" href="shore-buzz.css">

   DIRECTION
   Fun, loud-but-tidy Gulf Coast energy. Think sun-faded postcards and
   gas-station-souvenir stickers: chunky ink outlines, hard offset shadows,
   bright pops of sun, coral, sky and mint over sea-foam paper with a dot
   texture. Brand teal stays as the masthead. Cards are slightly tilted and
   each one gets its own pop color, so a long list never looks like copies
   of one card. One page-load moment: cards pop in, staggered. Nothing else
   moves unless the reader touches it.

   TEMPLATE RULE (city kit)
   Colors live in tokens. A new city changes --brand / --brand-deep, and can
   swap the four --pop colors. Don't hardcode colors in components.

   CLASS CONTRACT (matches the markup visible on events.html)
   Both finds and events use the same card.
     .site-header  .wordmark  .site-nav (active link: aria-current="page")
     .page-title   .note  (the "All times are Central…" notice)
     .cards        list wrapper            .card    one find/event
       .card-num   the "01" number         .card-title
       .day-badge  "Sat" / "Sun" / "Sat–Sun". Add data-day="sat|sun|both"
                   to the .card (or the badge) to color it by day.
       .meta       wrapper for WHEN/WHERE rows (dl or div)
         .meta-row .meta-label .meta-value
       .card-desc  the description paragraph
       .tag        the "Coastal Mississippi" chip
       .card-link  map / organizer button (finds page: the "open map" link)
     .kit-link  .site-footer  .steps (kit.html)
   ============================================================================= */

@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,700;12..96,800&family=Instrument+Sans:wght@400;500;600;700&display=swap");

:root {
  /* brand + surfaces */
  --brand: #2a6b66;
  --brand-deep: #164541;
  --paper: #e6f4f1;
  --dots: rgba(42, 107, 102, 0.2);
  --surface: #ffffff;
  --text: #10302d;
  --text-soft: #3d5a56;
  --edge: #10302d;          /* outline + hard-shadow color */
  --link: #1b5c57;
  --on-brand: #f4fbf9;
  --note-bg: #fff0b0;
  --nav-active-bg: var(--paper);
  --nav-active-text: #10302d;

  /* the four pops; cards cycle through them */
  --sun: #ffcf3f;
  --coral: #ff7a66;
  --sky: #8fd8ec;
  --mint: #a8e8cf;
  --on-pop: #10302d;        /* text on any pop color, in both themes */

  /* type */
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* shape */
  --col: 44rem;
  --gap: 1.1rem;
  --radius: 1.25rem;
  --shadow: 5px 6px 0 var(--pop, var(--edge));
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d2422;
    --dots: rgba(143, 216, 236, 0.12);
    --surface: #1a3a36;       /* dark cards — no white panels */
    --text: #f4fbf9;          /* titles like Tavi's read light */
    --text-soft: #b7d4ce;
    --edge: #8fd3c8;
    --link: #8fe0d4;
    --brand: #21615c;
    --on-brand: #f4fbf9;
    --note-bg: #f6de7c;
    --nav-active-bg: #1a3a36;
    --nav-active-text: #f4fbf9;
  }
  html { color-scheme: dark; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  background-color: var(--paper);
  background-image: radial-gradient(var(--dots) 1.3px, transparent 1.6px);
  background-size: 20px 20px;
}

main, .site-footer {
  width: 100%;
  max-width: var(--col);
  margin-inline: auto;
  padding-inline: var(--gap);
}
main { padding-block: 2rem 3rem; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; }
p { margin: 0 0 var(--gap); }
a { color: var(--link); text-underline-offset: 0.18em; }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

/* ---------- masthead: teal band, sun, wave, sticker wordmark ---------- */
.site-header {
  position: relative;
  overflow: hidden;
  background: var(--brand);
  color: var(--on-brand);
  padding: max(1rem, env(safe-area-inset-top)) var(--gap) 0;
}
.site-header > * { position: relative; z-index: 1; max-width: var(--col); margin-inline: auto; }

/* sun peeking over the corner */
.site-header::before {
  content: "";
  position: absolute;
  top: -2.5rem;
  right: -2rem;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #ffe27a, var(--sun) 60%, #ffb92e);
  box-shadow: 0 0 0 0.9rem rgba(255, 207, 63, 0.22), 0 0 0 1.8rem rgba(255, 207, 63, 0.12);
}

/* wave edge */
.site-header::after {
  content: "";
  display: block;
  position: relative;
  z-index: 1;
  height: 18px;
  margin: 0.6rem calc(var(--gap) * -1) 0;
  background: var(--paper);
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 18'%3E%3Cpath d='M0 9 Q15 -2 30 9 T60 9 V18 H0Z'/%3E%3C/svg%3E");
  -webkit-mask: var(--wave) repeat-x bottom / 60px 18px;
  mask: var(--wave) repeat-x bottom / 60px 18px;
}

.wordmark {
  display: inline-block;
  padding: 0.15rem 0.85rem 0.25rem;
  background: var(--sun);
  color: var(--on-pop);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  border: 2.5px solid var(--edge);
  border-radius: 0.8rem;
  box-shadow: 3px 3px 0 var(--edge);
  transform: rotate(-2deg);
}

.site-nav { display: flex; gap: 0.5rem; margin-top: 0.9rem; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.2rem;
  color: var(--on-brand);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid rgba(244, 251, 249, 0.55);
  border-radius: 999px;
}
.site-nav a:hover { border-color: var(--on-brand); }
.site-nav a[aria-current="page"], .site-nav a.is-active {
  background: var(--nav-active-bg);
  color: var(--nav-active-text);
  border-color: var(--edge);
  box-shadow: 3px 3px 0 var(--coral);
}

/* ---------- title + notice ---------- */
h1, .page-title {
  font-weight: 800;
  font-size: clamp(2.5rem, 11vw, 4.25rem);
  letter-spacing: -0.03em;
  text-transform: lowercase;
  margin-bottom: 1.25rem;
  color: var(--text);
  text-decoration: underline wavy var(--coral) 0.09em;
  text-underline-offset: 0.16em;
  text-decoration-skip-ink: none;
}

/* the notice reads like a sticky note */
.note {
  max-width: none;
  margin: 0 0 2rem;
  padding: 0.9rem 1.1rem;
  background: var(--note-bg);
  color: #10302d;
  font-size: 0.95rem;
  font-weight: 500;
  border: 2px solid var(--edge);
  border-radius: 0.9rem;
  box-shadow: 4px 4px 0 var(--edge);
  transform: rotate(-0.6deg);
}

/* ---------- cards (finds + events) ---------- */
.cards, .finds, .events, .steps { list-style: none; margin: 0; padding: 0; }
.cards, .finds, .events { display: grid; gap: 1.6rem; }

.card, .find, .event {
  --pop: var(--sky);
  position: relative;
  padding: 1.4rem 1.25rem 1.3rem;
  background: var(--surface);
  border: 2.5px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.18s cubic-bezier(0.2, 1.4, 0.4, 1), box-shadow 0.18s ease;
}
/* each card gets its own pop color and a slight tilt */
.card:nth-child(4n+2), .find:nth-child(4n+2), .event:nth-child(4n+2) { --pop: var(--sun); }
.card:nth-child(4n+3), .find:nth-child(4n+3), .event:nth-child(4n+3) { --pop: var(--coral); }
.card:nth-child(4n+4), .find:nth-child(4n+4), .event:nth-child(4n+4) { --pop: var(--mint); }
.card:nth-child(odd),  .find:nth-child(odd),  .event:nth-child(odd)  { transform: rotate(-0.5deg); }
.card:nth-child(even), .find:nth-child(even), .event:nth-child(even) { transform: rotate(0.5deg); }

.card:hover, .find:hover, .event:hover {
  transform: rotate(0deg) translate(-2px, -3px);
  box-shadow: 8px 10px 0 var(--pop);
}

/* the old "01" becomes a round sticker in the corner */
.card-num {
  position: absolute;
  top: -0.9rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  background: var(--pop);
  color: var(--on-pop);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  border: 2.5px solid var(--edge);
  border-radius: 50%;
  transform: rotate(8deg);
}

.card-title, .find-name, .event-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 2.5rem 0.55rem 0;
  color: var(--text);
}
.meta-value { color: var(--text); }

/* day badge: Sat / Sun / Sat–Sun */
.day-badge {
  display: inline-block;
  margin: 0 0 0.9rem;
  padding: 0.12rem 0.7rem;
  background: var(--sky);
  color: var(--on-pop);
  font-size: 0.8125rem;
  font-weight: 700;
  border: 2px solid var(--edge);
  border-radius: 999px;
  vertical-align: middle;
}
[data-day="sun"]  .day-badge, .day-badge[data-day="sun"]  { background: var(--sun); }
[data-day="both"] .day-badge, .day-badge[data-day="both"] { background: var(--coral); }
[data-day="sat"]  .day-badge, .day-badge[data-day="sat"]  { background: var(--sky); }

/* WHEN / WHERE rows */
.meta { margin: 0 0 0.9rem; display: grid; gap: 0.5rem; }
.meta-row { display: grid; grid-template-columns: 4.6rem 1fr; column-gap: 0.75rem; align-items: start; }
.meta-label {
  justify-self: start;
  margin-top: 0.15rem;
  padding: 0.05rem 0.55rem;
  background: var(--pop);
  color: var(--on-pop);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 0.5rem;
}
.meta-value { margin: 0; font-weight: 600; }

.card-desc, .find-body { margin: 0 0 1.1rem; color: var(--text-soft); }

/* tag chip + action buttons */
.tag, .find-where {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin: 0 0.4rem 0.4rem 0;
  padding: 0 0.95rem;
  background: var(--mint);
  color: var(--on-pop);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--edge);
  border-radius: 999px;
}

.card-link, .find-map, .event-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.2rem;
  background: var(--coral);
  color: var(--on-pop);
  font-weight: 700;
  text-decoration: none;
  border: 2.5px solid var(--edge);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--edge);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.card-link:hover, .find-map:hover, .event-link:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--edge); }
.card-link:active, .find-map:active, .event-link:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--edge); }

/* ---------- kit page ---------- */
.steps { counter-reset: step; display: grid; gap: 0.9rem; }
.steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  column-gap: 0.9rem;
  align-items: start;
}
.steps > li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  background: var(--sun);
  color: var(--on-pop);
  font-family: var(--font-display);
  font-weight: 800;
  border: 2.5px solid var(--edge);
  border-radius: 50%;
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  padding: 0.1em 0.45em;
  background: var(--surface);
  border: 1.5px solid var(--edge);
  border-radius: 0.4rem;
}


/* ---------- socials (header) ---------- */
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
  padding-bottom: 0.15rem;
}
.socials a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.15rem;
  background: var(--sun);
  color: var(--on-pop);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2.5px solid #10302d;
  border-radius: 999px;
  box-shadow: 3px 3px 0 #10302d;
}
.socials a:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #10302d; }
.socials a:nth-child(2) { background: var(--coral); }
.socials a:nth-child(3) { background: var(--sky); }
.socials a:nth-child(4) { background: var(--mint); }
@media (prefers-reduced-motion: no-preference) {
  .socials a { transition: transform 0.12s ease, box-shadow 0.12s ease; }
}

/* ---------- footer ---------- */
.site-footer { padding-block: 1rem 3.5rem; color: var(--text-soft); }
.kit-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.1rem;
  background: var(--sun);
  color: var(--on-pop);
  font-weight: 700;
  text-decoration: none;
  border: 2.5px solid var(--edge);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--edge);
}

/* ---------- wider screens: two columns of cards ---------- */
@media (min-width: 52rem) {
  :root { --col: 62rem; --gap: 1.5rem; }
  .cards, .finds, .events { grid-template-columns: 1fr 1fr; align-items: start; }
  .card-title, .find-name, .event-title { font-size: 1.7rem; }
}

/* ---------- the one motion moment: cards pop in on load ---------- */
@keyframes pop-in {
  from { opacity: 0; translate: 0 18px; scale: 0.96; }
}
@media (prefers-reduced-motion: no-preference) {
  .card, .find, .event { animation: pop-in 0.55s cubic-bezier(0.2, 1.3, 0.4, 1) both; }
  .card:nth-child(2), .find:nth-child(2), .event:nth-child(2) { animation-delay: 0.07s; }
  .card:nth-child(3), .find:nth-child(3), .event:nth-child(3) { animation-delay: 0.14s; }
  .card:nth-child(4), .find:nth-child(4), .event:nth-child(4) { animation-delay: 0.21s; }
  .card:nth-child(5), .find:nth-child(5), .event:nth-child(5) { animation-delay: 0.28s; }
  .card:nth-child(n+6), .find:nth-child(n+6), .event:nth-child(n+6) { animation-delay: 0.35s; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .find, .event, .card-link, .find-map, .event-link { transition: none; }
}
