:root {
  --bg: #f4efe3;
  --bg-soft: #f8f2e6;
  --bg-card: #fcf8ef;
  --line: rgba(28, 30, 36, 0.24);
  --line-strong: rgba(28, 30, 36, 0.45);
  --ink: #11131a;
  --muted: #413c33;
  --gold: #c9b07a;
  --gold-strong: #9a7f4c;
  --jade: #2d6d69;
  --danger: #b88484;
  --focus: 0 0 0 3px rgba(45, 109, 105, 0.28);
  --radius: 14px;
  --shadow: 0 14px 30px rgba(39, 34, 26, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Sora", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(201, 176, 122, 0.18), transparent 32%),
    radial-gradient(circle at 86% 8%, rgba(92, 127, 156, 0.12), transparent 38%),
    linear-gradient(180deg, #f8f3e9 0%, #f1eadb 100%);
  line-height: 1.58;
}

.page-wrap {
  width: min(980px, 100% - 2rem);
  margin: 0 auto;
  padding: 1rem 0 2.4rem;
}

.site-rail {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.48rem 0.68rem;
  background: rgba(252, 248, 238, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.brand {
  font-family: "IBM Plex Mono", monospace;
  color: var(--muted);
  font-size: 0.78rem;
}

.rail-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.rail-nav a {
  color: var(--ink);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.38rem 0.64rem;
  font-size: 0.8rem;
}

.rail-nav a:hover,
.rail-nav a:focus-visible {
  border-color: var(--line);
  background: rgba(17, 19, 26, 0.06);
}

.hero-block {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem;
  background: linear-gradient(142deg, rgba(201, 176, 122, 0.27), rgba(252, 248, 238, 0.92));
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: #30465f;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
}

h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 6vw, 3.4rem);
  margin-top: 0.35rem;
}

h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 3.5vw, 2rem);
}

h3 {
  font-size: 1rem;
}

.lead {
  margin: 0.64rem 0 0;
  color: var(--muted);
  max-width: 70ch;
}

.hero-sigil {
  margin-top: 0.82rem;
  border: 1px solid rgba(154, 127, 76, 0.32);
  border-radius: 12px;
  padding: 0.55rem 0.62rem;
  background: rgba(252, 248, 238, 0.76);
  display: grid;
  gap: 0.6rem;
  grid-template-columns: 82px 1fr 42px;
  align-items: center;
}

.hero-sigil-emblem,
.hero-sigil-glyph {
  width: 100%;
  height: auto;
  display: block;
}

.hero-sigil-line {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  color: #3b3122;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.hero-sigil-note {
  margin: 0.18rem 0 0;
  font-size: 0.79rem;
  color: #5a4f3e;
}

