@font-face {
  font-family: "General Sans";
  src: url("/fonts/GeneralSans-Variable.woff2") format("woff2-variations");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: rgb(250, 250, 250);
  --text: #1c1c1c;
  --muted: #6e6e6e;
  --accent: #2456d6;
  --border: #d9d9d9;
  --surface: #ffffff;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--text);
  font-family: "General Sans", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 40rem;
  padding: 3rem 1.5rem;
  text-align: center;
}

h1 {
  font-size: clamp(1.75rem, 5vw, 2.375rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1.25rem;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  transition: text-decoration-color 120ms ease;
}

a:hover {
  text-decoration-color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.links {
  margin: 0.75rem 0 3rem;
}

/* Contact reveal */
details {
  margin-top: 1rem;
}

summary {
  display: inline-block;
  cursor: pointer;
  list-style: none;
  background: var(--text);
  color: var(--bg);
  font: inherit;
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  user-select: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary:hover {
  background: #000;
}

details[open] summary {
  margin-bottom: 1.5rem;
}

form {
  display: grid;
  gap: 1rem;
  width: min(28rem, 100%);
  margin-inline: auto;
  text-align: left;
}

label {
  display: grid;
  gap: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

input,
textarea {
  font: inherit;
  font-weight: 400;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
}

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

button {
  justify-self: center;
  font: inherit;
  font-weight: 500;
  color: var(--bg);
  background: var(--text);
  border: none;
  border-radius: 8px;
  padding: 0.625rem 1.5rem;
  cursor: pointer;
}

button:hover {
  background: #000;
}

button:disabled {
  opacity: 0.5;
  cursor: default;
}

.form-status {
  font-size: 0.9375rem;
  margin: 0;
}

.form-status.error {
  color: #b3261e;
}

/* Honeypot — hidden from humans, present for bots */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

footer {
  margin-top: 4rem;
  color: var(--muted);
  font-size: 0.875rem;
}
