:root {
  --bg: #f4f4f1;
  --card: #fbfbf9;
  --text: #111111;
  --muted: #585858;
  --line: #d8d8d2;
  --accent: #186a52;
  --accent-hover: #12513e;
  --ok: #166534;
  --error: #b42318;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, #ffffff 0%, transparent 45%),
    radial-gradient(circle at 100% 20%, #eceee9 0%, transparent 40%),
    var(--bg);
  line-height: 1.5;
}

main {
  width: min(980px, 92vw);
  margin: 0 auto;
  padding: 3.5rem 0 4.5rem;
}

.hero {
  min-height: 70vh;
  display: grid;
  align-content: center;
  gap: 1rem;
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--muted);
}

h1,
h2 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 8vw, 4.4rem);
  max-width: 14ch;
}

.subtitle {
  margin: 0;
  max-width: 55ch;
  color: var(--muted);
}

.cta {
  margin-top: 0.7rem;
  width: fit-content;
  text-decoration: none;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 0.75rem 1.3rem;
  font-weight: 600;
  transition: transform 160ms ease, background-color 160ms ease;
}

.cta:hover,
.cta:focus-visible {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.contact {
  background: color-mix(in srgb, var(--card) 92%, white 8%);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: clamp(1.1rem, 3.2vw, 2rem);
}

#contact-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.55rem;
}

label {
  font-weight: 600;
  font-size: 0.94rem;
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.66rem;
  padding: 0.72rem 0.82rem;
  background: #fff;
}

input:focus,
textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 45%, white 55%);
  border-color: var(--accent);
}

textarea {
  resize: vertical;
}

button[type="submit"] {
  margin-top: 0.35rem;
  border: 0;
  border-radius: 0.66rem;
  padding: 0.78rem 1rem;
  cursor: pointer;
  background: var(--text);
  color: #fff;
  font-weight: 600;
}

button[type="submit"]:disabled {
  opacity: 0.65;
  cursor: progress;
}

.status {
  margin: 0.85rem 0 0;
  min-height: 1.3em;
  font-size: 0.95rem;
}

.status.ok {
  color: var(--ok);
}

.status.error {
  color: var(--error);
}

@media (max-width: 640px) {
  main {
    padding-top: 2.4rem;
  }

  .hero {
    min-height: 62vh;
  }
}
