:root {
  --sea: #0E3640;
  --sea-deep: #0A2A32;
  --kelp: #1F4D3F;
  --contour: #2E6352;
  --foam: #9FC4BC;
  --fog: #EDF2F0;
  --mist: #DCE6E2;
  --ink: #0C2A30;
  --ink-soft: #3D5A5F;
  --orange: #F7931A;
  --orange-light: #FFA733;
  --orange-dark: #B85F00;

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;

  --measure: 38rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --wide: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--fog);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.1;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); font-weight: 800; letter-spacing: -0.03em; font-variation-settings: "opsz" 96; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 1.375rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: var(--measure); }

a { color: var(--ink); text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--orange-dark); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--orange); color: var(--ink); padding: 0.5rem 1rem; z-index: 10;
}
.skip:focus { top: 1rem; }

/* Buttons */
.button {
  display: inline-block;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 2px solid var(--orange);
}
.button:hover { background: var(--orange-light); border-color: var(--orange-light); color: var(--ink); }
.button-quiet { background: transparent; color: var(--fog); border-color: var(--foam); }
.button-quiet:hover { background: rgba(159, 196, 188, 0.15); border-color: var(--fog); color: var(--fog); }
.button-outline { background: transparent; border-color: var(--ink); }
.button-outline:hover { background: var(--ink); border-color: var(--ink); color: var(--fog); }
.button-dark { background: var(--ink); border-color: var(--ink); color: var(--fog); }
.button-dark:hover { background: var(--sea); border-color: var(--sea); color: var(--fog); }

/* Header */
.site-header {
  background: var(--sea);
  color: var(--fog);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding: 1rem var(--gutter);
}
.brand {
  display: flex; align-items: center; gap: 0.7rem;
  color: var(--fog); text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 1.1875rem;
}
.brand:hover { color: var(--fog); }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.5rem; }
.site-header nav a { color: var(--fog); text-decoration: none; font-size: 1rem; padding: 0.25rem 0; }
.site-header nav a:hover { color: var(--orange); }
.site-header nav a[aria-current="page"] { box-shadow: inset 0 -3px var(--orange); }
.site-header nav .nav-join {
  border: 2px solid var(--orange); border-radius: 999px; padding: 0.3rem 1rem;
}
.site-header nav .nav-join[aria-current="page"] { box-shadow: none; background: var(--orange); color: var(--ink); }

.lede { font-size: 1.25rem; color: #CFE0DB; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.map { margin: 0; }
.map svg { display: block; width: 100%; height: auto; border-radius: 20px; }
.map figcaption { font-size: 0.9375rem; color: var(--foam); margin-top: 0.75rem; }
.map .sea { fill: var(--sea-deep); }
.map .land { fill: var(--kelp); }
.map .contours path { stroke: var(--contour); stroke-width: 1.5; }
.map .coast { fill: none; stroke: var(--foam); stroke-width: 2.5; stroke-linecap: round; }
.map .water-label { fill: var(--foam); opacity: 0.6; font-family: var(--display); font-style: italic; font-size: 20px; letter-spacing: 0.08em; }
.map .peak-label { fill: var(--foam); opacity: 0.7; font-family: var(--body); font-size: 14px; }
.map .towns circle { fill: var(--orange); stroke: var(--sea-deep); stroke-width: 3; }
.map .towns text { fill: var(--fog); font-family: var(--display); font-weight: 700; font-size: 18px; paint-order: stroke; stroke: var(--sea-deep); stroke-width: 4px; stroke-linejoin: round; }
.map .villages circle { fill: var(--foam); stroke: var(--sea-deep); stroke-width: 2; }
.map .villages text { fill: var(--foam); font-family: var(--display); font-weight: 500; font-size: 14px; paint-order: stroke; stroke: var(--sea-deep); stroke-width: 3px; stroke-linejoin: round; }
.map .island-label, .map .edge-label { fill: var(--foam); font-family: var(--display); font-size: 14px; }
.map .island-label { font-style: italic; opacity: 0.85; }

/* The pins drop in once, in order up the coast */
@media (prefers-reduced-motion: no-preference) {
  .map .towns > g { animation: pin 500ms cubic-bezier(.2, .9, .3, 1.3) both; }
  .map .towns > g:nth-child(7) { animation-delay: 300ms; }
  .map .towns > g:nth-child(6) { animation-delay: 420ms; }
  .map .towns > g:nth-child(5) { animation-delay: 540ms; }
  .map .towns > g:nth-child(4) { animation-delay: 660ms; }
  .map .towns > g:nth-child(3) { animation-delay: 780ms; }
  .map .towns > g:nth-child(2) { animation-delay: 900ms; }
  .map .towns > g:nth-child(1) { animation-delay: 1020ms; }
  .map .villages > g { animation: pin 500ms cubic-bezier(.2, .9, .3, 1.3) 1200ms both; }
  @keyframes pin { from { opacity: 0; translate: 0 -14px; } }
}

/* Inner page heading band */
.page-head {
  background: var(--sea);
  color: var(--fog);
  padding: clamp(2rem, 6vw, 4.5rem) var(--gutter);
  background-image:
    radial-gradient(circle at 100% 120%, transparent 0 9rem, rgba(159, 196, 188, .12) 9rem 9.1rem, transparent 9.1rem 12rem, rgba(159, 196, 188, .1) 12rem 12.1rem, transparent 12.1rem 15rem, rgba(159, 196, 188, .08) 15rem 15.1rem, transparent 15.1rem);
}
.page-head { display: grid; grid-template-columns: minmax(0, var(--wide)); justify-content: center; }
.page-head h1 { margin-bottom: 0.4em; }
.page-head .lede { margin-bottom: 0; }

/* Sections */
main > section:not(.splash, .page-head) {
  --inline: max(var(--gutter), (100% - var(--wide)) / 2);
  padding: clamp(3rem, 7vw, 5rem) var(--inline);
}
.aside { font-size: 0.9375rem; color: var(--ink-soft); font-style: italic; }
.empty { color: var(--ink-soft); list-style: none; }

.split-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; }
.split-head h2 { margin: 0; }

