/* drivesailfly.com — single consolidated stylesheet.
   Tokens: spacing on a 4/8px scale, 5-step type scale, one radius. */
:root {
  --navy: #0b1a33; --red: #d5001c; --sky: #4aa8de; --teal: #17907f; --sun: #f2b36d;
  --drive: var(--red); --sail: var(--teal); --fly: var(--sky);
  --bg: #f5f6f8; --surface: #fff; --surface-2: #eef1f5; --text: #0e1726; --muted: #5a6476; --line: #e1e5eb;
  --shadow: 0 1px 2px rgba(11,26,51,.05), 0 6px 20px -10px rgba(11,26,51,.18);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --t1: .75rem; --t2: .875rem; --t3: 1rem; --t4: 1.25rem; --t5: 1.75rem;
  --radius: 12px; --wrap: 1200px; --gap: 24px; --tag-h: 24px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #070f1e; --surface: #0d192d; --surface-2: #13233d; --text: #e9eef6; --muted: #98a5b9; --line: #1e2f4c; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px -14px rgba(0,0,0,.6); color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #070f1e; --surface: #0d192d; --surface-2: #13233d; --text: #e9eef6; --muted: #98a5b9; --line: #1e2f4c; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px -14px rgba(0,0,0,.6); color-scheme: dark; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 var(--t3)/1.6 var(--font); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
h1 { font: 600 clamp(2.5rem, 5.5vw, 4rem)/1.05 var(--display); }
h2 { font-size: var(--t5); line-height: 1.2; font-weight: 700; }
h3 { font-size: var(--t4); line-height: 1.3; font-weight: 650; }
p { margin: 0 0 var(--s4); }
code { font: .9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(var(--s4), 4vw, var(--s6)); }
.muted { color: var(--muted); }
.small { font-size: var(--t2); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--s3); top: var(--s3); z-index: 99; background: var(--surface); padding: var(--s2) var(--s3); border-radius: var(--radius); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
.eyebrow { margin: 0 0 var(--s3); font-size: var(--t1); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.lede { font-size: var(--t4); line-height: 1.5; color: var(--muted); max-width: 52ch; margin: var(--s4) 0 0; }
.section-intro { color: var(--muted); max-width: 72ch; margin: 0 0 var(--s5); }
.notice { margin: 0 0 var(--s5); padding: var(--s3) var(--s4); font-size: var(--t2); border: 1px dashed color-mix(in srgb, var(--sun) 70%, var(--line)); background: color-mix(in srgb, var(--sun) 10%, var(--surface)); border-radius: var(--radius); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.home .site-header { background: rgba(8,18,36,.55); border-color: rgba(255,255,255,.08); color: #fff; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: var(--s3); text-decoration: none; }
.brand-mark { display: grid; gap: 3px; width: 22px; }
.brand-mark i { height: 3px; border-radius: 2px; background: var(--red); }
.brand-mark i:nth-child(2) { background: currentColor; } .brand-mark i:nth-child(3) { background: var(--sky); }
.brand-text { font-size: var(--t2); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.brand-text b { color: var(--red); margin: 0 var(--s1); }
.nav-links { display: flex; align-items: center; gap: var(--s1); }
.nav-links a { text-decoration: none; font-size: var(--t2); font-weight: 550; padding: var(--s2) var(--s3); border-radius: 999px; opacity: .8; transition: opacity .15s, background .15s; }
.nav-links a:hover { opacity: 1; background: color-mix(in srgb, currentColor 8%, transparent); }
.nav-links a[aria-current="page"] { opacity: 1; background: color-mix(in srgb, currentColor 8%, transparent); }
.nav-links a.nav-cta { background: var(--red); color: #fff; opacity: 1; padding: var(--s2) var(--s4); font-weight: 650; margin-left: var(--s2); }
.theme-btn, .menu-btn { background: none; border: 0; color: inherit; cursor: pointer; padding: var(--s2); border-radius: 999px; }
.theme-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; width: 40px; height: 40px; position: relative; }
.menu-btn span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform .2s; }
.menu-btn span:first-child { top: 15px; } .menu-btn span:last-child { top: 23px; }
.nav-open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-open .menu-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: var(--s3) var(--s4) var(--s5); background: var(--surface); color: var(--text); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-open .nav-links { display: flex; }
  .nav-links a { padding: var(--s3); }
  .nav-links a.nav-cta { margin: var(--s2) 0 0; text-align: center; }
  .theme-btn { align-self: flex-start; margin-top: var(--s2); }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); height: 44px; padding: 0 var(--s5); border-radius: 999px; font-size: var(--t2); font-weight: 650; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s, background .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px -10px rgba(213,0,28,.7); }
.btn-ghost { border: 1px solid rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-quiet { height: 36px; padding: 0 var(--s4); background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.btn-quiet:hover { border-color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.more { color: var(--red); font-size: var(--t2); font-weight: 650; text-decoration: none; white-space: nowrap; }
.more:hover { text-decoration: underline; }

/* ---------- hero ---------- */
.hero { position: relative; margin-top: -65px; min-height: min(88vh, 720px); display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--navy); }
.hero-bg, .hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,18,36,.92) 0%, rgba(8,18,36,.55) 50%, rgba(8,18,36,.1) 100%), linear-gradient(0deg, rgba(8,18,36,.5), transparent 40%); }
.hero-bg::before { content: ""; position: absolute; inset: 0; z-index: 1; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(90deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%); }
.hero-inner { position: relative; z-index: 2; padding-top: 128px; padding-bottom: var(--s9); width: 100%; }
.hero .eyebrow { color: var(--sun); }
.hero h1 { font-size: clamp(3.5rem, 9vw, 7rem); line-height: .9; letter-spacing: -.04em; }
.hero h1 span { color: var(--sky); font-style: italic; }
.hero .lede { color: rgba(255,255,255,.8); margin-top: var(--s5); }
.hero .lede strong { color: #fff; display: block; font-size: var(--t5); font-family: var(--display); font-weight: 600; letter-spacing: -.01em; margin-bottom: var(--s2); }

/* ---------- sections & page heads ---------- */
.section { padding-top: var(--s9); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); margin: 0 0 var(--s5); }
.page-head { padding-top: var(--s8); padding-bottom: var(--s6); }
.community h2 { font: 600 clamp(2rem, 3.6vw, 2.75rem)/1.1 var(--display); }
.community .lede { margin-bottom: var(--s6); max-width: 64ch; }
.cta-band { text-align: center; padding-bottom: var(--s4); }
.cta-band h2 { font: 600 clamp(2rem, 3.6vw, 2.75rem)/1.1 var(--display); margin-bottom: var(--s3); }
.cta-band p { margin-bottom: var(--s5); }
.intl-strip { margin: 0; padding: var(--s4) var(--s5); border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); font-size: var(--t2); }
.intl-strip a { color: var(--red); }
.addr-ladder { margin: var(--s5) 0 0; font-size: var(--t2); color: var(--muted); }

