:root {
  color-scheme: light;
  --paper: #f4f0e7;
  --paper-strong: #fcfaf5;
  --ink: #111111;
  --muted: #5e5a52;
  --line: #111111;
  --accent: #c8693a;
  --shadow: rgba(17, 17, 17, 0.08);
}

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

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

html {
  scroll-behavior: smooth;
}

body.contact-page {
  background:
    radial-gradient(circle at top left, rgba(17, 17, 17, 0.06), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0)),
    var(--paper);
  color: var(--ink);
  font-family: "Avenir Next Condensed", "Futura PT", "Arial Narrow", sans-serif;
}

a {
  color: inherit;
}

.contact-shell {
  width: min(100%, 92rem);
  margin: 0 auto;
  padding: 1rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0 1rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
  padding: 0.7rem 1rem;
  border: 3px solid var(--line);
  background: var(--paper-strong);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.06em;
  text-decoration: none;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.topnav a {
  padding: 0.7rem 0.95rem;
  border: 2px solid transparent;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
}

.topnav a[aria-current="page"] {
  border-color: var(--line);
}

.topnav a:hover,
.topnav a:focus-visible,
.button:hover,
.button:focus-visible,
.submit-button:hover,
.submit-button:focus-visible {
  outline: none;
  border-color: var(--line);
}

main {
  display: grid;
  gap: 2.8rem;
  padding-bottom: 4rem;
}

.panel {
  border: 6px solid var(--line);
  background: var(--paper-strong);
  box-shadow: 0 1rem 2.5rem var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(21rem, 1.05fr);
  gap: 1.4rem;
  padding: clamp(1.1rem, 2.8vw, 2.2rem);
}

.hero-copy {
  max-width: 38rem;
}

.eyebrow,
.section-index {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--muted);
}

.hero h1,
.fit-panel h2,
.support-card h2,
.next-steps h2,
.final-cta h2 {
  margin: 0;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.07em;
  font-weight: 700;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 6.5vw, 6rem);
}

.lede,
.support-card p,
.next-steps li,
.final-cta p {
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.75;
}

.fit-panel {
  margin-top: 1.8rem;
  padding: 1.2rem;
  border: 4px solid var(--line);
  background: rgba(17, 17, 17, 0.03);
}

.fit-panel h2,
.support-card h2,
.next-steps h2,
.final-cta h2 {
  font-size: clamp(1.8rem, 3.6vw, 3.4rem);
}

.fit-panel ul,
.support-list,
.next-steps ol {
  margin: 0.9rem 0 0;
  padding-left: 1.2rem;
}

.fit-panel li,
.support-list li,
.next-steps li {
  margin-bottom: 0.65rem;
}

.panel-inset {
  padding: 1.2rem;
  border: 4px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.contact-form-wrapper {
  align-self: start;
}

.form-feedback {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border: 3px solid var(--line);
  font-size: 0.98rem;
  line-height: 1.6;
}

.form-feedback[hidden] {
  display: none;
}

.form-success {
  background: rgba(17, 17, 17, 0.05);
}

.form-error {
  background: rgba(200, 105, 58, 0.12);
}

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

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

.form-field label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 3px solid var(--line);
  border-radius: 0;
  background: var(--paper-strong);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  padding: 0.9rem 1rem;
  appearance: none;
}

.form-field textarea {
  min-height: 11rem;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.field-error {
  min-height: 1rem;
  color: #9a3c15;
  font-size: 0.85rem;
}

.submit-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.85rem 1.2rem;
  border: 3px solid var(--line);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  font-weight: 700;
}

.submit-button {
  width: 100%;
  background: var(--line);
  color: var(--paper-strong);
  cursor: pointer;
}

.button-solid {
  background: var(--line);
  color: var(--paper-strong);
}

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

.support-card,
.next-steps,
.final-cta {
  padding: 1.4rem;
}

.contact-email {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.next-steps ol {
  padding-left: 1.3rem;
}

.final-cta {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.85rem;
}

.final-cta p {
  margin: 0;
}

@media (max-width: 980px) {
  .hero,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: none;
  }
}

@media (max-width: 680px) {
  .contact-shell {
    padding: 0.7rem;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .topnav {
    justify-content: space-between;
  }

  .hero,
  .support-card,
  .next-steps,
  .final-cta,
  .panel-inset {
    padding: 1rem;
  }
}
