@font-face {
  font-family: "Nunito"; src: url(/static/nunito.woff2) format("woff2");
  font-weight: 200 1000; font-display: swap;
}
:root {
  --bg: #f8f6ee; --surface: #ffffff; --text: #26302b; --quiet: #5d6b63; --line: #e2e6da; --edge: #7f8c84;
  --accent: #377d67; --accent-text: #ffffff; --soft: #e2efe6; --ink: #2c6b57; --danger: #a8322a;
  --shadow: rgba(50, 90, 70, 0.10);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171b18; --surface: #202622; --text: #e9ede8; --quiet: #a5b0a8; --line: #323b35; --edge: #6e7b73;
    --accent: #74c7a8; --accent-text: #10201a; --soft: #25332c; --ink: #8fd3b8; --danger: #ef8a80;
    --shadow: rgba(0, 0, 0, 0.25);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 18px/1.65 "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main, .top, footer { max-width: 50rem; margin: 0 auto; padding: 0 1rem; }
main { padding-top: 0.5rem; padding-bottom: 3rem; }
a { color: var(--ink); }
h1, h2, h3, .brand { font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: 2.1rem; line-height: 1.2; margin: 1.2rem 0 0.6rem; text-wrap: balance; }
h2 { font-size: 1.6rem; line-height: 1.3; margin: 3.2rem 0 0.7rem; }
h3 { font-size: 1.2rem; line-height: 1.35; margin: 1.4rem 0 0.3rem; }
p, ul, ol, dl, blockquote { margin: 0 0 1rem; }
p, li, blockquote { max-width: 38rem; }
.lead { font-size: 1.2rem; color: var(--quiet); }
.quiet { color: var(--quiet); font-size: 0.9rem; }
.hide { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 1.3rem; color: var(--text); text-decoration: none; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem; }
nav form { margin: 0; }
nav a, footer a { text-decoration: none; font-weight: 700; }
nav a[aria-current] { color: var(--text); }
footer { display: flex; gap: 1.2rem; padding-top: 1.2rem; padding-bottom: 2rem; font-size: 0.9rem; }

button, .button {
  display: inline-block; font: inherit; font-weight: 800; cursor: pointer; text-decoration: none;
  padding: 0.75rem 1.5rem; border-radius: 999px; border: 2px solid var(--accent);
  background: var(--accent); color: var(--accent-text); margin: 0 0.4rem 0.4rem 0;
}
.plain { background: var(--surface); color: var(--text); border-color: var(--edge); }
.small { padding: 0.3rem 0.9rem; font-size: 0.9rem; margin: 0; }
.link { background: none; border: 0; border-radius: 0; padding: 0; margin: 0; color: var(--ink); font-weight: 700; }
.delete { background: var(--danger); border-color: var(--danger); color: var(--bg); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; margin-top: 1.5rem; }
.hero h1 { font-size: 2.6rem; line-height: 1.15; margin-top: 0; }
.hero .lead { color: var(--text); }
.notice { background: var(--soft); border-radius: 1rem; padding: 0.7rem 1rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.5rem 2rem; }
.card h3 { margin-top: 0.6rem; }
.language, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; margin-top: 1.6rem; padding: 0.4rem 1.3rem 1rem; }
.language h2, .panel h2 { margin-top: 1rem; }
.tag { font-size: 0.8rem; font-weight: 700; background: var(--soft); color: var(--ink); border-radius: 1rem; padding: 0.15rem 0.6rem; vertical-align: middle; }

.chat { display: flex; flex-direction: column; gap: 0.6rem; }
.chat p { margin: 0; padding: 0.6rem 1rem; border-radius: 1.2rem; max-width: 85%; }
.chat .me { align-self: flex-end; background: var(--accent); color: var(--accent-text); border-bottom-right-radius: 0.3rem; font-weight: 700; }
.chat .ai { align-self: flex-start; background: var(--soft); border-bottom-left-radius: 0.3rem; }

.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 0 0.4rem 3.4rem; margin-bottom: 1rem; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; font-weight: 800;
  background: var(--accent); color: var(--accent-text); }
.steps h3 { margin: 0; padding-top: 0.3rem; }
.address { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
code { background: var(--soft); border-radius: 0.8rem; padding: 0.45rem 0.8rem; font-size: 0.9rem; overflow-wrap: anywhere; }
.say { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.say li { background: var(--surface); border-radius: 1.2rem 1.2rem 1.2rem 0.3rem; padding: 0.5rem 1.1rem; box-shadow: 0 2px 8px var(--shadow); }
.credits { font-size: 0.9rem; color: var(--quiet); }
.credits h2 { font-size: 1.2rem; }

.numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.6rem; }
.numbers div { background: var(--soft); border-radius: 1rem; padding: 0.7rem 0.9rem; display: flex; flex-direction: column-reverse; }
.numbers dt { font-size: 0.9rem; color: var(--quiet); }
.numbers dd { margin: 0; font-size: 1.9rem; font-weight: 800; line-height: 1.2; }
blockquote { background: var(--soft); border-radius: 1rem 1rem 1rem 0.3rem; padding: 0.7rem 1rem; margin-left: 0; }
.sets { list-style: none; padding: 0; }
.sets li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.sets form, td form { margin: 0; }
.add { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
select { font: inherit; padding: 0.35rem 0.7rem; border-radius: 999px; border: 2px solid var(--edge); background: var(--surface); color: var(--text); }
.end { margin-top: 3rem; font-size: 0.9rem; }
.danger { margin-top: 1.5rem; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; }
.check input { margin-top: 0.45rem; width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }

.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tabs a { padding: 0.35rem 1rem; border-radius: 999px; border: 2px solid var(--edge); background: var(--surface); text-decoration: none; font-weight: 700; }
.tabs a[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.55rem 0.6rem 0.55rem 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 0.9rem; color: var(--quiet); font-weight: 700; }
td:last-child, th:last-child { text-align: right; padding-right: 0; }
tr.paused td { color: var(--quiet); }
.pager { max-width: none; display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; }

@media (max-width: 46rem) {
  .hero { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 34rem) {
  .hero h1 { font-size: 2.2rem; }
  .chat p { max-width: 90%; }
}
