/* Copiste : papier et encre. Parchemin, encre bleu nuit, rubrique sienne. */
:root {
  --bg: #f6f1e7;
  --surface: #fffdf8;
  --border: #e4dacb;
  --text: #1e2433;
  --muted: #6b6457;
  --accent: #b4532a;
  --accent-strong: #8f3f1d;
  --glow: rgba(180, 83, 42, .14);
  --glow-ink: rgba(30, 36, 51, .07);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161b;
    --surface: #1d2027;
    --border: #2c3039;
    --text: #ede6d8;
    --muted: #a9a193;
    --accent: #e08a5e;
    --accent-strong: #f0a77f;
    --glow: rgba(224, 138, 94, .14);
    --glow-ink: rgba(91, 107, 158, .16);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(520px 520px at 100% -10%, var(--glow), transparent 70%),
    radial-gradient(600px 600px at -10% 110%, var(--glow-ink), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }

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

header.site { border-bottom: 1px solid var(--border); }
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav { display: flex; gap: 18px; font-size: 15px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); }

main { padding: 40px 0 56px; }

.hero { text-align: center; padding: 16px 0 8px; }
.hero img {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(180, 83, 42, .28);
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}
@media (prefers-reduced-motion: reduce) { .hero img { animation: none; } }
.hero h1 { margin: 22px 0 6px; font-size: 36px; font-weight: 700; letter-spacing: .02em; line-height: 1.2; }
.hero p { margin: 0 auto; max-width: 480px; color: var(--muted); }
.badge {
  display: inline-block;
  margin-top: 18px;
  padding: 6px 14px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

h1 { font-size: 28px; font-weight: 700; line-height: 1.25; margin: 0 0 8px; }
h2 { font-size: 20px; font-weight: 600; margin: 36px 0 10px; }
h3 { font-size: 17px; margin: 24px 0 6px; }
p, ul { margin: 0 0 14px; }
ul { padding-left: 22px; }
li { margin-bottom: 6px; }
.muted { color: var(--muted); }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 36px 0;
  padding: 0;
  list-style: none;
}
.features li {
  margin: 0;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .05);
}
.features strong { display: block; color: var(--accent); font-weight: 600; margin-bottom: 4px; }
.features span { color: var(--muted); font-size: 15px; }

.card {
  margin: 24px 0;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
}
.card p:last-child { margin-bottom: 0; }

details {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--muted); }

footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 32px;
  font-size: 14px;
  color: var(--muted);
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer a { color: var(--muted); }

@media (max-width: 480px) {
  nav { gap: 12px; font-size: 14px; }
  .brand span { display: none; }
  .hero h1 { font-size: 30px; }
}
