:root {
  --bg: #FAF7F2;
  --text: #1A1A1A;
  --muted: #6B6B6B;
  --accent: #FF4F6B;
  --accent-dark: #E63A57;
  --border: #E8E2D8;
  --max: 720px;
}

* { box-sizing: border-box; }

html { font-size: 17px; }
@media (min-width: 720px) { html { font-size: 18px; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

main { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem 4rem; }

.site-header {
  display: flex; justify-content: space-between; align-items: baseline;
  max-width: var(--max); margin: 0 auto; padding: 1.5rem 1.25rem 1rem;
}
.site-header .brand {
  font-weight: 800; font-size: 1.25rem; color: var(--text);
  text-decoration: none; letter-spacing: -0.02em;
}
.site-header nav a {
  color: var(--muted); text-decoration: none; margin-left: 1.25rem; font-size: 0.95rem;
}
.site-header nav a:hover { color: var(--accent); }

.site-footer {
  max-width: var(--max); margin: 0 auto; padding: 2rem 1.25rem 3rem;
  border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9rem;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

h1 {
  font-size: 2.4rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.025em;
  margin: 1.5rem 0 1rem;
}
@media (min-width: 720px) { h1 { font-size: 3rem; } }

h2 {
  font-size: 1.5rem; font-weight: 700; letter-spacing: -0.015em;
  margin: 3rem 0 1rem;
}

h3 { font-size: 1.15rem; font-weight: 700; margin: 2rem 0 0.5rem; }

.lede { font-size: 1.2rem; line-height: 1.5; margin: 1rem 0; }

.section { margin-top: 3rem; }

.btn-primary {
  display: inline-block;
  background: var(--accent); color: #fff;
  padding: 0.85rem 1.5rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; font-size: 1.05rem;
  margin: 1.5rem 0;
  transition: transform 0.1s ease, background 0.2s ease;
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.micro { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; }

.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li {
  position: relative; padding-left: 3rem; margin-bottom: 1.5rem;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.steps li strong { display: block; margin-bottom: 0.15rem; }

.science-list { padding-left: 1.25rem; }
.science-list li { margin-bottom: 0.5rem; }

.dedication {
  background: #fff; border: 1px solid var(--border);
  padding: 1.75rem; border-radius: 12px; margin-top: 4rem;
}
.dedication h2 { margin-top: 0; }

.page-content h1 { margin-top: 1rem; }
.page-content h2 { margin-top: 2.5rem; }
.page-content { margin-top: 2rem; }
.page-content.centred { text-align: center; }

ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.25rem; }

::selection { background: var(--accent); color: #fff; }

/* Onboarding form */
.onboarding-form fieldset {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  background: #fff;
}
.onboarding-form fieldset legend {
  font-weight: 700; font-size: 1.05rem; padding: 0 0.5rem;
}
.onboarding-form fieldset.inline-radio {
  border: none; padding: 0.5rem 0; margin: 0.75rem 0; background: transparent;
}
.onboarding-form fieldset.inline-radio legend {
  padding: 0; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.4rem;
}
.onboarding-form fieldset.inline-radio label {
  display: inline-flex; align-items: center; gap: 0.3rem;
  margin-right: 1rem; margin-bottom: 0.3rem;
}

.field {
  display: block; margin: 0.85rem 0;
}
.field .label, .field span.label {
  display: block; font-weight: 600; margin-bottom: 0.3rem; font-size: 0.95rem;
}
.field .hint {
  display: block; color: var(--muted); font-size: 0.85rem; margin: -0.1rem 0 0.4rem; line-height: 1.4;
}
.hint { color: var(--muted); font-size: 0.9rem; margin-top: -0.5rem; margin-bottom: 0.75rem; }

input[type="text"], input[type="number"], input[type="email"], select, textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
textarea { resize: vertical; }

.radio-row {
  display: flex; align-items: flex-start; gap: 0.6rem;
  padding: 0.5rem 0; cursor: pointer;
}
.radio-row input[type="radio"] { margin-top: 0.25rem; flex-shrink: 0; }
.radio-row span { flex: 1; }
.radio-row:hover { color: var(--accent-dark); }

.role-grid {
  display: grid; grid-template-columns: 1fr; gap: 0.4rem;
  margin: 0.75rem 0;
}
@media (min-width: 640px) {
  .role-grid { grid-template-columns: 1fr 1fr; gap: 0.4rem 1rem; }
}
.role-row {
  display: flex; align-items: center; gap: 0.5rem;
}
.role-label {
  flex: 1; font-size: 0.95rem;
}
.role-row input[type="number"] {
  width: 4.5rem; flex-shrink: 0; padding: 0.4rem 0.5rem; text-align: center;
}
.role-suffix { color: var(--muted); font-size: 0.85rem; }

.resume-url {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 0.75rem 1rem; word-break: break-all; font-size: 0.9rem;
}
.resume-url code { font-size: 0.9rem; }

button.btn-primary {
  border: none; cursor: pointer; font-family: inherit;
}
