/* ==========================================================================
   7 Virtues Test — museum manuscript theme
   Parchment ground, iron-gall ink, vermilion wax, antique gold hairlines.
   ========================================================================== */

:root {
  --paper: #F6EFE4;
  --leaf: #FFFDF8;
  --ink: #231A12;
  --walnut: #685847;
  --vermilion: #B84322;
  --gold: #C89238;
  --rule: rgba(35, 26, 18, .12);
  --radius: 8px;
  --shadow-1: 0 1px 2px rgba(35, 26, 18, .06);
  --shadow-2: 0 24px 46px -30px rgba(35, 26, 18, .38);
  --fraunces: "Fraunces", Georgia, "Times New Roman", serif;
  --inter: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.7 var(--inter);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--fraunces);
  font-weight: 600;
  line-height: 1.16;
  color: var(--ink);
  letter-spacing: -.012em;
}
p { margin: 0 0 22px; }
a {
  color: var(--vermilion);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--vermilion); outline-offset: 3px; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.main { padding: 56px 32px 96px; }

/* --------------------------------------------------------------- header -- */
.site-head {
  border-bottom: 1px solid var(--rule);
  background: rgba(255, 253, 248, .55);
}
.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--fraunces);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.015em;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #C9542F 0%, var(--vermilion) 52%, #8E2F16 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 253, 248, .28);
  color: var(--leaf);
  font-family: var(--fraunces);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}
.nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.nav a {
  color: var(--walnut);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--vermilion); border-bottom-color: var(--gold); }

/* ------------------------------------------------------------- page head -- */
.page-head { margin: 0 0 34px; max-width: 68ch; }
.page-title {
  font-size: clamp(38px, 5.2vw, 58px);
  font-weight: 700;
  letter-spacing: -.026em;
  line-height: 1.04;
  margin: 0 0 18px;
}
.page-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 1px;
  margin-top: 20px;
  background: var(--gold);
}
.page-lead {
  margin: 0;
  max-width: 60ch;
  color: var(--walnut);
  font-size: 18px;
  line-height: 1.66;
}

/* ---------------------------------------------------- test bench (hero) -- */
.tool-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: 940px;
  margin: 0 0 96px;
  padding: clamp(26px, 4vw, 52px);
  background: var(--leaf);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
}
.tool-shell::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 270px;
  right: 14px;
  width: clamp(180px, 22vw, 300px);
  aspect-ratio: 1 / 1;
  background: url("/_a/rose-window-wheel.414ec60a36.svg") center / contain no-repeat;
  opacity: .08;
  -webkit-mask-image: radial-gradient(closest-side, #000 38%, rgba(0, 0, 0, .55) 66%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 38%, rgba(0, 0, 0, .55) 66%, transparent 100%);
  pointer-events: none;
  user-select: none;
}
.tool-shell::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 10px;
  border: 1px solid rgba(200, 146, 56, .22);
  border-radius: 4px;
  pointer-events: none;
}
.tool-shell-inner { position: relative; z-index: 1; }
.tool-shell .page-head { position: relative; z-index: 1; margin-bottom: 26px; }
.tool-shell .page-title { font-size: clamp(36px, 4.6vw, 54px); }

/* -------------------------------------------------------- prose column -- */
.prose {
  max-width: 68ch;
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
}
.prose > * { max-width: 68ch; }
.prose > h2 {
  margin: 96px 0 22px;
  font-size: 31px;
  font-weight: 600;
  letter-spacing: -.018em;
}
.prose > h2:first-child { margin-top: 0; }
.prose > h2::after {
  content: "";
  display: block;
  width: 132px;
  height: 9px;
  margin: 16px 0 0;
  background: url("/_a/divider-ornamental.b022740218.svg") left center / contain no-repeat;
  opacity: .55;
}
.prose p { color: var(--ink); margin-bottom: 26px; }
.prose strong { font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 24px; }
.prose li { margin: 0; }

/* gold-ruled 1-2-3 steps */
.prose ol {
  list-style: none;
  counter-reset: step;
  margin: 30px 0 30px;
  padding: 6px 0 6px 0;
  border-left: 1px solid var(--gold);
}
.prose ol > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 26px 44px;
  color: var(--ink);
}
.prose ol > li:last-child { padding-bottom: 0; }
.prose ol > li::before {
  content: counter(step);
  position: absolute;
  left: -14px;
  top: 0;
  width: 28px;
  height: 28px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--paper);
  color: var(--vermilion);
  font-family: var(--fraunces);
  font-size: 14px;
  font-weight: 600;
  line-height: 26px;
  text-align: center;
}

