:root {
  --bg: #f7f1e8;
  --card: #fffaf2;
  --text: #2b2118;
  --muted: #6b5b4b;
  --accent: #c2562f;
  --accent-hover: #a54523;
  --accent-2: #e0a03a;
  --border: #e5d9c8;
  --tint: #efe6d8;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

[hidden] {
  display: none !important;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: 48px;
  margin-bottom: 16px;
}

h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

p {
  margin-top: 0;
  margin-bottom: 16px;
}

.muted {
  color: var(--muted);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 0;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--accent);
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--card);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm {
  min-height: 44px;
  padding: 8px 16px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}


/* Eyebrow & Badges */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius);
  background: var(--tint);
  color: #8c3518;
}

.meta-pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

/* Hero */
.hero-section {
  padding: 48px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: start;
}

.hero-lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-facts {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.hero-facts strong {
  color: var(--text);
}

.featured-launch {
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.launch-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.launch-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  margin-bottom: 24px;
}

.launch-traits span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 12px;
}

/* Sections */
.section-block {
  padding: 64px 0;
}

.section-tinted {
  background: var(--tint);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  margin-bottom: 32px;
  max-width: 70ch;
}

/* Catalog Row */
.catalog-stack {
  display: grid;
  gap: 24px;
}

.catalog-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px;
  align-items: center;
}

.catalog-media img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.catalog-body h3 a {
  color: var(--text);
}

.catalog-body h3 a:hover {
  color: var(--accent);
}

.catalog-cta {
  margin-top: 16px;
}

/* Editorial Figure */
.editorial-figure {
  margin: 0 0 32px;
}

.editorial-figure img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.editorial-figure figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

/* Numbered Steps */
.numbered-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.numbered-steps li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  flex-shrink: 0;
}


/* Tool Hero & Engagement */
.tool-hero {
  padding: 32px 0 48px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.tool-header {
  margin-bottom: 24px;
}

.tool-stage {
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.engage-bar {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.engage-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

[data-gf-like][data-gf-liked],
[data-gf-like][aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.count-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius);
  background: var(--tint);
  color: var(--text);
}

.share-msg,
.privacy-note {
  font-size: 14px;
  margin: 0;
}

/* Prose */
.prose-shell {
  max-width: 820px;
}

.prose {
  max-width: 70ch;
}

.prose h2 {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.prose h3 {
  margin-top: 24px;
}

.prose ul,
.prose ol {
  padding-left: 24px;
  margin-bottom: 24px;
}

.prose li {
  margin-bottom: 8px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  background: var(--card);
  border: 1px solid var(--border);
}

.prose th,
.prose td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--border);
}

.prose th {
  background: var(--tint);
  font-weight: 600;
}

.legal-date {
  font-size: 14px;
  margin-bottom: 24px;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.faq-item {
  padding: 16px 24px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin-top: 12px;
  margin-bottom: 0;
}

/* Comments */
.comment-form {
  padding: 24px;
  margin-bottom: 24px;
}

.form-row {
  margin-bottom: 16px;
}

.field-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.reply-banner {
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 12px;
}

.comment-list {
  display: grid;
  gap: 16px;
}

.comment-list[data-gf-empty]::before {
  content: "No reflections yet. Take the quiz above and share which trait ranked highest for you.";
  display: block;
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
}

.comment-card {
  padding: 16px 24px;
}

.comment-card[data-gf-owner] {
  border-color: var(--accent);
}

.comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 8px;
}

.owner-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #ffffff;
}

.comment-text {
  margin-bottom: 8px;
}

.reply-btn {
  background: none;
  border: none;
  padding: 4px 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.comment-replies {
  margin-top: 12px;
  padding-left: 16px;
  border-left: 2px solid var(--border);
  display: grid;
  gap: 12px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--card);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  max-width: 44ch;
}

.footer-note {
  margin-top: 12px;
  margin-bottom: 0;
  font-size: 14px;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px 24px;
}

.footer-link {
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}

.footer-bottom {
  padding-top: 16px;
  font-size: 12px;
  color: var(--muted);
}

.footer-bottom p {
  margin: 0;
}