.card-stack {
  margin-top: 1rem;
  display: grid;
  gap: 0.8rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.92rem;
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.warning {
  border-color: rgba(184, 132, 132, 0.5);
  background: linear-gradient(145deg, rgba(184, 132, 132, 0.12), rgba(252, 248, 238, 0.95));
}

.dark-lens {
  border-color: rgba(184, 132, 132, 0.46);
  background: linear-gradient(145deg, rgba(93, 67, 67, 0.12), rgba(252, 248, 238, 0.96));
}

.card p,
.card li {
  color: var(--muted);
}

.small-note {
  font-size: 0.82rem;
}

.axiom-list,
ul {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
}

.axiom-list li,
li {
  margin-bottom: 0.34rem;
}

.manifesto-details summary {
  cursor: pointer;
  color: #30465f;
  font-weight: 600;
}

.manifesto-pillars {
  display: grid;
  gap: 0.56rem;
  margin-top: 0.72rem;
}

.pillar-note {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.62rem;
  background: rgba(255, 253, 249, 0.95);
}

.resume-banner {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 0.72rem;
  background: rgba(45, 109, 105, 0.08);
}

.quiz-quickfacts {
  border-color: rgba(45, 109, 105, 0.34);
  background: linear-gradient(145deg, rgba(45, 109, 105, 0.1), rgba(252, 248, 238, 0.96));
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.74rem;
  align-items: center;
}

.btn {
  border-radius: 999px;
  border: 1px solid transparent;
  min-height: 44px;
  min-width: 8.8rem;
  padding: 0.62rem 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.btn.solid {
  color: #fffef8;
  background: #30465f;
  border-color: #243246;
}

.btn.solid:hover,
.btn.solid:focus-visible {
  background: #243246;
}

.btn.ghost {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.btn.ghost:hover,
.btn.ghost:focus-visible {
  background: rgba(255, 255, 255, 0.75);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.btn:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.question-meta {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  color: #30465f;
  font-size: 0.82rem;
}

.progress-track {
  margin-top: 0.56rem;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(17, 19, 26, 0.12);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--jade), var(--gold));
  transition: width 180ms ease;
}

.progress-meta {
  margin-top: 0.34rem;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  color: #30465f;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
}

.question-prompt {
  margin-top: 0.78rem;
}

.options-grid {
  margin-top: 0.6rem;
  display: grid;
  gap: 0.5rem;
}

.option {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.56rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.54rem 0.64rem;
  background: rgba(255, 253, 248, 0.94);
}

.option input {
  width: 18px;
  height: 18px;
  accent-color: #30465f;
}

.option span {
  color: var(--ink);
  font-size: 0.92rem;
}

.option:focus-within {
  border-color: #30465f;
  box-shadow: var(--focus);
}

.start-help {
  margin: 0;
  color: #30465f;
}

.bar-grid {
  margin-top: 0.72rem;
  display: grid;
  gap: 0.52rem;
}

.bar-row {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem 0.56rem;
  background: rgba(255, 253, 248, 0.94);
}

.bar-header {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  color: var(--ink);
  font-size: 0.88rem;
  margin-bottom: 0.38rem;
}

.bar-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(17, 19, 26, 0.12);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #77c4ab, #d8bc80);
}

.result-callout {
  margin-top: 0.66rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.62rem;
  background: rgba(255, 253, 249, 0.95);
}

.result-callout h3 {
  margin-bottom: 0.34rem;
}

.lens-level {
  margin-top: 0.62rem;
  display: inline-block;
  border-radius: 999px;
  padding: 0.26rem 0.66rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  font-size: 0.8rem;
}

.level-low {
  border-color: rgba(111, 187, 163, 0.55);
  background: rgba(111, 187, 163, 0.14);
}

.level-moderate {
  border-color: rgba(199, 175, 121, 0.66);
  background: rgba(199, 175, 121, 0.2);
}

.level-elevated {
  border-color: rgba(184, 132, 132, 0.7);
  background: rgba(184, 132, 132, 0.2);
}

.north-star {
  margin-top: 0.8rem;
  color: #30465f;
}

.app-error {
  margin-top: 0.8rem;
  border: 1px solid rgba(184, 132, 132, 0.68);
  border-radius: 12px;
  padding: 0.75rem;
  background: rgba(184, 132, 132, 0.14);
  color: #5d2929;
}

.brand-signature {
  margin-top: 0.9rem;
}

.signature-grid {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: minmax(220px, 320px) 1fr;
  align-items: center;
}

.brand-asset {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.95);
  box-shadow: var(--shadow);
}

.brand-asset.crest {
  max-width: 320px;
  justify-self: center;
}

.signature-pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.signature-pillars li {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.48rem 0.6rem;
  background: rgba(255, 253, 248, 0.94);
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
}

.pillar-left {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}

.pillar-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.signature-pillars strong {
  letter-spacing: 0.05em;
}

.signature-pillars span {
  color: #30465f;
  font-size: 0.84rem;
}

.signature-variants {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
}

.brand-asset.seal,
.brand-asset.wordmark {
  width: 100%;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 760px) {
  .site-rail {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 18px;
  }

  .rail-nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .btn {
    width: 100%;
    min-width: 0;
  }

  .signature-grid {
    grid-template-columns: 1fr;
  }

  .signature-variants {
    grid-template-columns: 1fr;
  }

  .hero-sigil {
    grid-template-columns: 1fr;
  }

  .hero-sigil-emblem {
    max-width: 82px;
  }

  .hero-sigil-glyph {
    max-width: 42px;
  }
}
