/* app.css — reset, typography, layout shell, header, hero, footer.
   Apple-style: white canvas, tight display tracking, restrained accents,
   hairline dividers, and layouts that go 1-up → 2-up → 4-up. */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px; /* keep sticky header off in-page anchors */
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.47;
  letter-spacing: -0.011em;      /* optical tightening, like SF Pro */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;   /* Google Sans has no italic; never fake one */
  overflow-x: hidden;
}

img, svg, video, iframe { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.028em;      /* tight display tracking */
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--text-display); }
h2 { font-size: var(--text-title); }
h3 { font-size: var(--text-head); letter-spacing: -0.02em; }
p { margin: 0; }

/* ── utilities ──────────────────────────────────────────── */

.eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow--muted { color: var(--subtle); }

.lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  line-height: 1.42;
  letter-spacing: -0.015em;
  color: var(--muted);
  max-width: 34em;               /* comfortable measure */
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
}

.link-underline {
  color: var(--accent);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size var(--duration-fast) var(--ease-out);
}
.link-underline:hover { background-size: 100% 1px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 50%; translate: -50% -200%;
  z-index: 100; background: var(--black); color: var(--white);
  padding: 0.75rem 1.25rem; border-radius: var(--radius-pill);
  font-size: var(--text-sm); font-weight: 500;
  transition: translate var(--duration-fast) var(--ease-out);
}
.skip-link:focus { translate: -50% 0; }


/* ── buttons ────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: var(--tap); padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  background: var(--blue); color: var(--white);
  font-size: var(--text-sm); font-weight: 500; letter-spacing: -0.006em;
  white-space: nowrap;
  transition: background-color var(--duration-fast) var(--ease-out),
              opacity var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}
.btn:hover { background: var(--blue-hover); }
.btn:active { transform: scale(0.975); opacity: 0.9; }
.btn[disabled] { background: var(--grey-200); color: var(--white); pointer-events: none; }

.btn--ghost {
  background: transparent; color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--border);
}
.btn--ghost:hover { background: var(--blue-tint); box-shadow: inset 0 0 0 1px var(--blue); }

/* reserved for the black CTA variant in the Astro build */
.btn--black { background: var(--black); color: var(--white); }
.btn--black:hover { background: var(--grey-600); }

/* ── header ─────────────────────────────────────────────── */

.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-base) var(--ease-out);
}
.hdr[data-stuck] { border-bottom-color: var(--line); }

.hdr__bar {
  display: flex; align-items: center; gap: 1rem;
  min-height: 48px; padding-block: 0.5rem;   /* iOS-style compact bar */
}
@media (min-width: 1024px) { .hdr__bar { min-height: 56px; } }

.hdr__logo { display: flex; align-items: center; }
.hdr__logo img { height: 26px; width: auto; }
@media (min-width: 1024px) { .hdr__logo img { height: 30px; } }

.hdr__nav { display: none; margin-inline: auto; gap: 2.25rem; }
.hdr__nav a {
  font-size: var(--text-sm); font-weight: 400;
  color: var(--muted); padding-block: 0.5rem;
  transition: color var(--duration-fast) var(--ease-out);
}
.hdr__nav a:hover, .hdr__nav a[aria-current] { color: var(--ink); }

.hdr__actions {
  display: flex; align-items: center; gap: 0.25rem; margin-left: auto;
}
.icon-btn {
  display: grid; place-items: center;
  width: var(--tap); height: var(--tap);
  border-radius: 50%; color: var(--ink);
  transition: background-color var(--duration-fast) var(--ease-out);
}
.icon-btn:hover { background: var(--grey-50); }
.icon-btn:active { background: var(--grey-100); }
.icon-btn svg { width: 19px; height: 19px; }

.hdr__burger { display: grid; }
@media (min-width: 900px) {
  .hdr__nav { display: flex; }
  .hdr__burger { display: none; }
}

/* ── hero ────────────────────────────────────────────────── */

.hero { position: relative; overflow: clip; }
.hero__grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
/* iPad: 2-up, side by side */
@media (min-width: 834px) {
  .hero__grid { grid-template-columns: 1.05fr 1fr; }
}

