@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/DM-Sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f9f6;
  --navy: #0e1d42;
  --blue: #3066ef;
  --muted: #576278;
  --rule: #dce0e4;
  --sans: "DM Sans", "Segoe UI", Arial, sans-serif;
}

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

html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: var(--navy);
  background: #dce6fd;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 5px;
}

.skip-link {
  position: absolute;
  z-index: 10;
  top: 12px;
  left: 20px;
  padding: 12px 18px;
  color: white;
  background: var(--navy);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  display: flex;
  flex-direction: column;
  width: min(100% - 112px, 1120px);
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
}

.site-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  min-height: 104px;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: block;
  width: 180px;
  flex-shrink: 0;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 35px;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  transition: color 160ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: var(--blue);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--navy);
}

.site-nav a[aria-current="page"]::after,
.site-nav a:hover::after {
  transform: scaleX(1);
}

.home-main {
  display: flex;
  flex: 1;
  align-items: center;
}

.hero {
  width: 100%;
  padding-block: clamp(72px, 12vh, 120px);
}

.hero-copy {
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
}

.hero h1 {
  max-width: 34ch;
  margin: 0 auto;
  color: #35435c;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.hero-description {
  max-width: 60ch;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
  text-wrap: pretty;
}

.site-footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  min-height: 72px;
  border-top: 1px solid var(--rule);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.025em;
}

.contact-main {
  flex: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(48px, 7vw, 100px);
  align-content: center;
  padding-block: 76px 64px;
}

.contact-title {
  margin: 0;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.contact-description {
  max-width: 290px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.contact-form-wrap {
  max-width: 520px;
  width: 100%;
  padding-top: 2px;
}

.form-guidance {
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

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

.field {
  margin-bottom: 27px;
  min-width: 0;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #a7b1bf;
  border-radius: 0;
  padding: 9px 3px 12px;
  color: var(--navy);
  background: transparent;
  font-size: 16px;
  line-height: 1.5;
  box-shadow: none;
  transition: border-color 160ms ease;
}

.field input:hover,
.field textarea:hover {
  border-color: var(--muted);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--blue);
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

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

.message-field {
  margin-bottom: 18px;
}

.honeypot {
  display: none;
}

.privacy-note {
  max-width: 440px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 48px;
  padding: 13px 21px;
  border: 1px solid var(--navy);
  border-radius: 2px;
  color: white;
  background: var(--navy);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.submit-button:hover {
  border-color: #234477;
  background: #234477;
}

.submit-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.form-status {
  margin: 0 0 20px;
  color: var(--navy);
  font-size: 12px;
  line-height: 1.7;
}

.form-status:empty {
  margin: 0;
}

@media (max-width: 1000px) {
  .site-shell {
    width: calc(100% - 72px);
  }

  .site-header {
    min-height: 96px;
  }

  .contact-main {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 50px;
  }

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

}

@media (max-width: 700px) {
  .site-shell {
    width: calc(100% - 44px);
  }

  .site-header {
    min-height: 84px;
  }

  .brand {
    width: 148px;
  }

  .site-nav {
    gap: 21px;
  }

  .site-nav a {
    font-size: 12px;
  }

  .hero {
    padding-block: 64px;
  }

  .hero h1 {
    font-size: 22px;
  }

  .hero-description {
    margin-top: 20px;
    font-size: 16px;
  }

  .site-footer {
    min-height: 72px;
  }

  .contact-main {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-block: 52px 48px;
  }

  .contact-title {
    font-size: 30px;
  }

  .contact-description {
    max-width: 300px;
    margin-top: 16px;
    font-size: 15px;
  }

  .contact-form-wrap {
    max-width: none;
    padding-top: 0;
  }

  .form-guidance {
    margin-bottom: 27px;
  }

  .field {
    margin-bottom: 25px;
  }
}

@media (max-width: 360px) {
  .brand {
    width: 140px;
  }

  .site-nav {
    gap: 15px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
