/* Deliberately no global selectors, font-face declarations, or fixed UI. */
.cmp-story {
  --cmp-paper: #f7f4ea;
  --cmp-ink: #213b30;
  --cmp-pine: #12392d;
  --cmp-muted: #536354;
  --cmp-gold: #dfbe80;
  --cmp-line: #d0d3c1;
  --cmp-serif: 'Cormorant Garamond', Georgia, 'Songti SC', serif;
  color: var(--cmp-ink);
  background: var(--cmp-paper);
  font: 400 16px/1.75 'DM Sans', system-ui, sans-serif;
  text-align: start;
  overflow-wrap: anywhere;
  padding-block: clamp(44px, 6vw, 88px) 0;
  scroll-margin-top: 24px;
}
.cmp-story *, .cmp-story *::before, .cmp-story *::after { box-sizing: border-box; }
.cmp-story .cmp-wrap { width: min(1160px, 90%); margin-inline: auto; }
.cmp-story h2, .cmp-story h3, .cmp-story h4, .cmp-story p, .cmp-story figure { margin: 0; }
.cmp-story h2 { font: 600 clamp(34px, 4vw, 54px)/1.13 var(--cmp-serif); letter-spacing: -.025em; text-wrap: balance; }
.cmp-story h3 { font: 600 clamp(28px, 3.4vw, 43px)/1.16 var(--cmp-serif); letter-spacing: -.02em; text-wrap: balance; }
.cmp-story p { color: var(--cmp-muted); }
.cmp-story .cmp-rhythm > h2 { text-align: center; margin-block-end: 30px; }
.cmp-story .cmp-rhythm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cmp-story .cmp-rhythm-card { padding: clamp(23px, 3.2vw, 42px); border: 1px solid var(--cmp-line); border-radius: 14px; background: #eeeee2; }
.cmp-story .cmp-rhythm-card h3 { font-size: clamp(27px, 3vw, 36px); text-align: center; }
.cmp-story .cmp-rhythm-card p { font-size: 15px; }
.cmp-story .cmp-rhythm-card--tree { background: var(--cmp-pine); color: #f7f0df; border-color: #45634d; }
.cmp-story .cmp-rhythm-card--tree p { color: #e2e7d9; }
.cmp-story .cmp-doors { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; width: min(100%, 330px); height: 203px; margin: 28px auto; }
.cmp-story .cmp-doors span { position: relative; display: grid; place-items: center; min-width: 0; border: 1px solid #b7bca5; border-radius: 15px 15px 3px 3px; background: #faf6e9; font: 600 19px/1 var(--cmp-serif); box-shadow: 2px 2px 0 #d9dccb; }
.cmp-story .cmp-doors span::after { content: ''; position: absolute; inset-inline-end: 5px; top: 54%; width: 3px; height: 3px; border-radius: 50%; background: #92723b; }
.cmp-story .cmp-doors span:nth-child(5n) { background: #e4e8d8; }
.cmp-story .cmp-doors span:last-child { background: #e7d4ab; border-color: #ac8c56; }
.cmp-story .cmp-gift-tree { position: relative; width: min(100%, 330px); height: 203px; margin: 28px auto; background: linear-gradient(#bda270, #bda270) center 16px / 2px 157px no-repeat; }
.cmp-story .cmp-gift-tree::before { content: ''; position: absolute; top: 0; left: calc(50% - 5px); width: 10px; height: 10px; background: var(--cmp-gold); transform: rotate(45deg); }
.cmp-story .cmp-branch { position: absolute; left: 50%; height: 38px; border-top: 2px solid #859c75; transform: translateX(-50%); }
.cmp-story .cmp-branch--1 { top: 40px; width: 30%; }
.cmp-story .cmp-branch--2 { top: 82px; width: 54%; }
.cmp-story .cmp-branch--3 { top: 124px; width: 78%; }
.cmp-story .cmp-branch i { position: absolute; top: 7px; width: 26px; height: 24px; border: 1px solid #e2c790; border-radius: 3px; background: linear-gradient(90deg, transparent 42%, #e5c78a 42% 55%, transparent 55%), linear-gradient(transparent 30%, #e5c78a 30% 42%, transparent 42%), #a75b45; }
.cmp-story .cmp-branch i:first-child { left: 0; }
.cmp-story .cmp-branch i:last-child { right: 0; background-color: #45654f; }
.cmp-story .cmp-tree-date { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); border: 1px solid #bda270; border-radius: 6px; padding: 2px 20px; background: #dfc28c; color: #18392b; font: 600 27px/1.2 var(--cmp-serif); }
.cmp-story .cmp-section-intro { max-width: 760px; margin: 0 auto 42px; text-align: center; }
.cmp-story .cmp-section-intro h2 { margin-block-end: 18px; }
.cmp-story .cmp-section-intro p { max-width: 680px; margin-inline: auto; }
.cmp-story .cmp-ornamental-rule { display: block; width: 66px; height: 1px; margin: 0 auto 27px; background: #a88a52; }
.cmp-story .cmp-walkthrough { padding-block-start: clamp(70px, 9vw, 120px); }
.cmp-story .cmp-chapters, .cmp-story .cmp-scenario-grid { list-style: none; padding: 0; margin: 0; }
.cmp-story .cmp-chapters { display: grid; gap: 32px; }
.cmp-story .cmp-chapter { background: #e9eee2; border: 1px solid #d5d9c8; border-radius: 18px; }
.cmp-story .cmp-chapter-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding: clamp(24px, 4vw, 58px); }
.cmp-story .cmp-chapter-copy { max-width: 480px; }
.cmp-story .cmp-chapter-number { display: block; color: #607253; font: 500 clamp(62px, 8vw, 100px)/1 var(--cmp-serif); letter-spacing: -.05em; padding-block-end: 15px; }
.cmp-story .cmp-chapter-copy > h3 { margin-block-end: 21px; }
.cmp-story .cmp-chapter-copy > p { font-size: 17px; }
.cmp-story .cmp-chapter--share { background: #eee4d3; border-color: #d7cbb5; }
.cmp-story .cmp-chapter--share .cmp-chapter-number { color: #856d46; }
.cmp-story .cmp-chapter--open { background: #163c30; border-color: #315945; color: #f9f1de; }
.cmp-story .cmp-chapter--open p, .cmp-story .cmp-chapter--open figcaption { color: #dde4d4; }
.cmp-story .cmp-chapter--open .cmp-chapter-number { color: #ddbd83; }
.cmp-story .cmp-chapter:nth-child(even) .cmp-chapter-copy { grid-column: 2; grid-row: 1; }
.cmp-story .cmp-chapter:nth-child(even) .cmp-figure { grid-column: 1; grid-row: 1; }
.cmp-story .cmp-figure { min-width: 0; width: 100%; max-width: 370px; justify-self: center; }
.cmp-story .cmp-image-mat { padding: 9px; border: 1px solid #b8bdab; border-radius: 13px; background: #faf7ed; box-shadow: 0 14px 30px #19382a18; }
/* Explicit natural height: no max-height, aspect-ratio wrapper, object-fit crop, or overflow clip. */
.cmp-story .cmp-screenshot { display: block; width: 100%; height: auto; max-width: 100%; border-radius: 5px; }
.cmp-story figcaption { margin-block-start: 16px; color: #4e5c4b; font-size: 12px; line-height: 1.7; }
.cmp-story figcaption > span { font-weight: 700; letter-spacing: .08em; }
.cmp-story .cmp-privacy { margin-block-start: 30px; padding-block: 21px 0; border-top: 1px solid #bec8b0; }
.cmp-story .cmp-privacy h4 { font: 600 25px/1.2 var(--cmp-serif); margin-block-end: 10px; }
.cmp-story .cmp-privacy p { font-size: 14px; }
.cmp-story .cmp-scenarios { padding-block: clamp(65px, 8vw, 104px); }
.cmp-story .cmp-scenario-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cmp-story .cmp-scenario { border-block: 1px solid #bdc6b1; padding: 24px 6px 28px; }
.cmp-story .cmp-scenario-number { color: #725f3c; font-size: 12px; letter-spacing: .14em; font-weight: 700; }
.cmp-story .cmp-scenario h3 { font-size: 29px; margin-block: 17px 13px; }
.cmp-story .cmp-scenario p { font-size: 15px; }
.cmp-story .cmp-faq-section { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr); gap: 8%; padding-block: 10px 70px; }
.cmp-story .cmp-faq-list { border-top: 1px solid var(--cmp-line); }
.cmp-story .cmp-faq { border-bottom: 1px solid var(--cmp-line); }
.cmp-story .cmp-faq summary { display: flex; justify-content: space-between; gap: 22px; align-items: center; min-height: 64px; padding-block: 19px; font-size: 16px; font-weight: 600; line-height: 1.5; cursor: pointer; list-style: none; }
.cmp-story .cmp-faq summary::-webkit-details-marker { display: none; }
.cmp-story .cmp-faq-mark { position: relative; flex: 0 0 16px; height: 16px; }
.cmp-story .cmp-faq-mark::before, .cmp-story .cmp-faq-mark::after { content: ''; position: absolute; background: currentColor; inset: 7px 1px auto; height: 2px; }
.cmp-story .cmp-faq-mark::after { transform: rotate(90deg); }
.cmp-story .cmp-faq[open] .cmp-faq-mark::after { transform: none; }
.cmp-story .cmp-faq p { padding: 0 0 23px; font-size: 15px; }
.cmp-story .cmp-ending { padding: 43px 24px 50px; border-top: 1px solid var(--cmp-line); text-align: center; }
.cmp-story .cmp-create { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; max-width: 100%; padding: 15px 27px; background: #183e2e; color: #fff7df; border: 1px solid #183e2e; border-radius: 7px; font-size: 15px; line-height: 1.5; font-weight: 700; text-decoration: none; }
.cmp-story .cmp-create:hover { background: #2d513b; }
.cmp-story .cmp-independent { margin-block-start: 19px; font-size: 12px; }
.cmp-story a:focus-visible, .cmp-story summary:focus-visible { outline: 3px solid #9a6624; outline-offset: 5px; }
.cmp-story[dir='rtl'] h2, .cmp-story[dir='rtl'] h3 { letter-spacing: normal; }
@media (max-width: 760px) {
  .cmp-story { font-size: 15px; }
  .cmp-story .cmp-wrap { width: 91%; }
  .cmp-story .cmp-rhythm-grid { grid-template-columns: 1fr; gap: 14px; }
  .cmp-story .cmp-rhythm-card { padding: 24px; }
  .cmp-story .cmp-doors, .cmp-story .cmp-gift-tree { height: 192px; margin-block: 24px; }
  .cmp-story .cmp-chapter-layout { grid-template-columns: minmax(0, 1fr); gap: 25px; padding: 25px 20px; }
  .cmp-story .cmp-chapter:nth-child(even) .cmp-chapter-copy, .cmp-story .cmp-chapter:nth-child(even) .cmp-figure { grid-column: auto; grid-row: auto; }
  .cmp-story .cmp-chapter-copy { max-width: none; }
  .cmp-story .cmp-chapter-number { font-size: 60px; padding-block-end: 9px; }
  .cmp-story .cmp-chapter-copy > p { font-size: 15px; }
  .cmp-story .cmp-chapter-copy > h3 { margin-block-end: 14px; }
  .cmp-story .cmp-figure { max-width: 360px; }
  .cmp-story .cmp-scenario-grid { grid-template-columns: 1fr; gap: 0; }
  .cmp-story .cmp-scenario + .cmp-scenario { border-top: 0; }
  .cmp-story .cmp-faq-section { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-block-end: 48px; }
  .cmp-story .cmp-ending { padding-inline: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cmp-story, .cmp-story *, .cmp-story *::before, .cmp-story *::after { scroll-behavior: auto; animation: none; transition: none; }
}
@media (prefers-contrast: more) {
  .cmp-story { --cmp-muted: #293e2b; --cmp-line: #718067; }
  .cmp-story .cmp-rhythm-card, .cmp-story .cmp-chapter, .cmp-story .cmp-image-mat { border-width: 2px; }
  .cmp-story .cmp-rhythm-card--tree p, .cmp-story .cmp-chapter--open p, .cmp-story .cmp-chapter--open figcaption { color: #fff9e9; }
}
@media (forced-colors: active) {
  .cmp-story .cmp-branch i, .cmp-story .cmp-tree-date, .cmp-story .cmp-doors span, .cmp-story .cmp-create { border: 1px solid CanvasText; }
  .cmp-story .cmp-faq-mark::before, .cmp-story .cmp-faq-mark::after { background: CanvasText; }
}
