/* ════════════════════════════════════════════════════════════════════════
   Forma New York — locked stylesheet v1
   Brand mark: F+dot v7 (filled polygon, sharp top-left, brush tapers)
   Type: Libre Baskerville (Google Fonts)
   Palette: warm-dark #3D2A1F · cream #F2EDE3 · gold #C7A668 (reserved)
   ════════════════════════════════════════════════════════════════════════ */

:root {
  --bg-dark: #3D2A1F;
  --cream:   #F2EDE3;
  --gold:    #C7A668;

  --serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --sans:  ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', sans-serif;

  --max-paragraph: 540px;
  --max-form: 480px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg-dark);
  color: var(--cream);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ─── Hero composition (home) ───────────────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 24px 60px;
  text-align: center;
}

.mark {
  display: block;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  animation: fadeUp 800ms ease-out;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wordmark {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
  animation: fadeUp 800ms 100ms ease-out backwards;
}

.stamp {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 120px;
  animation: fadeUp 800ms 200ms ease-out backwards;
}

.stamp .pipe { display: inline-block; margin: 0 12px; opacity: 0.6; }

.manifesto {
  max-width: var(--max-paragraph);
  font-size: 17px;
  line-height: 1.65;
  text-align: justify;
  text-justify: inter-word;
  margin: 0 auto 80px;
  animation: fadeUp 800ms 300ms ease-out backwards;
}

.ctas {
  display: flex;
  gap: 24px;
  flex-direction: column;
  animation: fadeUp 800ms 400ms ease-out backwards;
}

.cta {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--cream);
  text-decoration: none;
  position: relative;
  padding: 8px 4px;
  transition: opacity 200ms;
  display: inline-block;
}

.cta::after {
  content: '';
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  height: 1px;
  background: currentColor;
  opacity: 1;
  transition: opacity 200ms;
}

.cta:hover::after { opacity: 0.5; }

/* ─── Footer ────────────────────────────────────────────────────────────── */

.footer {
  padding: 64px 24px 80px;
  text-align: center;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
  line-height: 2;
}

.footer .sep { margin: 0 8px; opacity: 0.6; display: inline-block; }
.footer a { color: inherit; text-decoration: none; transition: opacity 200ms; }
.footer a:hover { opacity: 0.75; }

/* ─── Inner pages (apply, stay-informed, privacy, thank-you) ────────────── */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 96px 24px 80px;
  text-align: center;
}

.page-mark {
  width: 40px;
  height: 40px;
  margin-bottom: 56px;
  opacity: 0.95;
  animation: fadeUp 600ms ease-out;
}

.page-mark.gold path { fill: var(--gold); }
.page-mark.gold circle { fill: var(--gold); }

.page-header {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: 0.02em;
  font-weight: 400;
  margin-bottom: 12px;
  animation: fadeUp 600ms 80ms ease-out backwards;
}

.page-subhead {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 60px;
  animation: fadeUp 600ms 160ms ease-out backwards;
}

.page-subhead.italic {
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.7;
}

/* ─── Form ──────────────────────────────────────────────────────────────── */

form {
  width: 100%;
  max-width: var(--max-form);
  text-align: left;
  animation: fadeUp 600ms 240ms ease-out backwards;
}

.field { margin-bottom: 28px; }

.field label {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--cream);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
  padding: 8px 0;
  resize: none;
  transition: border-color 150ms;
  outline: none;
}

.field input:focus,
.field textarea:focus {
  border-bottom-width: 2px;
  padding-bottom: 7px;
}

.field .helper {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.06em;
  opacity: 0.5;
  margin-top: 6px;
}

.form-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
}

.form-controls.right-only { justify-content: flex-end; }

.back-link,
.submit-link {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--cream);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  position: relative;
  text-decoration: none;
}

.back-link::after,
.submit-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: opacity 200ms;
}

.back-link:hover::after,
.submit-link:hover::after { opacity: 0.5; }

.confirmation {
  max-width: var(--max-paragraph);
  font-size: 19px;
  line-height: 1.65;
  text-align: justify;
  margin: 0 auto;
  animation: fadeUp 600ms 320ms ease-out backwards;
}

.confirmation .sig {
  display: block;
  margin-top: 32px;
  text-align: center;
}

/* ─── Privacy page ──────────────────────────────────────────────────────── */

.legal {
  max-width: var(--max-paragraph);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 auto;
  text-align: left;
  animation: fadeUp 600ms 240ms ease-out backwards;
}

.legal-meta {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-top: 48px;
  text-align: center;
}

/* ─── Responsive ────────────────────────────────────────────────────────── */

@media (min-width: 768px) {
  .hero { padding: 120px 32px 80px; }
  .mark { width: 80px; height: 80px; margin-bottom: 24px; }
  .wordmark { font-size: 24px; }
  .stamp { font-size: 11px; margin-bottom: 180px; }
  .manifesto { font-size: 19px; }
  .ctas { flex-direction: row; gap: 48px; }
  .cta { font-size: 15px; }
  .page-header { font-size: 32px; }
  .confirmation { font-size: 20px; }
}

@media (max-width: 380px) {
  .stamp { font-size: 9px; letter-spacing: 0.28em; }
  .stamp .pipe { margin: 0 8px; }
  .manifesto { font-size: 16px; }
}

/* ─── Reduce motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
