:root{--bg: #fbfaf7;--paper: #fffefd;--paper-soft: #f6f2ea;--ink: #242426;--muted: #716c64;--line: #ded7cc;--line-strong: #c7b79f;--gold: #ad9066;--gold-dark: #8a704e;--shadow: 0 18px 50px rgba(40, 36, 30, .08)}*{box-sizing:border-box}html{background:var(--bg)}body{margin:0;background:linear-gradient(90deg,rgba(173,144,102,.06) 1px,transparent 1px),linear-gradient(180deg,#fffefd 0%,var(--bg) 42%,#f5f0e7 100%);background-size:72px 72px,auto;color:var(--ink);font-family:Hiragino Mincho ProN,Yu Mincho,YuMincho,"Noto Serif JP",serif;letter-spacing:0}button,input,textarea{font:inherit}button{-webkit-tap-highlight-color:transparent}p,h1,h2,h3{margin:0}p{line-height:1.95}.shell{width:min(1040px,calc(100% - 32px));margin:0 auto;padding:20px 0 56px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:8px 0 18px;opacity:.72}.brand,.textButton{border:0;background:transparent;color:var(--ink);cursor:pointer}.brand{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:0;font-size:18px;font-weight:600}.brandIcon{width:38px;height:38px;border:1px solid var(--line);border-radius:50%;object-fit:cover}.textButton{min-height:40px;padding:0 2px;color:var(--gold-dark);font-size:15px;border-bottom:1px solid transparent}.textButton:hover{border-color:var(--gold)}.hero{min-height:calc(100svh - 150px);display:grid;grid-template-columns:minmax(260px,440px) minmax(0,1fr);align-items:center;gap:clamp(32px,7vw,84px);padding:clamp(28px,6vw,72px) 0}.heroLogo{width:min(100%,420px);aspect-ratio:1;object-fit:cover;mix-blend-mode:multiply;filter:saturate(.92) contrast(1.02)}.heroCopy{max-width:560px}.heroCopy h1,.panel h1{font-size:clamp(32px,5vw,56px);font-weight:500;line-height:1.35}.heroCopy p:not(.eyebrow){max-width:34em;color:var(--muted);font-size:17px}.eyebrow{color:var(--gold-dark);font-size:12px;font-weight:700;letter-spacing:.18em;line-height:1.4;text-transform:uppercase}.panel{background:#fffefdf0;border:1px solid var(--line);border-radius:4px;box-shadow:var(--shadow);padding:clamp(20px,4vw,40px)}.stack{display:grid;gap:18px}.centered{justify-items:center;text-align:center}.statusLogo{width:120px;height:120px;border-radius:50%;object-fit:cover;mix-blend-mode:multiply}.button{display:inline-flex;align-items:center;justify-content:center;min-height:50px;width:fit-content;border:1px solid var(--ink);border-radius:2px;background:var(--ink);color:#fffefd;padding:0 22px;cursor:pointer;line-height:1.2;touch-action:manipulation;transition:background .16s ease,border-color .16s ease,transform .16s ease}.button:hover{background:#111;transform:translateY(-1px)}.button.primaryAction{margin-top:8px;min-width:240px;border-color:var(--gold-dark);background:var(--gold-dark)}.button.sampleAction{margin-top:-8px}.button.secondary{background:transparent;color:var(--gold-dark);border-color:var(--gold)}.button:disabled{cursor:not-allowed;opacity:.45;transform:none}.input,.textarea{width:100%;border:1px solid var(--line);border-radius:2px;background:#fff;color:var(--ink);padding:13px 14px;font-size:16px;line-height:1.7}.input:focus,.textarea:focus{border-color:var(--gold);box-shadow:0 0 0 3px #ad906629;outline:none}.textarea{min-height:112px;resize:vertical}.muted{color:var(--muted)}.questionnaire{max-width:820px;margin:0 auto;gap:18px}.questionnaire>.panel{border:0;box-shadow:none;background:#fffefdbd}.openingSequence{min-height:calc(100svh - 120px);display:grid;align-content:center;justify-items:center;gap:26px;text-align:center}.openingSequence p{max-width:18em;opacity:0;color:var(--ink);font-size:clamp(24px,5vw,42px);line-height:1.8;animation:openingFade 1.4s ease forwards}.openingButton{margin-top:22px;opacity:0;animation:openingFade 1.2s ease forwards;animation-delay:5.4s}@keyframes openingFade{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.chapterCover{min-height:calc(100svh - 120px);display:grid;align-content:center;justify-items:start;gap:24px;max-width:760px;margin:0 auto}.chapterCover h1{font-size:clamp(44px,8vw,84px);font-weight:500;line-height:1.25}.chapterCover p:not(.eyebrow){max-width:32em;color:#4f4941;font-size:clamp(19px,2.8vw,26px);line-height:2.1}.sticky{position:sticky;top:10px;z-index:2}.quietProgress{display:grid;justify-items:center;gap:12px;padding:6px 0 2px}.chapterDots{display:inline-flex;align-items:center;gap:14px}.chapterDot{width:9px;height:9px;border:1px solid var(--line-strong);border-radius:50%;background:transparent;cursor:pointer;padding:0}.chapterDot.done{background:#ad90666b;border-color:#ad90666b}.chapterDot.active{width:11px;height:11px;background:var(--gold-dark);border-color:var(--gold-dark)}.sectionHeader{display:flex;align-items:end;justify-content:space-between;gap:18px}.sectionHeader h1{margin-top:6px}.sectionHeader .muted{margin-top:8px;max-width:42em;line-height:1.7}.progressCount{color:var(--gold-dark);font-size:clamp(22px,3vw,32px);line-height:1;white-space:nowrap}.stepMeta{display:flex;flex-wrap:wrap;gap:8px;color:var(--muted);font-size:13px}.stepMeta span{border:1px solid var(--line);border-radius:999px;background:#ffffffa3;padding:5px 10px}.stepTabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.stepTab{display:flex;align-items:center;justify-content:center;gap:7px;min-height:28px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;color:var(--muted);cursor:pointer}.stepTab span{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:transparent;color:var(--gold-dark);font-size:12px;font-weight:700}.stepTab.active{border-color:var(--gold-dark);background:transparent;color:var(--ink)}.progress{width:100%;height:8px;overflow:hidden;border:1px solid var(--line);border-radius:999px;background:#f0ebe3}.progress span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--gold),var(--gold-dark))}.stepProgress{height:4px;opacity:.62}.questionNav{display:flex;justify-content:space-between;gap:10px}.savedNote{color:var(--gold-dark);font-size:14px;line-height:1.5}.chapterGate{display:grid;gap:16px;min-height:360px;align-content:center;border-bottom:1px solid var(--line);padding:clamp(24px,5vw,56px) 0 clamp(34px,6vw,72px)}.chapterGate h2{margin-top:8px;font-size:clamp(36px,6vw,64px);font-weight:500;line-height:1.45}.chapterGate p:not(.eyebrow){max-width:34em;color:#4f4941;font-size:clamp(18px,2.4vw,23px);line-height:2.1}.chapterGate span{width:fit-content;border-top:1px solid var(--gold);color:var(--gold-dark);padding-top:10px;font-size:14px}.chapterBridge{display:grid;justify-items:center;gap:22px;min-height:260px;align-content:center;border-top:1px solid var(--line);text-align:center}.chapterBridge p{max-width:32em;color:#4f4941;font-size:clamp(18px,2.2vw,22px);line-height:2}.question,.chapter{border-top:1px solid var(--line);padding-top:30px}.question:first-child{border-top:0;padding-top:0}.questionMeta{color:var(--gold-dark);font-size:12px;font-weight:700;letter-spacing:.12em;line-height:1.4}.question h2,.chapter h2{font-size:clamp(20px,2.6vw,28px);font-weight:500;line-height:1.65}.options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.option{display:flex;align-items:center;gap:10px;min-height:42px;border:1px solid rgba(222,215,204,.82);border-radius:3px;background:#ffffff6b;padding:8px 10px;line-height:1.45}.option:has(input:checked){border-color:var(--gold);background:#f8f3ea}.option input{width:16px;height:16px;accent-color:var(--gold-dark);flex:0 0 auto}.optionalToggle{width:fit-content;border:0;background:transparent;color:var(--gold-dark);cursor:pointer;padding:2px 0;font-size:14px}.optionalText{color:var(--muted);font-size:14px}.notice,.lock{border:1px solid var(--line-strong);border-radius:3px;background:var(--paper-soft);padding:18px}.lock{color:var(--muted)}.constitutionActions{display:flex;flex-wrap:wrap;gap:10px}.constitutionActions .button{min-height:44px}.actionMessage{border-left:2px solid var(--gold);padding-left:12px}.bookPreview{max-width:900px;margin:0 auto;gap:24px}.bookToolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;position:sticky;top:10px;z-index:3;padding:18px}.bookToolbar .muted{margin-top:4px;line-height:1.6}.bookPage{position:relative;min-height:760px;overflow:hidden;border:1px solid var(--line);border-radius:3px;background:linear-gradient(90deg,rgba(173,144,102,.13),transparent 26px),var(--paper);box-shadow:0 26px 70px #26211a1f;padding:clamp(34px,6vw,76px)}.bookPage:after{content:"";position:absolute;inset:18px;border:1px solid rgba(173,144,102,.28);pointer-events:none}.coverPage{display:grid;justify-items:center;align-content:center;gap:22px;min-height:820px;text-align:center}.coverLogo{width:min(46vw,260px);aspect-ratio:1;object-fit:cover;mix-blend-mode:multiply}.coverRule{width:min(420px,74%);height:1px;background:linear-gradient(90deg,transparent,var(--gold),transparent)}.coverPage h1{max-width:680px;font-size:clamp(40px,6vw,72px);font-weight:500;line-height:1.32}.coverPage p:not(.eyebrow){color:var(--muted);font-size:18px}.pageKicker{color:var(--gold-dark);font-size:13px;font-weight:700;letter-spacing:.18em;line-height:1.5;text-transform:uppercase}.prefacePage{display:grid;align-content:center;gap:28px}.prefacePage h2,.chapterPage h2{font-size:clamp(34px,5vw,56px);font-weight:500;line-height:1.4}.leadText{max-width:34em;color:#3b3732;font-size:clamp(18px,2.4vw,24px);line-height:2.2}.bookNotice{display:grid;gap:6px;border:1px solid var(--line-strong);border-radius:3px;background:#f6f2eae0;padding:18px 20px;color:var(--muted)}.bookNotice p{line-height:1.7}.chapterPage{display:grid;align-content:start;gap:22px}.chapterSummary{max-width:34em;color:var(--muted);font-size:18px;line-height:2}.articleList{display:grid;gap:18px;margin-top:8px}.articleBlock{border-left:2px solid var(--gold);padding-left:18px}.articleNumber{color:var(--gold-dark);font-size:12px;font-weight:700;letter-spacing:.12em;line-height:1.4;text-transform:uppercase}.articleBlock h3{margin:6px 0 8px;color:var(--ink);font-size:21px;font-weight:600;line-height:1.55}.articleBlock p:last-child{color:#3d3934;line-height:2}.lockedShelf{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.lockedPage{min-height:150px;border:1px solid var(--line);border-radius:3px;background:repeating-linear-gradient(135deg,rgba(173,144,102,.08) 0,rgba(173,144,102,.08) 8px,transparent 8px,transparent 18px),var(--paper-soft);padding:18px;color:var(--muted)}.lockedPage p{color:var(--gold-dark);font-size:13px;font-weight:700;line-height:1.5}.lockedPage h2{margin:8px 0 18px;color:var(--ink);font-size:22px;font-weight:500;line-height:1.5}.lockedPage span{font-size:14px}@media(max-width:760px){.shell{width:min(100% - 22px,1040px);padding:10px 0 34px}.topbar{padding-bottom:16px}.brand{font-size:16px}.brandIcon{width:34px;height:34px}.hero{min-height:auto;grid-template-columns:1fr;justify-items:center;gap:18px;padding:10px 0 28px;text-align:center}.heroLogo{width:min(78vw,300px)}.heroCopy{justify-items:center}.heroCopy h1,.panel h1{font-size:32px}.panel{padding:18px}.button{width:100%}.constitutionActions{display:grid;grid-template-columns:1fr}.bookPreview{gap:16px}.bookToolbar{position:static;display:grid;padding:16px}.bookPage{min-height:560px;padding:30px 24px}.bookPage:after{inset:10px}.coverPage{min-height:620px;gap:18px}.coverLogo{width:min(58vw,220px)}.coverPage h1,.prefacePage h2,.chapterPage h2{font-size:32px}.leadText,.chapterSummary{font-size:17px;line-height:2}.lockedShelf{grid-template-columns:1fr}.sticky{top:0}.sectionHeader{align-items:start}.progressCount{font-size:24px}.stepTabs{grid-template-columns:repeat(5,minmax(42px,1fr));gap:6px}.stepTab{min-height:36px;font-size:12px}.stepTab span{width:20px;height:20px}.questionNav{display:grid;grid-template-columns:1fr}.openingSequence{min-height:calc(100svh - 88px)}.openingSequence p{font-size:26px}.chapterCover{min-height:calc(100svh - 88px);justify-items:stretch}.chapterCover h1{font-size:46px}.options{grid-template-columns:1fr}.option{min-height:52px}.chapterGate{min-height:300px;padding:24px 0 38px}.chapterGate h2{font-size:34px}.chapterBridge{min-height:220px}}@media print{body{background:#fff}.shell{width:100%;padding:0}.topbar,.bookToolbar,.constitutionActions,.notice,.lock,.bookNotice,.lockedShelf,.actionMessage{display:none!important}.panel{border:0;box-shadow:none;padding:0}.bookPreview{max-width:none;gap:0}.bookPage{min-height:auto;box-shadow:none;border:0;border-radius:0;break-after:page;page-break-after:always}.bookPage:after{display:none}.chapter,.bookPage{break-inside:avoid;page-break-inside:avoid}}
