/* Flock Faith product website. Shared by / and /communities/.
   Brand tokens mirror src/theme/colors.ts. No framework, no build step. */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/cormorant-garamond-300.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/cormorant-garamond-400.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/cormorant-garamond-400i.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/cormorant-garamond-500.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/cormorant-garamond-600.woff2") format("woff2"); }

:root {
  --forest: #1F2D24;
  --forest-deep: #18231C;
  --terracotta: #C35A2E;
  /* Terracotta darkened just enough for white button text to pass WCAG AA (5.2:1). */
  --action: #B04F28;
  --action-hover: #96421F;
  --cream: #F6F3ED;
  --paper: #FBF9F5;
  --stone: #D9CBB7;
  --stone-soft: #E8DFD2;
  --olive: #55684F;
  --ink: #1F2D24;
  --muted: #5E564D;
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1200px;
  --section: clamp(72px, 10vw, 144px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; border-radius: 4px; }
.band-forest :focus-visible { outline-color: var(--stone); }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--forest); margin: 0; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.75rem, 1.6rem + 5vw, 5.4rem); line-height: 1.02; }
h2 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem); line-height: 1.06; }
h3 { font-size: clamp(1.55rem, 1.3rem + 0.8vw, 1.9rem); line-height: 1.15; font-weight: 600; }
em, .italic { font-style: italic; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--forest); color: var(--cream); padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(760px + 2 * var(--gutter)); }

/* Eyebrow: small caps label with a short Stone rule */
.eyebrow {
  display: flex; align-items: center; gap: 12px; margin: 0 0 22px;
  font: 600 12px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--olive);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--olive); opacity: .6; flex: none; }
.band-forest .eyebrow { color: var(--stone); }
.band-forest .eyebrow::before { background: var(--stone); }

.lede { font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); line-height: 1.6; color: var(--muted); max-width: 34em; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--stone-soft); background: var(--cream); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--forest); }
.brand img { width: 30px; height: 30px; object-fit: contain; }
.brand span { font: 300 34px/1 var(--serif); letter-spacing: .04em; margin-top: -4px; }
.nav ul { display: flex; gap: clamp(14px, 2.4vw, 32px); list-style: none; margin: 0; padding: 0; }
.nav a { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--forest); padding: 8px 0; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.nav .opt { display: none; }
@media (min-width: 760px) { .nav .opt { display: list-item; } }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px;
  padding: 14px 26px; border-radius: 999px; font: 600 16px/1.2 var(--sans); text-decoration: none;
  background: var(--action); color: #fff; border: 0; transition: background-color .15s ease;
}
.btn:hover { background: var(--action-hover); }
.btn svg { width: 16px; height: 16px; flex: none; }
.text-link { font-weight: 600; font-size: 16px; color: var(--forest); text-underline-offset: 5px; }
.band-forest .text-link { color: var(--cream); }

/* ---------- Ornament ---------- */
.ornament { display: flex; align-items: center; justify-content: center; gap: 18px; color: var(--stone); margin: 0 auto; max-width: 420px; padding: 0 var(--gutter); }
.ornament::before, .ornament::after { content: ""; flex: 1; height: 1px; background: var(--stone); }
.ornament svg { width: 14px; height: 20px; flex: none; }

