/* Shared styles for the public, pre-login pages: index (hub), how-it-works,
   about, links. Deliberately self-contained rather than pulling in style.css
   — that stylesheet is tuned for the logged-in app's density (filter bars,
   cards, map), while these are a handful of simple content pages. Colors and
   fonts are copied from style.css's :root tokens so the two feel like one
   site without sharing a file. */
:root {
  color-scheme: light;
  --cream: #ECE3D6;
  --card: #FBF8F3;
  --ink: #221D1A;
  --muted: #6E6259;
  --rust: #B23A2E;
  --rust-dim: #9C332A;
  --border: #E4D9CC;
  --yellow: #FFDE59;
  --shadow-2: 0 10px 24px -12px rgba(34,29,26,.22), 0 2px 6px rgba(34,29,26,.06);
  --shadow-3: 0 20px 40px -16px rgba(34,29,26,.28), 0 4px 10px rgba(34,29,26,.08);
  --headline-shadow-color: #812C2C;
  --headline-outline: 1.5px var(--rust);
  --font-headline: "Bevan", Georgia, "Times New Roman", serif;
}

/* Dark only when chosen via the toggle (theme.js), not from OS preference. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --cream: #1B1714;
  --card: #262019;
  --ink: #F3ECE2;
  --muted: #A89C8C;
  --border: #3A3128;
}

* { box-sizing: border-box; }

body {
  font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(ellipse 900px 500px at 12% -8%, rgba(178,58,46,.06), transparent 60%),
    var(--cream);
  color: var(--ink);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--rust); }

.m-nav {
  border-bottom: 1px solid var(--border);
}
.m-nav-in {
  max-width: 720px; margin: 0 auto; padding: 18px 20px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.m-brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: "Bevan", Georgia, serif; font-size: 19px; font-weight: 400;
  color: var(--ink); text-decoration: none;
}
.m-brand::before {
  content: ""; width: 10px; height: 10px; border-radius: 2px;
  background: var(--yellow); transform: rotate(45deg); flex: none;
}
.m-brand span { color: var(--rust); }
.m-nav-links { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.m-nav-links a {
  font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none;
  padding: 7px 12px; border-radius: 999px; transition: color .15s ease, background-color .15s ease;
}
.m-nav-links a:hover { color: var(--rust); background: rgba(178,58,46,.07); }
.m-nav-links a.m-login { color: var(--card); background: var(--rust); }
.m-nav-links a.m-login:hover { background: var(--rust-dim); color: var(--card); }

.theme-toggle {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--card); color: var(--ink); cursor: pointer; align-self: center;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.theme-toggle:hover { border-color: var(--rust); color: var(--rust); }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.m-wrap { max-width: 720px; margin: 0 auto; padding: 48px 20px 80px; }

/* Photo hero — same full-bleed-photo-plus-bold-outlined-type treatment as
   the logged-in app's map hero (style.css .hero-banner), so the pre-login
   pages and the app read as one site instead of two different designs. */
.m-hero-banner {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 62vh; min-height: 62svh;
  overflow: hidden; isolation: isolate;
  margin: 0 0 -1px;
}
.m-hero-photo {
  position: absolute; inset: 0; z-index: -2;
  background-image: url("img/hero-philly.jpg");
  background-size: cover; background-position: center 68%;
  filter: saturate(1.2) contrast(1.08) sepia(.16) hue-rotate(-6deg) brightness(.88);
}
.m-hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(0deg, rgba(20,13,9,.82) 0%, rgba(20,13,9,.3) 46%, rgba(20,13,9,.12) 64%, rgba(20,13,9,.36) 100%),
    radial-gradient(ellipse 900px 500px at 14% -6%, rgba(178,58,46,.28), transparent 60%);
}
.m-hero-content {
  position: relative; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 96px 20px 64px; max-width: 720px;
}
.m-kicker {
  font-weight: 700; font-size: clamp(13px, 1.4vw, 15px); letter-spacing: .08em; text-transform: uppercase;
  margin: 0; color: var(--yellow);
  -webkit-text-stroke: 1px var(--headline-shadow-color); paint-order: stroke fill;
}
.m-hero-content h1 {
  font-family: var(--font-headline); font-weight: 400; font-style: normal;
  font-size: clamp(34px, 6.4vw, 60px); margin: 0; letter-spacing: 0; line-height: 1.08;
  color: var(--yellow);
  -webkit-text-stroke: var(--headline-outline); paint-order: stroke fill;
  text-shadow: 0.1em 0.1em 0 var(--headline-shadow-color);
  max-width: 18ch; text-wrap: balance;
}
.m-hero-content p.lede {
  color: #F3EAE0; font-size: 16px; line-height: 1.6; max-width: 46ch;
  margin: 0; text-shadow: 0 1px 3px rgba(0,0,0,.85), 0 2px 10px rgba(0,0,0,.5);
}
.m-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }

/* Hand-drawn wavy divider between the photo hero and the page body. */
.m-wave-divider { display: block; width: 100%; height: 44px; fill: var(--cream); position: relative; z-index: 1; }
@media (max-width: 560px) { .m-wave-divider { height: 28px; } }

