:root {
  --bg: #f7f6f2;
  --fg: #14171c;
  --muted: #5a6270;
  --accent: #2f6df3;
  --border: #d8d5cc;
  --error: #b3261e;
  --radius: 6px;
  --max-width: 36rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1116;
    --fg: #e9ecf1;
    --muted: #8a93a3;
    --accent: #6f9bff;
    --border: #2a2f38;
  }
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.25rem 2rem;
}

.hero {
  margin-bottom: 3rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 1.25rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact {
  margin-top: 2rem;
}

.field {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
}

label {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: var(--muted);
}

input[type="text"],
input[type="email"],
textarea {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.625rem 0.75rem;
  width: 100%;
}

textarea {
  resize: vertical;
  min-height: 8rem;
}

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

button[type="submit"] {
  font: inherit;
  font-weight: 500;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  padding: 0.65rem 1.25rem;
  cursor: pointer;
}

button[type="submit"]:hover { filter: brightness(1.05); }
button[type="submit"][disabled] { opacity: 0.6; cursor: not-allowed; }

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.form-status.ok { border-color: var(--accent); }
.form-status.err { border-color: var(--error); color: var(--error); }

footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}

footer p { margin: 0; }