/* ---------- Device frame (neutral, CSS only) ---------- */
.device {
  position: relative; width: 100%; max-width: 300px; height: max-content; align-self: center; margin: 0;
  padding: 9px; border-radius: 34px; background: #222823;
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 30px 60px -28px rgba(31,45,36,.45), 0 12px 24px -16px rgba(31,45,36,.35);
}
.device picture { display: block; }
.device img { width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 26px; object-fit: cover; background: var(--paper); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 112px) 0 clamp(64px, 9vw, 128px); overflow: hidden; }
.hero .wrap { display: grid; gap: clamp(48px, 6vw, 72px); align-items: center; }
.hero h1 { max-width: 11ch; }
.hero .lede { margin-top: 28px; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .device.front { max-width: 270px; z-index: 2; }
.hero-visual .device.back { display: none; }
.hero-visual .halo {
  position: absolute; z-index: 0; width: min(440px, 92%); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--stone); top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.hero-visual .halo::after { content: ""; position: absolute; inset: 26px; border-radius: 50%; border: 1px solid var(--stone-soft); }
@media (min-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .hero-visual { min-height: 640px; }
  .hero-visual .device.front { max-width: 300px; transform: translateX(-60px); }
  .hero-visual .device.back { display: block; position: absolute; max-width: 240px; left: calc(50% + 40px); top: 110px; z-index: 1; }
  .hero-visual .halo { width: 540px; left: calc(50% + 20px); }
}

.coming-soon {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--stone); max-width: 30em;
  display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: start;
}
.coming-soon img { width: 26px; height: 26px; grid-row: span 2; margin-top: 2px; object-fit: contain; }
.coming-soon strong { font-weight: 600; font-size: 16px; }
.coming-soon span { font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* ---------- Quote band ---------- */
.quote { padding: clamp(56px, 8vw, 104px) 0; text-align: center; }
.quote blockquote { margin: 0 auto; max-width: 820px; }
.quote p { font: italic 400 clamp(1.7rem, 1.2rem + 2vw, 2.7rem)/1.25 var(--serif); color: var(--forest); margin: 34px 0; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-head { max-width: 40em; margin-bottom: clamp(48px, 7vw, 96px); }
.section-head h2 { max-width: 16ch; }
.section-head .lede, h2 + .lede { margin-top: 22px; }
.rule-top { border-top: 1px solid var(--stone); }

/* Editorial feature rows (alternating) */
.features { list-style: none; margin: 0; padding: 0; }
.feature { display: grid; gap: 36px; align-items: center; padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--stone-soft); }
.feature:first-child { border-top: 0; padding-top: 0; }
.feature .numeral { font: italic 400 22px/1 var(--serif); color: var(--olive); display: block; margin-bottom: 16px; }
.feature h3 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); font-weight: 500; line-height: 1.1; max-width: 19ch; }
.feature p { color: var(--muted); max-width: 31em; margin-top: 18px; }
.feature ul.points { list-style: none; padding: 0; margin: 22px 0 0; max-width: 31em; }
.feature ul.points li { padding: 11px 0 11px 22px; border-top: 1px solid var(--stone-soft); position: relative; font-size: 16px; }
.feature ul.points li::before { content: ""; position: absolute; left: 2px; top: 1.2em; width: 7px; height: 7px; border: 1px solid var(--olive); transform: rotate(45deg); }
.feature .note { font-size: 14px; color: var(--muted); border-left: 2px solid var(--stone); padding-left: 14px; margin-top: 22px; }
.feature .media { display: flex; justify-content: center; }
.feature .device { max-width: 260px; }
@media (min-width: 860px) {
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 8vw, 120px); }
  .feature:nth-child(even) .media { order: -1; }
  .feature .device { max-width: 290px; }
}