/* Small hand-drawn swash used as a playful underline accent below page h1s. */
.m-swash { display: block; margin: -8px auto 20px; stroke: var(--rust); overflow: visible; }
.m-swash.m-swash-center { margin-left: auto; margin-right: auto; }

/* Full-width wavy rule under the How It Works title: a tiled wave used as a
   mask so it takes the theme's rust color and runs the whole text column. */
.m-wave-rule {
  height: 14px; margin: 4px 0 22px; background: var(--rust);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='14' viewBox='0 0 36 14'%3E%3Cpath d='M0 7c4.5-8 13.5-8 18 0s13.5 8 18 0' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x center / 36px 14px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='14' viewBox='0 0 36 14'%3E%3Cpath d='M0 7c4.5-8 13.5-8 18 0s13.5 8 18 0' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x center / 36px 14px;
}

.m-btn {
  display: inline-block; font-weight: 600; font-size: 14.5px; text-decoration: none;
  padding: 13px 26px; border-radius: 999px; transition: all .15s ease;
  border: 1px solid var(--rust);
}
.m-btn-solid { background: var(--rust); color: var(--card); }
.m-btn-solid:hover { background: var(--rust-dim); border-color: var(--rust-dim); }
.m-btn-outline { background: transparent; color: var(--rust); }
.m-btn-outline:hover { background: rgba(178,58,46,.08); }

.m-section { padding: 52px 0; }
.m-section-head { text-align: center; margin: 0 0 30px; }
.m-section-kicker {
  font-weight: 700; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--rust); margin: 0 0 8px;
}
.m-section-head h2 {
  font-family: "Source Serif 4", Georgia, serif; font-weight: 700; font-size: clamp(22px, 3.6vw, 30px);
  margin: 0; color: var(--ink);
}

/* Stat trio — quick-hit numbers pulled out of the lede so the scale of the
   calendar reads at a glance instead of only inside a paragraph. */
.m-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.m-stat-tile {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px 16px; text-align: center; box-shadow: var(--shadow-2);
}
.m-stat-icon { font-size: 28px; display: block; margin-bottom: 10px; }
.m-stat-num {
  font-family: var(--font-headline); font-weight: 400; font-size: 26px;
  color: var(--rust); display: block; margin: 0 0 4px; line-height: 1;
}
.m-stat-label { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.4; }

/* Three-step "how it works" teaser — numbered rust circles joined by a
   dashed hand-drawn line, echoing GPS Fest's step-by-step schedule blocks. */
.m-steps { display: flex; align-items: flex-start; gap: 0; margin-top: 8px; }
.m-step { flex: 1; text-align: center; padding: 0 10px; position: relative; }
.m-step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--rust); color: var(--card);
  font-family: var(--font-headline); font-weight: 400; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; box-shadow: var(--shadow-2); position: relative; z-index: 1;
}
.m-step-title { font-weight: 700; font-size: 14.5px; margin: 0 0 6px; }
.m-step-desc { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.5; }
.m-step-connector {
  position: absolute; top: 20px; left: calc(50% + 34px); right: calc(-50% + 34px);
  height: 0; border-top: 2px dashed var(--border); z-index: 0;
}
.m-step:last-child .m-step-connector { display: none; }

@media (max-width: 620px) {
  .m-steps { flex-direction: column; align-items: stretch; gap: 26px; }
  .m-step-connector { display: none; }
}

.m-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 10px; }
.m-card {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 22px 18px; text-align: center; box-shadow: var(--shadow-2);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.m-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); border-color: var(--rust); }
.m-card-icon { font-size: 26px; display: block; margin-bottom: 10px; }
.m-card-title { font-weight: 700; font-size: 14.5px; margin: 0 0 4px; }
.m-card-desc { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.4; }

@media (max-width: 560px) {
  .m-cards { grid-template-columns: 1fr; }
  .m-stats { grid-template-columns: 1fr; }
}

/* Closing CTA band — a bold rust "pill" section instead of a full-bleed
   band, so it stays playful without fighting the photo hero for attention. */