/* ---------- 12-col grid & card grids ---------- */
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.group-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: stretch; }
.group-grid > * { grid-column: span 3; }
.group-grid:has(> :nth-child(3):last-child) > *, .ideas-grid > * { grid-column: span 4; }
@media (max-width: 1100px) { .group-grid > *, .group-grid:has(> :nth-child(3):last-child) > *, .ideas-grid > * { grid-column: span 6; } }
@media (max-width: 680px) { .group-grid > *, .group-grid:has(> :nth-child(3):last-child) > *, .ideas-grid > * { grid-column: 1 / -1; } }
.can-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s5) var(--gap); }
.can-grid > * { grid-column: span 4; }
@media (max-width: 1000px) { .can-grid > * { grid-column: span 6; } }
@media (max-width: 600px) { .can-grid > * { grid-column: 1 / -1; } }
.can { padding-left: var(--s4); border-left: 2px solid var(--red); }
.can strong { display: flex; align-items: center; gap: var(--s2); font-size: var(--t3); }
.can p { margin: var(--s1) 0 0; font-size: var(--t2); }

/* ---------- card ---------- */
.card { --c: var(--line); position: relative; display: flex; flex-direction: column; min-width: 0; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); box-shadow: var(--shadow); }
.group-card, .idea-card { border-top: 3px solid var(--c); }
.card-link { text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card-link:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(11,26,51,.06), 0 16px 32px -16px rgba(11,26,51,.3); }
.card-link:hover .card-title { color: var(--red); }
.tag-row { display: flex; align-items: center; flex-wrap: nowrap; gap: var(--s2); height: var(--tag-h); overflow: hidden; }
.card-title { margin-top: var(--s4); font: 600 1.375rem/1.25 var(--display); letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(2 * 1.25 * 1.375rem); }
.where { margin: var(--s1) 0 0; font-size: var(--t2); font-weight: 600; color: var(--muted); line-height: 1.45; min-height: calc(2 * 1.45 * var(--t2)); }
.card-text { margin: var(--s3) 0 0; font-size: var(--t2); line-height: 1.55; }
.card-meta { margin-top: auto; padding-top: var(--s4); font-size: var(--t2); font-weight: 650; color: var(--c); }
.card-foot { margin-top: auto; padding-top: var(--s5); }
.group-card .card-text { margin-bottom: 0; }
/* subgrid: align rows across cards in the same grid row */
@supports (grid-template-rows: subgrid) {
  .group-grid { grid-auto-rows: auto; }
  .group-card { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
  .idea-card { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; }
  .idea-card--sm { grid-row: span 5; }
  .group-card .card-title, .idea-card .card-title { min-height: 0; align-self: start; }
  .group-card .where, .idea-card .where { min-height: 0; }
  .card-meta { align-self: start; } .card-foot { align-self: end; }
}

/* ---------- tags: one pill component ---------- */
.badge, .sample-tag, .privacy, .open-tag { display: inline-flex; align-items: center; gap: 6px; height: var(--tag-h); padding: 0 10px; border-radius: 999px; flex: none; white-space: nowrap; font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; line-height: 1; }
.badge { --c: var(--text); color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.badge svg { width: 14px; height: 14px; flex: none; }
.badge-drive { --c: var(--drive); } .badge-sail { --c: var(--sail); } .badge-fly { --c: var(--fly); }
.badge-mixed { color: var(--text); background: var(--surface-2); }
.badge-mixed i { display: inline-flex; color: var(--c); } .badge-mixed i + i { margin-left: -2px; }
.sample-tag { color: var(--muted); background: var(--surface-2); }
.privacy, .open-tag { color: var(--muted); background: var(--surface); border: 1px solid var(--line); }
.type-drive { --c: var(--drive); } .type-sail { --c: var(--sail); } .type-fly { --c: var(--fly); }

/* ---------- group page ---------- */
.group-hero { --c: var(--red); padding: var(--s6) 0; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 8%, transparent), transparent); }
.group-hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s5); flex-wrap: wrap; }
.group-hero .tag-row { height: auto; flex-wrap: wrap; }
.group-hero h1 { margin-top: var(--s4); }
.group-hero .lede { margin-top: var(--s3); }
.group-meta { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin: var(--s4) 0 0; font-size: var(--t2); font-weight: 650; }
.addr { margin: var(--s2) 0 0; font-size: var(--t2); }
.group-hero-cta { text-align: right; } .group-hero-cta p { margin: var(--s2) 0 0; }
.example-banner { margin-bottom: var(--s5); }
.group-body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); padding-top: var(--s7); }
.group-main { grid-column: span 8; display: grid; gap: var(--s4); align-content: start; }
.group-main .section-head { margin: var(--s5) 0 0; } .group-main .section-head:first-child { margin-top: 0; }
.group-side { grid-column: span 4; display: grid; gap: var(--gap); align-content: start; }
@media (max-width: 900px) { .group-main, .group-side { grid-column: 1 / -1; } .group-hero-cta { text-align: left; } }
.side-card h3 { font-size: var(--t3); margin-bottom: var(--s3); }
.side-card > p:last-child { margin: 0; }
.next-trip { border-left: 3px solid var(--red); } .next-trip .eyebrow { margin-bottom: var(--s1); } .next-trip h3 { margin-bottom: var(--s1); } .next-trip .muted { margin-bottom: var(--s3); }
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.events li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: var(--s4); min-height: 72px; padding: var(--s3) var(--s5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.events strong { display: block; line-height: 1.35; }
.events p { margin: 2px 0 0; }
.ev-date { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ev-date b { font-size: var(--t4); line-height: 1; } .ev-date span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rsvp { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: var(--s2); font-size: var(--t1); font-weight: 700; color: var(--teal); text-align: right; }
.open-tag { margin: 0; }
@media (max-width: 600px) { .events li { grid-template-columns: 48px minmax(0, 1fr); } .rsvp { grid-column: 2; justify-content: flex-start; } }

/* ---------- logbook entries ---------- */
.feed { display: grid; gap: var(--s4); }
.entry { --c: var(--text); display: grid; grid-template-columns: minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--c); border-radius: var(--radius); padding: var(--s5); box-shadow: var(--shadow); }
.entry-head { display: flex; align-items: center; gap: var(--s3); height: var(--tag-h); font-size: var(--t2); color: var(--muted); line-height: 1; white-space: nowrap; }
.entry h3 { margin: var(--s3) 0 0; font-size: var(--t3); line-height: 1.35; }
.entry p { margin: var(--s1) 0 0; color: var(--muted); font-size: var(--t2); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3) var(--s4); margin: var(--s4) 0 0; padding: var(--s4) 0 0; border-top: 1px solid var(--line); }
.stats div { display: grid; gap: var(--s1); align-content: start; }
.stats dt { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); line-height: 1.2; }
.stats dd { margin: 0; font-size: var(--t2); font-weight: 650; line-height: 1.35; }
@media (min-width: 1000px) {
  .entry { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); column-gap: var(--s5); }
  .entry > :not(.stats) { grid-column: 1; }
  .entry .stats { grid-column: 2; grid-row: 1 / span 3; margin: 0; padding: 0 0 0 var(--s5); border-top: 0; border-left: 1px solid var(--line); grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: center; }
}
.albums, .roster, .fees, .nearby { list-style: none; margin: 0 0 var(--s3); padding: 0; display: grid; gap: var(--s3); }
.albums li { display: flex; align-items: center; gap: var(--s3); } .albums li div { display: grid; font-size: var(--t2); }
.album-thumb { width: 48px; height: 48px; flex: none; border-radius: var(--radius); background: linear-gradient(135deg, var(--sky), var(--teal) 60%, var(--sun)); opacity: .85; }
.roster li { display: flex; align-items: center; gap: var(--s3); font-size: var(--t2); font-weight: 600; }
.avatar { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: var(--t1); }
.role { margin-left: auto; font-size: var(--t1); font-weight: 500; color: var(--muted); }
.fees li { display: flex; justify-content: space-between; font-size: var(--t2); padding-bottom: var(--s2); border-bottom: 1px dashed var(--line); }
.nearby li { display: grid; font-size: var(--t2); } .nearby a { font-weight: 650; text-decoration: none; } .nearby a:hover { color: var(--red); }

