:root {
  color-scheme: light;
  --bg: #faf8f4;
  --surface: #ffffff;
  --surface-soft: #f3efe8;
  --border: #e4ded2;
  --border-strong: #cfc7b6;
  --text: #33302a;
  --text-soft: #6f6a5e;
  --accent: #31784a;
  --accent-strong: #26613b;
  --accent-soft: #e7f2ea;
  --danger: #b4372f;
  --danger-soft: #fbeeec;
  --radius: 8px;
  --shadow: 0 1px 2px rgb(51 48 42 / .06), 0 2px 8px rgb(51 48 42 / .05);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.container {
  width: 100%;
  max-width: 64rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.25rem;
  padding-block: .75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}

.brand-mark { width: 1.5rem; height: 1.5rem; color: var(--accent); flex: none; }

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .25rem;
}

.nav-link {
  padding: .45rem .8rem;
  border-radius: 999px;
  color: var(--text-soft);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-link:hover { color: var(--text); background: var(--surface-soft); }

.nav-link.is-active {
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-weight: 700;
}

.nav-form { display: inline-flex; }

.site-main { flex: 1; padding-block: 3rem 4rem; }

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 1.5rem;
  color: var(--text-soft);
  font-size: .9rem;
}

.site-footer p { margin: 0; }

h1, h2, h3 { line-height: 1.25; letter-spacing: -.02em; }

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 0 0 1rem; }

h2 { font-size: 1.35rem; margin: 2rem 0 1rem; }

.card h2:first-child { margin-top: 0; }

p { margin: 0 0 1rem; }

a { color: var(--accent-strong); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.card-narrow { max-width: 26rem; }

.page-intro { max-width: 40rem; color: var(--text-soft); font-size: 1.05rem; }

.form-card {
  margin-inline: auto;
  display: grid;
  gap: 1rem;
}

label { display: grid; gap: .35rem; font-weight: 700; font-size: .95rem; }

input, button { font: inherit; }

input {
  padding: .65rem .8rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  width: 100%;
}

input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .65rem 1.25rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: #fffdf9;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); }

.btn[disabled] { opacity: .6; cursor: wait; }

.btn-ghost {
  background: none;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover { background: var(--surface-soft); border-color: var(--border-strong); color: var(--text); }

.form-error {
  margin: 0;
  padding: .6rem .8rem;
  border: 1px solid #ecc8c4;
  border-radius: var(--radius);
  background: var(--danger-soft);
  color: var(--danger);
  font-size: .95rem;
}

textarea {
  padding: .65rem .8rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  width: 100%;
  resize: vertical;
}

textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }

.form-hint { margin: 0; font-size: .85rem; color: var(--text-soft); }

.form-success {
  margin: 0;
  padding: .6rem .8rem;
  border: 1px solid #c9dcc9;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: .95rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: .5rem;
  z-index: 10;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: .5rem 1rem;
}

.skip-link:focus { left: .5rem; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

@media (max-width: 480px) {
  .site-main { padding-block: 2rem 3rem; }
  .card { padding: 1.25rem; }
}