.m-cta-band {
  background: var(--rust); color: var(--card); border-radius: 24px;
  padding: 44px 30px; text-align: center; box-shadow: var(--shadow-3);
  position: relative; overflow: hidden;
}
.m-cta-band h2 {
  font-family: var(--font-headline); font-weight: 400; font-size: clamp(24px, 4vw, 34px);
  margin: 0 0 10px; color: var(--yellow);
}
.m-cta-band p {
  font-size: 15px; line-height: 1.6; max-width: 44ch; margin: 0 auto 26px;
  color: #F3E3D9;
}
.m-cta-band .m-btn { border-color: var(--card); }
.m-cta-band .m-btn-solid { background: var(--card); color: var(--rust); }
.m-cta-band .m-btn-solid:hover { background: #F3EAE0; }
.m-cta-band .m-btn-outline { color: var(--card); }
.m-cta-band .m-btn-outline:hover { background: rgba(255,255,255,.12); }

.m-page h1 {
  font-family: "Source Serif 4", Georgia, serif; font-weight: 700; font-size: clamp(26px, 4vw, 34px);
  margin: 0 0 8px;
}
.m-page p.m-sub { color: var(--muted); font-size: 15px; margin: 0 0 36px; }
.m-page h2 {
  font-family: "Source Serif 4", Georgia, serif; font-weight: 700; font-size: 20px;
  margin: 36px 0 12px;
}
.m-page p { line-height: 1.7; font-size: 15px; }
.m-page a { text-underline-offset: 2px; }

.m-faq { border-top: 1px solid var(--border); margin-top: 8px; }
.m-faq details {
  border-bottom: 1px solid var(--border); padding: 16px 0;
}
.m-faq summary {
  font-weight: 600; font-size: 15px; cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.m-faq summary::-webkit-details-marker { display: none; }
.m-faq summary::after {
  content: "+"; font-size: 20px; color: var(--rust); flex: none; font-weight: 400;
  transition: transform .15s ease;
}
.m-faq details[open] summary::after { content: "\2212"; }
.m-faq p { margin: 12px 0 0; color: var(--muted); }

/* How It Works page — two-part layout (Google Calendar / website). */
/* Photo tiles that jump to each section. */
.m-jump { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 30px; }
.m-tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  min-height: 340px; padding: 22px 22px 20px; border-radius: 20px; overflow: hidden; isolation: isolate;
  text-decoration: none; color: #fff; box-shadow: var(--shadow-2);
  background: #3a2a22 center / cover no-repeat;
  transition: transform .18s ease, box-shadow .18s ease;
}
.m-tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(20,13,9,.82) 0%, rgba(20,13,9,.3) 55%, rgba(20,13,9,.05) 100%);
}
.m-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); }
.m-tile:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.m-tile-kicker {
  font-weight: 700; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--yellow); text-shadow: 0 1px 3px rgba(0,0,0,.8);
}
.m-tile-title {
  font-family: var(--font-headline); font-size: clamp(22px, 3.6vw, 28px); line-height: 1.12;
  text-shadow: 0 1px 4px rgba(0,0,0,.7);
}
.m-tile-title::after { content: " \2193"; color: var(--yellow); }
.m-tile-blurb {
  font-size: 14px; line-height: 1.45; color: #F3EAE0; max-width: 28ch; margin-top: 2px;
  text-shadow: 0 1px 3px rgba(0,0,0,.85);
}
.m-tile-cal { background-image: url("img/nav-calendar.jpg"); background-position: center 16%; }
.m-tile-web { background-image: url("img/nav-website.jpg"); }
.m-jump-faq {
  grid-column: 1 / -1; justify-self: center; font-size: 14px; font-weight: 600;
  color: var(--rust); text-decoration: none; padding: 4px 8px;
}
.m-jump-faq:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 620px) {
  .m-jump { grid-template-columns: 1fr; }
  .m-tile { min-height: 240px; }
}
@media (prefers-reduced-motion: reduce) { .m-tile { transition: none; } .m-tile:hover { transform: none; } }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.m-part { margin-top: 56px; padding-top: 8px; border-top: 1px solid var(--border); }
.m-part-kicker {
  font-weight: 700; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--rust); margin: 24px 0 6px;
}
.m-page h2.m-part-title { font-size: clamp(24px, 4vw, 30px); margin: 0 0 14px; }
.m-page h3 {
  font-family: "Source Serif 4", Georgia, serif; font-weight: 700; font-size: 17px;
  margin: 30px 0 8px;
}

.m-ol { padding-left: 0; list-style: none; counter-reset: m-step; margin: 12px 0 18px; }
.m-ol li {
  counter-increment: m-step; position: relative; padding: 0 0 14px 48px;
  font-size: 15px; line-height: 1.65; min-height: 36px;
}
.m-ol li::before {
  content: counter(m-step); position: absolute; left: 0; top: -2px;
  width: 34px; height: 34px; border-radius: 50%; background: var(--rust); color: var(--card);
  font-family: var(--font-headline); font-size: 15px;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-2);
}

.m-facets { list-style: none; padding: 0; margin: 12px 0 8px; border-top: 1px solid var(--border); }
.m-facets li {
  display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--border);
  font-size: 14.5px; line-height: 1.5;
}
.m-facets b { flex: 0 0 150px; font-weight: 700; }
.m-facets span { color: var(--muted); }
@media (max-width: 520px) {
  .m-facets li { flex-direction: column; gap: 2px; }
  .m-facets b { flex: none; }
}

.m-tip-head { font-weight: 700; font-size: 14.5px; margin: 22px 0 6px; }
.m-examples { margin: 0 0 6px; padding-left: 20px; font-size: 15px; line-height: 1.7; }
.m-examples-plain { margin-bottom: 14px; }
.m-examples code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px;
  background: var(--card); border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px;
  white-space: nowrap;
}

