/* Life Design Review. Mobile first, no framework, no external fonts. */

:root {
  color-scheme: light dark;
  --bg: #fbfaf8;
  --surface: #ffffff;
  --ink: #1c1a18;
  --ink-soft: #55504a;
  --line: #c8c0b5;
  --accent: #c2461a;
  --accent-ink: #ffffff;
  --focus: #1b62c9;
  --warn-bg: #fdf1ec;
  --radius: 12px;
  --measure: 34rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161513;
    --surface: #201e1c;
    --ink: #f2efea;
    --ink-soft: #bdb6ad;
    --line: #57514a;
    --accent: #f2673b;
    --accent-ink: #1c1a18;
    --focus: #8ab4ff;
    --warn-bg: #2c211c;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.05rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

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

.bar {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1rem 1.1rem 0;
}

footer.bar { padding: 2rem 1.1rem 2.5rem; }

h1 { font-size: 1.45rem; line-height: 1.3; margin: 0 0 0.75rem; }
h2 { font-size: 1.15rem; margin: 1.6rem 0 0.5rem; }
h3 { font-size: 1rem; margin: 1.3rem 0 0.4rem; }
p { margin: 0 0 0.9rem; }

.brand-mark { display: block; width: 260px; max-width: 100%; height: auto; }

.brand { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin: 0; }
.tagline { font-size: 1.12rem; color: var(--ink); margin-bottom: 1.5rem; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.85rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
}

.panel {
  background: var(--warn-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  margin-top: 1.2rem;
  font-size: 0.95rem;
}

.counter { text-align: right; margin: 0.35rem 0 0; }

.progress { margin: 0 0 0.25rem; font-size: 0.9rem; }
.progress.muted { margin-bottom: 1.2rem; }

/* The assessor's reflection must be READ BEFORE the question below it. It was
   ink-soft, which demoted it against a full-contrast bold question and sent the
   eye straight past it. Full ink plus a medium weight leads without turning the
   pair into two competing bold blocks. */
.reaction {
  border-left: 3px solid var(--accent);
  padding: 0.15rem 0 0.15rem 0.9rem;
  margin-bottom: 1.4rem;
  color: var(--ink);
  font-weight: 600;
}

.question { font-size: 1.2rem; margin-bottom: 1rem; outline: none; }

textarea {
  width: 100%;
  min-height: 8.5rem;
  padding: 0.75rem;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  resize: vertical;
}

.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-top: 0.9rem; }

button {
  font: inherit;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.7rem 1.25rem;
  cursor: pointer;
  min-height: 2.9rem;
}

.primary { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.secondary, .mic { background: var(--surface); color: var(--ink); border-color: var(--line); }
.mic { display: inline-flex; align-items: center; gap: 0.5rem; }
.mic .dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--ink-soft); }
.mic[aria-pressed="true"] .dot { background: var(--accent); animation: pulse 1.4s ease-in-out infinite; }

.linky {
  background: none;
  border: none;
  color: var(--ink-soft);
  text-decoration: underline;
  padding: 0.6rem 0 0;
  min-height: auto;
}

button:disabled { opacity: 0.55; cursor: default; }

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

.notice {
  background: var(--warn-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  margin-top: 0.9rem;
}

.prose ul { padding-left: 1.15rem; }
.prose li { margin-bottom: 0.4rem; }

.checkbox { display: flex; gap: 0.7rem; align-items: flex-start; margin-bottom: 0.9rem; }
.checkbox input { margin-top: 0.35rem; width: 1.15rem; height: 1.15rem; accent-color: var(--accent); flex: none; }

.skip {
  position: absolute;
  left: -9999px;
  background: var(--surface);
  color: var(--ink);
  padding: 0.6rem 1rem;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 10; }

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

fieldset { border: 0; padding: 0; margin: 1.4rem 0 0; }
legend { padding: 0; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

@media print {
  .no-print, header.bar, .bar button { display: none; }
  body { background: #ffffff; color: #000000; }
  main { max-width: none; padding: 0; }
  .card, .panel { border: none; }
}

/* The only logo asset is dark green on transparent, and there is no white
   knockout variant, so on the dark theme it would sit near-invisible on
   #161513. A small light plate keeps the real brand colours legible. */
@media (prefers-color-scheme: dark) {
  .brand-mark {
    background: #fbfaf8;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    box-sizing: content-box;
  }
}
