:root {
  --bg: #f3ece2;
  --card: #fffaf3;
  --ink: #2b2118;
  --muted: #6b5b4b;
  --accent: #a84422;
  --gold: #e0a03a;
  --line: rgba(43, 33, 24, .12);
  --radius: 18px;
  --shadow: 0 18px 40px rgba(43, 33, 24, .08);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  background:
    radial-gradient(900px 420px at 0% -10%, rgba(224, 160, 58, .18), transparent 55%),
    radial-gradient(700px 380px at 100% 0%, rgba(194, 86, 47, .08), transparent 50%),
    var(--bg);
}
a { color: var(--accent); }
a:hover { color: #8a341c; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(243, 236, 226, .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink); text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
}
.mark { width: 36px; height: 36px; display: block; }
.nav { margin-left: auto; display: flex; gap: 6px; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 8px 12px; border-radius: 999px; white-space: nowrap;
}
.nav a:hover { background: rgba(43, 33, 24, .06); color: var(--accent); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(36px, 4.4vw, 58px); letter-spacing: -.03em; margin: 0 0 16px; }
.prose > h1 { margin-top: 40px; }
h2 { font-size: clamp(26px, 3vw, 34px); margin: 56px 0 14px; }
h3 { font-size: 22px; margin: 28px 0 8px; }
.lead { margin: 0; font-size: 18px; line-height: 1.65; color: var(--ink); }
.sheet {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  column-gap: 48px; row-gap: 12px; align-items: center;
  width: min(1080px, calc(100% - 48px));
  padding: 36px 0 12px;
}
.sheet h1, .sheet .lead { grid-column: 1; }
.sheet .hero-figure, .sheet .page-banner { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.sheet [data-gf-tool], .sheet .share-row { grid-column: 1 / -1; }
.sheet [data-gf-tool] {
  margin-top: 20px; padding: 28px 28px 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow);
}
.hero-figure, .page-banner { margin: 0 0 28px; }
.hero-figure img, .page-banner img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.prose .page-banner img { aspect-ratio: 16 / 7; }
.prose {
  width: min(720px, calc(100% - 48px)); margin: 8px auto 0; padding-bottom: 8px;
  font-size: 17px; line-height: 1.75;
}
.prose p, .prose li { max-width: 66ch; }
.prose p { margin: 0 0 1.15em; }
.prose > p:first-of-type { font-size: 1.05em; }
.share-row { display: flex; align-items: center; gap: 12px; margin: 8px 0 36px; flex-wrap: wrap; }
.share-row[hidden] { display: none; }
.share-msg, [data-gf-share-msg] { color: var(--muted); font-size: 14px; }
.btn {
  min-height: 44px; padding: 12px 18px; border-radius: 999px; border: 0;
  background: var(--accent); color: #fffaf3; font: 600 16px/1 var(--font-body);
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.btn:hover { background: #8a341c; color: #fffaf3; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid rgba(168, 68, 34, .5); }
.btn.ghost:hover { background: rgba(168, 68, 34, .08); color: var(--ink); }
.prose ol { list-style: none; padding: 0; margin: 8px 0 28px; counter-reset: step; }
.prose ol li { position: relative; padding: 4px 0 4px 52px; margin: 14px 0; }
.prose ol li::before {
  content: counter(step); counter-increment: step; position: absolute; left: 0; top: 0;
  font-family: var(--font-display); font-size: 28px; color: var(--accent);
}
.faq { margin-top: 12px; }
.faq h3 { border-left: 3px solid var(--gold); padding-left: 12px; }
.foot { margin-top: 72px; padding: 48px 0 64px; border-top: 1px solid var(--line); }
.foot-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.foot-group { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.foot-label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.foot a { color: var(--ink); font-weight: 600; text-decoration: none; }
.foot a:hover { color: var(--accent); }
.fine { grid-column: 1 / -1; margin: 8px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.prose table { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 8px 0 28px; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: break-word; }
.prose th { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
[data-gf-tool="sins-test"] .ss .ss-opt, .ss-options button { min-height: 48px; }
.saved-result { margin: 28px 0; padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.ss-saved-kicker { margin: 0 0 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.ss-saved-name { margin: 0 0 8px; font-family: var(--font-display); font-size: clamp(32px, 6vw, 48px); line-height: 1.1; }
.ss-saved-table { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 16px 0; }
.ss-saved-table caption { text-align: left; color: var(--muted); font-size: 14px; padding-bottom: 8px; }
.ss-saved-table th, .ss-saved-table td { padding: 10px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.ss-saved-table td { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.ss-saved-table tr.is-lead th { color: var(--accent); }
.ss-saved-note { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.ss-saved-cta { margin: 18px 0 0; }
.ss-empty { color: var(--muted); }
@media (max-width: 860px) {
  .wrap, .prose { width: min(720px, calc(100% - 32px)); }
  .sheet { display: block; width: min(720px, calc(100% - 32px)); padding-top: 24px; }
  .sheet [data-gf-tool] { padding: 18px 16px 4px; }
  .hero-figure img, .page-banner img, .prose .page-banner img { aspect-ratio: 16 / 10; }
  .top-row { min-height: 60px; flex-wrap: wrap; }
  .nav { margin-left: 0; width: 100%; overflow-x: auto; padding-bottom: 8px; }
  .foot-row { grid-template-columns: 1fr 1fr; }
  .share-row { align-items: stretch; }
  .share-row .btn, .ss-saved-cta .btn { width: 100%; }
  h1 { font-size: 34px; }
}