.m-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 18px 0 6px; }
.m-feature {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 20px 20px 18px; box-shadow: var(--shadow-2);
}
.m-page .m-feature h3 { margin: 0 0 6px; font-size: 16px; }
.m-page .m-feature p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
@media (max-width: 620px) { .m-features { grid-template-columns: 1fr; } }

/* ---- How It Works: visual layer (overrides the plainer rules above) ---- */

/* Wavy dividers between the big sections replace the thin top border. */
.m-part { border-top: 0; margin-top: 0; padding-top: 0; }
.m-wave-between { margin: 52px 0 28px; }

/* Photo banner at the top of Part 1 / Part 2. */
.m-part-banner {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 20px;
  min-height: 190px; padding: 22px 26px; margin: 0 0 8px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: #2a2030 center / cover no-repeat; box-shadow: var(--shadow-2);
}
.m-part-banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(20,13,9,.8) 0%, rgba(20,13,9,.25) 60%, rgba(20,13,9,.05) 100%);
}
.m-part-banner-cal { background-image: url("img/hiw-cal.jpg"); background-position: center 40%; }
.m-part-banner-web { background-image: url("img/hiw-web.jpg"); background-position: center 35%; }
.m-part-banner .m-part-kicker { color: var(--yellow); margin: 0 0 4px; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.m-page .m-part-banner h2.m-part-title {
  color: #fff; font-family: var(--font-headline); font-weight: 400; margin: 0;
  font-size: clamp(26px, 5vw, 38px); text-shadow: 0 2px 6px rgba(0,0,0,.6);
}

/* "Getting it" steps become three cards. */
.m-ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0 18px; }
.m-ol li {
  padding: 18px 16px 8px; min-height: 0; font-size: 14px; line-height: 1.6;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-2);
}
.m-ol li::before { position: static; margin: 0 0 10px; }
.m-ol li strong { display: block; font-size: 15.5px; margin-bottom: 4px; }
@media (max-width: 620px) { .m-ol { grid-template-columns: 1fr; } }

/* Search facets: each row gets its own color, values become chips. */
.m-facets { border-top: 0; display: grid; gap: 10px; }
.m-facets li {
  --c: var(--rust); display: block; padding: 12px 14px; border: 1px solid var(--border);
  border-left: 5px solid var(--c); border-radius: 12px; background: var(--card);
}
.m-facets b { display: block; flex: none; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 7px; }
.m-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.m-chips i {
  font-style: normal; font-size: 13.5px; font-weight: 600; color: var(--ink);
  padding: 4px 11px; border-radius: 999px;
  background: color-mix(in srgb, var(--c) 14%, var(--card));
  border: 1px solid color-mix(in srgb, var(--c) 45%, var(--card));
}