/* What we do */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2rem 2.5rem;
  margin-top: 2rem;
  margin-bottom: 0;
}
.pillars > div { border-top: 4px solid var(--orange); padding-top: 1rem; }
.pillars dt { font-family: var(--display); font-weight: 700; font-size: 1.375rem; margin-bottom: 0.5rem; }
.pillars dt a { text-decoration: none; }
.pillars dt a:hover { text-decoration: underline; text-decoration-color: var(--orange); }
.pillars dd { margin: 0; color: var(--ink-soft); }

.learn { padding-bottom: 0 !important; }

/* Events */
.meetups, .past, .perks, .custody, .founding, .faq { background: var(--mist); }
.events { list-style: none; padding: 0; margin-top: 2rem; margin-bottom: 1.5rem; display: grid; gap: 1.25rem; }
.event {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 1.5rem;
  background: var(--fog);
  border-radius: 16px;
  padding: 1.5rem;
}
.past .event { background: transparent; border: 2px solid var(--fog); }
.past .event-date { background: var(--ink-soft); }
.event-date {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--sea); color: var(--fog);
  border-radius: 12px; aspect-ratio: 1; align-self: start;
  font-family: var(--display);
}
.event-date .month { font-size: 1rem; color: var(--orange); font-weight: 700; }
.event-date .day { font-size: 2.25rem; font-weight: 800; line-height: 1; }
.event-date-tbd .day { font-size: 1.5rem; }
.event-body h3 { margin-bottom: 0.25rem; }
.event-where { color: var(--ink-soft); font-weight: 700; margin-bottom: 0.5rem; }
.event-body p:last-child { margin-bottom: 0; }

/* Home join band */
.join-band { background: var(--orange); }
.join-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.join-band h2 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
.join-band p { font-size: 1.1875rem; margin-bottom: 0; }

/* Merchants */
.faq-list { max-width: 48rem; margin-top: 1.5rem; display: grid; gap: 0.75rem; }
.faq details { background: var(--fog); border-radius: 14px; padding: 0 1.25rem; }
.faq summary {
  font-family: var(--display); font-weight: 700; font-size: 1.1875rem;
  padding: 1rem 2rem 1rem 0; cursor: pointer; list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0.25rem; top: 50%;
  width: 0.6rem; height: 0.6rem; margin-top: -0.45rem;
  border: solid var(--orange-dark); border-width: 0 3px 3px 0;
  transform: rotate(45deg); transition: transform 150ms;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -0.1rem; }
