:root {
  color-scheme: light;
  --ink: #17201b;
  --muted: #5e6a63;
  --paper: #f8faf6;
  --line: #cfd7d1;
  --field: #ffffff;
  --accent: #116a67;
  --accent-dark: #0d4f4e;
  --danger: #b3261e;
  --success: #246b36;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  min-height: 100vh;
}

.intro {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  overflow: hidden;
  background: #26362f;
}

.intro::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 32, 27, 0.1), rgba(23, 32, 27, 0.78));
}

.intro-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-copy {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  padding: 48px;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 13ch;
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 4rem, 4.8rem);
  line-height: 1;
}

h2 {
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.intro-copy p:last-child,
.panel-heading p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.intro-copy p:last-child {
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.82);
}

.form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  background: #ffffff;
  border-left: 1px solid var(--line);
}

.panel-heading {
  margin-bottom: 28px;
}

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

label {
  margin-top: 8px;
  font-weight: 700;
}

input,
textarea,
button {
  width: 100%;
  border-radius: 8px;
  font: inherit;
}

input,
textarea {
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--ink);
  padding: 13px 14px;
}

input:focus,
textarea:focus,
button:focus {
  outline: 3px solid rgba(17, 106, 103, 0.24);
  outline-offset: 2px;
}

textarea {
  resize: vertical;
}

button,
.button-link {
  min-height: 48px;
  margin-top: 14px;
  border: 0;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

button:hover,
.button-link:hover {
  background: var(--accent-dark);
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.field-error {
  min-height: 1.2em;
  margin: 0;
  color: var(--danger);
  font-size: 0.92rem;
}

#status-message {
  display: block;
  min-height: 1.4em;
  margin-top: 22px;
  color: var(--success);
  font-weight: 700;
}

#status-message.error {
  color: var(--danger);
}

.status-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.status-copy {
  width: min(100%, 640px);
}

.status-copy h1 {
  max-width: 12ch;
  color: var(--ink);
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 180px;
  padding: 0 18px;
  text-decoration: none;
}

@media (max-width: 820px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .intro {
    min-height: 42vh;
  }

  .intro-copy,
  .form-panel {
    padding: 28px 20px;
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(2.1rem, 2.7rem, 3rem);
  }
}