/* Mobile */
@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 22px;
  }

  .header-row {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .site-nav {
    gap: 16px;
  }

  .hero-section {
    padding: 32px 0 48px;
  }

  .hero-grid,
  .catalog-row,
  .numbered-steps {
    grid-template-columns: 1fr;
  }

  .section-block {
    padding: 48px 0;
  }

  .tool-stage {
    padding: 16px;
  }

  .hero-actions .btn,
  .catalog-cta .btn,
  .form-actions .btn {
    width: 100%;
  }
}


/* Quiz engine (quiz.html) */
.quiz-app {
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.quiz-progress {
  margin-bottom: 24px;
}

.quiz-progress-track {
  height: 4px;
  background: var(--tint);
  border-radius: var(--radius);
  overflow: hidden;
}

.quiz-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.2s ease;
}

.quiz-progress-text {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.quiz-intro-lead {
  font-size: 18px;
  max-width: 60ch;
}

.quiz-intro-meta {
  font-size: 14px;
  margin-bottom: 24px;
}

.quiz-step {
  display: none;
}

.quiz-step[data-current] {
  display: block;
}

.quiz-question {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.35;
  color: var(--text);
  margin: 0 0 24px;
  max-width: 46ch;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-option {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.quiz-option:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.quiz-option[data-picked] {
  border-color: var(--accent);
  background: #f6e3d8;
  color: #8c3518;
  font-weight: 600;
}

.quiz-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.quiz-nav .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.quiz-nav-note {
  font-size: 13px;
  margin: 0;
}

.quiz-result-title {
  margin-bottom: 24px;
}

.trait-bars {
  display: grid;
  gap: 20px;
  margin-bottom: 24px;
}

.bar-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.bar-label {
  font-weight: 600;
  font-size: 15px;
}

.bar-level {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}

.bar-track-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bar-track {
  flex: 1;
  height: 12px;
  background: var(--tint);
  border-radius: var(--radius);
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent-2);
  border-right: 3px solid var(--accent);
  transition: width 0.6s ease;
}

.bar-value {
  min-width: 32px;
  text-align: right;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.quiz-result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.quiz-result-note {
  font-size: 14px;
  margin: 0;
  max-width: 64ch;
}

/* Axis guide */
.axis-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.axis-card {
  padding: 24px;
}

.axis-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
}

.axis-short {
  font-size: 14px;
  margin-bottom: 16px;
}

.axis-card h3 {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 16px 0 4px;
}

.axis-card p:last-child {
  margin-bottom: 0;
}

/* Related list */
.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.related-list li {
  padding: 16px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.related-list a {
  font-weight: 600;
}

@media (max-width: 640px) {
  .quiz-app {
    padding: 20px 16px;
  }

  .quiz-question {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .quiz-option {
    min-height: 52px;
  }

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

  .quiz-step {
    min-height: 320px;
  }
}


/* Quiz catalog mark + prose tables */
.catalog-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: var(--tint);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  color: #8c3a1c;
  letter-spacing: -0.02em;
}

.catalog-mark span {
  line-height: 1;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}

.prose th,
.prose td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.prose th {
  font-weight: 600;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  .catalog-mark {
    min-height: 120px;
    font-size: 40px;
  }
}


/* Reading rhythm + mobile header (design review pass) */
h1 {
  line-height: 1.12;
  margin-bottom: 24px;
}

.prose {
  max-width: 720px;
}

.prose h2 {
  margin-top: 48px;
  margin-bottom: 16px;
  font-size: 30px;
}

.prose h3 {
  margin-top: 32px;
}

.prose p {
  margin-bottom: 1.2em;
  max-width: 68ch;
}

.prose table {
  table-layout: fixed;
}

.prose th,
.prose td {
  padding: 16px;
}

.engage-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.engage-bar .privacy-note {
  margin: 0;
  font-size: 13px;
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .header-row {
    flex-wrap: wrap;
    gap: 8px 12px;
    padding-block: 12px;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 10px 14px;
    font-size: 14px;
  }

  h1 {
    font-size: 32px;
  }

  .prose h2 {
    font-size: 24px;
    margin-top: 36px;
  }
}
