:root {
  --bg: #f7f3ef;
  --surface: #ffffff;
  --ink: #2a2430;
  --muted: #6b6170;
  --accent: #5b4b6e;
  --accent-soft: #ebe4f0;
  --line: #e6ddd4;
  --max: 920px;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(42, 36, 48, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #3f334d; }

.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 243, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand img { width: 34px; height: 34px; }
.brand span { font-size: 0.98rem; }
.nav { display: flex; flex-wrap: wrap; gap: 0.85rem 1.1rem; font-size: 0.95rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }

.hero {
  padding: 2.6rem 0 1.6rem;
}
.hero-card {
  background: linear-gradient(160deg, #fff 0%, #f3ecf7 100%);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
.kicker {
  display: inline-block;
  margin: 0 0 0.7rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  line-height: 1.2;
}
.hero p { margin: 0 0 1rem; color: var(--muted); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.1rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.05rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #3f334d; color: #fff; }
.btn-ghost { background: #fff; color: var(--accent); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.section { padding: 1.4rem 0 2.2rem; }
.section h2 {
  margin: 0 0 0.85rem;
  font-size: 1.25rem;
}
.section-intro { margin: 0 0 1.1rem; color: var(--muted); max-width: 60ch; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}
.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem 1.1rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-2px); border-color: #cbbfd8; color: inherit; }
.card h3 { margin: 0 0 0.4rem; font-size: 1.05rem; color: var(--accent); }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card .tag {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow);
}
.panel.empty {
  border-style: dashed;
  background: #fbf9f7;
  color: var(--muted);
}
.panel.empty h3 { margin: 0 0 0.4rem; color: var(--ink); }
.panel.empty p { margin: 0; }

.prose {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 1.8rem);
  box-shadow: var(--shadow);
}
.prose h1 { margin-top: 0; font-size: clamp(1.55rem, 3vw, 2rem); }
.prose h2 { margin-top: 1.6rem; font-size: 1.2rem; }
.prose p, .prose li { color: #3a3340; }
.prose ul { padding-left: 1.2rem; }
.prose .meta { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.2rem; }
.note {
  margin: 1.2rem 0 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 10px 10px 0;
  color: #3f3648;
  font-size: 0.95rem;
}

.site-footer {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  background: #efe9e3;
  padding: 1.4rem 0 2rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.site-footer .wrap {
  display: grid;
  gap: 0.85rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.1rem; }
.footer-links a { color: var(--accent); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.age-note {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: #ddcfe8;
  color: #3f334d;
  font-weight: 700;
  font-size: 0.8rem;
}

@media (max-width: 640px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; }
}
