@font-face {
  font-family: "Shantell Sans";
  src: url("fonts/ShantellSans-Variable.ttf") format("truetype");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans";
  src: url("fonts/NotoSans-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --surface-100: #fdf3f7;
  --surface-200: #ffffff;
  --line: #ead7e1;
  --ink: #24203a;
  --ink-muted: #5a556e;
  --stroke: #24203a;
  --grove: #8ee0b0;
  --on-grove: #14261c;
  --grove-strong: #1d7348;
  --on-grove-strong: #ffffff;
  --grove-tint: #dcf5e6;
  --bloom: #ffc39e;
  --sky: #b9dcff;
  --berry: #d6c4ff;
  --shadow: 4px 4px 0 var(--stroke);
  --display: "Shantell Sans", "Noto Sans", system-ui, sans-serif;
  --sans: "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface-100: #1d1a2a;
    --surface-200: #2a2639;
    --line: #3b3650;
    --ink: #f3effa;
    --ink-muted: #bdb7cf;
    --stroke: #f3effa;
    --grove-strong: #8ee0b0;
    --on-grove-strong: #14261c;
    --grove-tint: #2f4a3c;
    --shadow: 4px 4px 0 #07060c;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--surface-100);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--grove-strong); }
a:focus-visible { outline: 2px solid var(--grove-strong); outline-offset: 3px; border-radius: 4px; }

.shell {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
}

.brand img { width: 40px; height: 40px; display: block; }

.language-toggle {
  display: inline-flex;
  margin-left: auto;
  border: 2px solid var(--stroke);
  border-radius: 999px;
  padding: 3px;
  background: var(--surface-200);
}

.language-toggle a {
  padding: 5px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
}

.language-toggle a[aria-current="page"] { background: var(--grove); color: var(--on-grove); }

header.hero, section.card {
  border: 2.5px solid var(--stroke);
  border-radius: 20px;
  background: var(--surface-200);
  box-shadow: var(--shadow);
}

header.hero, section.card { padding: clamp(20px, 5vw, 40px); }
section.card { margin-top: 22px; }

.hero-logo { width: 88px; height: 88px; display: block; margin-bottom: 6px; }

.eyebrow {
  color: var(--grove-strong);
  font-family: var(--display);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0 0 6px;
}

h1, h2, h3 { font-family: var(--display); line-height: 1.25; }
h1 { margin: 0 0 10px; font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 800; }
h2 { margin: 0 0 4px; font-size: 1.35rem; font-weight: 700; color: var(--grove-strong); }
h3 { margin: 28px 0 6px; font-size: 1.05rem; font-weight: 700; }

.lede { font-size: 1.12rem; margin: 0 0 4px; }

.meta, .muted { color: var(--ink-muted); }
.meta { margin: 0; font-size: .95rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 22px;
}

a.tile {
  display: block;
  padding: 18px 20px;
  border: 2px solid var(--stroke);
  border-radius: 16px;
  background: var(--grove-tint);
  box-shadow: 2px 2px 0 var(--stroke);
  text-decoration: none;
  color: var(--ink);
}

a.tile:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--stroke); }
a.tile strong { display: block; font-family: var(--display); font-size: 1.05rem; }
a.tile span { color: var(--ink-muted); font-size: .95rem; }

.feature { border-top: 2px solid var(--line); padding-top: 20px; margin-top: 24px; }
.feature:first-of-type { border-top: 0; padding-top: 0; margin-top: 8px; }
.feature p { margin: 4px 0 0; }
.feature ul { margin: 8px 0 0; padding-left: 20px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.button {
  display: inline-block;
  padding: 10px 18px;
  border: 2.5px solid var(--stroke);
  border-radius: 999px;
  background: var(--grove);
  color: var(--on-grove);
  font-family: var(--display);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 2px 2px 0 var(--stroke);
}

.button.ghost { background: var(--surface-200); color: var(--ink); }

li + li { margin-top: 8px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--grove-strong); overflow-wrap: anywhere; }

footer {
  padding: 32px 4px 0;
  text-align: center;
  font-size: .9rem;
  color: var(--ink-muted);
}

footer a { color: var(--grove-strong); }

@media (max-width: 520px) {
  .shell { width: calc(100% - 20px); padding-top: 12px; }
  header.hero, section.card { border-radius: 14px; padding: 20px; }
  .hero-logo { width: 64px; height: 64px; }
}
