@font-face {
  font-family: 'Chewy';
  src: url('/assets/fonts/chewy.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/assets/fonts/dmsans-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/assets/fonts/dmsans-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/assets/fonts/dmsans-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --green: #0b4a2e;
  --green-dark: #083a24;
  --ink: #1c2b23;
  --muted: #5a6b61;
  --line: #dce5de;
  --paper: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  /* Sticky-footer column: main grows, so the footer rests at
     the bottom of the screen on short pages (see main below).
     100vh is the fallback; 100dvh wins where supported. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 18px;
}

/* Links, global (app8): the brand green everywhere — no
   browser-default blue on any page. Header nav, footer,
   buttons and the brand keep their own quieter treatments. */
a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }

/* Header — one 1080px frame with everything below it.
   Desktop: one row (brand left; Groups, Safety, Sign in at a
   uniform gap; Join last). Phone: two deliberate rows — brand
   + Join on row 1 (56px), the text links spread evenly across
   a hairline row 2 (44px tap targets). The Join button is
   rendered into #join-slot by common.js; on phone it is
   lifted to the top-right of row 1. */
.site-head {
  display: flex;
  align-items: center;
  flex: none;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img { border-radius: 8px; }

.brand-name {
  font-family: 'Chewy', cursive;
  font-size: 28px;
  color: var(--green);
  letter-spacing: 0.5px;
}

.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 4px;
}

.site-nav a:hover { color: var(--green); }

.site-nav .nav-join { color: var(--green); font-weight: 700; }

.site-nav a[aria-current="page"] {
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
}

#account-slot { display: flex; align-items: center; gap: 28px; }

.site-nav .nav-join-btn { color: #fff; }
.site-nav .nav-join-btn:hover { color: #fff; }

/* The current page never offers its own action: on the
   sign-in page the header drops its "Sign in" link. */
.page-signin #account-slot .nav-join { display: none; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 30;
  background: var(--green);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

/* The frame: header, main and footer share one 1080px axis.
   Content sections live in a 720px reading column aligned to
   the frame's left edge. Body is a full-height flex column
   (see body above) and main grows to fill it (flex: 1 0 auto),
   so on short pages the footer rests at the bottom of the
   screen with clean whitespace above it; on long pages it
   simply follows the content. Header and footer hold their
   natural height (flex: none). The width: 100% on all three
   frame elements keeps the 1080px axis intact now that they
   are flex items — auto margins alone would shrink a flex
   item to fit its content. */
main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  text-align: center;
  padding: 48px 0;
}

h1 {
  font-family: 'Chewy', cursive;
  color: var(--green);
  font-weight: 400;
  line-height: 1.15;
  font-size: 40px;
  margin: 32px 0 16px;
}

.hero h1 {
  font-size: clamp(34px, 9vw, 64px);
  line-height: 1.08;
  margin: 24px 0 16px;
}

h2 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.25;
  color: var(--green);
  margin: 0 0 12px;
}

h3 { font-size: 20px; font-weight: 700; margin: 0 0 12px; color: var(--green-dark); }

.card.outing-card { text-align: left; max-width: 560px; margin: 24px auto 0; }
.outing-card h2 { font-size: 20px; margin: 0 0 8px; color: var(--green-dark); }
.outing-card .outing-when { font-weight: 700; color: var(--green-dark); font-size: 20px; }

/* The five claims as separate items in a wrap row — the
   middots are spacing now, not punctuation. The strip keeps
   its top hairline only; the next section's hairline is its
   bottom edge, so no double lines ever print. */
.proof-strip {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

/* The founder note is the one section that wears the card
   pattern — it reads as a note, not a seventh plain section. */
.section.founder-note {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 48px;
}
.section.founder-note + .section { border-top: 0; padding-top: 0; }

.hero-sub {
  font-size: 18px;
  color: var(--ink);
  max-width: 560px;
  margin: 0 auto 24px;
}

.hero-note { color: var(--muted); margin-top: 16px; }

/* The hero's own button: full width of the 560px hero column,
   on the same centred axis as the outing card, 12px below it.
   (The card's own button is a .card > .button — see app.css.) */
.hero > .button {
  display: flex;
  width: 100%;
  max-width: 560px;
  margin: 12px auto 0;
}

.section {
  max-width: 720px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

/* The first section on a page needs no hairline and no top
   padding — this rule replaces the old inline
   style="border-top:0" pasted onto individual pages. */
.section:first-of-type { border-top: 0; padding-top: 0; }

.section p { margin: 0 0 16px; }

/* One tinted band on the landing (app8.1): "Who can come"
   wears a pale wash of the brand green, full-bleed across
   the frame, so the long run of white sections has a rest
   in it. The text keeps the same left edge and measure as
   every other section. */
.section.tint {
  background: #eef5f0;
  border-top: 0;
  max-width: none;
  margin-left: -24px;
  margin-right: -24px;
  padding-left: 24px;
  padding-right: 24px;
}
.section.tint > * { max-width: 720px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step p { color: var(--ink); margin: 0; }

.join { text-align: center; }
.join p { max-width: 560px; margin-left: auto; margin-right: auto; }
.join .button { display: flex; width: 100%; max-width: 560px; margin-left: auto; margin-right: auto; }
.join-note { color: var(--muted); font-size: 15px; margin-top: 16px; }

/* FAQ is a reference page, not a landing page: tight section
   rhythm (one answer's end to the next question is 32px on
   phone) and questions at H3 size under the page title. */
.faq .section { padding-top: 16px; padding-bottom: 16px; }
.faq .section:first-of-type { padding-top: 0; }
.faq .section h2 { font-size: 20px; }
.faq .section p { margin-bottom: 0; }

.site-foot {
  flex: none;
  width: 100%;
  border-top: 1px solid var(--line);
  padding: 32px 24px;
  color: var(--muted);
  max-width: 1080px;
  margin: 0 auto;
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 24px;
}

.foot-col h3 { font-size: 15px; margin: 0 0 8px; }
.foot-col a { display: block; color: var(--muted); text-decoration: none; padding: 8px 0; }
.foot-col a:hover { color: var(--green); }

.site-foot p { margin: 4px 0; }
.foot-small { font-size: 15px; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  h1 { font-size: 32px; margin: 24px 0 16px; }
  h2 { font-size: 24px; }
  h3 { font-size: 19px; }
  .outing-card h2 { font-size: 19px; }
  .outing-card .outing-when { font-size: 19px; }
  .faq .section h2 { font-size: 19px; }
  .hero { padding: 32px 0; }
  .hero-sub { font-size: 17px; }
  main { padding: 0 20px; }
  .section { padding: 32px 0; }
  .section:first-of-type { padding-top: 0; }
  .section.tint { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
  .section.founder-note { padding: 20px; margin-bottom: 32px; }
  .steps { grid-template-columns: 1fr; }
  .proof-strip { flex-direction: column; align-items: center; gap: 8px; }
  .site-foot { padding: 32px 20px; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 24px 16px; }

  /* Phone header: two deliberate rows. */
  .site-head {
    flex-direction: column;
    align-items: stretch;
    padding: 0 20px;
    position: relative;
  }
  .brand { height: 56px; }
  .brand img { width: 36px; height: 36px; }
  .brand-name { font-size: 24px; }
  .site-nav {
    margin-left: 0;
    gap: 0;
    height: 44px;
    border-top: 1px solid var(--line);
    align-items: stretch;
  }
  #account-slot { display: contents; }
  .site-nav > a, #account-slot > a {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  #join-slot { position: absolute; top: 6px; right: 20px; }
}
