/* Fablewalk — site vitrine. Identité « éditorial chaleureux » (docs/fablewalk-brand.md) :
   papier, encre, terracotta, serif. Tokens d'abord, composants ensuite. */

:root {
  --paper: #faf6f0;
  --surface: #fffdf9;
  --ink: #1c1917;
  --ink-2: #6f675f;
  --accent: #c2571b;
  --accent-soft: rgba(194, 87, 27, 0.1);
  --line: rgba(28, 25, 23, 0.12);
  --serif: "Iowan Old Style", "New York", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1c1917;
    --surface: #26211d;
    --ink: #f3eee7;
    --ink-2: #a89f94;
    --accent: #e0763a;
    --accent-soft: rgba(224, 118, 58, 0.14);
    --line: rgba(243, 238, 231, 0.14);
  }
}
:root[data-theme="light"] {
  --paper: #faf6f0;
  --surface: #fffdf9;
  --ink: #1c1917;
  --ink-2: #6f675f;
  --accent: #c2571b;
  --accent-soft: rgba(194, 87, 27, 0.1);
  --line: rgba(28, 25, 23, 0.12);
}
:root[data-theme="dark"] {
  --paper: #1c1917;
  --surface: #26211d;
  --ink: #f3eee7;
  --ink-2: #a89f94;
  --accent: #e0763a;
  --accent-soft: rgba(224, 118, 58, 0.14);
  --line: rgba(243, 238, 231, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* padding-top only — the horizontal inset belongs to .wrap */
  padding-top: 28px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.wordmark span {
  color: var(--accent);
}

.site-header nav {
  display: flex;
  gap: 20px;
}

.site-header nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.9375rem;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--accent);
}

/* ---------- hero ---------- */

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

.hero .mascot {
  width: 148px;
  height: 148px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(28, 25, 23, 0.16);
}

.hero .mascot video,
.hero .mascot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Animated owl for motion-safe visitors, still sticker otherwise. */
.hero .mascot-still {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero .mascot-video {
    display: none;
  }
  .hero .mascot-still {
    display: block;
  }
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 28px 0 16px;
  text-wrap: balance;
}

.hero .lede {
  color: var(--ink-2);
  font-size: 1.1875rem;
  max-width: 34em;
  margin: 0 auto;
}

/* ---------- listening card : le produit, en vrai ---------- */

.listen-card {
  margin: 48px auto 0;
  max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 28px 24px;
  text-align: left;
  box-shadow: 0 18px 48px rgba(28, 25, 23, 0.08);
}

.listen-card .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  font-weight: 600;
}

.waveform {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.waveform i {
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
  animation: wave 1.15s ease-in-out infinite;
}

.waveform i:nth-child(1) { height: 40%; animation-delay: 0s; }
.waveform i:nth-child(2) { height: 90%; animation-delay: 0.15s; }
.waveform i:nth-child(3) { height: 60%; animation-delay: 0.3s; }
.waveform i:nth-child(4) { height: 100%; animation-delay: 0.45s; }
.waveform i:nth-child(5) { height: 50%; animation-delay: 0.6s; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  .waveform i {
    animation: none;
  }
}

.listen-card h2 {
  font-family: var(--serif);
  font-size: 1.375rem;
  margin: 14px 0 10px;
  line-height: 1.3;
}

.listen-card blockquote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding-left: 16px;
}

.listen-card .credit {
  margin: 14px 0 0;
  font-size: 0.8125rem;
  color: var(--ink-2);
}

/* ---------- CTA ---------- */

.cta {
  margin: 40px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
  padding: 12px 22px;
  text-decoration: none;
  line-height: 1.2;
}

.store-badge .apple {
  font-size: 1.75rem;
}

.store-badge small {
  display: block;
  font-size: 0.6875rem;
  opacity: 0.75;
}

.store-badge strong {
  font-size: 1.0625rem;
  font-weight: 600;
}

.cta .note {
  color: var(--ink-2);
  font-size: 0.875rem;
}

/* ---------- sections ---------- */

main section {
  padding: 56px 0 0;
}

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 10px;
}

main section > .wrap > h2 {
  font-family: var(--serif);
  font-size: 1.875rem;
  line-height: 1.2;
  margin: 0 0 24px;
  text-wrap: balance;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}

.feature h3 {
  font-family: var(--serif);
  font-size: 1.125rem;
  margin: 0 0 8px;
}

.feature p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.steps li {
  counter-increment: step;
  display: flex;
  gap: 16px;
  align-items: baseline;
}

.steps li::before {
  content: counter(step);
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--accent);
  min-width: 1.4em;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  line-height: 1.4;
}

.steps strong {
  font-weight: 600;
}

.steps p {
  margin: 2px 0 0;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.pricing {
  background: var(--accent-soft);
  border-radius: 20px;
  padding: 32px 28px;
  text-align: center;
}

.pricing h2 {
  font-family: var(--serif);
  font-size: 1.625rem;
  margin: 0 0 8px;
}

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

/* ---------- pages légales ---------- */

.legal {
  /* padding-top only — the horizontal inset belongs to .wrap */
  padding-top: 48px;
}

.legal h1 {
  font-family: var(--serif);
  font-size: 2.125rem;
  line-height: 1.15;
  margin: 0 0 6px;
}

.legal .updated {
  color: var(--ink-2);
  font-size: 0.875rem;
  margin: 0 0 32px;
}

.legal h2 {
  font-family: var(--serif);
  font-size: 1.375rem;
  margin: 36px 0 10px;
}

.legal p,
.legal li {
  max-width: 68ch;
}

.legal a {
  color: var(--accent);
}

/* ---------- footer ---------- */

.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  padding: 28px 0 44px;
  color: var(--ink-2);
  font-size: 0.875rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer a {
  color: var(--ink-2);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent);
}

a:focus-visible,
.store-badge:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