/* ---------- about ---------- */
.about-co { padding-bottom: var(--s5); }
.about-co .cta-band { padding-top: var(--s8); }
.founder { max-width: 560px; margin: var(--s8) auto 0; padding-top: var(--s5); border-top: 1px solid var(--line); text-align: center; color: var(--muted); }
.founder-h { font-size: var(--t1); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: var(--s1); }
.founder p { margin: 0; font-size: var(--t1); }

/* ---------- join ---------- */
.join-tight { max-width: 600px; padding-bottom: var(--s5); }
.join-form { display: grid; gap: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); box-shadow: var(--shadow); }
.join-form label { display: grid; gap: 6px; font-size: var(--t2); font-weight: 600; }
.join-form input[type=text], .join-form input[type=email], .join-form textarea, .join-form select { font: inherit; width: 100%; padding: 10px var(--s3); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--text); }
.join-form fieldset { margin: 0; padding: var(--s3) var(--s4) var(--s4); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.join-form fieldset.features { display: grid; gap: var(--s2); border-color: color-mix(in srgb, var(--red) 55%, var(--line)); }
.join-form legend { padding: 0 6px; font-size: var(--t2); font-weight: 650; }
.join-form .check { display: flex; align-items: center; gap: var(--s2); font-weight: 500; }
.join-form .check input { margin: 0; width: 16px; height: 16px; flex: none; }
.join-form .req { color: var(--red); }
.join-form button { justify-self: start; }
.intl { display: grid; gap: var(--s3); padding: var(--s3) var(--s4); border: 1px dashed var(--line); border-radius: var(--radius); scroll-margin-top: 96px; }
.plans-line { margin: var(--s5) 0 0; text-align: center; font-size: var(--t2); }

/* ---------- footer ---------- */
.site-footer { margin-top: var(--s9); background: var(--navy); color: #cfd8e6; padding: var(--s7) 0 var(--s6); border-top: 3px solid var(--red); }
.site-footer .muted { color: #8e9bb3; }
.foot { display: grid; grid-template-columns: 1fr auto; gap: var(--s4) var(--s6); }
.foot .brand-text { color: #fff; margin-bottom: var(--s2); }
.foot p { margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); align-content: start; }
.foot-links a { text-decoration: none; font-size: var(--t2); opacity: .85; } .foot-links a:hover { opacity: 1; color: #fff; }
.foot .small { grid-column: 1 / -1; margin-top: var(--s4); }
@media (max-width: 700px) { .foot { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
