/* Seacoast Social Club: one stylesheet for index.html, thanks.html and 404.html.
   Written for a 390px phone first; "Screen sizes" near the end adjusts for
   smaller phones and for 560px, 760px and 1000px and up. The header keeps its
   own 900px switch from menu button to links.

   Tokens · Base · Header · Buttons · Hero · Sections · Events · New here ·
   Where we've been · Membership · Shop · FAQ · Collab · Footer · Toast ·
   Stand-alone pages · Screen sizes · Motion */

/* ------------------------------------------------------------ Tokens */
:root {
  --navy: #2b3666; /* the logo's own ink */
  --navy-deep: #1f2850;
  --blue: #aebfca;
  --blue-soft: #dbe5ea;
  --cream: #f6f1e8;
  --paper: #fbf8f3;
  --ink: #26303f;
  --muted: #5d6878; /* 4.5:1 or better on white, paper and cream */
  --muted-strong: #4a5567; /* the same job on the blues */
  --line: #e2dccf;

  --serif: Fraunces, Georgia, serif;
  --sans: Inter, system-ui, sans-serif;
  --fs-xs: .8125rem; /* 13px: labels, fine print */
  --fs-sm: .9375rem; /* 15px: meta, card copy, buttons */
  --fs-base: 1rem;
  --fs-lg: 1.125rem; /* 18px: ledes */
  --fs-h3: 1.3125rem; /* 21px */
  --fs-h2: clamp(1.75rem, 1.35rem + 2vw, 2.75rem);
  --fs-h1: clamp(2.25rem, 1.2rem + 4.8vw, 4.5rem);

  --gutter: 22px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(31, 40, 80, .05), 0 6px 16px -8px rgba(31, 40, 80, .16);
  --shadow-md: 0 2px 4px rgba(31, 40, 80, .06), 0 22px 40px -22px rgba(31, 40, 80, .38);
  --focus: var(--navy-deep); /* dark surfaces switch this to white */
}

