:root {
  color-scheme: light;
  --ink: #17211d;
  --muted: #58645f;
  --line: #c9d1c3;
  --paper: #f6f4ed;
  --panel: #fcfbf5;
  --field: #ffffff;
  --accent: #176b5b;
  --accent-strong: #0f4d42;
  --clay: #c55435;
  --gold: #d6ae55;
  --shadow: 0 22px 60px rgba(23, 33, 29, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
  background:
    linear-gradient(90deg, rgba(23, 107, 91, 0.08) 1px, transparent 1px) 0 0 / 38px 38px,
    linear-gradient(180deg, rgba(23, 107, 91, 0.06) 1px, transparent 1px) 0 0 / 38px 38px,
    linear-gradient(135deg, #f9f2df 0%, #eef3ea 48%, #f8eadc 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 4vw, 72px);
  width: min(1120px, calc(100% - 36px));
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(24px, 6vw, 72px) 0;
  align-items: center;
}

.intro {
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.intro-copy {
  margin-top: clamp(52px, 9vw, 120px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(3.6rem, 8vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.lead {
  max-width: 34rem;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1.24rem;
  line-height: 1.55;
}

.signal-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(380px, 100%);
  margin-top: clamp(42px, 7vw, 96px);
  border: 1px solid var(--ink);
  background: var(--ink);
  box-shadow: 10px 10px 0 var(--gold);
}

.signal-panel span {
  display: grid;
  min-height: 104px;
  place-items: center;
  background: var(--paper);
  color: var(--clay);
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  font-weight: 700;
}

.form-section {
  width: 100%;
  border: 1px solid rgba(23, 33, 29, 0.14);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.contact-form {
  display: grid;
  gap: 22px;
  padding: clamp(22px, 4vw, 44px);
}

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

label {
  display: grid;
  gap: 8px;
}

label span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--field);
  color: var(--ink);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

input,
select {
  min-height: 52px;
  padding: 0 14px;
}

textarea {
  min-height: 170px;
  padding: 14px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(23, 107, 91, 0.14);
}

.website-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-footer {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
}

#form-status {
  min-height: 24px;
  margin: 0;
  color: var(--accent-strong);
  font-weight: 800;
}

.button {
  min-height: 54px;
  border: 0;
  border-radius: 0;
  padding: 0 24px;
  background: var(--accent);
  color: white;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  background: var(--accent-strong);
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--ink);
}

.button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.button.secondary {
  display: inline-flex;
  align-items: center;
  margin-top: 22px;
  color: white;
  text-decoration: none;
}

.thanks {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
}

.thanks .brand {
  position: fixed;
  top: 28px;
  left: 28px;
}

.thanks-card {
  width: min(680px, 100%);
  border: 1px solid rgba(23, 33, 29, 0.14);
  background: var(--panel);
  padding: clamp(28px, 6vw, 64px);
  box-shadow: var(--shadow);
}

.thanks-card h1 {
  font-size: clamp(3rem, 7vw, 6rem);
}

.thanks-card p:not(.eyebrow) {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.55;
}

@media (max-width: 820px) {
  .page-shell {
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: 24px;
  }

  .intro-copy {
    margin-top: 48px;
  }

  .signal-panel {
    display: none;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 24px, 1120px);
  }

  h1 {
    font-size: 3.4rem;
  }

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

  .form-footer {
    display: grid;
    justify-items: stretch;
  }
}