.hero h1 { margin-block: 0.75rem 1.25rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.hero__media {
  position: relative; border-radius: var(--radius-xl);
  overflow: clip; background: var(--grey-50);
  aspect-ratio: 4 / 5; box-shadow: var(--shadow-sm);
}

/* ── marquee strip ───────────────────────────────────────── */

.strip {
  background: var(--grey-50);
  border-block: 1px solid var(--line);
  overflow: clip; padding-block: 0.875rem;
}
.strip ul {
  display: flex; gap: 3rem; width: max-content;
  animation: marquee 36s linear infinite;
}
.strip li {
  font-size: var(--text-sm); font-weight: 500; letter-spacing: -0.01em;
  color: var(--subtle); white-space: nowrap;
}
.strip li::after { content: "·"; color: var(--border); margin-left: 3rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip ul { animation: none; } }

/* ── editorial split ─────────────────────────────────────── */

.split { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 834px) { .split { grid-template-columns: 1fr 1fr; } }
.split__media {
  border-radius: var(--radius-xl); overflow: clip;
  aspect-ratio: 1 / 1; background: var(--grey-50);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
/* Same problem as the hero: the supplied logo artwork has its own white
   background, so it needs a white well + hairline instead of the grey one. */
.split__media--logo {
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}
.split__media--logo img { object-fit: contain; padding: 6%; }
.split ul { margin-top: 1.75rem; display: grid; gap: 1rem; }
.split li {
  display: flex; gap: 0.75rem; align-items: start;
  font-size: var(--text-sm); color: var(--muted);
}
.split li b { color: var(--ink); font-weight: 600; }
.split li svg {
  width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--blue);
}

/* ── feature row (3-up on desktop, stacked on iPhone) ─────── */

.features {
  display: grid; gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 834px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature {
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-xs), inset 0 0 0 1px var(--line);
}
.feature h3 { font-size: 1.0625rem; margin-bottom: 0.375rem; }
.feature p { font-size: var(--text-sm); color: var(--muted); }
.feature__icon {
  display: grid; place-items: center;
  width: 36px; height: 36px; margin-bottom: 1rem;
  border-radius: 50%; background: var(--blue-tint); color: var(--blue);
}
.feature__icon svg { width: 18px; height: 18px; }

/* ── footer ──────────────────────────────────────────────── */

.ftr { background: var(--grey-50); border-top: 1px solid var(--line); margin-top: var(--section-y); }
.ftr__grid {
  display: grid; gap: 2rem;
  padding-block: clamp(2.5rem, 6vw, 4rem);
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.ftr h4 {
  font-size: var(--text-xs); font-weight: 600; color: var(--ink);
  margin-bottom: 0.875rem;
}
.ftr ul { display: grid; gap: 0.5rem; font-size: var(--text-sm); color: var(--muted); }
.ftr a:hover { color: var(--ink); }
.ftr__base {
  border-top: 1px solid var(--line);
  padding-block: 1.25rem; font-size: var(--text-xs); color: var(--subtle);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
}
.ftr__blurb { font-size: var(--text-sm); color: var(--muted); max-width: 32ch; }

/* ── wordmark: blue "French" + black "Glow", echoing the logo ─ */

.wordmark {
  font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.03em;
  color: var(--black); line-height: 1;
}
.wordmark b { font-weight: 600; color: var(--blue); }
@media (min-width: 1024px) { .wordmark { font-size: 1.3125rem; } }

.text-blue { color: var(--blue); }

/* Logo artwork has its own white background, so it sits on white with a
   hairline instead of the grey media well. */
.hero__media--logo {
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  aspect-ratio: 1 / 1;
}
.hero__media--logo img { object-fit: contain; padding: 4%; }
.hero__media--logo .hero__stat { box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }

/* ── small layout helpers (replace inline styles) ────────── */

.ritual-link { margin-top: 1.75rem; font-size: var(--text-sm); font-weight: 500; }
.split--start { align-items: start; }
.story { border-top: 1px solid var(--line); padding-top: clamp(2.5rem, 6vw, 4rem); }
.section--flush-top { padding-top: 0; }
.empty .lede { margin-top: 0.5rem; }
.lede--tight { margin-top: 1rem; }

.modal__actions { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 0.75rem; }
.modal__actions .btn { flex: 1 1 140px; }

.crumbs {
  display: flex; flex-wrap: wrap; gap: 0.375rem;
  padding-block: 1rem; font-size: var(--text-xs); color: var(--subtle);
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }

.u-mt-sm { margin-top: 0.75rem; }

.ftr--slim { margin-top: var(--section-y); }
.ftr--slim .ftr__base { border-top: 0; }

.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__stat {
  position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.75rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: center;
  padding: 0.75rem 1rem; border-radius: var(--radius-pill);
  font-size: var(--text-xs); font-weight: 500; color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* ── layout ─────────────────────────────────────────────── */

.wrap { width: min(100% - var(--gutter) * 2, var(--maxw)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--tint { background: var(--grey-50); }   /* alternating band */
/* A tinted band owns its padding on both edges, otherwise the colour would
   hug the content right where the previous white section ends. */
.section--tint.section--flush-top { padding-top: var(--section-y); }

.section__head {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  align-items: end; justify-content: space-between;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}
.section__head .lede { margin-top: 0.75rem; }
