:root {
  color-scheme: light;
  --navy: #0b2239;
  --blue: #1264c5;
  --cream: #f7f3ea;
  --paper: #fffdfa;
  --red: #d44a3a;
  --ink: #172b3e;
  --muted: #617183;
  --line: #d9d7d0;
  --success: #17633d;
  --success-bg: #edf8f1;
  --error: #8a231a;
  --error-bg: #fff0ed;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--cream); }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(11, 34, 57, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 34, 57, 0.035) 1px, transparent 1px),
    var(--cream);
  background-size: 42px 42px;
  line-height: 1.65;
}

a { color: var(--blue); text-underline-offset: 0.18em; }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #f0a33a;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  color: white;
  background: var(--navy);
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

.site-header,
.hero,
.content,
footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--navy);
  text-decoration: none;
}

.brand img { border-radius: 50%; }
.brand span { display: grid; line-height: 1.05; text-transform: uppercase; letter-spacing: 0.08em; }
.brand strong { font-size: 0.95rem; }
.brand small { font-size: 0.76rem; }
.back-link { font-weight: 700; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  padding: clamp(3rem, 8vw, 7rem) 0 clamp(2.5rem, 6vw, 5rem);
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
  text-wrap: balance;
}

h1 { max-width: 760px; font-size: clamp(2.45rem, 6vw, 5.4rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); }
.lead { margin: 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }

.content {
  margin-bottom: 5rem;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(11, 34, 57, 0.09);
}

.intro-copy { max-width: 720px; margin-bottom: 2rem; }
.intro-copy p { color: var(--muted); }

.withdrawal-form { max-width: 760px; }
.field { display: grid; gap: 0.45rem; margin-bottom: 1.2rem; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

label { color: var(--navy); font-weight: 750; }
.optional { color: var(--muted); font-size: 0.82rem; font-weight: 500; }

input[type="text"],
input[type="email"],
input[type="date"] {
  width: 100%;
  min-height: 50px;
  padding: 0.7rem 0.85rem;
  border: 1px solid #aeb7c0;
  border-radius: 10px;
  color: var(--ink);
  background: white;
  font: inherit;
}

input:hover { border-color: var(--navy); }
.hint, .privacy-note { margin: 0.25rem 0 1rem; color: var(--muted); font-size: 0.91rem; }

.check-row {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin: 1.4rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafb;
}

.check-row input { width: 1.15rem; height: 1.15rem; margin-top: 0.25rem; flex: 0 0 auto; }
.check-row strong { color: var(--red); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.8rem 1.25rem;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--blue);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button:hover { background: var(--navy); }

.error-summary,
.success {
  margin-bottom: 2rem;
  padding: 1.25rem;
  border-radius: 14px;
}

.error-summary { border: 1px solid #e8afa7; color: var(--error); background: var(--error-bg); }
.error-summary h2 { color: var(--error); font-size: 1.45rem; }
.success { border: 1px solid #9bceb0; color: #17492f; background: var(--success-bg); }
.success h2 { margin-bottom: 1rem; color: var(--success); }
.success .button { margin-top: 0.5rem; }

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

footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

footer p { margin: 0.25rem 0; }

@media (max-width: 740px) {
  .site-header,
  .hero,
  .content,
  footer { width: min(100% - 28px, 1120px); }

  .site-header { align-items: flex-start; }
  .back-link { font-size: 0.9rem; }
  .hero { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 2.5rem; }
  .content { padding: 1.25rem; border-radius: 18px; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
