:root {
  --bg: #FFF7EC;
  --surface: #FFFFFF;
  --text: #2B1A17;
  --muted: #6E5A54;
  --line: #EBDCCB;
  --accent: #B8452F;
  --accent-2: #D93F2E;
  --leaf: #2E9461;
  --radius: 18px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C0D0E;
    --surface: #2A1517;
    --text: #F7EBE4;
    --muted: #C4ADA6;
    --line: #42272A;
    --accent: #F28A4A;
    --accent-2: #F5A06A;
    --leaf: #43B070;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-2); }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

header.site {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 0;
}
header.site .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 19px; }
header.site .brand img { width: 34px; height: 34px; border-radius: 8px; }
header.site nav { display: flex; gap: 16px; font-size: 15px; flex-wrap: wrap; justify-content: flex-end; }
header.site nav a { color: var(--muted); text-decoration: none; }
header.site nav a:hover, header.site nav a[aria-current] { color: var(--text); }

.hero { text-align: center; padding: 48px 0 32px; }
.hero img { width: 128px; height: 128px; border-radius: 29px; box-shadow: 0 10px 30px rgba(120, 50, 30, .18); }
.hero h1 { font-size: clamp(34px, 7vw, 48px); line-height: 1.1; margin: 24px 0 10px; letter-spacing: -0.02em; }
.hero p.lead { font-size: 20px; color: var(--muted); margin: 0 auto; max-width: 30em; }
.badge { display: inline-block; margin-top: 24px; padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 15px; }

.loop { text-align: center; font-weight: 600; color: var(--accent); letter-spacing: .02em; margin: 8px 0 32px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 0 0 48px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

main.doc { padding: 24px 0 48px; }
main.doc h1 { font-size: clamp(28px, 6vw, 38px); line-height: 1.15; margin: 8px 0 6px; letter-spacing: -0.01em; }
main.doc .meta { color: var(--muted); font-size: 15px; margin: 0 0 28px; }
main.doc h2 { font-size: 21px; margin: 36px 0 8px; }
main.doc h3 { font-size: 17px; margin: 22px 0 4px; }
main.doc ul { padding-left: 22px; }
main.doc li { margin: 4px 0; }

.summary { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--leaf); border-radius: 12px; padding: 16px 20px; }
.summary p { margin: 0; }

.contact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 8px 0 8px; }
.contact a.mail { font-size: 22px; font-weight: 700; text-decoration: none; }

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

footer.site { border-top: 1px solid var(--line); padding: 22px 0 40px; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
footer.site a { color: var(--muted); }
footer.site nav { display: flex; gap: 16px; flex-wrap: wrap; }