/* the seven virtues — exhibit rows */
.prose ul.virtues-list {
  list-style: none;
  margin: 30px 0;
  padding: 0;
}
.prose ul.vp-virtues > li {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  column-gap: 24px;
  align-items: center;
  padding: 20px 4px;
  border-top: 1px solid #D8C8B8;
}
.prose ul.vp-virtues > li:last-child { border-bottom: 1px solid #D8C8B8; }
.prose ul.vp-virtues > li::before {
  content: "";
  grid-column: 1;
  grid-row: 1;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(200, 146, 56, .45);
  border-radius: 50%;
  background-color: var(--paper);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  box-shadow: var(--shadow-1);
}
.prose ul.vp-virtues > li:nth-child(1)::before { background-image: url("https://img.sevenvirtuetest.com/s_0n3f713w254g2n/chastity-emblem.496ed349a2.webp"); }
.prose ul.vp-virtues > li:nth-child(2)::before { background-image: url("https://img.sevenvirtuetest.com/s_0n3f713w254g2n/temperance-emblem.fb8f8a4493.webp"); }
.prose ul.vp-virtues > li:nth-child(3)::before { background-image: url("https://img.sevenvirtuetest.com/s_0n3f713w254g2n/charity-emblem.bc38e11cd0.webp"); }
.prose ul.vp-virtues > li:nth-child(4)::before { background-image: url("https://img.sevenvirtuetest.com/s_0n3f713w254g2n/diligence-emblem.c2dfc88852.webp"); }
.prose ul.vp-virtues > li:nth-child(5)::before { background-image: url("https://img.sevenvirtuetest.com/s_0n3f713w254g2n/patience-emblem.20a02e5963.webp"); }
.prose ul.vp-virtues > li:nth-child(6)::before { background-image: url("https://img.sevenvirtuetest.com/s_0n3f713w254g2n/kindness-emblem.0b7769079b.webp"); }
.prose ul.vp-virtues > li:nth-child(7)::before { background-image: url("https://img.sevenvirtuetest.com/s_0n3f713w254g2n/humility-emblem.9598fc3e3a.webp"); }
.prose ul.vp-virtues .virtue-num {
  grid-column: 1;
  grid-row: 1;
  z-index: 1;
  align-self: end;
  justify-self: end;
  min-width: 0;
  width: auto;
  height: auto;
  padding: 1px 5px;
  border-radius: 999px;
  background: var(--leaf);
  color: var(--vermilion);
  font-family: var(--fraunces);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.4;
}
.prose ul.vp-virtues > li > div {
  grid-column: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "name vice"
    "desc vice";
  column-gap: 24px;
  align-items: start;
}
.prose ul.vp-virtues .virtue-name {
  grid-area: name;
  font-family: var(--fraunces);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}
.prose ul.vp-virtues > li > div > div:nth-child(2) {
  grid-area: desc;
  color: var(--walnut);
  font-size: 15px;
  line-height: 1.55;
  max-width: 52ch;
}
.prose ul.vp-virtues .virtue-vice {
  grid-area: vice;
  align-self: center;
  justify-self: end;
  white-space: nowrap;
  padding: 6px 11px 5px;
  border: 1px solid rgba(184, 67, 34, .32);
  border-radius: 999px;
  background: rgba(184, 67, 34, .04);
  color: var(--vermilion);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* pairing chart — real image */
.vp-mirror { margin: 32px 0; padding: 0; }
.vp-mirror figcaption { margin-top: 10px; color: var(--walnut); font-size: 12.5px; line-height: 1.6; }
.vp-mirror img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  aspect-ratio: 600 / 690;
  object-fit: cover;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--leaf);
  box-shadow: var(--shadow-1);
}

