:root {
  --bg: #000;
  --fg: #fff;
  --muted: #a3a3a3;
  --line: #2a2a2a;
  --error: #ff8a80;
  --gutter: clamp(16px, 4vw, 48px);
  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font: 400 1rem/1.8 var(--font);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  padding: 0.5rem 1rem;
  background: var(--fg);
  color: var(--bg);
  z-index: 10;
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem var(--gutter);
}
.site-header .brand img { width: auto; height: 29px; }
.site-nav { display: flex; gap: clamp(1rem, 3vw, 2rem); }
.site-nav a {
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { border-bottom-color: currentColor; }

main { flex: 1; display: flex; flex-direction: column; }

/* Home */
.hero {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 4rem var(--gutter);
}
.hero-title { margin: 0; }
.hero img { width: min(1223px, 100%); }

/* Content pages */
.page {
  flex: 1;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(3rem, 10vh, 7rem) var(--gutter);
}
.page h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.page p { margin: 0 0 1rem; max-width: 38em; }
.prose { font-size: 1.125rem; }

.contact-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 800px) {
  .contact-grid { grid-template-columns: 1fr 1.25fr; gap: 5rem; }
}

/* Form */
.form { display: grid; gap: 1.25rem; }
.form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.form legend { padding: 0; margin-bottom: 0.5rem; font-weight: 600; }
.form .row { display: grid; gap: 1rem; }
@media (min-width: 520px) { .form .row { grid-template-columns: 1fr 1fr; } }
.form label { display: block; font-size: 0.8125rem; font-weight: 600; margin-bottom: 0.35rem; }
.form label .req { color: var(--muted); font-weight: 400; margin-left: 0.25em; }
.form input,
.form textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--fg);
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font: inherit;
  line-height: 1.4;
}
.form textarea { border-radius: 18px; min-height: 8rem; resize: vertical; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.button {
  justify-self: start;
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--fg);
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.button:hover { background: transparent; color: var(--fg); }
.button[disabled] { opacity: 0.6; cursor: progress; }

.form-status { min-height: 1.8em; margin: 0; }
.form-status[data-state="error"] { color: var(--error); }

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 2rem var(--gutter);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}
.site-footer a { color: var(--fg); }
