:root {
  --paper: #faf7ef;
  --ink: #24142c;
  --purple: #54277f;
  --pink: #ffb7d6;
  --hot-pink: #f468a5;
  --lavender: #e4d7ff;
  --lime: #e9f59d;
  --muted: #69596d;
  --line: #dfd7e3;
  --surface: #fffdf8;
  --mono: "DM Mono", monospace;
  --body: "DM Sans", system-ui, sans-serif;
  --display: Archivo, "Arial Black", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--paper) radial-gradient(#5b367727 .8px, transparent .8px) 0 0 / 16px 16px;
  color: var(--ink);
  font: 500 1rem/1.5 var(--body);
}
a { color: var(--purple); }
.page { width: min(100% - 64px, 1120px); margin-inline: auto; }
.masthead { min-height: 88px; border-bottom: 1px solid #24142c55; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand, .wordmark { display: flex; align-items: flex-start; }
.brand { align-items: center; gap: 13px; }
.wordmark { font: 900 3rem/.77 var(--display); letter-spacing: -.1em; }
.wordmark img { width: 17px; height: 17px; margin-left: 6px; }
.brand-name { border-left: 1px solid #24142c66; padding-left: 12px; font: 500 .72rem/1.22 var(--mono); }
.bio { border: 1px solid var(--ink); border-radius: 100px; padding: 6px 11px; background: var(--paper); color: var(--ink); font: 500 .74rem/1.35 var(--mono); text-decoration: none; }
.bio span { margin-left: 4px; }
.bio:hover { background: var(--lavender); }
.layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: 26px; margin-top: 33px; }
.hero, .card { border: 2px solid var(--ink); border-radius: 22px; box-shadow: 5px 5px var(--ink); }
.hero { display: flex; flex-direction: column; min-height: 518px; background: var(--pink); padding: 30px; isolation: isolate; position: relative; overflow: hidden; }
.eyebrow { display: inline-flex; gap: 7px; align-items: center; border: 1px solid var(--ink); border-radius: 100px; margin: 0 0 24px; padding: 5px 11px; background: var(--paper); font: 500 .72rem/1.35 var(--mono); }
.dot { width: 7px; height: 7px; background: var(--hot-pink); border: 1px solid var(--ink); border-radius: 50%; }
h1, h2 { font-family: var(--display); letter-spacing: -.06em; line-height: .96; margin: 0; font-weight: 900; }
h1 { font-size: clamp(3rem, 5.3vw, 4.8rem); }
h1 em { color: var(--purple); font-style: normal; }
.hero-copy > p:last-child { max-width: 30ch; margin: 21px 0 0; font-size: 1rem; }
.hero-art {
  width: 156px; height: 156px; display: grid; place-items: center; align-self: flex-end; margin: auto 3px 7px 0;
  transform: rotate(-11deg); border: 2px solid var(--ink); border-radius: 44%; box-shadow: 4px 4px var(--ink); background: var(--lime);
}
.hero-art img { width: 100px; height: 100px; }
.card { background: var(--surface); padding: 30px; min-width: 0; min-height: 518px; }
.progress { margin-bottom: 26px; }
.progress-label { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; font: 500 .74rem/1.2 var(--mono); color: var(--purple); }
.track { height: 6px; background: var(--lavender); border-radius: 100px; overflow: hidden; }
.track span { display: block; width: 33.33%; height: 100%; border-radius: inherit; background: var(--purple); transition: width .18s; }
h2 { font-size: clamp(1.9rem, 3.1vw, 2.65rem); }
.intro { margin: 10px 0 19px; color: var(--muted); font-size: .94rem; }
.services { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.services label { display: flex; align-items: flex-start; gap: 10px; padding: 11px 10px; cursor: pointer; border: 1px solid var(--line); border-radius: 10px; background: white; line-height: 1.2; }
.services label:hover { border-color: var(--purple); }
.services label:has(input:checked) { border-color: var(--purple); background: var(--lavender); }
input[type="checkbox"] { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--purple); flex: none; }
.services strong { display: block; font-size: .91rem; }
.services small { display: block; color: var(--muted); margin-top: 4px; font-size: .75rem; line-height: 1.32; }
.fields { display: grid; gap: 13px; }
.fields label { display: block; font-size: .88rem; font-weight: 700; }
.fields label > span { color: var(--purple); }
.fields small { color: var(--muted); font-size: .73rem; font-weight: 500; }
.fields input:not([type="checkbox"]), .fields textarea, .fields select {
  display: block; width: 100%; min-width: 0; margin-top: 5px; background: white; color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; font: 500 1rem/1.35 var(--body);
}
.fields input::placeholder, .fields textarea::placeholder { color: #75667a; }
.fields textarea { resize: vertical; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fields .consent { display: flex; align-items: flex-start; gap: 9px; font-weight: 500; margin-top: 4px; }
.fields .consent span { color: var(--ink); }
.actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 21px; }
.primary, .back { font: 700 .91rem/1.2 var(--body); cursor: pointer; }
.primary { display: inline-flex; gap: 15px; align-items: center; justify-content: center; background: var(--ink); color: white; padding: 11px 14px; border: 1px solid var(--ink); border-radius: 9px; min-height: 42px; text-decoration: none; }
.actions .primary { margin-left: auto; }
.primary:hover { background: var(--purple); }
.primary:disabled { opacity: .65; cursor: wait; }
.back { color: var(--ink); padding: 9px 0; background: none; border: 0; }
.back span { margin-right: 3px; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
.error { margin: 15px 0 0; padding: 8px 11px; color: #811e50; background: #ffe5f0; border-radius: 7px; font-size: .88rem; }
.sr-only, .hp { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.success { min-height: 446px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.success img { width: 58px; height: 58px; margin-bottom: 18px; }
.success p { max-width: 40ch; margin: 13px 0 24px; }
footer { margin: 30px 0 24px; color: var(--muted); font: 500 .74rem/1.35 var(--mono); }
.admin-layout { width: min(100% - 32px, 920px); margin: 30px auto; }
.admin-layout .card { margin: 20px 0; min-height: 0; }
.admin-layout h3 { margin: 0; }
.admin-layout .fields { max-width: 400px; }
.admin-layout dl { display: grid; grid-template-columns: minmax(110px, .6fr) 2fr; gap: 8px 12px; margin-bottom: 0; font-size: .9rem; }
.admin-layout dt { font-weight: 700; }
.admin-layout dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-layout time { color: var(--muted); font-family: var(--mono); font-size: .8rem; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.admin-actions .delete { background: white; color: #811e50; border-color: #811e50; }
.admin-actions .delete:hover { background: #ffe5f0; }
.admin-notice { color: var(--purple); }
.admin-layout .card p { overflow-wrap: anywhere; }
@media (max-width: 850px) {
  .page { width: min(100% - 40px, 1120px); }
  .layout { gap: 20px; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); }
  .hero, .card { padding: 22px; }
  .hero-art { width: 124px; height: 124px; }
  .hero-art img { width: 78px; height: 78px; }
}
@media (max-width: 650px) {
  .page { width: calc(100% - 32px); }
  .masthead { min-height: 65px; }
  .wordmark { font-size: 2.35rem; }
  .layout { grid-template-columns: 1fr; gap: 19px; margin-top: 17px; }
  .hero { min-height: 0; padding: 21px 18px; }
  .card { min-height: 0; padding: 20px 16px; }
  .hero-copy { position: relative; z-index: 1; }
  .eyebrow { margin-bottom: 16px; }
  h1 { font-size: clamp(2.75rem, 9vw, 4rem); max-width: 9ch; }
  .wide { display: none; }
  .hero-copy > p:last-child { margin-top: 12px; font-size: .88rem; max-width: 32ch; }
  .hero-art { position: absolute; width: 68px; height: 68px; right: 16px; top: 29px; margin: 0; box-shadow: 3px 3px var(--ink); }
  .hero-art img { width: 44px; height: 44px; }
  .progress { margin-bottom: 20px; }
  .success { min-height: 270px; }
}
@media (max-width: 370px) { .pair { grid-template-columns: 1fr; } .hero-art { right: 9px; width: 55px; height: 55px; } }
@media (prefers-reduced-motion: reduce) { .track span { transition: none; } }
