:root {
  --paper: #f7f4ef;
  --surface: #fffdf8;
  --ink: #1f2426;
  --muted: #66706d;
  --line: #ddd7cc;
  --accent: #183c46;
  --accent-soft: #d7e4df;
  --gold: #b9945c;
  --focus: #2f6574;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

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

.page-shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: end;
  min-height: 420px;
  padding: 42px 0 54px;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.panel-label {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 8vw, 7.1rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1.18rem;
}

.role-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.role-notes span {
  padding: 9px 13px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.7);
  color: var(--accent);
  font-size: 0.92rem;
}

.priority-panel {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.priority-panel p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 52px;
  padding: 52px 0 20px;
  align-items: start;
}

.brief {
  position: sticky;
  top: 28px;
  padding-right: 24px;
}

.brief p {
  color: var(--muted);
  font-size: 1.02rem;
}

.application-form {
  display: grid;
  gap: 20px;
  padding: 34px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.form-header {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.form-header p {
  margin-bottom: 0;
  color: var(--muted);
}

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

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfc8bc;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  padding: 12px 13px;
  font-weight: 400;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--focus);
  outline: 3px solid rgba(47, 101, 116, 0.16);
}

button,
.thanks-card a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  padding: 13px 20px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
}

button:hover,
.thanks-card a:hover {
  background: #102d35;
}

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

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-status[data-tone="error"] {
  color: #8b2f2f;
}

.hidden-field {
  display: none;
}

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

.thanks-card {
  max-width: 620px;
  padding: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
}

.thanks-card h1 {
  margin-bottom: 18px;
  font-size: clamp(3.2rem, 8vw, 5.8rem);
}

.thanks-card p:not(.eyebrow) {
  margin-bottom: 26px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .page-shell {
    width: min(100% - 28px, 680px);
    padding: 26px 0;
  }

  .hero,
  .content-grid,
  .field-pair {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 24px;
    min-height: auto;
    padding: 28px 0 36px;
  }

  .content-grid {
    gap: 28px;
    padding-top: 34px;
  }

  .brief {
    position: static;
    padding-right: 0;
  }

  .application-form {
    padding: 22px;
  }
}