/* results ledger */
.prose ul.vp-ledger {
  list-style: none;
  margin: 32px 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.prose ul.vp-ledger > li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
  padding: 15px 14px 15px 10px;
  border-bottom: 1px solid var(--rule);
}
.prose ul.vp-ledger > li:nth-child(1) {
  border-left: 3px solid var(--gold);
  background: linear-gradient(90deg, rgba(200, 146, 56, .14), rgba(200, 146, 56, 0) 72%);
}
.prose ul.vp-ledger > li:nth-child(7) {
  border-left: 3px solid var(--vermilion);
  background: linear-gradient(90deg, rgba(184, 67, 34, .1), rgba(184, 67, 34, 0) 72%);
}
.prose ul.vp-ledger .virtue-num {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--walnut);
  font-family: var(--fraunces);
  font-size: 12px;
  font-weight: 600;
}
.prose ul.vp-ledger .virtue-name {
  font-family: var(--fraunces);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}
.prose ul.vp-ledger > li > div > div:nth-child(2) {
  margin-top: 2px;
  color: var(--walnut);
  font-size: 14.5px;
  line-height: 1.55;
}

/* phone notes — three ruled device lines */
.prose ul.vp-devices {
  list-style: none;
  margin: 32px 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.prose ul.vp-devices > li {
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr);
  column-gap: 24px;
  padding: 15px 2px;
  border-top: 1px solid var(--rule);
  font-size: 15px;
  line-height: 1.6;
}
.prose ul.vp-devices > li:first-child { border-top: 0; }
.prose ul.vp-devices strong {
  font-family: var(--fraunces);
  font-size: 16px;
  font-weight: 600;
}

/* retake log + printable card */
.vp-retake {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 36px;
  width: min(900px, calc(100vw - 64px));
  max-width: none;
  align-items: start;
  margin: 30px 0 34px;
}
.prose ul.vp-log {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.prose ul.vp-log > li {
  padding: 9px 2px;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}
.vp-card { margin: 0; padding: 0; }
.vp-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--leaf);
  box-shadow: var(--shadow-1);
}

/* colophon */
.vp-colophon {
  margin-top: 96px;
  padding: 32px 30px 18px;
  border: 1px solid rgba(200, 146, 56, .55);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  background: var(--leaf);
}
.vp-colophon > h2 { margin-top: 0 !important; }
.vp-colophon > p:last-child { margin-bottom: 14px; }

/* ---------------------------------------------------------------- table -- */
.sv-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 15px;
  table-layout: fixed;
}
.sv-table th:nth-child(1), .sv-table td:nth-child(1) { width: 19%; }
.sv-table th:nth-child(2), .sv-table td:nth-child(2) { width: 18%; }
.sv-table thead th {
  padding: 0 14px 10px;
  border-bottom: 1px solid var(--ink);
  color: var(--walnut);
  font-family: var(--inter);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-align: left;
}
.sv-table td {
  padding: 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  line-height: 1.55;
}
.sv-table td:first-child strong {
  font-family: var(--fraunces);
  font-size: 16px;
  font-weight: 600;
}
.sv-table td:nth-child(2) { color: var(--vermilion); }
.sv-table td:nth-child(3) { color: var(--walnut); }