/* -------------------------------------------------------------- Base */
* { box-sizing: border-box; }
html { scroll-padding-top: 78px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 var(--fs-base)/1.6 var(--sans);
  color: var(--ink);
  background: var(--paper);
}
img, svg { max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--serif); color: var(--navy); text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 400; line-height: 1.04; letter-spacing: -.018em; }
h2 { font-size: var(--fs-h2); font-weight: 400; line-height: 1.1; letter-spacing: -.012em; }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; }
h1 em, h2 em { font-style: italic; } /* a display cut: only ever used at 22px and up */
p { margin: 0; }
a { color: var(--navy); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 800px; }
.sprite { position: absolute; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Tracked small-caps label: hero eyebrow and section kicker */
.kicker {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font: 600 var(--fs-xs)/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--navy); text-wrap: balance;
}
.kicker .icon { width: 22px; height: 22px; stroke-width: 3; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hint { margin-top: 10px; font-size: var(--fs-xs); color: var(--muted); }
.fallback { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
/* Links inside a line of text: the padding widens the tap area to 44px without moving the line. */
.fallback a, .lede a, .hero-alt a, .event-where a, .events-foot a, .faq-item p a, .toast a { padding-block: 13px; font-weight: 600; }
/* What was bought, on the thank-you page. */
.order-slot:empty { display: none; }
.order { width: min(100%, 460px); margin: 22px auto 0; padding: 20px 24px; border-radius: var(--radius, 18px); background: var(--paper); box-shadow: 0 14px 30px -18px rgba(31, 40, 80, .55); text-align: left; }
.order h2 { font-size: var(--fs-h3, 1.3125rem); margin-bottom: 10px; }
.order ul { list-style: none; margin: 0; padding: 0; }
.order li { padding: 10px 0; border-top: 1px solid var(--line); }
.order li:first-child { border-top: 0; padding-top: 0; }
.order li strong, .order li span { display: block; }
.order li span { font-size: var(--fs-sm); color: var(--muted); }
.order-total { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.order.is-pending { text-align: center; }
.order.is-pending p { color: var(--muted); }

/* Buying tickets on the site: how many, then the button. */
.ticket-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ticket-buy .btn { flex: 1 1 auto; }
.qty { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--muted); }
.qty select { min-height: 44px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; }

.test-banner { margin: 0; padding: 9px 16px; background: #fff6dc; border-bottom: 1px solid #ecd9a0; font-size: var(--fs-sm); color: #6b5413; text-align: center; }
.test-banner a { color: inherit; }
.notice { width: fit-content; margin-bottom: 22px; padding: 9px 16px; background: #fff6dc; border: 1px solid #ecd9a0; border-radius: 10px; font-size: var(--fs-sm); color: #6b5413; }

/* Check-mark list, drawn with borders so it matches the icon stroke */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.checks li { position: relative; padding-left: 26px; text-wrap: pretty; }
.checks li::before { content: ""; position: absolute; left: 3px; top: .45em; width: 11px; height: 6px; border-left: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(-45deg); }

.price { font: 600 1.5rem/1.1 var(--serif); color: var(--navy); }
.price small { font: 400 var(--fs-xs)/1.4 var(--sans); color: var(--muted); }

/* ------------------------------------------------------------ Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px;
  /* lines the bar up with the 1080px content column on wide screens */
  padding: 8px max(16px, calc((100% - 1036px) / 2));
  background: rgba(251, 248, 243, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
/* The brand takes the room that is left; on very narrow phones its name folds onto two lines. */
.brand { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; font: 600 1rem/1.1 var(--serif); }
.brand em { font-style: normal; font-weight: 400; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--cream); border: 1px solid var(--line); }
.brand-mark img { display: block; width: 70%; height: auto; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .btn { padding-inline: 16px; }
.site-nav a { display: flex; align-items: center; min-height: 44px; font-size: var(--fs-sm); font-weight: 500; text-decoration: none; white-space: nowrap; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }

.menu-btn { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1.5px solid var(--navy); border-radius: 50%; background: transparent; color: var(--navy); cursor: pointer; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; transition: transform .2s; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.is-open .menu-icon { background: transparent; }
.is-open .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.is-open .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 899.98px) {
  /* Without the script the links sit in a row under the bar; with it they fold into the menu. */
  .site-nav { order: 1; flex: 1 0 100%; display: flex; gap: 0 16px; overflow-x: auto; }
  .js .menu-btn { display: inline-flex; }
  .js .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 2px var(--gutter) 10px;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 14px 24px rgba(31, 40, 80, .12);
    /* On a phone held sideways the list scrolls instead of running off the screen. */
    max-height: calc(100vh - 61px); max-height: calc(100dvh - 61px); overflow-y: auto; overscroll-behavior: contain;
  }
  .js .site-nav a:focus-visible { outline-offset: -3px; }
  .js .is-open .site-nav { display: flex; }
  .js .site-nav a { min-height: 54px; font-size: 1.0625rem; border-bottom: 1px solid var(--line); }
  .js .site-nav a:last-child { border-bottom: 0; }
}
@media (min-width: 900px) {
  .site-header { flex-wrap: nowrap; gap: 26px; padding-inline: max(var(--gutter), calc((100% - 1036px) / 2)); }
  .brand { gap: 10px; font-size: 1.0625rem; }
  .header-actions .btn { padding-inline: 20px; }
  .site-nav { display: flex; gap: 26px; }
  .site-nav .only-menu { display: none; } /* the Events button is right beside it */
}

/* ----------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  min-height: 48px; padding: 12px 26px; border-radius: 999px;
  border: 1.5px solid var(--navy); background: var(--navy); color: #fff;
  font: 600 var(--fs-sm)/1.2 var(--sans); text-decoration: none; text-align: center;
  box-shadow: 0 10px 20px -12px rgba(31, 40, 80, .7);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn .icon { width: 16px; height: 16px; }
.btn:hover { background: var(--navy-deep); }
@media (hover: hover) { .btn:hover { transform: translateY(-2px); box-shadow: 0 14px 24px -12px rgba(31, 40, 80, .8); } }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-cream { background: var(--cream); color: var(--navy); border-color: var(--cream); box-shadow: 0 10px 20px -14px rgba(31, 40, 80, .5); }
.btn-cream:hover { background: #fff; border-color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); box-shadow: none; }
.btn-ghost:hover { background: rgba(43, 54, 102, .08); box-shadow: none; }
.btn-small { min-height: 44px; padding: 10px 20px; }
/* With the next event's own sign-up button just below, the hero's button steps back. */
.hero:has(.next) .hero-cta { background: transparent; color: var(--navy); box-shadow: none; }
.hero:has(.next) .hero-cta:hover { background: rgba(43, 54, 102, .08); box-shadow: none; }
.btn-block { display: flex; width: 100%; }

/* A quiet text action that still gives a thumb 44px */
.link-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font: 600 var(--fs-sm)/1.2 var(--sans); color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; cursor: pointer; }
.link-btn:hover { text-decoration-thickness: 2px; }

/* -------------------------------------------------------------- Hero */
/* Flat dusty blue, two pebble shapes kept clear of the text, a shoreline that steps down into the page. */
.hero {
  --shore: clamp(44px, 9vw, 128px);
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  padding: clamp(16px, 5vw, 64px) var(--gutter) calc(var(--shore) + clamp(20px, 4vw, 44px));
  background: var(--blue);
}
.hero-blob { position: absolute; z-index: -1; max-width: none; fill: var(--blue-soft); }
.hero-blob.a { opacity: .75; width: clamp(300px, 52vw, 700px); left: clamp(-240px, -16vw, -120px); top: clamp(-150px, -9vw, -70px); }
.hero-blob.b { opacity: .6; width: clamp(220px, 34vw, 460px); right: clamp(-170px, -10vw, -110px); top: 58%; }
.shore { position: absolute; z-index: -1; left: -4%; bottom: -1px; width: 108%; max-width: none; height: var(--shore); }
.shore.s1 { fill: var(--blue-soft); }
.shore.s2 { fill: var(--cream); }
.shore.s3 { fill: var(--paper); }
.hero-inner { position: relative; max-width: 780px; margin: 0 auto; }

.hero-logo {
  display: grid; place-items: center; margin: 0 auto clamp(12px, 3vw, 28px);
  width: clamp(104px, 31vw, 184px); aspect-ratio: 1; border-radius: 50%;
  background: var(--cream); /* the logo file is transparent: the disc is ours */
  box-shadow: 0 0 0 clamp(6px, 1.6vw, 10px) rgba(246, 241, 232, .4), 0 26px 46px -26px rgba(31, 40, 80, .6);
}
.hero-logo img { display: block; width: 76%; height: auto; } /* any wider and the lockup's lower-left corner leaves the circle */
.hero .kicker { justify-content: center; margin-bottom: 8px; text-align: center; }
.hero h1 em { display: inline-block; } /* the two halves of the line break between, never inside */
.hero:not(.page) h1 em { display: block; } /* the motto always reads "Come solo," / "leave with friends.", like the footer and the link-preview card */
.lede { max-width: 34rem; margin: 10px auto 0; line-height: 1.5; text-wrap: balance; }
.doing { margin-top: 6px; font-size: var(--fs-sm); font-weight: 500; line-height: 1.4; color: var(--navy); }
.hero .actions { justify-content: center; margin-top: 16px; }
.hero .actions .btn { flex: 1 1 100%; }
.hero-alt { margin-top: 14px; font-size: var(--fs-sm); }

/* The next-event invitation. The slot holds its height before it is filled. */
.next-slot { max-width: 620px; min-height: 158px; margin: 14px auto 0; }
.next-slot[data-rendered]:empty { min-height: 0; margin-top: 0; }
.next { display: grid; gap: 12px; padding: 14px 16px; background: rgba(255, 255, 255, .9); border-radius: 20px; box-shadow: var(--shadow-md); text-align: left; }
.next-label { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font: 600 .75rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-strong); }
.next-tag { padding: 2px 10px; border-radius: 999px; background: var(--navy); color: #fff; }
.next-title { margin-top: 6px; font-size: 1.25rem; font-weight: 600; line-height: 1.2; letter-spacing: 0; }
.next-meta { display: flex; flex-wrap: wrap; margin-top: 2px; font-size: var(--fs-sm); line-height: 1.4; color: var(--muted-strong); }
.next-meta > :not(:last-child)::after { content: "·"; margin: 0 .4em; }
.next-meta strong { font-weight: 600; color: var(--navy); }
.next-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; }
.next-actions .btn { flex: 1; white-space: nowrap; }

/* With a meetup photo (club.heroPhoto): the photo leads and the logo badge sits on its edge. */
.hero-photo:empty { display: none; }
.hero-photo { height: clamp(112px, 30vw, 240px); border-radius: 22px; overflow: hidden; background: var(--blue-soft); box-shadow: var(--shadow-md); }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-photo:not(:empty) + .hero-logo { position: relative; width: clamp(88px, 24vw, 132px); margin-top: clamp(-66px, -12vw, -44px); }

/* ---------------------------------------------------------- Sections */
.section { padding: clamp(56px, 9vw, 108px) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(24px, 4vw, 44px); }
.section-lede { margin-top: 12px; font-size: var(--fs-lg); color: var(--muted); text-wrap: pretty; }
.band-blue { background: var(--blue-soft); }
.band-cream { background: var(--cream); }

/* ------------------------------------------------------------ Events */
.events { display: grid; gap: 18px; }
.event {
  position: relative; display: grid; align-items: center;
  grid-template-columns: 92px minmax(0, 1fr); column-gap: 18px;
  grid-template-areas: "media meta" "title title" "body body" "buy buy";
  padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
/* Arrived from a shared link (/e/<id> or #<id>). The card also takes focus then, and this ring is its focus style. */
.event:target, .event.is-linked { border-color: var(--navy); box-shadow: 0 0 0 2px var(--navy), var(--shadow-md); }
.event:focus { outline: none; }

/* Flyer thumbnail: always 3:4, always contained, with the date tucked over its corner */
.event-media { grid-area: media; position: relative; align-self: start; }
.event-media picture { display: block; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: var(--blue-soft); }
.event-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.date-chip { position: absolute; left: -8px; bottom: -8px; min-width: 48px; padding: 6px 7px 5px; border-radius: 11px; background: #fff; box-shadow: var(--shadow-sm); text-align: center; color: var(--navy); }
.date-chip-month { display: block; font: 600 .6875rem/1 var(--sans); letter-spacing: .16em; text-indent: .16em; text-transform: uppercase; }
.date-chip-day { display: block; font: 600 1.25rem/1.15 var(--serif); }
.date-chip.is-span .date-chip-day { font-size: .9375rem; line-height: 1.5; white-space: nowrap; }
.event-media.is-plain .date-chip { position: static; display: block; width: 64px; padding: 10px 4px 9px; border-radius: 14px; background: var(--blue-soft); box-shadow: none; }

.event-meta { grid-area: meta; display: grid; gap: 2px; font-size: var(--fs-sm); line-height: 1.4; color: var(--muted); }
.event-day { font-size: var(--fs-base); font-weight: 600; color: var(--navy); }
.event-time { color: var(--ink); }
.event-title { grid-area: title; margin-top: 20px; }
.event-body { grid-area: body; display: grid; gap: 12px; margin-top: 10px; font-size: var(--fs-sm); }
.event-where { display: flex; gap: 8px; color: var(--muted); text-wrap: pretty; }
.event-where .icon { margin-top: 3px; color: var(--navy); }
.event-notes { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.event-notes li { display: flex; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--blue-soft); color: var(--navy-deep); font-weight: 500; line-height: 1.4; text-wrap: balance; }
.event-notes .icon { margin-top: 1.5px; }

.event-buy { grid-area: buy; display: grid; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.event-buy .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.event-buy .hint { margin-top: -2px; text-align: center; }
.event-closed { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px; border: 1.5px dashed var(--blue); border-radius: 12px; background: var(--paper); font: 600 var(--fs-sm)/1.2 var(--sans); color: var(--muted-strong); }
.event-more { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 20px; }
.event-fine { font-size: var(--fs-xs); line-height: 1.5; color: var(--muted); }

/* "Add to calendar": a native <details> that opens a two-link menu */
.cal { position: relative; }
.cal summary { list-style: none; }
.cal summary::-webkit-details-marker { display: none; }
.cal-menu { position: absolute; z-index: 5; left: -8px; top: 100%; display: grid; width: max-content; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md); }
.cal-menu a { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 44px; padding: 0 12px; border-radius: 9px; font-size: var(--fs-sm); font-weight: 500; text-decoration: none; }
.cal-menu a:hover { background: var(--cream); }

.events-foot { margin-top: 8px; color: var(--muted); }
.empty { display: grid; justify-items: start; gap: 8px; padding: clamp(22px, 5vw, 44px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.empty > .icon { width: 44px; height: 44px; margin-bottom: 6px; stroke-width: 2.4; color: var(--navy); }
.empty p { color: var(--muted); }
.empty .btn { margin-top: 12px; padding-inline: 18px; }
/* With nothing to book, the "grab yours early" line would be out of place. */
.section-head:has(+ .events > .empty) .section-lede { display: none; }

/* ---------------------------------------------------------- New here */
.steps { list-style: none; display: grid; gap: 12px; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px minmax(0, 1fr); align-content: start; gap: 16px; padding: 18px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step-icon { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--blue-soft); color: var(--navy); }
.step-icon .icon { width: 36px; height: 36px; }
.step-icon::after { content: counter(step); position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; font: 600 .75rem/22px var(--sans); text-align: center; }
.steps h3 { margin-bottom: 4px; }
.steps p { font-size: var(--fs-sm); line-height: 1.5; color: var(--muted); }

/* A signed note from the host (club.hostNote) */
.host-slot:empty { display: none; }
.host-note { display: grid; gap: 12px; max-width: 720px; margin: 16px 0 0; padding: clamp(22px, 4vw, 34px); background: var(--cream); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.host-note > .icon { width: 30px; height: 30px; stroke-width: 2.6; color: var(--navy); }
.host-note blockquote { margin: 0; font: italic 400 1.375rem/1.35 var(--serif); color: var(--navy); text-wrap: pretty; }
.host-note figcaption { font: 600 var(--fs-xs)/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* --------------------------------------------------- Where we've been */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 18px 0 0; padding: 0; }
.chips li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: 500 var(--fs-sm)/1.2 var(--serif); color: var(--navy); }
.ig { display: grid; gap: 28px; align-items: center; }
.ig-text .kicker { margin-bottom: 8px; color: var(--muted); }
.ig-text h3 { font-size: 1.625rem; font-weight: 400; letter-spacing: -.01em; }
.ig-text p { margin-top: 8px; color: var(--muted); }
.ig-text .btn { padding-inline: 20px; }
/* The shell shows while the embed loads, and stays if a browser blocks it. */
.ig-card { container-type: inline-size; width: 100%; max-width: 540px; justify-self: center; border-radius: var(--radius); overflow: hidden; background: #fff url("/assets/brand/shell.webp") center / 88px no-repeat; box-shadow: var(--shadow-md); }
/* Instagram's header (about 158px) plus two rows of tiles a third of the frame wide */
.ig-card iframe { display: block; width: 100%; height: 520px; height: calc(158px + 100cqw * 2 / 3); border: 0; }

/* -------------------------------------------------------- Membership */
/* The waitlist card shown while membershipDraft is true */
.soon { --focus: #fff; position: relative; isolation: isolate; overflow: hidden; padding: clamp(28px, 5vw, 56px); border-radius: var(--radius-lg); background: var(--navy); color: #e6ecf2; }
.soon h2 { color: #fff; }
.soon .kicker { color: var(--blue-soft); }
.soon-text { max-width: 34rem; margin-top: 12px; font-size: var(--fs-lg); text-wrap: pretty; }
.soon .hint { color: #cfd8e2; }
.soon-perks { max-width: 40rem; margin-top: 18px; color: #fff; }
.soon .checks li::before { border-color: var(--cream); }
.soon-label { margin-top: 24px; font: 600 var(--fs-xs)/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--blue-soft); }
.soon .chips { margin-top: 10px; }
.soon .chips li { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); color: #fff; }
.soon-shell { position: absolute; z-index: -1; right: -90px; bottom: -90px; width: clamp(240px, 34vw, 380px); height: auto; max-width: none; filter: brightness(0) invert(1); opacity: .12; }

/* The tiers, once membershipDraft is false */
.plans { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); max-width: 820px; }
.plan { display: flex; flex-direction: column; padding: 30px 26px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.plan.is-featured { box-shadow: 0 0 0 2px var(--navy), var(--shadow-md); }
.plan .price { margin-top: 10px; font-size: 2.4rem; }
.plan .price small { font-size: var(--fs-base); }
.plan-blurb { margin-top: 2px; color: var(--muted); }
.plan .checks { flex: 1; margin: 22px 0 28px; font-size: var(--fs-sm); }

/* -------------------------------------------------------------- Shop */
.products { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.product { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.product-art { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--blue-soft); }
.product-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-mark { display: grid; place-items: center; width: 42%; aspect-ratio: 1; border-radius: 50%; background: var(--cream); color: var(--navy); }
.product-mark .icon { width: 62%; height: 62%; stroke-width: 2; }
.product-body { display: flex; flex-direction: column; flex: 1; gap: 12px; padding: 20px 22px 24px; }
.product-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.product-head .price { font-size: 1.2rem; }
.product-size { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); color: var(--muted); }
.product-size select { min-height: 44px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; }
.product .btn { margin-top: auto; }

/* --------------------------------------------------------------- FAQ */
.faq { display: grid; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 12px 18px; border-radius: 14px; list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item h3 { font-size: var(--fs-lg); line-height: 1.3; }
.faq-item summary::after { content: ""; flex: none; width: 9px; height: 9px; margin: -4px 5px 0; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); transition: transform .2s; }
.faq-item[open] summary::after { margin-top: 5px; transform: rotate(-135deg); }
.faq-item p { max-width: 62ch; padding: 0 18px 18px; }

/* ------------------------------------------------------------ Collab */
/* The closing band: the hero's blue again, ending in a navy wave into the footer */
.collab { --wave: clamp(36px, 6vw, 80px); position: relative; isolation: isolate; overflow: hidden; padding: clamp(56px, 9vw, 104px) 0 calc(clamp(56px, 9vw, 104px) + var(--wave)); background: var(--blue); text-align: center; }
.collab .hero-blob.a { top: auto; bottom: -30%; left: auto; right: clamp(-240px, -16vw, -120px); }
.collab .kicker, .collab .actions { justify-content: center; }
.collab-text { max-width: 32rem; margin: 12px auto 0; font-size: var(--fs-lg); text-wrap: pretty; }
.collab .hint { color: var(--ink); }
.wave-foot { position: absolute; z-index: -1; left: -4%; bottom: -1px; width: 108%; max-width: none; height: var(--wave); fill: var(--navy); }

/* ------------------------------------------------------------ Footer */
.footer { --focus: #fff; padding: 28px 0 32px; background: var(--navy); color: #dfe6ee; }
.footer-grid { display: grid; gap: 28px; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-logo { flex: none; width: 132px; height: auto; filter: brightness(0) invert(1); } /* navy ink on a transparent file, shown white */
.footer-tag { font: italic 400 1.375rem/1.2 var(--serif); color: #fff; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer h2 { margin-bottom: 6px; font: 600 var(--fs-xs)/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--blue); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer a { display: inline-flex; align-items: center; gap: 10px; min-width: 44px; min-height: 44px; color: #fff; text-decoration: none; line-height: 1.3; }
.footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer a .icon { width: 20px; height: 20px; }
.footer-fine a { display: inline; min-width: 0; min-height: 0; text-decoration: underline; text-underline-offset: 3px; }
.footer-fine { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(219, 229, 234, .2); font-size: var(--fs-xs); color: #b3bdcb; }

/* ------------------------------------------------------------- Toast */
.toast { --focus: #fff; position: fixed; z-index: 20; left: 16px; right: 16px; bottom: 22px; width: fit-content; max-width: 460px; margin: 0 auto; padding: 14px 22px; border-radius: 12px; background: var(--navy-deep); color: #fff; font-size: var(--fs-sm); text-align: center; overflow-wrap: anywhere; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.toast:empty { opacity: 0; pointer-events: none; }
.toast a { color: #fff; }

/* -------------------------------------------------- Stand-alone pages */
/* thanks.html and 404.html fill the screen; svh, because in-app browsers misreport vh, and capped for tall windows */
.hero.page { display: grid; place-items: center; min-height: min(100vh, 860px); min-height: min(100svh, 860px); }
.hero.page .hero-logo { width: clamp(132px, 34vw, 184px); margin-bottom: clamp(20px, 3vw, 28px); }
.hero.page .actions { margin-top: 24px; }

/* ------------------------------------------------------ Screen sizes */
/* Small phones: a little less of everything so the hero's lines still fit */
@media (max-width: 359.98px) {
  :root { --gutter: 16px; }
  .hero .kicker { font-size: .75rem; letter-spacing: .14em; }
  .doing, .next-meta { font-size: var(--fs-xs); }
  .next-slot { min-height: 200px; }
}
/* Most phones: the "Next up" day, time, town and price keep to one line */
@media (max-width: 389.98px) {
  .next-meta { font-size: var(--fs-xs); }
}
@media (min-width: 560px) {
  .hero .actions .btn { flex: 0 1 auto; }
  .next { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 22px; padding: 16px 16px 16px 22px; }
  .next-slot { min-height: 104px; }
  .next-actions { flex-direction: column; align-items: stretch; gap: 0; padding-left: 22px; border-left: 1px dashed var(--blue); }
  .next-actions .link-btn { justify-content: center; }
}
@media (min-width: 760px) {
  .lede { font-size: var(--fs-lg); margin-top: 18px; }
  .doing { margin-top: 8px; font-size: var(--fs-base); }
  .hero .kicker { margin-bottom: 14px; }
  .hero .actions { margin-top: 26px; }
  .next-slot { margin-top: 22px; }
  .hero-alt { margin-top: 18px; }

  .events { gap: 22px; }
  .event { grid-template-columns: 168px minmax(0, 1fr); column-gap: 28px; align-items: start; grid-template-areas: "media meta" "media title" "media body" "media buy"; grid-template-rows: auto auto auto 1fr; padding: 26px 28px; }
  .date-chip { left: -10px; bottom: -10px; min-width: 56px; padding: 7px 8px 6px; }
  .date-chip-day { font-size: 1.45rem; }
  .date-chip.is-span .date-chip-day { font-size: 1.0625rem; }
  .event-meta { display: flex; flex-wrap: wrap; }
  .event-meta > :not(:last-child)::after { content: "·"; margin: 0 .5em; font-weight: 400; color: var(--muted); }
  .event-day { font-size: inherit; }
  .event-title { margin-top: 6px; font-size: 1.5rem; }
  .event-buy { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 20px; }
  .event-buy > * { grid-column: 1 / -1; }
  .event-buy .price { grid-column: 1; }
  .event-buy .price + .btn, .event-buy .price + .event-closed { grid-column: 2; min-width: 220px; }
  .event-buy .hint { text-align: right; }
  .event-more { justify-content: flex-start; }

  .steps { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .steps li { grid-template-columns: 1fr; padding: 26px 22px; }
  .steps li:nth-child(2) { --i: 1; }
  .steps li:nth-child(3) { --i: 2; }

  .ig { grid-template-columns: 1fr minmax(0, 540px); gap: 56px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
}
@media (min-width: 1000px) {
  .event { grid-template-columns: 168px minmax(0, 1fr) 260px; grid-template-areas: "media meta buy" "media title buy" "media body buy"; grid-template-rows: auto auto 1fr; }
  .event-buy { grid-template-columns: 1fr; align-self: stretch; align-content: center; margin-top: 0; padding: 0 0 0 28px; border-top: 0; border-left: 1px solid var(--line); }
  .event-buy .price, .event-buy .price + .btn, .event-buy .price + .event-closed { grid-column: 1; min-width: 0; }
  .event-buy .price { display: grid; gap: 4px; justify-items: center; text-align: center; }
  .event-buy .hint { text-align: center; }
  .event-more { justify-content: center; column-gap: 16px; }
  .event-fine { text-align: center; }

  /* With a meetup photo: copy on the left, the photo standing on the right */
  .hero-inner:has(> .hero-photo:not(:empty)) { max-width: 1036px; min-height: 560px; padding-right: 496px; text-align: left; }
  .hero-inner:has(> .hero-photo:not(:empty)) :is(.kicker, .actions) { justify-content: flex-start; }
  .hero-inner:has(> .hero-photo:not(:empty)) :is(.lede, .next-slot) { margin-left: 0; }
  .hero-photo:not(:empty) { position: absolute; right: 0; top: 0; bottom: 0; width: 440px; height: auto; max-height: 560px; margin: auto 0; border-radius: var(--radius-lg); }
  .hero-photo:not(:empty) + .hero-logo { width: 132px; margin: 0 0 22px; }
}

/* ------------------------------------------------------------ Motion */
/* Only for people who have not asked for less of it */
@media (prefers-reduced-motion: no-preference) {
  /* Glide to a section when a link on the page is followed (app.js sets the class for that
     moment), but jump straight there on arrival and for find-in-page. */
  html.is-gliding { scroll-behavior: smooth; }

  /* Entrance, once: the logo settles in, then the copy follows. */
  .hero-logo, .hero-photo { animation: settle .8s cubic-bezier(.2, .7, .2, 1) backwards; }
  .hero-inner > :not(.hero-logo, .hero-photo) { animation: rise .6s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(80ms + var(--n, 0) * 50ms); }
  .hero-inner > h1 { --n: 1; }
  .hero-inner > .lede { --n: 2; }
  .hero-inner > .doing { --n: 3; }
  .hero-inner > .actions { --n: 4; }
  .hero-inner > .next-slot { --n: 5; }
  .hero-inner > .hero-alt { --n: 6; }
  @keyframes settle { from { opacity: 0; transform: scale(.94); } }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } }

  /* Ambient: the two back shoreline layers drift a few pixels, like a slow tide. */
  .shore.s1 { animation: tide 16s ease-in-out infinite alternate; }
  .shore.s2 { animation: tide 21s ease-in-out infinite alternate-reverse; }
  @keyframes tide { to { transform: translateX(-2.5%); } }

  /* Reveal on scroll: app.js marks what is still below the screen, then lets it rise in. */
  .reveal { transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
  .reveal.is-waiting { opacity: 0; transform: translateY(14px); transition: none; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .menu-icon::before, .menu-icon::after, .faq-item summary::after { transition: none; }
}
