:root {
  --plum: #3d0b40;
  --plum-soft: #5a1a5e;
  --embed: #4b1450;
  --paper: #f7f1f8;
  --card: #ffffff;
  --ink: #24082a;
  --muted: #6b4f70;
  --fizzy: #1f9a63;
  --fizzy-bright: #5fe39a;
  --line: #e4d6e7;
  --head-font: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --body-font: "Lexend", "Segoe UI", system-ui, sans-serif;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1b0a1e;
    --card: #2a1030;
    --ink: #f3e8f5;
    --muted: #c3a9c8;
    --fizzy: #5fe39a;
    --line: #43214a;
  }
}
:root[data-theme="dark"] {
  --paper: #1b0a1e;
  --card: #2a1030;
  --ink: #f3e8f5;
  --muted: #c3a9c8;
  --fizzy: #5fe39a;
  --line: #43214a;
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 1rem;
  line-height: 1.7;
}
a { color: var(--fizzy); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--fizzy-bright); outline-offset: 2px; border-radius: 3px; }

header {
  background: var(--plum);
  color: #fbeffc;
  padding: 3.5rem 1.25rem 3rem;
}
.wrap { max-width: 44rem; margin: 0 auto; }
.brand {
  display: inline-block;
  font-size: 0.9rem;
  color: #d9bfdd;
  text-decoration: none;
  margin-bottom: 1.5rem;
}
.brand:hover { color: #fff; }
header h1 {
  font-family: var(--head-font);
  font-weight: 600;
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  line-height: 1.05;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}
header p { margin: 0; color: #e6d3e9; max-width: 36rem; }
.updated {
  margin-top: 1.5rem;
  display: inline-block;
  background: var(--plum-soft);
  border-left: 4px solid var(--fizzy-bright);
  padding: 0.4rem 0.8rem;
  border-radius: 0 4px 4px 0;
  font-size: 0.9rem;
}

main { padding: 2.5rem 1.25rem 3rem; }
.summary {
  background: var(--embed);
  color: #f6eaf7;
  border-left: 5px solid var(--fizzy-bright);
  border-radius: 0 6px 6px 0;
  padding: 1.25rem 1.4rem;
  margin-bottom: 2.75rem;
}
.summary h2 {
  font-family: var(--head-font);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}
.summary ul { margin: 0; padding-left: 1.2rem; }
.summary li { margin: 0.25rem 0; }

section { margin-bottom: 2.5rem; }
section h2 {
  font-family: var(--head-font);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}
section h3 {
  font-family: var(--head-font);
  font-weight: 500;
  font-size: 1.1rem;
  margin: 1.5rem 0 0.4rem;
}
section p { margin: 0 0 0.9rem; }
section ul { margin: 0 0 0.9rem; padding-left: 1.2rem; }
section li { margin: 0.3rem 0; }

.data {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--fizzy);
  border-radius: 0 6px 6px 0;
  padding: 0.9rem 1.1rem;
  margin: 0 0 1rem;
}
.data h3 { margin-top: 0; }
.data p:last-child, .data ul:last-child { margin-bottom: 0; }
.note { color: var(--muted); font-size: 0.95rem; }

footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 1.25rem 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }

.theme-toggle {
  float: right;
  font: inherit;
  font-size: 0.85rem;
  color: #f6eaf7;
  background: var(--plum-soft);
  border: 1px solid #7a3a80;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
}
.theme-toggle:hover { background: #6d2472; }
.theme-toggle:focus-visible { outline: 3px solid var(--fizzy-bright); outline-offset: 2px; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.site-nav a {
  color: #d9bfdd;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--fizzy-bright);
}
.site-nav a:focus-visible { outline: 3px solid var(--fizzy-bright); outline-offset: 2px; border-radius: 3px; }
.summary p { margin: 0; }
