:root {
  --background: #ffffff;
  --text: #171717;
  --muted: #666666;
  --border: #d8d8d8;
  --focus: #171717;
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid var(--text);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  width: 100%;
  padding: 2.15rem 3rem;
}

.header-inner {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  position: relative;
  text-decoration: none;
  font-size: 0.98rem;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -0.25rem;
  height: 1px;
  background: currentColor;
  transition: right 150ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  right: 0;
}

main {
  display: block;
}

.home-main {
  width: min(calc(100% - 6rem), var(--content-width));
  min-height: calc(100vh - 125px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 4rem 0 9rem;
}

.home-copy {
  max-width: 650px;
}

.home-copy p {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.75rem);
  line-height: 1.13;
  letter-spacing: -0.045em;
  font-weight: 400;
}

.content-main {
  width: min(calc(100% - 6rem), var(--content-width));
  margin: 0 auto;
  padding: 5rem 0 8rem;
}

.page-heading {
  margin: 0 0 0.65rem;
  font-size: clamp(2.4rem, 6vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 500;
}

.page-intro {
  margin: 0 0 3rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.contact-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.92rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0;
  background: #fff;
  color: var(--text);
  font: inherit;
  padding: 0.8rem 0.85rem;
}

.form-field textarea {
  min-height: 160px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.submit-button {
  justify-self: start;
  border: 1px solid var(--text);
  border-radius: 0;
  padding: 0.85rem 1.5rem;
  background: var(--text);
  color: #fff;
  font: inherit;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}

.submit-button:hover,
.submit-button:focus-visible {
  background: #fff;
  color: var(--text);
}

.thanks-main {
  width: min(calc(100% - 6rem), 760px);
  margin: 0 auto;
  padding: 8rem 0;
}

.thanks-main h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 500;
}

.thanks-main p {
  margin: 0 0 1.4rem;
  color: var(--muted);
}

.text-link {
  text-underline-offset: 0.25em;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 800px) {
  .site-header {
    padding: 1.5rem;
  }

  .site-nav {
    gap: 1.25rem;
  }

  .home-main,
  .content-main,
  .thanks-main {
    width: min(calc(100% - 3rem), var(--content-width));
  }

  .home-main {
    min-height: calc(100vh - 92px);
    padding: 3rem 0 7rem;
  }

  .content-main {
    padding: 3rem 0 5rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-image {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 520px) {
  .brand {
    font-size: 1.15rem;
  }

  .site-nav {
    gap: 1rem;
  }

  .site-nav a {
    font-size: 0.9rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}
