/* Shared editorial spacing and materials. */
:root{
  --forest:#293f35;
  --cream:#fffaed;
  --forest-line:#617365;
  --mist:#eeeade;
  --gutter:clamp(20px,4.5vw,72px);
  --chapter-space:clamp(48px,5.7vw,92px);
}
.chapter-heading,.edition-head{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,.8fr);align-items:end;gap:12px clamp(32px,8vw,140px);margin-bottom:clamp(22px,2.8vw,42px)}
.chapter-heading h2,.edition-head h2,.gift-letter h2{font-size:clamp(34px,3.75vw,60px);line-height:1.27;letter-spacing:-.055em;margin:7px 0 0;text-wrap:balance}
.chapter-heading>p,.edition-head>p,.gift-letter>p:not(.kicker){max-width:33em;font-size:clamp(15px,1.1vw,18px);line-height:1.95;color:var(--subtle)}
.edition-map{display:flex;align-items:baseline;justify-content:space-between;gap:12px 30px;padding:12px 0;border-block:1px solid var(--rule)}
.edition-map h2{font-size:20px;white-space:nowrap}.edition-map>div{display:flex;flex-wrap:wrap;gap:0 23px}
.edition-map a,.process-link,.edition-link{display:inline-flex;align-items:center;min-height:44px;font-size:14px;color:var(--moss);font-weight:650;text-underline-offset:5px}
.edition-map a:hover,.process-link:hover,.edition-link:hover{text-decoration:underline}.process-link{margin:8px 20px 0 0}
.fg-guide{border-top:0}.fg-art img{border-radius:14px}.fg-tabs button,.fg-filterbar button,.fg-more button,.fg-viewer button{min-height:44px}

