/* =========================================================
   7 Heavenly Virtues Test — sunlight limestone & ultramarine
   ========================================================= */
:root {
  --bg: #eef1f6;
  --paper: #fcfbf7;
  --ink: #162033;
  --muted: #55637a;
  --blue: #1e4e8c;
  --blue-deep: #143a6b;
  --gold: #b8862d;
  --gold-pale: #fcfbf7;
  --band-mid: #8aa8cc;
  --line: #d5dce7;
  --track: #e6ebf2;
  --radius: 12px;
  --shadow-1: 0 1px 2px rgba(22, 32, 51, .06);
  --shadow-2: 0 8px 24px rgba(22, 32, 51, .08);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(90% 60% at 12% -10%, rgba(30, 78, 140, .06), transparent 60%),
    radial-gradient(70% 50% at 100% 0%, rgba(184, 134, 45, .07), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
p { margin: 0 0 16px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--ink); }
h1 { margin: 0 0 20px; font-size: clamp(32px, 5vw, 48px); letter-spacing: -.015em; }
h2 { margin: 0 0 16px; font-size: clamp(26px, 3.6vw, 36px); letter-spacing: -.01em; }
h3 { margin: 0 0 10px; font-size: 22px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 8px; }
strong { font-weight: 700; }
cite { font-style: italic; }
::selection { background: rgba(184, 134, 45, .25); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-size: 14px; text-decoration: none;
}
.skip:focus { top: 12px; color: #fff; }

/* ---------- header ---------- */
.mast {
  position: sticky; top: 0; z-index: 30;
  background: rgba(252, 251, 247, .92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 66px; }
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 23px; font-weight: 600; letter-spacing: -.01em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.wordmark em { font-style: italic; color: var(--blue); }
.wordmark svg { width: 34px; height: 34px; flex: none; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  position: relative; font-size: 14.5px; font-weight: 500; color: var(--muted);
  text-decoration: none; padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--gold); transition: right .2s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { right: 0; }

/* ---------- hero ---------- */
.hero { padding: 48px 0 28px; }
.eyebrow, .kicker {
  margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold);
}
.lede { max-width: 68ch; font-size: 18px; line-height: 1.7; color: var(--muted); }
.hero-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 24px 0 0; padding: 0; }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; color: var(--muted); }
.hero-meta svg { width: 18px; height: 18px; color: var(--blue); flex: none; }

/* ---------- tool mount ---------- */
.work { margin-top: 8px; }
.under-tool { margin: 14px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); max-width: 78ch; }

/* ---------- sections ---------- */
.section { padding: 56px 0 8px; scroll-margin-top: 84px; }
.section + .section { border-top: 1px solid var(--line); margin-top: 48px; }
.section-head { max-width: 72ch; margin-bottom: 32px; }
.section-lede { font-size: 17px; color: var(--muted); }
.note-strip {
  margin-top: 32px; padding: 24px 28px;
  background: var(--paper); border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0; box-shadow: var(--shadow-1);
}
.note-strip h3 { font-size: 20px; }
.note-strip p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- pipeline ---------- */
.pipeline { display: flex; align-items: stretch; }
.pipe-step {
  flex: 1 1 0; min-width: 0;
  position: relative; padding: 26px 22px 24px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}
.pipe-step h3 { font-size: 19px; margin-bottom: 8px; }
.pipe-step p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.pipe-n {
  display: block; font-family: var(--serif); font-size: 13px; font-weight: 700;
  letter-spacing: .16em; color: var(--gold); margin-bottom: 10px;
}
.pipe-icon { width: 40px; height: 40px; display: block; margin-bottom: 14px; }
.pipe-arrow { display: grid; place-items: center; flex: 0 0 26px; width: 26px; }
.pipe-arrow svg { width: 26px; height: 12px; }

/* ---------- seven cards ---------- */
.seven-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.virtue-card {
  display: block; padding: 18px 18px 20px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1);
  text-decoration: none; color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.virtue-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: rgba(184, 134, 45, .45); }