/* seven commentary entries on the guide page */
.is-page .prose p:has(> strong:first-child) {
  padding: 2px 0 2px 20px;
  border-left: 1px solid var(--gold);
  margin-bottom: 24px;
}
.is-page .prose p:has(> strong:first-child) > strong:first-child {
  font-family: var(--fraunces);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

/* ------------------------------------------------------------------ FAQ -- */
.faq { max-width: 68ch; margin: 96px 0 0; }
.faq-title {
  margin: 0 0 26px;
  font-size: 31px;
  font-weight: 600;
  letter-spacing: -.018em;
}
.faq-item { border-top: 1px solid var(--rule); }
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 19px 34px 19px 0;
  font-family: var(--fraunces);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-family: var(--inter);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item summary:hover { color: var(--vermilion); }
.faq-answer {
  max-width: 64ch;
  padding: 0 0 22px;
  color: var(--walnut);
  font-size: 15.5px;
  line-height: 1.7;
}
.faq-answer p { margin: 0; }

/* --------------------------------------------------------------- footer -- */
.site-foot {
  margin-top: 0;
  padding: 48px 0 56px;
  border-top: 1px solid var(--rule);
  background: rgba(255, 253, 248, .5);
}
.foot-inner { display: flex; flex-direction: column; gap: 12px; }
.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fraunces);
  font-size: 18px;
  font-weight: 700;
}
.foot-note { margin: 0; max-width: 56ch; color: var(--walnut); font-size: 14px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 6px; }
.foot-nav a {
  color: var(--walnut);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.foot-nav a:hover { color: var(--vermilion); }

/* ------------------------------------------------------ inner / legal -- */
.page-narrow .page-head {
  margin-bottom: 44px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}
.page-narrow .page-title { font-size: clamp(34px, 4.4vw, 46px); }
.page-narrow .prose { font-size: 17px; }
.page-narrow .prose > h2:first-child { margin-top: 0; }

.is-legal .prose { font-size: 16px; line-height: 1.75; }
.is-legal .prose > h2 {
  margin: 48px 0 14px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  font-size: 21px;
  letter-spacing: -.005em;
}
.is-legal .prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.is-legal .prose > h2::after { display: none; }
.is-legal .prose ul { padding-left: 22px; }
.is-legal .prose li { margin: 6px 0; }
.is-page .prose > p:first-of-type { font-size: 18px; }

/* --------------------------------------------------------------- mobile -- */
@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .main { padding: 32px 20px 72px; }
  .head-inner {
    flex-wrap: wrap;
    gap: 8px 16px;
    padding-block: 10px 12px;
    min-height: 0;
  }
  .brand { font-size: 18px; }
  .nav { gap: 8px 16px; width: 100%; }
  .nav a { font-size: 12px; letter-spacing: .08em; }

  .page-title { font-size: 36px; }
  .page-title::after { margin-top: 16px; }
  .page-lead { font-size: 16.5px; }

  .tool-shell {
    margin-bottom: 64px;
    padding: 24px 20px 28px;
    box-shadow: var(--shadow-1);
  }
  .tool-shell::before { display: none; }
  .tool-shell::after { inset: 6px; }
  .tool-shell .page-title { font-size: 34px; }
  .tool-shell .page-head { margin-bottom: 20px; }

  .prose { font-size: 16px; line-height: 1.72; }
  .prose > h2, .faq-title { font-size: 25px; }
  .prose > h2 { margin-top: 64px; }
  .prose > h2::after { margin-top: 12px; }

  .prose ol > li { padding-left: 36px; padding-bottom: 22px; }
  .prose ol > li::before { left: -13px; width: 26px; height: 26px; line-height: 24px; font-size: 13px; }

  .prose ul.vp-virtues > li {
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 12px;
    padding: 15px 0;
    border-top-color: rgba(35, 26, 18, .08);
  }
  .prose ul.vp-virtues > li::before { width: 40px; height: 40px; }
  .prose ul.vp-virtues > li > div {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "name"
      "desc"
      "vice";
    row-gap: 2px;
  }
  .prose ul.vp-virtues .virtue-name { font-size: 19px; }
  .prose ul.vp-virtues .virtue-vice {
    justify-self: start;
    margin-top: 2px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--walnut);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .02em;
    text-transform: none;
  }

  .vp-retake { grid-template-columns: minmax(0, 1fr); gap: 26px; width: 100%; }
  .vp-colophon { margin-top: 64px; padding: 24px 20px 8px; }

  .prose ul.vp-devices > li { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }

  .sv-table { font-size: 12.5px; }
  .sv-table th:nth-child(1), .sv-table td:nth-child(1) { width: 30%; }
  .sv-table th:nth-child(2), .sv-table td:nth-child(2) { width: 22%; }
  .sv-table th:nth-child(3), .sv-table td:nth-child(3) { width: 48%; }
  .sv-table thead th { padding: 0 4px 8px; font-size: 12px; letter-spacing: 0; }
  .sv-table td { padding: 9px 4px; line-height: 1.45; }
  .sv-table td:first-child strong { font-size: 12.5px; }

  .faq { margin-top: 64px; }
  .faq-item summary { padding: 17px 30px 17px 0; font-size: 16.5px; }
  .faq-answer { font-size: 15px; }

  .site-foot { padding: 36px 0 44px; }
}

@media (max-width: 420px) {
  .nav { gap: 10px 12px; }
  .nav a { font-size: 12px; letter-spacing: .02em; }
  .page-title { font-size: 33px; }
  .tool-shell .page-title { font-size: 31px; }
  .prose ul.vp-virtues > li > div { column-gap: 12px; }
}

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