/* The book of future bodies, with a single large photograph on the desk. */
.future-chapter{margin-top:var(--chapter-space);padding:var(--chapter-space) 0;background:var(--forest);color:var(--cream)}
.future-chapter .kicker{color:#edd6a5}.future-chapter .chapter-heading>p,.body-palette>p,.body-portrait figcaption p,.sharing-chapter figcaption p{color:#e0e7db}
.body-studio{display:grid;grid-template-columns:minmax(0,1.52fr) minmax(0,.87fr);gap:clamp(26px,4vw,70px);align-items:start}
.body-portraits,.body-portrait,.body-palette{min-width:0}
.body-portrait>img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:16px;background:#ddd5bf}
.body-portrait figcaption{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1fr);gap:9px 22px;margin-top:17px;align-items:start}
.body-portrait figcaption span,.shelf-words small{display:block;font-size:12px;font-weight:650;letter-spacing:.12em;color:#e8d3a7}
.body-portrait figcaption h3{font-size:clamp(22px,2vw,32px);line-height:1.4;margin-top:3px;letter-spacing:-.025em}
.body-portrait figcaption p{font-size:14px;line-height:1.85}
.body-palette{border-top:1px solid var(--forest-line);padding-top:18px}
.body-palette h3{font-size:clamp(20px,1.9vw,30px);line-height:1.4;margin:0 0 20px}
.body-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 8px}
.body-choices button{display:flex;flex-direction:column;align-items:stretch;border:0;border-radius:6px;padding:0 2px 6px;background:transparent;color:#edf2e9;text-align:left;font-size:13px;line-height:1.5}
.body-choices img{display:block;width:100%;aspect-ratio:1.34;height:auto;object-fit:cover;border-radius:5px;outline:2px solid transparent;outline-offset:2px;transition:outline-color .18s}
.body-choices span{display:block;margin:8px 0 0;white-space:nowrap}
.body-choices button:hover img{outline-color:#9da792}
.body-choices [aria-selected=true] img{outline-color:#f0d69b}
.body-choices [aria-selected=true] span{font-weight:700;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px;color:#ffeac3}
.future-chapter :focus-visible{outline:3px solid #ffe8af;outline-offset:4px}
.body-palette>p{border-top:1px solid var(--forest-line);padding-top:15px;margin-top:19px;font-size:13px;line-height:1.8}
.sharing-chapter{margin-top:clamp(29px,4.3vw,68px);padding-top:clamp(20px,2.8vw,40px);border-top:1px solid var(--forest-line)}
.sharing-chapter header{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 20px}
.sharing-chapter header h3{font-size:clamp(23px,2.3vw,36px);line-height:1.4}
.sharing-chapter .future-sequence{margin-top:18px;gap:clamp(12px,2vw,28px)}
.sharing-chapter figure img{height:auto;aspect-ratio:1.95;border-radius:8px;object-fit:cover}
.sharing-chapter figcaption strong{font-size:clamp(17px,1.4vw,23px)}
.sharing-chapter figcaption p{font-size:14px;line-height:1.8}

/* Personal themes and places use the same rhythm and visible controls. */
.life-edition,.places-band>.edition-section{padding-block:var(--chapter-space)}
.theme-list,.look-choices,.season-choices{display:flex;align-items:center;flex-wrap:wrap;column-gap:clamp(12px,2.5vw,42px);row-gap:2px;margin:0 0 24px;padding:0;border-bottom:1px solid var(--rule)}
.theme-list button,.look-choices button,.season-choices button{background:none;border:0;border-bottom:3px solid transparent;padding:8px 2px 9px;min-height:44px;min-width:44px;color:var(--subtle);font-size:15px}
.theme-list [aria-selected=true],.look-choices [aria-pressed=true],.season-choices [aria-pressed=true]{color:var(--clay);border-color:var(--clay);font-weight:700}
.theme-list button:hover,.look-choices button:hover,.season-choices button:hover{color:var(--clay)}
.theme-page,.look-view{display:grid;grid-template-columns:minmax(0,1.13fr) minmax(0,1fr);align-items:start;gap:clamp(24px,5.3vw,86px)}
.theme-page figure,.theme-text,.look-view figure,.look-text{min-width:0}
.theme-page figure img,.look-view img,.gift-still img{height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:14px;background:#e4ddce}
.theme-text h3,.look-text h3{font-size:clamp(24px,2.5vw,38px);line-height:1.4;letter-spacing:-.04em}
.theme-text>p,.look-text>p,.gift-notes details p{font-size:15px;line-height:1.95;color:var(--subtle);margin:10px 0 14px}
.theme-text .edition-link{margin:0 0 10px;gap:8px}
.theme-text details,.edition-section details,.gift-notes details{border-top:1px solid var(--rule)}
.theme-text summary,.edition-section summary,.gift-notes summary{cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:14px;font-weight:650;min-height:44px;padding:9px 2px;list-style:none}
.theme-text summary::-webkit-details-marker,.edition-section summary::-webkit-details-marker,.gift-notes summary::-webkit-details-marker,.archive-shelf>summary::-webkit-details-marker{display:none}
.theme-text summary::after,.edition-section summary::after,.gift-notes summary::after{content:'＋';color:var(--clay);flex:none}
.theme-text details[open]>summary::after,.edition-section details[open]>summary::after,.gift-notes details[open]>summary::after{content:'−'}
.theme-text details p,.edition-section details p,.gift-notes details p{font-size:14px;line-height:1.85;color:var(--subtle);padding:0 14px 14px 2px;margin:0}
.season-choices{border:0;margin:0;gap:12px}
.greeting-sample{margin:10px 0 18px;border-left:3px solid #67805d;padding:10px 17px;background:#e9eedf;border-radius:0 8px 8px 0}
.greeting-sample[data-theme=moon]{border-color:#a98036;background:#f0e4c7}.greeting-sample[data-theme=birthday]{border-color:#b47162;background:#f4e0d8}
.greeting-sample small{font-size:12px;color:#554a3c}.greeting-sample p{font:700 clamp(18px,1.6vw,25px)/1.6 var(--serif)}
.places-band{background:var(--mist)}.places-band>.edition-section>details{margin-top:24px}
.mini-play{border-top:1px solid var(--rule);padding:14px 0 0}.mini-play label{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:14px;font-weight:600}
.mini-play select,.mini-play button{min-height:44px;padding:8px 12px;font:inherit;color:var(--ink);border:1px solid #b7ab96;background:#fffbf1;border-radius:7px}
.mini-play p{font:700 17px/1.65 var(--serif);margin:13px 0}.mini-play button{font-size:14px}
.archive-shelf{border-block:1px solid var(--rule)}
#archive.fg-archive{border:0;padding-top:var(--chapter-space);padding-bottom:0}
.archive-shelf>summary{display:flex;gap:clamp(18px,3.4vw,50px);align-items:center;list-style:none;padding:clamp(21px,2.8vw,42px) 4px;cursor:pointer}
.shelf-stack{display:block;position:relative;width:92px;height:95px;flex:none}
.shelf-stack img{width:59px;height:82px;object-fit:cover;border:3px solid #fff8ec;box-shadow:0 2px 6px #40372730;position:absolute;left:4px;top:5px;transform:rotate(-11deg)}
.shelf-stack img+img{left:29px;top:9px;transform:rotate(10deg)}
.shelf-words{display:grid;min-width:0;gap:3px}.shelf-words small{color:var(--clay)}
.shelf-words strong{font:800 clamp(21px,2.1vw,33px)/1.45 var(--serif);letter-spacing:-.03em}
.shelf-words>span{color:var(--subtle);font-size:14px;line-height:1.65}
.shelf-toggle{margin-left:auto;display:flex;flex:none;align-items:center;gap:11px;font-size:14px;font-weight:600}
.shelf-toggle i{width:9px;height:9px;border:solid currentColor;border-width:0 1.7px 1.7px 0;transform:rotate(45deg);margin:-4px 4px 0 0}
.archive-shelf[open] .shelf-toggle i{transform:rotate(225deg);margin-top:5px}.archive-shelf:not([open]) .when-open,.archive-shelf[open] .when-closed{display:none}
.archive-shelf[open]{padding-bottom:24px}.fg-filterbar input,.fg-filterbar select{min-height:44px}
.gift-edition{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.98fr);gap:clamp(25px,5.5vw,88px);align-items:center;padding-block:var(--chapter-space)}
.gift-still{min-width:0}.gift-still img{aspect-ratio:1.18}
.gift-letter h2{font-size:clamp(34px,3.6vw,54px)}.gift-letter>p:not(.kicker){margin:12px 0 18px}.gift-notes{margin-bottom:18px}
.gift-edition .gift-links{gap:6px 16px}.gift-edition .gift-links a{min-height:44px}

@media(min-width:1500px){.future-chapter>.wide,.life-edition,.gift-edition,.places-band>.wide{max-width:1330px}}
@media(max-width:930px){
 .body-studio{grid-template-columns:minmax(0,1.45fr) minmax(0,.91fr);gap:22px}
 .body-portrait figcaption{grid-template-columns:1fr;gap:5px}.body-palette h3{margin-bottom:12px}
 .chapter-heading,.edition-head{column-gap:28px}
 .edition-map{display:block}.edition-map>div{gap:0 20px}
}
@media(max-width:730px){
 .chapter-heading,.edition-head{grid-template-columns:1fr;gap:12px}
 .body-studio,.theme-page,.look-view,.gift-edition{grid-template-columns:1fr}
 .body-studio{gap:18px}.body-palette{padding-top:14px}.body-palette h3{font-size:19px}
 .body-palette>p{border:0;margin:12px 0 0;padding:0}
 .body-choices{gap:8px 10px}.body-choices img{aspect-ratio:1.65}.body-choices span{margin-top:5px}
 .body-portrait figcaption{margin-top:11px}
 .sharing-chapter .future-sequence{display:flex;flex-direction:column;gap:17px}
 .sharing-chapter figure{display:grid;grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);align-items:center;gap:12px}
 .sharing-chapter figure img{aspect-ratio:1.38}.sharing-chapter figure figcaption{margin:0}
 .sharing-chapter figcaption p{font-size:13px;line-height:1.65}
 .theme-list,.look-choices{column-gap:16px;margin-bottom:17px}.theme-page,.look-view{gap:18px}
 .theme-page figure img,.look-view img{aspect-ratio:1.58}
 .shelf-stack{width:48px;height:65px}.shelf-stack img{width:34px;height:51px;left:0}.shelf-stack img+img{left:13px}
 .archive-shelf>summary{gap:12px;flex-wrap:wrap}.shelf-words{flex:1 1 150px}.shelf-toggle{font-size:13px}
 .gift-still img{aspect-ratio:1.65}.gift-edition{gap:20px}.gift-letter h2 br{display:none}
}
@media(max-width:420px){
 .theme-list,.look-choices{column-gap:11px}.theme-list button,.look-choices button{font-size:14px}
 .shelf-toggle{margin-left:60px}.shelf-words small{font-size:11px}
 .edition-map a{font-size:13px}.body-choices{gap:7px}
}
@media(prefers-reduced-motion:reduce){.body-choices img{transition:none}}
