:root {
  color-scheme: dark;
  --bg: #000;
  --text: #d9e4ff;
  --muted: #8ea0c7;
  --line: #16306a;
  --accent: #2aa4ff;
  --field: #070b14;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
}

header,
main {
  width: min(92vw, 40rem);
  margin: 0 auto;
}

header {
  padding: 3.5rem 0 1.5rem;
}

h1 {
  margin: 0;
}

h1 img {
  display: block;
  width: 100%;
  height: auto;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

section {
  padding: 0 0 2.25rem;
}

p {
  margin: 0 0 0.9rem;
  color: var(--muted);
}

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0;
  font-size: 0.98rem;
}

.contact a,
a {
  color: var(--accent);
  text-decoration: none;
}

.contact a:hover,
a:hover {
  text-decoration: underline;
}

form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.25rem;
}

label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.86rem;
  color: var(--text);
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--text);
  border-radius: 4px;
  padding: 0.65rem 0.7rem;
  font: inherit;
}

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

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

button {
  justify-self: start;
  border: 0;
  background: #1246b8;
  color: #fff;
  font: inherit;
  font-weight: 600;
  padding: 0.7rem 1.15rem;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background: #1654d6;
}

.hint {
  margin: 0;
  font-size: 0.82rem;
}

.hint[data-state="error"] {
  color: #ffb4b4;
}
