:root {
  color-scheme: dark;
  --bg: #0c1210;
  --surface: #151c18;
  --line: #2a3830;
  --text: #f4f7f5;
  --muted: #b7c4bc;
  --green: #3dba84;
  --green-ink: #062117;
  --focus: #b6f5d4;
  font-family: system-ui, sans-serif;
  line-height: 1.5;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f7f5;
  --surface: #ffffff;
  --line: #d5e0da;
  --text: #12201a;
  --muted: #3d5248;
  --green: #1b7a4a;
  --green-ink: #ffffff;
  --focus: #1b7a4a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  -webkit-user-select: none;
  user-select: none;
}

main { flex: 1; }

img {
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

a { color: var(--green); }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.wrap {
  width: min(880px, calc(100% - 2rem));
  margin-inline: auto;
}

body > header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  height: 2rem;
  width: auto;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

nav a {
  color: var(--text);
  text-decoration: none;
}

nav a[aria-current="page"] { color: var(--green); }

.theme {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.theme img {
  width: 24px;
  height: 24px;
  display: block;
}

html[data-theme="light"] .theme img {
  opacity: 0;
}

html[data-theme="light"] .theme::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 24px;
  height: 24px;
  margin: auto;
  background-color: var(--text);
  -webkit-mask-image: url("../assets/dark_mode.png");
  mask-image: url("../assets/dark_mode.png");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 24px 24px;
  mask-size: 24px 24px;
}

.hero {
  display: grid;
  gap: 1.5rem;
  padding: 3.5rem 0 2.5rem;
}

@media (min-width: 720px) {
  .hero {
    grid-template-columns: 1.4fr 0.8fr;
    align-items: center;
  }
}

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.125rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-block;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--green);
  color: var(--green-ink);
  font-weight: 650;
  text-decoration: none;
}

.button[aria-disabled="true"] {
  background: transparent;
  color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line);
  pointer-events: none;
}

.ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}

.wave {
  width: min(100%, 280px);
  justify-self: center;
}

.version {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

h2 {
  margin: 0 0 1rem;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

section { padding: 1.25rem 0 2rem; }

.grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .grid { grid-template-columns: 1fr 1fr; }
}

article {
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

article h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

article p,
.card p,
details p {
  margin: 0;
  color: var(--muted);
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 0.85rem 0;
}

.faq details:last-child { border-bottom: 1px solid var(--line); }

summary {
  cursor: pointer;
  font-weight: 650;
}

summary + p { margin-top: 0.5rem; }

.cards {
  display: grid;
  gap: 0.75rem;
}

.cards + details { margin-top: 0.75rem; }

details .cards { margin-top: 0.75rem; }

.card {
  padding: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.card header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border: 0;
  margin-bottom: 0.4rem;
}

.card h3 { margin: 0; }

.tag {
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 650;
}

ol { margin: 0.4rem 0 0; padding-left: 1.2rem; color: var(--muted); }
li + li { margin-top: 0.35rem; }

.notes {
  white-space: pre-wrap;
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

footer .wrap {
  display: grid;
  gap: 0.85rem;
}

footer p { margin: 0; }

footer nav { flex-wrap: wrap; row-gap: 0.5rem; }
