:root {
  --bg: #f4f2ee;
  --surface: #ffffff;
  --text: #1c1b19;
  --muted: #6b675f;
  --line: #dcd8d0;
  --accent: #1f4d3a;
  --accent-text: #ffffff;
  --error: #a3271c;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141412;
    --surface: #1d1d1a;
    --text: #ecebe6;
    --muted: #a19d94;
    --line: #34332f;
    --accent: #7fc2a2;
    --accent-text: #0f1f18;
    --error: #f08a7e;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #141412;
  --surface: #1d1d1a;
  --text: #ecebe6;
  --muted: #a19d94;
  --line: #34332f;
  --accent: #7fc2a2;
  --accent-text: #0f1f18;
  --error: #f08a7e;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 6rem) 16px 3rem;
}

.kicker {
  margin: 0 0 .75rem;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -.025em;
  font-weight: 700;
}

h2 {
  margin: 0 0 .5rem;
  font-size: 1.15rem;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.lead {
  margin: 1.25rem 0 0;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34rem;
}

.card .lead { margin: 0 0 1.5rem; color: var(--text); }

.head { margin-bottom: 2.5rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.label {
  display: block;
  margin-bottom: .45rem;
  font-size: .85rem;
  font-weight: 600;
}

textarea, input[type="text"], select {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .8rem .9rem;
}

textarea {
  font-family: var(--mono);
  font-size: .95rem;
  resize: vertical;
  min-height: 7.5rem;
}

input[type="text"] { font-family: var(--mono); font-size: .85rem; }

textarea:focus, input:focus, select:focus, .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
  margin-top: 1.25rem;
}

.field { flex: 1 1 12rem; }

.linkrow {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.linkrow input { flex: 1 1 16rem; min-width: 0; }

.btn {
  appearance: none;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-weight: 600;
  padding: .8rem 1.3rem;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
}

.btn:disabled { opacity: .6; cursor: progress; }

.btn-ghost {
  margin-top: 1.25rem;
  background: transparent;
  color: var(--accent);
}

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

.note strong { color: var(--text); font-weight: 600; }

.err {
  margin: 1rem 0 0;
  color: var(--error);
  font-weight: 600;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1.75rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.facts p { margin: 0; font-size: .92rem; color: var(--muted); }

.foot {
  margin-top: 3.5rem;
  font-size: .85rem;
}

.foot a { color: var(--muted); }

@media (max-width: 480px) {
  .row .btn, .linkrow .btn { width: 100%; }
}
