:root {
  --paper: #f3ebd9;
  --card: #fbf7ec;
  --ink: #14284b;
  --muted: #55627a;
  --accent: #c2452d;
  --line: #ddd2b9;
  --wave: #2b4c7e;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1a2e;
    --card: #162540;
    --ink: #f3ebd9;
    --muted: #a9b5c9;
    --accent: #e0765f;
    --line: #2a3b5c;
    --wave: #8fb0dc;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }

header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
nav a { color: var(--muted); text-decoration: none; margin-left: 18px; font-weight: 500; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }

main { padding: 36px 0 56px; }
h1 { font-size: 2.2rem; line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 1.4rem; margin: 40px 0 10px; }
h3 { font-size: 1.1rem; margin: 24px 0 6px; }
p, li { max-width: 68ch; }
.lead { font-size: 1.2rem; color: var(--muted); }
.muted { color: var(--muted); }

.hero { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; padding: 12px 0 8px; }
.hero img.icon { width: 168px; height: 168px; border-radius: 38px; box-shadow: 0 10px 30px rgba(20, 40, 75, 0.25); }
.hero .text { flex: 1 1 320px; }
.hero h1 { font-size: 2.8rem; margin-bottom: 4px; }
.badge { display: inline-block; margin-top: 10px; padding: 8px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 600; font-size: 0.95rem; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.card h3 { margin-top: 0; }
.card p { margin: 0; }

.themes { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-top: 20px; }
.themes figure { margin: 0; text-align: center; }
.themes img { border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(20, 40, 75, 0.15); }
.themes figcaption { margin-top: 8px; font-weight: 600; }

details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 600; padding: 12px 0; }
details p { margin-top: 0; }

footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
footer.site .wrap { padding-top: 22px; padding-bottom: 30px; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
footer.site a { color: var(--muted); }