/* Search-tip cards styled like little search bars. */
.m-tip-head { display: flex; align-items: center; gap: 10px; margin: 26px 0 10px; }
.m-tip-head::before {
  flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--rust); color: var(--card);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-headline); font-size: 18px; line-height: 1; padding-bottom: 2px;
}
.m-tip-minus::before { content: "\2212"; }
.m-tip-plus::before { content: "+"; }
.m-searches { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.m-searches li { display: flex; flex-direction: column; gap: 8px; }
.m-q { font-size: 14px; line-height: 1.4; color: var(--muted); }
.m-searchbar {
  display: flex; align-items: center; gap: 9px; background: var(--card); border: 1px solid var(--border);
  border-radius: 999px; padding: 10px 16px; box-shadow: var(--shadow-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; color: var(--ink);
  overflow-wrap: anywhere;
}
.m-searchbar::before {
  content: ""; flex: none; width: 15px; height: 15px; background: var(--muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='8.5' cy='8.5' r='5.5'/%3E%3Cpath d='M13 13l4.5 4.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='8.5' cy='8.5' r='5.5'/%3E%3Cpath d='M13 13l4.5 4.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Heads-up callout (cancellations). */
.m-page p.m-callout {
  background: rgba(255,222,89,.22); border: 1px solid rgba(255,222,89,.7); border-left: 5px solid var(--yellow);
  border-radius: 12px; padding: 14px 18px; margin: 16px 0 0; font-size: 14.5px;
}

/* Feature cards: emoji badge + colored top edge. */
.m-feature { position: relative; border-top: 5px solid var(--fc, var(--rust)); }
.m-feature::before { content: var(--fi, "\2728"); display: block; font-size: 26px; line-height: 1; margin-bottom: 10px; }
.m-feature:nth-child(1) { --fc: #DA2F76; --fi: "\1F50D"; }
.m-feature:nth-child(2) { --fc: #2D4ED2; --fi: "\1F5FA\FE0F"; }
.m-feature:nth-child(3) { --fc: #198383; --fi: "\1F4CD"; }
.m-feature:nth-child(4) { --fc: #D4431E; --fi: "\1F496"; }
.m-feature:nth-child(5) { --fc: #603BCE; --fi: "\1F516"; }
.m-feature:nth-child(6) { --fc: #117845; --fi: "\267F"; }

/* Embedded demo of the subscriber site (same frame as the home page's). */
.m-demo {
  border-radius: 18px; background: var(--card); border: 1px solid var(--border); overflow: hidden;
  box-shadow: 0 30px 60px -28px rgba(34,29,26,.45), 0 6px 18px rgba(34,29,26,.1); margin: 14px 0 0;
}
.m-demo-bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: var(--cream); border-bottom: 1px solid var(--border); }
.m-demo-dots { display: flex; gap: 7px; }
.m-demo-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; background: #E8786C; }
.m-demo-dots i:nth-child(2) { background: #F0C45A; }
.m-demo-dots i:nth-child(3) { background: #7FBF7A; }
.m-demo-url {
  flex: 1; min-width: 0; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--muted);
  background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 5px 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.m-demo-full { font-size: 12.5px; font-weight: 700; color: var(--rust); text-decoration: none; white-space: nowrap; }
.m-demo-full:hover { text-decoration: underline; }
.m-demo-frame { display: block; width: 100%; height: min(720px, 80vh); min-height: 480px; border: 0; background: var(--cream); }
.m-page p.m-demo-foot { text-align: center; font-size: 13.5px; color: var(--muted); margin: 14px 0 0; }
/* Wide screens: let the demo break out of the 720px text column so the app
   gets a real desktop layout. */
@media (min-width: 1100px) {
  .m-demo { width: 1040px; margin-left: calc(50% - 520px); }
}
@media (max-width: 560px) {
  .m-demo-dots { display: none; }
  .m-demo-frame { height: 70vh; }
}

/* Login options as two cards. */
.m-optcards { list-style: none; padding: 0; margin: 12px 0 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.m-optcards li {
  display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: var(--card);
  border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-2);
  font-size: 14px; line-height: 1.55;
}
.m-optcards strong { font-size: 15.5px; color: var(--rust); }
.m-optcards span { color: var(--muted); }
@media (max-width: 560px) { .m-optcards { grid-template-columns: 1fr; } }

.m-bio-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 0; margin-bottom: 28px; box-shadow: var(--shadow-2); overflow: hidden;
}
.m-bio-row { margin-bottom: 28px; }
.m-bio-row .m-bio-card { margin-bottom: 0; }
.m-bio-photo {
  display: block; width: 100%; max-width: 380px; aspect-ratio: 3 / 4; height: auto; object-fit: cover;
  margin: 0 auto 30px; border-radius: 14px; box-shadow: 8px 8px 0 var(--yellow);
  position: relative; left: -4px;
}
/* Wide screens: break the photo out to the left of the text card, using
   margin beyond the 720px text column. */
@media (min-width: 1140px) {
  .m-bio-row {
    display: flex; align-items: flex-start; gap: 44px;
    width: 1100px; margin-left: calc(50% - 550px);
  }
  .m-bio-photo { flex: 0 0 400px; width: 400px; max-width: none; margin: 0; position: sticky; top: 24px; }
  .m-bio-row .m-bio-card { flex: 1; min-width: 0; }
}
.m-bio-text { padding: 30px 36px 34px; }
.m-bio-card p.m-bio-name {
  margin: 0 0 12px; line-height: 1.2; font-size: 12px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.m-bio-card p { margin: 0 0 18px; color: var(--ink); font-size: 17.5px; line-height: 1.7; }
.m-bio-card p.m-bio-lead {
  font-family: "Source Serif 4", Georgia, serif; font-weight: 600;
  font-size: clamp(20px, 2.8vw, 24px); line-height: 1.5; margin-bottom: 22px;
}
.m-bio-card p.m-bio-more {
  margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border);
}
@media (max-width: 560px) { .m-bio-text { padding: 24px 22px 28px; } }

.m-contact-list { list-style: none; padding: 0; margin: 0; }
.m-contact-list li {
  display: flex; align-items: center; gap: 12px; padding: 14px 0;
  border-bottom: 1px solid var(--border); font-size: 15px;
}
.m-contact-list li:last-child { border-bottom: none; }
.m-contact-list a { font-weight: 600; text-decoration: none; }
.m-contact-list a:hover { text-decoration: underline; }

.m-links-list { display: flex; flex-direction: column; gap: 12px; }
.m-link-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 22px; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-2); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.m-link-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-3); border-color: var(--rust); }
.m-link-title { font-weight: 700; font-size: 15px; margin: 0 0 3px; }
.m-link-desc { font-size: 12.5px; color: var(--muted); margin: 0; }
.m-link-arrow { color: var(--rust); font-size: 18px; flex: none; }

/* A block wrapper, not flex — Instagram's embed.js sets the blockquote's
   own width via calc(100% - 2px), and that percentage resolves unreliably
   against a flex container's main axis, squeezing the whole card. */
/* Live Instagram card (about.html) — a photo grid + follow button styled
   after Linktree's Instagram widget, built from our own Graph API fetch
   (functions/api/instagram-feed.js) since Instagram's official embed widget
   clips its own grid short regardless of what page it's placed on. */
.m-ig-card {
  width: 100%; margin: 8px auto 0; background: var(--yellow);
  border-radius: 28px; padding: 28px; box-shadow: var(--shadow-2);
}
.m-ig-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 24px;
}
.m-ig-tile {
  display: block; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden;
  background: rgba(34,29,26,.08);
}
.m-ig-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-ig-meta { text-align: center; margin: 0 0 20px; }
.m-ig-name { font-weight: 700; font-size: 20px; color: var(--ink); margin: 0 0 4px; }
.m-ig-handle { font-size: 15px; color: rgba(34,29,26,.65); margin: 0; }
.m-ig-follow-btn {
  display: block; text-align: center; background: var(--ink); color: #fff;
  border-radius: 999px; padding: 16px; font-weight: 700; font-size: 16px;
  text-decoration: none; transition: opacity .15s ease;
}
.m-ig-follow-btn:hover { opacity: .88; }

.m-footer {
  max-width: 720px; margin: 0 auto; padding: 0 20px 48px; text-align: center;
  color: var(--muted); font-size: 13px;
}
.m-footer a { color: var(--muted); text-decoration: none; }
.m-footer a:hover { color: var(--rust); }

/* Creator-only inline text editing (site-edit.js) */
body.site-editing [data-editable] {
  outline: 1px dashed var(--rust); outline-offset: 3px; border-radius: 3px;
  cursor: text;
}
body.site-editing [data-editable]:focus { outline-style: solid; background: rgba(255,222,89,.12); }

.site-edit-bar {
  position: fixed; bottom: 18px; right: 18px; z-index: 100;
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 10px; box-shadow: var(--shadow-3);
}
.site-edit-btn {
  font-family: inherit; font-weight: 600; font-size: 13px; cursor: pointer;
  border-radius: 999px; padding: 9px 16px; border: 1px solid var(--rust);
  background: transparent; color: var(--rust);
}
.site-edit-btn:hover { background: rgba(178,58,46,.08); }
.site-edit-btn-save { background: var(--rust); color: var(--card); }
.site-edit-btn-save:hover { background: var(--rust-dim); }
.site-edit-btn:disabled { opacity: .6; cursor: default; }
.site-edit-status { font-size: 12.5px; color: var(--muted); padding: 0 4px; }

/* ---- About & Contact page ---- */
.m-about-hero {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  display: flex; align-items: flex-end; justify-content: center; min-height: 360px;
}
.m-about-hero-photo {
  position: absolute; inset: 0; z-index: -2; background: url("img/banner-river.jpg") center 35% / cover no-repeat;
  filter: saturate(1.15) contrast(1.05);
}
.m-about-hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(20,13,9,.78) 0%, rgba(20,13,9,.25) 60%, rgba(20,13,9,.1) 100%);
}
.m-about-hero-in { padding: 90px 20px 56px; max-width: 720px; }
.m-about-hero h1 {
  font-family: var(--font-headline); font-weight: 400; margin: 0 0 12px;
  font-size: clamp(36px, 7vw, 62px); line-height: 1.08; color: var(--yellow);
  -webkit-text-stroke: var(--headline-outline); paint-order: stroke fill;
  text-shadow: 0.1em 0.1em 0 var(--headline-shadow-color);
}
.m-about-sub { margin: 0; color: #F3EAE0; font-size: 16.5px; text-shadow: 0 1px 3px rgba(0,0,0,.85); }
/* Keeps the literal line break in this one subtitle (How It Works). */
.m-sub-break { white-space: pre-line; }

.m-wrap.m-about { max-width: 980px; padding-top: 28px; }
.m-about .m-bio-row {
  display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start;
  width: auto; margin: 0 0 40px;
}
.m-bio-fig { position: sticky; top: 24px; margin: 0; }
.m-about .m-bio-photo {
  width: 100%; max-width: none; margin: 0; left: 0; position: static; flex: none;
  transform: rotate(-2.5deg); border: 6px solid var(--card); box-shadow: 10px 10px 0 var(--yellow), var(--shadow-3);
}
.m-bio-sticker {
  position: absolute; right: -14px; bottom: 26px; transform: rotate(8deg);
  background: var(--rust); color: var(--yellow); font-family: var(--font-headline);
  font-size: 15px; line-height: 1.15; text-align: center; padding: 14px 16px; border-radius: 50%;
  width: 104px; height: 104px; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-3); border: 3px dashed rgba(255,222,89,.7);
}
.m-about .m-bio-card { border-radius: 22px; margin: 0; }
.m-about .m-bio-text { padding: 36px 40px 18px; }
.m-about .m-bio-card p.m-bio-lead { margin-bottom: 26px; }
.m-bio-block {
  --c: var(--rust); border-left: 5px solid var(--c); border-radius: 4px 14px 14px 4px;
  background: color-mix(in srgb, var(--c) 7%, var(--card)); padding: 16px 20px 2px; margin: 0 0 20px;
}
.m-bio-b1 { --c: #DA2F76; } .m-bio-b2 { --c: #2D4ED2; } .m-bio-b3 { --c: #117845; }
.m-bio-card .m-bio-block p { font-size: 16px; line-height: 1.7; margin: 0 0 14px; }
.m-bio-card .m-bio-block p.m-bio-tag {
  font-weight: 800; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c); margin: 0 0 6px;
}
.m-about-stats { margin: 0 0 20px; }
.m-about-stats .m-stat-num { font-size: clamp(20px, 3.4vw, 28px); }
.m-about-head { margin: 56px 0 24px; }
.m-contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.m-contact-card {
  display: flex; flex-direction: column; gap: 4px; padding: 28px 26px; border-radius: 22px;
  text-decoration: none; box-shadow: var(--shadow-2); position: relative; overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.m-contact-card:hover { transform: translateY(-3px) rotate(-.4deg); box-shadow: var(--shadow-3); }
.m-contact-mail { background: var(--yellow); color: #221D1A; }
.m-contact-ig { background: var(--rust); color: #FBF8F3; }
.m-contact-ico {
  width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.28); margin-bottom: 14px;
}
.m-contact-ig .m-contact-ico { background: rgba(255,255,255,.16); }
.m-contact-label { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.m-contact-val { font-family: "Source Serif 4", Georgia, serif; font-weight: 700; font-size: clamp(17px, 2.6vw, 21px); overflow-wrap: anywhere; }
.m-contact-card::after {
  content: "\2192"; position: absolute; right: 22px; top: 22px; font-size: 22px; opacity: .6; transition: transform .15s ease;
}
.m-contact-card:hover::after { transform: translateX(4px); }
.m-about .m-ig-card { border-radius: 28px; }

@media (max-width: 860px) {
  .m-about .m-bio-row { grid-template-columns: 1fr; gap: 36px; }
  .m-bio-fig { position: relative; top: 0; max-width: 320px; margin: 0 auto; }
  .m-about .m-bio-text { padding: 26px 22px 8px; }
}
@media (max-width: 560px) {
  .m-contact-cards { grid-template-columns: 1fr; }
  .m-about-hero { min-height: 240px; }
  .m-about-hero-in { padding: 64px 20px 44px; }
}
@media (prefers-reduced-motion: reduce) { .m-contact-card, .m-contact-card::after { transition: none; } .m-contact-card:hover { transform: none; } }

/* Instagram's own profile embed, shown below the Follow along card. */
.m-ig-embed {
  max-width: 540px; margin: 28px auto 0; border-radius: 22px; overflow: hidden;
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-2);
}
.m-ig-embed iframe { display: block; width: 100%; height: 680px; border: 0; background: #fff; }
@media (max-width: 560px) { .m-ig-embed iframe { height: 600px; } }

/* Bio layout v2: photo + intro side by side, the three detail blocks span full width below. */
.m-about .m-bio-row { align-items: center; margin-bottom: 28px; }
.m-about .m-bio-fig { position: relative; top: 0; }
.m-about .m-bio-text { padding: 36px 40px 22px; }
.m-bio-blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0 0 40px; }
.m-bio-blocks .m-bio-block { margin: 0; padding: 20px 22px 8px; border-radius: 6px 18px 18px 6px; }
.m-bio-blocks .m-bio-block p { font-size: 15.5px; line-height: 1.7; margin: 0 0 14px; color: var(--ink); }
.m-bio-blocks .m-bio-block p.m-bio-tag {
  font-weight: 800; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c); margin: 0 0 8px;
}
@media (max-width: 960px) { .m-bio-blocks { grid-template-columns: 1fr; } }

/* How It Works reuses the About hero with its own photo. */
.m-hiw-hero .m-about-hero-photo { background-image: url("img/hiw-banner.jpg"); background-position: center 58%; }

/* Links page: hero banner + grouped, icon-led link cards. */
.m-links-hero .m-about-hero-photo { background-image: url("img/banner-links-sunset.jpg"); background-position: center 58%; }
/* Busy photo: heavier, even scrim so the title stays legible. */
.m-links-hero .m-about-hero-photo { filter: saturate(1.1) brightness(1.35); }
.m-links-hero .m-about-hero-scrim { background: linear-gradient(0deg, rgba(20,13,9,.5) 0%, rgba(20,13,9,.1) 55%, rgba(20,13,9,0) 100%); }
.m-wrap.m-links-page { max-width: 640px; padding-top: 28px; }
.m-link-group {
  font-weight: 800; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--rust); margin: 30px 0 12px; line-height: 1.2;
}
.m-links-page .m-link-group:first-child { margin-top: 4px; }
.m-links-page .m-link-btn { border-radius: 18px; padding: 16px 20px; justify-content: flex-start; }
.m-links-page .m-link-btn:hover { transform: translateY(-3px) rotate(-.3deg); }
.m-links-page .m-link-text { flex: 1; min-width: 0; }
.m-links-page .m-link-title { font-family: "Source Serif 4", Georgia, serif; font-size: 17px; }
.m-links-page .m-link-desc { font-size: 13.5px; }
.m-link-ico {
  width: 46px; height: 46px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--rust) 12%, var(--card)); color: var(--rust);
}
.m-link-badge {
  display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; vertical-align: 2px;
  font-family: "Public Sans", system-ui, sans-serif; font-size: 10.5px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; background: var(--yellow); color: #221D1A;
}
.m-links-page .m-link-yellow { background: var(--yellow); border-color: transparent; color: #221D1A; }
.m-links-page .m-link-yellow .m-link-desc { color: rgba(34,29,26,.75); }
.m-links-page .m-link-yellow .m-link-ico { background: rgba(255,255,255,.4); color: #221D1A; }
.m-links-page .m-link-yellow .m-link-arrow { color: #221D1A; }
.m-links-page .m-link-rust { background: var(--rust); border-color: transparent; color: #FBF8F3; }
.m-links-page .m-link-rust .m-link-desc { color: rgba(251,248,243,.82); }
.m-links-page .m-link-rust .m-link-ico { background: rgba(255,255,255,.18); color: var(--yellow); }
.m-links-page .m-link-rust .m-link-arrow { color: var(--yellow); }
@media (max-width: 560px) { .m-link-badge { display: table; margin: 4px 0 0; } }
@media (prefers-reduced-motion: reduce) { .m-links-page .m-link-btn:hover { transform: none; } }

/* Section subheads on About: .m-page h2 (20px, big margins) was beating .m-section-head h2. */
.m-page .m-about-head h2 { font-size: clamp(28px, 4.4vw, 38px); margin: 0; line-height: 1.15; }
.m-about-head .m-section-kicker { font-size: 13px; margin: 0 0 6px; }
/* ---------- FAQ cards (how-it-works #faq, landing page) ----------
   Each question is its own rounded card instead of a ruled list row; the +
   becomes a round badge that fills in when the answer is open, and each group
   (Subscription / Troubleshooting / About the events) gets its own accent
   color, pulled from the category palette used elsewhere on the site. */
.m-faq {
  --c: var(--rust);
  border-top: 0; margin-top: 12px;
  display: flex; flex-direction: column; gap: 10px;
}
.m-faq details {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 0; box-shadow: var(--shadow-1, 0 1px 2px rgba(34,29,26,.05));
  position: relative; overflow: hidden;
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.m-faq details::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--c); transform: scaleY(0); transform-origin: top; transition: transform .25s ease;
}
.m-faq details:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--border)); transform: translateY(-1px); }
.m-faq details[open] { box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--c) 40%, var(--border)); transform: none; }
.m-faq details[open]::before { transform: scaleY(1); }
.m-faq summary {
  padding: 17px 20px; font-size: 15.5px; font-weight: 700; line-height: 1.35; gap: 16px;
}
.m-faq summary::after {
  content: "+"; width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex: none;
  font-size: 18px; font-weight: 600; line-height: 1; padding-bottom: 1px;
  color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent);
  transition: transform .25s ease, background-color .2s ease, color .2s ease;
}
.m-faq details:hover summary::after { background: color-mix(in srgb, var(--c) 22%, transparent); }
.m-faq details[open] summary::after { content: "+"; transform: rotate(135deg); background: var(--c); color: #fff; }
.m-faq details > p {
  margin: 0; padding: 0 64px 20px 20px; color: var(--muted); font-size: 15px; line-height: 1.65;
  animation: m-faq-in .25s ease;
}
@keyframes m-faq-in { from { opacity: 0; transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .m-faq details > p { animation: none; } .m-faq details, .m-faq summary::after, .m-faq details::before { transition: none; } }
@media (max-width: 560px) { .m-faq details > p { padding-right: 20px; } }

/* Group headings on the How It Works FAQ: a colored pill-dot instead of a
   bare serif heading, matched to the cards beneath it. */
#faq h3 {
  display: flex; align-items: center; gap: 10px; margin: 38px 0 4px;
  font-size: 12.5px; font-family: "Public Sans", sans-serif; font-weight: 800;
  letter-spacing: .09em; text-transform: uppercase; color: var(--c, var(--rust));
}
#faq h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: currentColor; transform: rotate(45deg); flex: none; }
#faq h3::after { content: ""; flex: 1; height: 1px; background: color-mix(in srgb, currentColor 25%, transparent); }
#faq h3:nth-of-type(1), #faq .m-faq:nth-of-type(1) { --c: #B23A2E; }
#faq h3:nth-of-type(2), #faq .m-faq:nth-of-type(2) { --c: #2D4ED2; }
#faq h3:nth-of-type(3), #faq .m-faq:nth-of-type(3) { --c: #117845; }
:root[data-theme="dark"] #faq h3:nth-of-type(2), :root[data-theme="dark"] #faq .m-faq:nth-of-type(2) { --c: #7C93F5; }
:root[data-theme="dark"] #faq h3:nth-of-type(3), :root[data-theme="dark"] #faq .m-faq:nth-of-type(3) { --c: #3FBF84; }
