/* Ariadne fit check — brand styles.
   Colours and type follow ariadneworks.com. Fonts are system stacks:
   the build guide forbids external font loading. */

:root {
  --cream: #F5F0E8;
  --paper: #FFFFFF;
  --ink: #1A1A1A;
  --ink-light: #4A4A4A;
  --accent: #2f8fc8;
  --accent-hover: #2474a8;
  --accent-soft: #e7f2f9;
  --coral: #E8755A;
  --coral-soft: #fbeae6;
  --green: #7ecba0;
  --green-soft: #eaf6ef;
  --rule: #D8D0C4;
  --serif: 'Hedvig Letters Serif', Georgia, 'Times New Roman', serif;
  --sans: Lato, system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}

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

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

/* the hidden attribute must win over the display rules below */
[hidden] { display: none !important; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ── header ── */

.site-header {
  border-bottom: 1px solid var(--rule);
  margin-bottom: 40px;
}

.site-header .wrap {
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  align-items: center;
}

.site-header a { display: block; text-decoration: none; color: var(--ink); }
.logo { height: 28px; width: auto; aspect-ratio: 1049 / 177; display: block; color: var(--ink); }

.site-header .back-link {
  margin-left: auto;
  padding-left: 20px;
  font-family: var(--sans, 'Lato', system-ui, sans-serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.site-header .back-link:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .site-header .back-long { display: none; }
}

.intro { margin-bottom: 40px; }

h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

h1 em { font-style: italic; color: var(--accent); }

.standfirst { color: var(--ink-light); max-width: 56ch; }
.standfirst + .standfirst { margin-top: 14px; }

.meta {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-light);
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

/* ── card ── */

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 32px;
}

@media (max-width: 560px) {
  .card { padding: 22px 18px; }
  body { font-size: 17px; }
}

/* ── progress ── */

.progress { margin-bottom: 26px; }

.progress-label {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 8px;
}

.progress-track {
  height: 3px;
  background: var(--rule);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--accent);
  width: 0;
  transition: width 0.25s ease;
}

/* ── questions ── */

fieldset { border: 0; }

legend {
  font-size: clamp(1.3rem, 3.5vw, 1.6rem);
  line-height: 1.3;
  margin-bottom: 6px;
}

/* the legend is focused programmatically on each step so screen readers
   announce the new question; it is not interactive, so no visible ring */
legend[tabindex]:focus { outline: none; }

.help {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-light);
  margin-bottom: 20px;
}

.options { list-style: none; display: grid; gap: 10px; }

.option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 14px 16px;
  cursor: pointer;
  background: var(--paper);
  transition: border-color 0.15s, background 0.15s;
}

.option:hover { border-color: var(--accent); background: var(--accent-soft); }

.option input { margin-top: 6px; accent-color: var(--accent); width: 17px; height: 17px; flex: none; }

.option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

.option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.option-text { font-family: var(--sans); font-size: 16px; line-height: 1.45; }
.option-note { display: block; font-size: 14px; color: var(--ink-light); margin-top: 2px; }

/* ── controls ── */

.controls {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
}

button {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  border-radius: 3px;
  border: 1px solid transparent;
  padding: 11px 22px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-primary:disabled { background: var(--rule); color: #7a7a7a; cursor: not-allowed; }

.btn-quiet { background: transparent; color: var(--ink-light); border-color: var(--rule); }
.btn-quiet:hover { color: var(--ink); border-color: var(--ink-light); }

.btn-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent);
  text-decoration: underline;
  font-weight: 400;
  font-size: 14px;
}

.spacer { flex: 1 1 auto; }

.escape {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-light);
  margin-top: 18px;
  text-align: center;
}

.escape a { color: var(--accent); }

/* ── result ── */

.verdict {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  padding: 22px 24px;
  border-radius: 0 4px 4px 0;
  margin-bottom: 28px;
}

.verdict.is-yes { border-left-color: var(--accent); background: var(--accent-soft); }
.verdict.is-no { border-left-color: var(--coral); background: var(--coral-soft); }

/* The blunt bit. The answer is the largest thing on the page — everything
   under it is the reasoning, not the verdict. */
.verdict-answer {
  font-size: clamp(2.6rem, 8vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.verdict.is-yes .verdict-answer { color: var(--accent); }
.verdict.is-no .verdict-answer { color: var(--coral); }

.verdict-caveat {
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.5;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* ── the "but have you thought about" panel ──
   Deliberately unlike the verdict box: no fill, a heavy rule, offset to read
   as a note in the margin rather than a second, softer answer. */

.aside {
  border: 1px solid var(--rule);
  border-top: 3px solid var(--ink);
  background: var(--paper);
  padding: 24px 26px;
  margin-bottom: 28px;
}

.aside-kicker {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 10px;
}

.aside h3 {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3.5vw, 1.5rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  border: 0;
  padding: 0;
  margin-bottom: 10px;
}

.aside > p {
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-light);
}

.aside-assets {
  list-style: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 10px;
}

.aside-assets li {
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-light);
}

.aside-assets strong { color: var(--ink); font-weight: 700; }

@media (max-width: 560px) {
  .aside { padding: 20px 18px; }
}

.verdict-kicker {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 6px;
}

.verdict h2 {
  font-size: clamp(1.3rem, 3.5vw, 1.7rem);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 10px;
}

.verdict p { color: var(--ink-light); }
.verdict p + p { margin-top: 10px; }

.result-section { margin-bottom: 28px; }

.result-section h3 {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-light);
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.reasons { list-style: none; display: grid; gap: 12px; }

.reasons li {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
  color: var(--ink-light);
}

.reasons li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.reasons li.is-against::before { background: var(--coral); }

.assets { display: grid; gap: 14px; }

.asset {
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 16px 18px;
}

.asset h4 { font-size: 1.15rem; font-weight: 400; margin-bottom: 4px; }
.asset p { font-family: var(--sans); font-size: 14.5px; color: var(--ink-light); line-height: 1.5; }
.asset .price { font-family: var(--sans); font-size: 13px; color: var(--ink-light); margin-top: 8px; }

/* ── capture form ── */

.capture { border-top: 1px solid var(--rule); padding-top: 26px; }

.capture h3 { border: 0; padding: 0; margin-bottom: 6px; }

.capture .help { margin-bottom: 18px; }

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
}

.field .optional { font-weight: 400; color: var(--ink-light); }

.field input, .field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 10px 12px;
}

.field input:focus, .field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}

.field textarea { min-height: 90px; resize: vertical; }

.field-error {
  font-family: var(--sans);
  font-size: 13.5px;
  color: #b23c22;
  margin-top: 5px;
  display: none;
}

.field.has-error input { border-color: var(--coral); }
.field.has-error .field-error { display: block; }

.form-status {
  font-family: var(--sans);
  font-size: 15px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 3px;
  display: none;
}

.form-status.is-visible { display: block; }
.form-status.is-ok { background: var(--green-soft); color: #1f5c3a; }
.form-status.is-bad { background: var(--coral-soft); color: #8c3620; }

.turnstile-holder { margin-bottom: 16px; }
.turnstile-holder[hidden] { display: none; }

/* ── footer ── */

.site-footer {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-light);
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.site-footer a { color: var(--accent); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media print {
  body { background: #fff; }
  .card { border: 0; padding: 0; }
  .controls, .capture, .site-header, .escape { display: none; }
  .aside { break-inside: avoid; }
}