.faq details p { padding-bottom: 1rem; margin: 0; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

.merchants { background: var(--kelp); color: var(--fog); }
.merchants a:not(.button) { color: var(--fog); }
.merchants-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem var(--gutter);
  align-items: start;
}
.merchant-pitch {
  background: var(--sea);
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.merchant-pitch h3 { font-size: 1.75rem; }

.checks { padding: 0; list-style: none; margin: 0 0 1.25rem; }
.checks li { padding-left: 1.75rem; position: relative; margin-bottom: 0.35rem; }
.checks li::before {
  content: ""; position: absolute; left: 0.2rem; top: 0.3em;
  width: 0.55rem; height: 0.9rem;
  border: solid var(--orange); border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.perks .checks li::before, .founding .checks li::before { border-color: var(--orange-dark); }
.checks-large li { font-size: 1.25rem; margin-bottom: 0.6rem; padding-left: 2rem; }

/* Steps (a real sequence) */
.steps {
  list-style: none; counter-reset: step;
  padding: 0; margin-top: 1rem; margin-bottom: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem;
}
.steps-wide { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.steps li { counter-increment: step; position: relative; padding-top: 3.75rem; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--orange); color: var(--ink);
  font-family: var(--display); font-weight: 800; font-size: 1.375rem;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 1.375rem; left: 3.5rem; right: -1.25rem;
  border-top: 2px dotted var(--ink-soft);
}
.steps p { color: var(--ink-soft); }

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem var(--gutter);
  margin-top: 1.5rem;
}

/* Footer */
.site-footer {
  background: var(--sea-deep);
  color: var(--foam);
  padding: 2.5rem var(--gutter);
  font-size: 0.9375rem;
}
.footer-inner { max-width: var(--wide); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.footer-inner p { margin: 0; }
.site-footer a { color: var(--fog); }

@media (max-width: 52rem) {
  .where-inner, .merchants-inner { grid-template-columns: minmax(0, 1fr); }
  .steps li:not(:last-child)::after { display: none; }
}
@media (max-width: 30rem) {
  .event { grid-template-columns: 4rem minmax(0, 1fr); gap: 1rem; padding: 1.25rem; }
  .event-date .day { font-size: 1.75rem; }
  .event-date-tbd .day { font-size: 1.25rem; }
  .brand span { font-size: 1.0625rem; }
}

/* Credits */
.credit-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.credit-list li { display: flex; gap: 1.25rem; align-items: center; }
.credit-list img { width: 160px; height: 107px; object-fit: cover; border-radius: 10px; flex: none; }
.credit-list p { margin: 0; font-size: 1rem; }
@media (max-width: 30rem) {
  .credit-list li { flex-direction: column; align-items: flex-start; }
}

/* Splash: full-bleed photo at the top of each page, header floats over it */
body.has-splash .site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  background: linear-gradient(rgba(10, 42, 50, .8), rgba(10, 42, 50, 0));
  padding-bottom: 2.5rem;
}
.splash {
  position: relative;
  min-height: min(75svh, 48rem);
  display: grid;
  align-content: end;
  padding: 8rem var(--gutter) clamp(3rem, 7vw, 5rem);
  color: var(--fog);
  background:
    linear-gradient(to top, rgba(10, 42, 50, .94) 0%, rgba(10, 42, 50, .6) 40%, rgba(10, 42, 50, .1) 75%, rgba(10, 42, 50, .4) 100%),
    var(--photo) center / cover,
    var(--sea);
}
.splash-home { min-height: 100svh; }
.splash-inner { width: 100%; max-width: var(--wide); margin: 0 auto; }
.splash h1 { max-width: 15ch; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.splash .lede { color: #E3EEEA; max-width: 36rem; }
.photo-credit {
  position: absolute; right: var(--gutter); bottom: 0.75rem; margin: 0;
  font-size: 0.8125rem; color: rgba(237, 242, 240, .7);
}

/* Photo bands: sections set over a full-bleed photo */
main > section.photo-band {
  color: var(--fog);
  background:
    linear-gradient(rgba(10, 42, 50, .5), rgba(10, 42, 50, .82)),
    var(--photo) center / cover,
    var(--sea);
  padding-top: clamp(5rem, 12vw, 9rem);
  padding-bottom: clamp(5rem, 12vw, 9rem);
}
.photo-band h2 { text-shadow: 0 2px 24px rgba(0, 0, 0, .3); }
.photo-band a:not(.button) { color: var(--fog); }
.photo-band .aside { color: #D5E4DF; }
.photo-band .event { color: var(--ink); background: rgba(237, 242, 240, .96); }
.photo-band .event a { color: var(--ink); }
.photo-band p { font-size: 1.1875rem; }

/* Home: where we are */
.where { background: var(--sea); color: var(--fog); }
.where-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 2rem var(--gutter);
}
.where p { color: #CFE0DB; }
@media (max-width: 52rem) {
  .where-inner { grid-template-columns: minmax(0, 1fr); }
}
