:root {
  --stone: #f4f2ec;
  --card: #ffffff;
  --ink: #1f1d33;
  --muted: #5e5a72;
  --lapis: #34388f;
  --lapis-dark: #262a73;
  --gold: #c08a1e;
  --line: #e2ded3;
  --radius: 12px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .06);
  --shadow-2: 0 8px 24px rgba(0, 0, 0, .08);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--lapis); }
a:hover { color: var(--lapis-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

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

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0 0 16px; }
h1 { font-size: 48px; letter-spacing: -.01em; }
h2 { font-size: 36px; }
h3 { font-size: 22px; }

/* header */
.site-head { background: var(--card); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 700; font-size: 22px; }
.brand-mark { width: 28px; height: 28px; border-radius: 6px; }
.head-nav { display: flex; gap: 24px; }
.head-nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.head-nav a:hover { color: var(--lapis); }
.head-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--gold); }
.menu-btn { display: none; appearance: none; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); font: 600 14px/1 var(--sans); cursor: pointer; }
.band-more { margin: 24px 0 0; max-width: 70ch; color: var(--muted); }

/* hero = the test */
.hero { padding: 32px 0 48px; }
.hero h1 { text-align: center; }
.lede { text-align: center; color: var(--muted); font-size: 18px; margin: 0 auto 24px; max-width: 60ch; }
.tool-shell { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-2); }

/* bands */
.band { padding: 64px 0; background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-intro { color: var(--muted); max-width: 70ch; margin: 0 0 32px; }
.virtue-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; counter-reset: v; }
.virtue-list li { display: grid; grid-template-columns: 32px 1fr; gap: 16px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); counter-increment: v; }
.virtue-list .pane {
  width: 32px; height: 48px; margin-top: 4px;
  background: var(--glass);
  border: 3px solid var(--ink);
  border-radius: 16px 16px 2px 2px;
  box-shadow: inset 0 -12px 0 rgba(255, 255, 255, .22);
}
.virtue-list h3 { margin: 0 0 4px; }
.virtue-list h3::before { content: counter(v) ". "; color: var(--gold); }
.virtue-list .vs { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.virtue-list p { margin: 0; color: var(--muted); }

/* prose */
.prose-wrap { padding: 64px 0; }
.prose p, .prose li { max-width: 70ch; font-size: 17px; }
.prose h2 { margin-top: 48px; }
.prose h2:first-child { margin-top: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 600; }
.prose blockquote { margin: 16px 0; padding: 8px 16px; border-left: 3px solid var(--gold); color: var(--muted); }

/* faq */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--stone); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 16px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; position: relative; padding-right: 32px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 22px; color: var(--lapis); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* legal pages */
.page-article { padding: 48px 24px 64px; }
.page-article h1 { font-size: 48px; }
.back-link { margin-top: 32px; font-weight: 600; }

/* footer */
.site-foot { padding: 32px 0; font-size: 14px; color: var(--muted); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.foot-row p { margin: 0; max-width: 70ch; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 16px 48px; }
.foot-cols div { display: grid; gap: 8px; align-content: start; }
.foot-cols a { color: var(--muted); }
.foot-head { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.foot-row .foot-copy { flex-basis: 100%; }

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .page-article { padding: 32px 16px 48px; }
  h1, .page-article h1 { font-size: 28px; }
  h2 { font-size: 28px; }
  .head-row { flex-wrap: wrap; }
  .js-menu .menu-btn { display: inline-flex; align-items: center; }
  .js-menu .head-nav { display: none; flex-basis: 100%; flex-direction: column; gap: 0; padding: 0 0 8px; }
  .js-menu .head-nav.is-open { display: flex; }
  .head-nav { gap: 12px; flex-wrap: wrap; }
  .js-menu .head-nav a { padding: 12px 0; font-size: 16px; border-top: 1px solid var(--line); }
  .js-menu .head-nav a[aria-current="page"] { box-shadow: none; color: var(--lapis); }
  .hero { padding: 16px 0 32px; }
  .lede { font-size: 15px; margin-bottom: 16px; }
  .band, .prose-wrap { padding: 48px 0; }
  .virtue-list { grid-template-columns: 1fr; }
}
