:root {
  color-scheme: light;
  --ink: #243a60;
  --muted: #59657a;
  --blue: #dcecff;
  --line: #d8dfe8;
  --yellow: #ffd366;
  font-family: "Avenir Next", Avenir, system-ui, sans-serif;
  background: #fffefa;
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid #b37337; outline-offset: 5px; border-radius: 3px; }
.page { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.mast { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 80px; }
.brand { display: inline-flex; align-items: center; gap: 7px; font: 850 1.26rem/1 system-ui, sans-serif; letter-spacing: -.055em; text-decoration: none; white-space: nowrap; }
.brand img { border-radius: 50%; margin-right: 2px; }
.brand span { color: #a4673d; margin-left: -5px; }
.mast p { font-family: Georgia, serif; font-style: italic; color: var(--muted); font-size: 1.05rem; }
.mast-link { font-size: .89rem; font-weight: 750; text-underline-offset: 4px; }
.opening { background: linear-gradient(#e6f1ff,#d6e9fa); border-bottom: 1px solid #c7d9e9; }
.opening-copy { text-align: center; padding-block: 50px 13px; }
.eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8e4b2b; margin-bottom: 16px; }
h1 { font: 600 clamp(4.25rem, 8.5vw, 8.1rem)/.89 Georgia, "Times New Roman", serif; letter-spacing: -.075em; }
h1 em { font-weight: 400; color: #2f5a9b; }
.opening-intro { margin: 24px auto 23px; font-size: clamp(1.04rem, 2vw, 1.25rem); line-height: 1.6; max-width: 38ch; color: #435975; }
.store { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 51px; padding: 12px 19px; border: 1px solid #ac792e; border-radius: 100px; background: var(--yellow); box-shadow: 0 3px #bf9653; color: #3e361e; font-size: .93rem; font-weight: 800; text-decoration: none; }
.store:hover { background: #ffe299; }
.play { width: 15px; height: 17px; clip-path: polygon(0 0,100% 50%,0 100%); background: #3e526c; }
.app-note { color: #5a6778; font-size: .82rem; margin-top: 13px; }
.opening-art { max-width: 1100px; margin-top: 17px; padding-bottom: 0; overflow: hidden; }
.opening-art img { display: block; width: 100%; height: auto; aspect-ratio: 2.35; object-fit: cover; object-position: center 52%; border-radius: 100px 100px 0 0; }
.guide-layout { display: grid; grid-template-columns: 205px minmax(0,1fr); gap: clamp(34px, 7vw, 105px); padding-block: 70px 40px; }
.contents { position: sticky; top: 24px; align-self: start; padding-right: 15px; }
.contents > p { font-size: .82rem; font-weight: 850; margin-bottom: 18px; color: var(--muted); }
.contents nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.contents a { display: block; font-size: .9rem; padding-block: 12px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 650; }
.contents a:hover { color: #a65b34; }
.reading { max-width: 790px; }
.chapter { scroll-margin-top: 25px; padding-bottom: 52px; }
.chapter + .chapter { padding-top: 8px; }
h2 { font: 600 clamp(2.2rem, 3.9vw, 3.75rem)/1.04 Georgia, "Times New Roman", serif; letter-spacing: -.055em; text-wrap: balance; margin-bottom: 21px; }
h3 { font-size: 1.13rem; line-height: 1.3; letter-spacing: -.025em; }
.chapter > p { color: var(--muted); line-height: 1.8; margin-block: 14px; }
.chapter > .eyebrow { color: #8e4b2b; line-height: 1.4; margin-block: 0 16px; }
.chapter > .standfirst { font-size: 1.16rem; color: #3a526d; line-height: 1.65; margin-bottom: 20px; }
.rule-ledger { border-top: 1px solid var(--line); }
.rule-ledger article { display: grid; grid-template-columns: 95px 1fr; gap: 20px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.rule-word { align-self: start; font: italic 1.2rem Georgia, serif; color: #9a5a33; }
.rule-ledger p { color: var(--muted); line-height: 1.7; margin-top: 5px; }
.chapter > .margin-note { border-left: 3px solid #dca64c; padding-left: 17px; font-size: .94rem; }
.heart-section { position: relative; }
blockquote { margin: 25px 0; border-block: 1px solid #e9c27b; padding-block: 22px; color: #735020; font: italic 1.6rem/1.3 Georgia, serif; letter-spacing: -.025em; }
.practice { border: 1px solid #c2d4e9; border-radius: 13px; overflow: hidden; margin-top: 20px; }
.practice details { background: #eef5ff; border-top: 1px solid #c2d4e9; }
.practice details:first-child { border-top: 0; }
summary { display: flex; position: relative; list-style: none; cursor: pointer; font-weight: 800; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.2rem; line-height: 1; color: #677f9d; }
details[open] summary::after { content: "−"; }
.practice summary { flex-direction: column; gap: 6px; padding: 18px 48px 18px 21px; }
.practice summary::after { position: absolute; top: 21px; right: 20px; }
.practice summary small { color: #586d85; font-weight: 500; font-size: .91rem; line-height: 1.55; }
.practice details > div { padding: 0 21px 20px; }
.practice details p { color: var(--muted); line-height: 1.75; margin-top: 9px; }
.routine { padding-left: 1.6em; margin: 18px 0; }
.routine li { padding: 13px 0 13px 7px; border-top: 1px solid var(--line); }
.routine li::marker { font-weight: 850; color: #98603a; }
.routine p { color: var(--muted); line-height: 1.75; margin-top: 6px; }
.questions details { border-top: 1px solid var(--line); }
.questions details:last-child { border-bottom: 1px solid var(--line); }
.questions summary { justify-content: space-between; gap: 20px; min-height: 58px; padding-block: 15px; }
.questions details p { color: var(--muted); line-height: 1.75; padding-bottom: 17px; }
.questions a, .chapter > p a { text-underline-offset: 4px; }
.closing { background: #ffda76; border-top: 1px solid #e3bd60; }
.closing-heading { padding-block: 44px 9px; text-align: center; }
.closing h2 { font-size: clamp(2.5rem, 4.5vw, 4.5rem); }
.closing a { color: #67511b; font-size: .94rem; font-weight: 750; text-underline-offset: 4px; }
.closing-art { display: block; }
.closing-art img { display: block; width: 100%; height: auto; max-height: 590px; object-fit: cover; }
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 17px; padding-block: 27px; }
.footer p, .footer > a:last-child { font-size: .84rem; color: var(--muted); }
.missing { padding-block: 90px; }
.missing h1 { font-size: 4rem; }
.missing p { margin-top: 25px; }
@media (max-width: 960px) {
  .page { width: calc(100% - 48px); }
  .guide-layout { grid-template-columns: 170px minmax(0,1fr); gap: 33px; }
  .mast p { display: none; }
}
@media (max-width: 760px) {
  .page { width: calc(100% - 32px); }
  .mast { min-height: 66px; }
  .mast-link { font-size: .83rem; }
  .opening-copy { padding-top: 35px; }
  h1 { font-size: clamp(3.6rem, 15vw, 5.8rem); }
  .opening-intro { font-size: 1.02rem; max-width: 31ch; margin-top: 18px; }
  .opening-art { width: 100%; margin-top: 14px; }
  .opening-art img { aspect-ratio: 1.7; border-radius: 38px 38px 0 0; }
  .guide-layout { grid-template-columns: 1fr; gap: 36px; padding-top: 30px; }
  .contents { position: static; padding: 0; }
  .contents nav { display: grid; grid-template-columns: 1fr 1fr; column-gap: 19px; }
  .contents a { font-size: .85rem; padding-block: 10px; }
  .contents > p { margin-bottom: 12px; }
  .chapter { padding-bottom: 36px; }
  h2 { font-size: clamp(2.2rem, 8.5vw, 3.4rem); }
  .chapter > p { line-height: 1.75; }
  .rule-ledger article { grid-template-columns: 72px 1fr; gap: 13px; }
  .rule-word { font-size: 1.1rem; }
  .closing-heading { padding-top: 36px; }
  .closing-art img { aspect-ratio: 1.65; object-position: center; }
}
@media (max-width: 350px) {
  .brand { font-size: 1.12rem; }
  .mast { gap: 10px; }
  .mast-link { font-size: .78rem; }
  .eyebrow { font-size: .72rem; }
  h1 { font-size: 3.3rem; }
}
