:root {
  --paper:#f3ead8; --paper-deep:#e7d9bf; --card:#fbf6ea; --ink:#2a2118; --ink-soft:#5a4c3d;
  --muted:#7a6d5c; --rule:#cbbba0; --wash:#c9d7c4; --moss:#4d6244; --shadow:rgba(42,33,24,.12);
  --display:"Fraunces", Georgia, serif;
  color-scheme:light;
}
* { box-sizing:border-box }
body {
  max-width:1500px; margin:auto; padding:clamp(20px,4vw,48px) clamp(16px,3vw,36px) 64px;
  background:var(--paper); color:var(--ink); font-family:"Source Serif 4", Georgia, serif;
}
.mast { margin-bottom:clamp(28px,4vw,48px); border-bottom:1px solid var(--rule) }
h1 { margin:0 0 .55em; font:400 clamp(1.8rem,4vw,3.25rem)/1.12 var(--display); letter-spacing:-.05em }
#gallery { display:grid; grid-template-columns:minmax(0,1fr); gap:clamp(42px,6vw,76px) clamp(24px,4vw,48px) }
@media (min-width:760px) { #gallery { grid-template-columns:repeat(2,minmax(0,1fr)) } }
@media (min-width:1240px) { #gallery { grid-template-columns:repeat(4,minmax(0,1fr)) } }
.study { min-width:0; display:grid; justify-items:center; align-content:start; gap:14px }
.legend { text-align:center; padding-top:6px }
.legend h2 { margin:0; font:400 2rem/1 var(--display) }
.legend small { display:block; margin-top:6px; font:400 .98rem/1.25 var(--display); color:var(--muted); max-width:30ch }
.phone {
  position:relative; width:min(100%,340px); aspect-ratio:9/16; overflow:hidden;
  container-type:size; border:1px solid var(--rule); border-radius:26px; background:var(--paper);
  box-shadow:0 2px 4px var(--shadow), 0 18px 44px -20px rgba(42,33,24,.3);
}
.screen { position:absolute; inset:0; display:flex; flex-direction:column }
img { display:block }

/* shared bits */
.top { display:flex; align-items:center; justify-content:space-between; padding:5cqh 6cqw 1.5cqh }
.top h3 { margin:0; font:400 7cqw/1 var(--display); letter-spacing:-.03em }
.icon { width:8cqw; height:8cqw; border-radius:50%; border:1px solid var(--rule); display:grid; place-items:center; color:var(--ink-soft) }
.icon svg { width:4.4cqw; height:4.4cqw }
.who { display:flex; gap:2cqw; padding:1cqh 6cqw 2cqh }
.who img { width:10cqw; height:10cqw; border-radius:50%; background:var(--card); border:1px solid var(--rule); padding:.6cqw }
.who img.on { border:2px solid var(--moss); box-shadow:0 0 0 1.2cqw rgba(77,98,68,.14) }
.who .all { width:10cqw; height:10cqw; border-radius:50%; border:1px dashed var(--rule); display:grid; place-items:center; font:400 3.2cqw/1 var(--display); color:var(--muted) }
.day { font:400 3.6cqw/1 var(--display); color:var(--muted); letter-spacing:.02em; padding:1.4cqh 6cqw .8cqh }
.q { font:400 4.6cqw/1.15 var(--display); letter-spacing:-.02em; margin:0 }
.pic { background:var(--card); border-radius:2.4cqw; overflow:hidden; border:1px solid rgba(203,187,160,.6) }
.pic img { width:100%; height:100%; object-fit:cover }
.time { font:400 3cqw/1 "Source Serif 4", serif; color:var(--muted) }

/* A · Journal */
.a-body { flex:1; overflow:hidden; padding:0 6cqw }
.a-entry { margin-bottom:2.4cqh }
.a-hero { position:relative; width:100%; aspect-ratio:1/1; }
.a-hero .steps { position:absolute; right:2.4cqw; bottom:2.4cqw; display:flex; gap:1.4cqw }
.a-hero .steps i { width:11cqw; aspect-ratio:9/16; border-radius:1.2cqw; overflow:hidden; border:1px solid rgba(255,252,243,.9); box-shadow:0 1px 3px rgba(0,0,0,.18); background:var(--card) }
.a-hero .steps img { width:100%; height:100%; object-fit:cover }
.a-cap { display:flex; justify-content:space-between; align-items:baseline; gap:3cqw; padding:1.2cqh .6cqw 0 }
.a-cap .q { font-size:5.6cqw }

/* B · Contact sheet */
.b-grid { flex:1; overflow:hidden; padding:0 5cqw; display:grid; grid-template-columns:repeat(2,1fr); gap:2.4cqw 2.4cqw; align-content:start }
.b-grid .day { grid-column:1/-1; padding-left:0 }
.b-cell .pic { aspect-ratio:1/1 }
.b-cell .q { font-size:3.9cqw; padding:.8cqh .4cqw 0 }

/* C · Filmstrip */
.c-body { flex:1; overflow:hidden }
.c-row { padding:0 0 1.6cqh }
.c-row .head { display:flex; justify-content:space-between; align-items:baseline; padding:0 6cqw 1cqh; gap:3cqw }
.c-row .head .q { font-size:4.8cqw; white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.c-strip { display:flex; gap:2cqw; padding:0 6cqw; }
.c-strip .pic { flex:none; width:25cqw; aspect-ratio:9/16 }
.c-strip .pic.lead { width:34cqw }

/* D · Reader (opened entry) */
.d-hero { position:relative; margin:0 5cqw; aspect-ratio:9/12.2; border-radius:3cqw; overflow:hidden; background:var(--card); border:1px solid rgba(203,187,160,.6) }
.d-hero > img { width:100%; height:100%; object-fit:cover }
.d-hero .q { position:absolute; left:0; right:0; bottom:0; padding:8cqh 5cqw 2.2cqh; color:#2a2118;
  background:linear-gradient(to top, rgba(243,234,216,.97) 40%, rgba(243,234,216,0)); font-size:6.4cqw }
.d-steps { display:flex; justify-content:center; gap:2.2cqw; padding:2cqh 5cqw 0 }
.d-steps .pic { width:17cqw; aspect-ratio:9/16; opacity:.7 }
.d-steps .pic.on { opacity:1; outline:2px solid var(--moss); outline-offset:1.5px }
.d-say { margin:1.8cqh 8cqw 0; text-align:center; font:400 3.9cqw/1.35 "Source Serif 4", serif; color:var(--ink-soft) }
.d-nav { margin-top:auto; display:flex; justify-content:space-between; align-items:center; padding:0 6cqw 4cqh; color:var(--muted); font:400 3.2cqw/1 var(--display) }
