:root {
  --bg: #F7F4F1;
  --surface: #FDFCFB;
  --border: #E8E3DC;
  --text: #1E1A16;
  --muted: #6F6358;
  --accent: #8B4A2E;
  --accent-ink: #FDFCFB;
  --accent-soft: #F2E9E4;
  --maxw: 44rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171310;
    --surface: #211B17;
    --border: #3A302A;
    --text: #F2ECE6;
    --muted: #B7AA9E;
    --accent: #D9895F;
    --accent-ink: #1E1A16;
    --accent-soft: #2C221D;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1rem; }

header.site {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 3.75rem; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text); }
.brand img { width: 2rem; height: 2rem; border-radius: 0.5rem; }
.brand span { font: italic 600 1.5rem/1 "Cormorant Garamond", Georgia, serif; }
nav.site { display: flex; gap: 1.1rem; font-size: 0.95rem; }
nav.site a { color: var(--muted); text-decoration: none; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--text); }

main { padding: 3rem 0 4rem; }

.hero { text-align: center; padding: 2rem 0 1rem; }
.hero img { width: 7.5rem; height: 7.5rem; border-radius: 1.75rem; box-shadow: 0 8px 30px rgb(0 0 0 / 0.12); }
.hero h1 {
  font: italic 500 clamp(2.6rem, 9vw, 3.6rem)/1.05 "Cormorant Garamond", Georgia, serif;
  margin: 1.25rem 0 0.5rem;
}
.hero p.tagline { font: italic 500 clamp(1.5rem, 5vw, 1.9rem)/1.2 "Cormorant Garamond", Georgia, serif; color: var(--text); margin: 0 auto 0.75rem; }
.hero p.lede { font-size: 1.15rem; color: var(--muted); margin: 0 auto; max-width: 30rem; }

.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1.75rem; padding: 0.7rem 1.2rem; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none;
}
.badge small { font-weight: 400; opacity: 0.85; }

.features { display: grid; gap: 0.9rem; margin: 3rem 0 0; padding: 0; list-style: none; }
@media (min-width: 40rem) { .features { grid-template-columns: 1fr 1fr; } }
.features li {
  background: var(--surface); border: 1px solid var(--border); border-radius: 1rem; padding: 1.1rem 1.2rem;
}
.features strong { display: block; margin-bottom: 0.2rem; }
.features span { color: var(--muted); font-size: 0.95rem; }

.doc h1 { font: italic 500 2.6rem/1.1 "Cormorant Garamond", Georgia, serif; margin: 0 0 0.25rem; }
.doc .meta { color: var(--muted); font-size: 0.9rem; margin: 0 0 2rem; }
.doc h2 { font-size: 1.15rem; margin: 2.2rem 0 0.5rem; }
.doc h3 { font-size: 1rem; margin: 1.4rem 0 0.4rem; }
.doc ul { padding-left: 1.2rem; }
.doc li { margin: 0.25rem 0; }

.card {
  background: var(--accent-soft); border: 1px solid var(--border); border-radius: 1rem;
  padding: 1.2rem 1.3rem; margin: 1.5rem 0;
}
.card p { margin: 0.25rem 0; }
.card a.mail { font-size: 1.15rem; font-weight: 600; }

details { border-bottom: 1px solid var(--border); padding: 0.8rem 0; }
details summary { cursor: pointer; font-weight: 600; }
details p { margin: 0.6rem 0 0.2rem; color: var(--text); }

footer.site { border-top: 1px solid var(--border); color: var(--muted); font-size: 0.875rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; justify-content: space-between; padding-top: 1.25rem; padding-bottom: 2rem; }
footer.site nav { display: flex; gap: 1rem; flex-wrap: wrap; }
footer.site a { color: var(--muted); }
