:root {
  color-scheme: light;
  --ink: #24211d;
  --muted: #6f665b;
  --paper: #f7f1e7;
  --panel: #fffaf1;
  --line: #d9cbb8;
  --clay: #a85032;
  --moss: #3d5946;
  --sky: #c5dae0;
  --shadow: 0 28px 80px rgba(71, 55, 37, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 20%, rgba(197, 218, 224, 0.58), transparent 30rem),
    linear-gradient(135deg, var(--paper), #ece0cf 58%, #d7c7b2);
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(36, 33, 29, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 33, 29, 0.07) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.contact-shell,
.thanks-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0;
}

.contact-shell {
  align-items: center;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 520px);
  gap: clamp(32px, 6vw, 96px);
}

.intro {
  padding-bottom: 42px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 9ch;
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(4.2rem, 11vw, 8.8rem);
  line-height: 0.82;
  letter-spacing: 0;
}

.intro-copy,
.thanks-panel p {
  max-width: 34rem;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.7;
}

.signal-strip {
  display: grid;
  width: min(380px, 100%);
  margin-top: 42px;
  grid-template-columns: 1.7fr 0.9fr 1.25fr;
  gap: 10px;
}

.signal-strip span {
  height: 14px;
  border-radius: 999px;
}

.signal-strip span:nth-child(1) {
  background: var(--moss);
}

.signal-strip span:nth-child(2) {
  background: var(--sky);
}

.signal-strip span:nth-child(3) {
  background: var(--clay);
}

.contact-panel,
.thanks-panel {
  border: 1px solid rgba(36, 33, 29, 0.12);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 88%, white);
  box-shadow: var(--shadow);
}

.contact-panel {
  padding: clamp(22px, 4vw, 40px);
}

form {
  display: grid;
  gap: 20px;
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 15px;
  color: var(--ink);
  background: #fffdf8;
  font: inherit;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--moss);
  box-shadow: 0 0 0 4px rgba(61, 89, 70, 0.14);
}

button,
.return-link {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 22px;
  color: #fffaf1;
  background: var(--ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

button:hover,
.return-link:hover {
  background: var(--moss);
  box-shadow: 0 14px 32px rgba(61, 89, 70, 0.22);
  transform: translateY(-2px);
}

button:active,
.return-link:active {
  transform: translateY(0);
}

.hidden-field {
  position: absolute;
  left: -100vw;
}

.thanks-shell {
  place-items: center;
}

.thanks-panel {
  width: min(680px, 100%);
  padding: clamp(28px, 7vw, 72px);
}

.thanks-panel h1 {
  max-width: 12ch;
  font-size: clamp(3.4rem, 9vw, 6.5rem);
}

.return-link {
  width: fit-content;
  margin-top: 32px;
}

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

  .intro {
    padding-bottom: 0;
  }
}

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

  h1 {
    font-size: clamp(3.4rem, 18vw, 5.6rem);
  }

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