/* Forest band */
.band-forest { background: var(--forest); color: var(--cream); }
.band-forest h2, .band-forest h3 { color: var(--cream); }
.band-forest .lede, .band-forest p { color: #E4DCCF; }
.band-forest a:not(.btn) { color: var(--cream); }
.leaders { display: grid; gap: 56px; align-items: center; }
.leaders .device { max-width: 260px; background: #0F1712; margin: 0 auto; }
.tools { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 0 40px; }
.tools li { padding: 16px 0; border-top: 1px solid rgba(217,203,183,.28); }
.tools strong { display: block; font: 600 1.35rem/1.2 var(--serif); color: var(--cream); margin-bottom: 4px; }
.tools span { font-size: 15.5px; color: #DCD3C5; }
.band-mark { width: 40px; height: 40px; object-fit: contain; opacity: .9; margin-bottom: 28px; }
@media (min-width: 680px) { .tools { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .leaders { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 96px; } }

/* Safety: definition list in two columns */
.safety { display: grid; gap: 48px; }
.safety dl { margin: 0; display: grid; gap: 0 48px; }
.safety dl > div { padding: 20px 0; border-top: 1px solid var(--stone); }
.safety dt { font: 600 1.4rem/1.2 var(--serif); color: var(--forest); margin-bottom: 6px; }
.safety dd { margin: 0; color: var(--muted); font-size: 16px; }
.age-note { display: inline-flex; gap: 10px; align-items: center; margin-top: 26px; padding: 8px 14px; border: 1px solid var(--stone); border-radius: 999px; font-size: 14px; font-weight: 600; }
@media (min-width: 720px) { .safety dl { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .safety { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 96px; } }

/* Download */
.download { text-align: center; padding: var(--section) 0; }
.download img.mark { width: 56px; height: 56px; object-fit: contain; margin: 0 auto 28px; }
.download h2 { max-width: 16ch; margin: 0 auto; }
.download .lede { margin: 22px auto 0; }
.store-status { list-style: none; padding: 0; margin: 40px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.store-status li { border: 1px solid var(--stone); border-radius: 14px; padding: 14px 22px; min-width: 220px; text-align: left; background: var(--paper); }
.store-status b { display: block; font-weight: 600; font-size: 15.5px; }
.store-status small { font-size: 13.5px; color: var(--muted); }
.badges { list-style: none; padding: 0; margin: 36px 0 0; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.badges img { height: 48px; width: auto; }
.contact-line { margin-top: 36px; font-size: 15.5px; color: var(--muted); }

/* Optional founder photo slot (renders nothing until filled; see HTML comments) */
.photo-slot { margin: 0; }
.photo-slot img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.photo-slot figcaption { font-size: 13.5px; color: var(--muted); margin-top: 10px; }

/* ---------- Communities page ---------- */
.page-hero { padding: clamp(56px, 8vw, 112px) 0 clamp(48px, 6vw, 88px); }
.page-hero h1 { font-size: clamp(2.5rem, 1.5rem + 4.2vw, 4.6rem); max-width: 15ch; }
.page-hero .lede { margin-top: 26px; }
.cap-grid { display: grid; gap: 0 56px; }
.cap { padding: 30px 0; border-top: 1px solid var(--stone); }
.cap h3 { margin-bottom: 10px; }
.cap p { color: var(--muted); margin: 0; }
.cap ul { margin: 12px 0 0; padding-left: 0; list-style: none; color: var(--muted); font-size: 16px; }
.cap ul li { padding: 3px 0 3px 20px; position: relative; }
.cap ul li::before { content: ""; position: absolute; left: 2px; top: .9em; width: 6px; height: 6px; border: 1px solid var(--olive); transform: rotate(45deg); }
@media (min-width: 820px) { .cap-grid { grid-template-columns: 1fr 1fr; } }
.screens-pair { display: flex; align-items: flex-start; gap: clamp(16px, 4vw, 48px); justify-content: center; margin-top: clamp(48px, 6vw, 80px); }
.screens-pair .device { max-width: 250px; align-self: flex-start; }
.screens-pair .device:nth-child(2) { margin-top: 56px; align-self: flex-start; }
@media (max-width: 520px) { .screens-pair .device:nth-child(2) { display: none; } }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 64px 1fr; gap: 0 18px; padding: 28px 0; border-top: 1px solid var(--stone); }
.steps li::before { content: counter(step, upper-roman) "."; font: italic 400 1.9rem/1 var(--serif); color: var(--olive); padding-top: 2px; }
.steps h3 { font-size: 1.55rem; margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 0; }
.steps .fields { margin-top: 12px; font-size: 15.5px; color: var(--muted); }
.steps .fields b { color: var(--forest); font-weight: 600; }
.panel { background: var(--paper); border: 1px solid var(--stone); border-radius: 18px; padding: clamp(24px, 4vw, 40px); }
.panel h2 { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem); }
.two-col { display: grid; gap: 48px; }
@media (min-width: 960px) { .two-col { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 80px; align-items: start; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-deep); color: #E4DCCF; padding: clamp(56px, 7vw, 88px) 0 40px; font-size: 15px; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-top { display: grid; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(217,203,183,.22); }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 30px; height: 30px; object-fit: contain; }
.footer-brand span { font: 300 34px/1 var(--serif); color: var(--cream); letter-spacing: .04em; margin-top: -4px; }
.footer-tag { font: italic 400 1.2rem/1.4 var(--serif); color: var(--stone); margin: 14px 0 0; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 28px; }
.footer-cols h2 { font: 600 12px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--stone); margin-bottom: 14px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { padding: 4px 0; }
.footer-legal { padding-top: 28px; display: grid; gap: 10px; font-size: 13.5px; color: #CFC5B6; }
.footer-legal p { margin: 0; max-width: 60em; }
@media (min-width: 900px) { .footer-top { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header .nav, .hero-visual, .media, .screens-pair { display: none; }
  body { background: #fff; }
}
.badges { list-style: none; padding: 0; margin: 28px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.badges img { display: block; height: 48px; width: auto; }
.coming-soon a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.store-status a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