.virtue-card img {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover; display: block;
  border: 3px solid var(--paper); box-shadow: 0 0 0 1px rgba(184, 134, 45, .5), var(--shadow-1);
  background: var(--line); margin-bottom: 14px;
}
.virtue-card h3 { font-size: 22px; margin: 0 0 2px; }
.virtue-card-latin { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.virtue-card-tag { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.virtue-card-tag b { color: var(--ink); font-weight: 600; }
.section-more { margin: 22px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.section-more a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.section-more a:hover { color: var(--blue-deep); }

/* ---------- mirror ---------- */
.mirror-figure { margin: 0 0 24px; padding: 20px 16px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.mirror-figure svg { display: block; width: 100%; height: auto; }
.mirror-label { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .18em; fill: var(--muted); }
.mirror-label.gold { fill: var(--gold); }
.mirror-virtue { font-family: var(--serif); font-size: 20px; font-weight: 600; fill: var(--ink); }
.mirror-vice { font-family: var(--serif); font-size: 20px; font-weight: 600; fill: var(--muted); }
.mirror-line { fill: none; stroke: var(--gold); stroke-width: 1.1; opacity: .55; stroke-dasharray: 3 4; }
.mirror-dot { fill: var(--gold); opacity: .8; }
.mirror-figure figcaption { margin: 8px 4px 0; font-size: 12.5px; color: var(--muted); }
.mirror-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.mirror-notes p { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- example ---------- */
.example-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: start; }
.example-card { margin: 0; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.example-card svg { display: block; width: 100%; height: auto; }
.example-card figcaption { margin-top: 6px; text-align: center; font-size: 12px; color: var(--muted); }
.example-bars { display: grid; gap: 10px; padding-top: 6px; }
.ex-bar { display: grid; grid-template-columns: 92px minmax(0, 1fr) 32px; gap: 10px; align-items: center; }
.ex-name { font-size: 13.5px; font-weight: 600; }
.ex-track { height: 9px; background: var(--track); border-radius: 999px; overflow: hidden; }
.ex-track i { display: block; height: 100%; background: var(--blue); border-radius: 999px; }
.ex-bar:first-child .ex-track i { background: var(--gold); }
.ex-bar b { font-size: 13px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.example-read h3 { font-size: 20px; }
.example-read p { font-size: 14.5px; color: var(--muted); }
.example-foot { font-size: 13px !important; padding-top: 12px; border-top: 1px dotted var(--line); }

/* ---------- bands ---------- */
.spectrum { display: flex; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.band { flex: 1; padding: 16px 14px 14px; display: flex; flex-direction: column; gap: 2px; min-height: 86px; }
.band b { font-family: var(--serif); font-size: 20px; font-weight: 700; line-height: 1; }
.band small { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.b1 { background: var(--bg); color: var(--ink); }
.b2 { background: var(--line); color: var(--ink); }
.b3 { background: var(--band-mid); color: var(--ink); }
.b4 { background: var(--blue); color: #fff; }
.b5 { background: var(--blue-deep); color: var(--paper); }
.bands-table { width: 100%; margin-top: 28px; border-collapse: collapse; font-size: 14.5px; }
.bands-table th, .bands-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.bands-table thead th { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.bands-table tbody th { font-family: var(--serif); font-size: 18px; white-space: nowrap; }
.bands-table td { color: var(--muted); }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 18px 44px 18px 0; font-weight: 600; font-size: 16.5px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-family: var(--serif); font-size: 24px; color: var(--gold); line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 40px 18px 0; margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- sources ---------- */
.sources { list-style: none; padding: 0; margin: 0 0 20px; }
.sources li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.sources a { font-weight: 600; }
.sources span { color: var(--muted); font-size: 14px; }
.source-note { font-size: 13px; color: var(--muted); }

/* ---------- engage ---------- */
.engage-head { max-width: 66ch; margin-bottom: 20px; }
.engage-head p { color: var(--muted); }
.engage-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 28px; }
.like-btn, .share-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  font: 600 14px var(--sans); color: var(--ink); cursor: pointer;
}
.like-btn svg { width: 18px; height: 18px; color: var(--blue); }
.like-btn:hover, .share-btn:hover { border-color: var(--blue); color: var(--blue); }
.like-btn[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.like-btn[aria-pressed="true"] svg { color: #fff; }
.like-count, .share-msg { font-size: 13px; color: var(--muted); }
.like-count b { color: var(--ink); }
.comments-empty { display: none; color: var(--muted); font-size: 14.5px; }
.comments[data-gf-empty] .comments-empty { display: block; }
.comment { padding: 16px 0; border-top: 1px solid var(--line); }
.comment header { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.comment header b { font-size: 14px; }
.comment time { font-size: 12px; color: var(--muted); }
.comment p { margin: 0 0 6px; font-size: 14.5px; }
.comment-reply { border: 0; background: none; padding: 0; font: 600 12.5px var(--sans); color: var(--blue); cursor: pointer; }
.comment-replies { margin-top: 10px; padding-left: 16px; border-left: 2px solid var(--line); }
.comment-form { margin-top: 24px; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 14px; }
.comment-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.comment-form input, .comment-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  font: 400 15px/1.5 var(--sans); color: var(--ink); background: #fff;
}
.comment-form input:focus, .comment-form textarea:focus { outline: 2px solid rgba(30, 78, 140, .35); border-color: var(--blue); }
.comment-form button {
  justify-self: start; min-height: 44px; padding: 0 22px; border: 0; border-radius: 8px;
  background: var(--blue); color: #fff; font: 600 14.5px var(--sans); cursor: pointer;
}
.comment-form button:hover { background: var(--blue-deep); }
.form-msg { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- footer ---------- */
.footer { margin-top: 72px; border-top: 1px solid var(--line); background: var(--paper); }
.foot { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding: 48px 20px 32px; }
.foot-brand p { margin: 14px 0 0; font-size: 14px; color: var(--muted); max-width: 38ch; }
.foot-nav { display: flex; flex-direction: column; gap: 9px; }
.foot-nav h2 { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.foot-nav a { font-size: 14px; color: var(--ink); text-decoration: none; }
.foot-nav a:hover { color: var(--blue); text-decoration: underline; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 16px 20px 28px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

/* ---------- generic pages ---------- */
.page-head { padding: 48px 0 8px; max-width: 70ch; }
.cta {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 24px;
  background: var(--blue); color: #fff; border-radius: 8px; font-weight: 600;
  font-size: 15px; text-decoration: none;
}
.cta:hover { background: var(--blue-deep); color: #fff; }
.page-head h1 { font-size: clamp(30px, 4.6vw, 44px); }
.page-body { max-width: 70ch; padding-bottom: 16px; }
.page-body h2 { margin-top: 40px; font-size: 28px; }
.page-body h3 { margin-top: 28px; }
.page-body li { margin-bottom: 8px; }
.page-body table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 16px 0 24px; }
.page-body th, .page-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.page-body th { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.page-body .pair-table th[scope="row"] { font-size: 14.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); }
.updated { font-size: 13px; color: var(--muted); }
.page-cta { margin: 26px 0 6px; }
.page-figure { max-width: 620px; margin: 36px auto 8px; }
.page-body a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.page-body a:hover { color: var(--blue-deep); }
.page-body strong { color: var(--ink); }
.page-body blockquote { margin: 24px 0; padding: 2px 0 2px 18px; border-left: 2px solid var(--gold); color: var(--muted); }
.page-faq { margin-top: 0; }
.page-back { margin: 40px 0 16px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .pipeline { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .pipe-arrow { display: none; }
  .seven-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .example-grid { grid-template-columns: 1fr 1fr; }
  .example-read { grid-column: 1 / -1; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .nav { gap: 16px; }
  .nav a { font-size: 13px; }
  .nav a:nth-child(3) { display: none; }
  .hero { padding: 32px 0 20px; }
  .lede { font-size: 16.5px; }
  .section { padding: 40px 0 8px; }
  .section + .section { margin-top: 32px; }
  .pipeline { grid-template-columns: 1fr; }
  .mirror-notes { grid-template-columns: 1fr; gap: 16px; }
  .example-grid { grid-template-columns: 1fr; }
  .spectrum { flex-wrap: wrap; }
  .band { flex: 1 1 33%; }
  .bands-table { font-size: 13.5px; }
  .bands-table th, .bands-table td { padding: 10px 8px; }
  .sources li { grid-template-columns: 1fr; gap: 4px; }
  .foot { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; }
  .foot-base { flex-direction: column; }
  .comment-form { padding: 18px; }
  .wordmark { font-size: 20px; gap: 9px; }
  .wordmark svg { width: 30px; height: 30px; }
  .page-body table { font-size: 13px; }
  .page-body th, .page-body td { padding: 8px 6px; }
  .page-body .pair-table { display: block; font-size: 14.5px; }
  .page-body .pair-table thead { display: none; }
  .page-body .pair-table tbody, .page-body .pair-table tr { display: block; }
  .page-body .pair-table tr { padding: 14px 0 16px; border-bottom: 1px solid var(--line); }
  .page-body .pair-table th, .page-body .pair-table td { display: block; padding: 0; border: 0; }
  .page-body .pair-table th[scope="row"] { font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); }
  .page-body .pair-table td[data-label="Latin"], .page-body .pair-table td[data-label="Answers"] { display: inline-block; margin-top: 3px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
  .page-body .pair-table td[data-label="Latin"]::after { content: " · "; }
  .page-body .pair-table td[data-label="Answers"] { color: var(--muted); }
  .page-body .pair-table td[data-label="Answers"]::before { content: "answers "; }
  .page-body .pair-table td[data-label="What changes"] { margin-top: 8px; color: var(--muted); line-height: 1.55; }
  .mirror-virtue, .mirror-vice { font-size: 30px; }
  .mirror-label { font-size: 16px; }
  .mirror-figure { padding: 14px 8px 10px; }
}
@media (max-width: 420px) {
  .wordmark { font-size: 18px; gap: 8px; }
  .wordmark svg { width: 28px; height: 28px; }
  .nav { gap: 14px; }
  .nav a:nth-child(2) { display: none; }
  .seven-cards { grid-template-columns: 1fr; gap: 12px; }
  .virtue-card { display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: "img name" "img latin" "img tag"; column-gap: 14px; padding: 14px 16px; }
  .virtue-card img { grid-area: img; width: 56px; height: 56px; margin: 0; align-self: start; }
  .virtue-card h3 { grid-area: name; font-size: 19px; }
  .virtue-card-latin { grid-area: latin; margin-bottom: 4px; }
  .virtue-card-tag { grid-area: tag; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
