:root {
  --bg: #f9f9f9;
  --text: #111111;
  --muted: #636363;
  --border: rgba(0, 0, 0, 0.25);
  --button: #111111;
  --button-text: #f9f9f9;
  --form-button: #066aab;
  --radius: 20px;
  --field-radius: 3px;
  --content-width: 565px;
  --wide-width: 1280px;
  --page-width: 680px;
  --space-30: min(2.5rem, 3vw);
  --space-50: min(6.5rem, 8vw);
}

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

html {
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
}

.container {
  width: min(100% - 3rem, var(--wide-width));
  margin: 0 auto;
}

.narrow {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.page-width {
  width: min(100% - 3rem, var(--page-width));
  margin: 0 auto;
}

.site-header {
  padding: 20px 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-title {
  margin: 0;
  font-size: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.542), 1.2rem);
  font-weight: 600;
  line-height: 1.2;
}

.site-title a,
.site-nav a {
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.hero {
  padding: var(--space-50) 0;
}

.hero__title,
.page-title {
  margin: 0;
  text-align: center;
  line-height: 1.1;
}

.hero__title {
  font-size: clamp(1.85rem, 1.85rem + ((1vw - 0.2rem) * 1.083), 2.5rem);
}

.page-title {
  font-size: clamp(2rem, 1.75rem + 1vw, 2.5rem);
}

.hero__copy,
.contact-copy {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
}

.hero__copy {
  text-align: center;
}

.stack-30 > * + * {
  margin-top: 1.25rem;
}

.hero__actions {
  display: flex;
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.875rem 1.5rem;
  border-radius: 999px;
  background: var(--button);
  color: var(--button-text);
  font-weight: 500;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  opacity: 0.92;
}

.hero-image {
  margin-top: var(--space-30);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.page-header {
  padding-top: var(--space-50);
}

.page-header__spacer {
  height: var(--space-30);
}

.contact-main {
  padding-bottom: var(--space-50);
}

.contact-copy {
  margin-bottom: 1.5rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.hidden-submit-target {
  display: none;
}

.contact-success {
  margin: 1rem 0 0;
  color: var(--muted);
}

.field-group {
  margin: 0;
  padding: 0;
  border: 0;
}

.field-label,
.field-group legend {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
}

.required {
  color: inherit;
}

.name-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field span {
  color: rgba(0, 0, 0, 0.55);
  font-size: 0.875rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--field-radius);
  background: #ffffff;
  color: rgba(0, 0, 0, 0.7);
  font: inherit;
  padding: 0.75rem 0.875rem;
}

input {
  min-height: 43px;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.submit {
  justify-self: start;
  min-height: 41px;
  padding: 0.7rem 1.15rem;
  border: 0;
  border-radius: var(--field-radius);
  background: var(--form-button);
  color: #ffffff;
  font: inherit;
  font-size: 1.0625rem;
  cursor: pointer;
}

.submit:hover,
.submit:focus-visible {
  filter: brightness(0.95);
}

@media (max-width: 700px) {
  .container,
  .page-width {
    width: min(100% - 1.5rem, var(--wide-width));
  }

  .name-grid {
    grid-template-columns: 1fr;
  }
}
