/* The magazine: the reader, its pages (letters over ivory, copy over the renders), page numbers, the next-steps
   page and its boxes, the phone and phone-on-its-side type sizes, and the floor plan button on page 3. */
/* ---- 4 · The reader ---- */
#reader { position: fixed; inset: 0; z-index: 40; background: radial-gradient(ellipse 75% 70% at 50% 46%, #2e2b28 0%, #24211f 50%, #181716 100%); opacity: 0; pointer-events: none; transition: opacity .5s ease; }
#reader.on { opacity: 1; pointer-events: auto; }
#reader .bookhost { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
#reader #book { filter: drop-shadow(0 34px 60px rgba(0,0,0,.8)); }
#reader .close {
  position: absolute; top: max(18px, env(safe-area-inset-top)); right: max(18px, env(safe-area-inset-right)); z-index: 5;
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(216,184,151,.45); background: rgba(11,11,11,.5);
  color: var(--ink); font-family: 'ELLE Nova C', sans-serif; font-size: 16px; line-height: 42px; text-align: center; cursor: pointer;
}
#reader .nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(216,184,151,.45); background: rgba(11,11,11,.5);
  color: var(--ink); font-family: 'Silver Editorial', Didot, serif; font-size: 22px; line-height: 40px; text-align: center; cursor: pointer; padding: 0;
}
#reader .nav.prev { left: max(10px, env(safe-area-inset-left)); }
#reader .nav.next { right: max(10px, env(safe-area-inset-right)); }
/* single-page (portrait) reading: the arrows sit below the page, never over the words */
@media (orientation: portrait) {
  #reader .nav { top: auto; transform: none; bottom: calc(max(16px, env(safe-area-inset-bottom)) + 30px); }
  #reader .nav.prev { left: calc(50% - 62px); }
  #reader .nav.next { right: calc(50% - 62px); }
}
#reader .turnhint { position: absolute; bottom: max(16px, env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center;
  font-size: 11px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-faint); }

.page { background: var(--canvas); overflow: hidden; }
/* the gutter: each page darkens softly into the binding */
.page.--left:not(:last-child)::after, .page.--right:not([data-cover])::after { content: ''; position: absolute; top: 0; bottom: 0; width: 9%; z-index: 10; pointer-events: none; }
.page.--left:not(:last-child)::after { right: 0; background: linear-gradient(90deg, rgba(0,0,0,0), rgba(0,0,0,.08) 55%, rgba(0,0,0,.30)); }
.page.--right:not([data-cover])::after { left: 0; background: linear-gradient(270deg, rgba(0,0,0,0), rgba(0,0,0,.08) 55%, rgba(0,0,0,.30)); }
.page .face { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; }

.letter-face { background: var(--relief); color: #161310; padding: 11% 12%; display: flex; flex-direction: column; justify-content: center; }
.letter-face .eyebrow { font-size: clamp(11px, 1.85cqh, 13.5px); font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--espresso); margin-bottom: 7%; }
.letter-face h2 { font-family: 'Silver Editorial', Didot, serif; font-weight: 400; font-size: clamp(21px, 4.4cqh, 36px); line-height: 1.12; letter-spacing: .02em; margin-bottom: 8%; }
.letter-face p { font-size: clamp(14px, 2.6cqh, 20px); font-weight: 500; letter-spacing: .02em; line-height: 1.55; color: #161310; }
.letter-face .rule { width: 38px; height: 1px; background: var(--accent-2); opacity: .5; margin-top: 10%; }
.letter-face { container-type: size; }

.art-face { background: var(--canvas); border: var(--frame) solid var(--relief); container-type: size; overflow: hidden; }
.art-face img, .art-face video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art-face .still { z-index: 2; opacity: 1; transition: opacity .5s ease; }
/* the show-night clip is framed on its right, where the stage is */
.art-face .frame-right { object-position: 75% center; }
.art-face.playing .still, .art-face.done .still { opacity: 0; }

/* ---- copy over a render ---- */
.art-face .art-scrim { position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(rgba(11,11,11,.18), rgba(11,11,11,0) 20%, rgba(11,11,11,0) 56%, rgba(11,11,11,.26) 78%, rgba(11,11,11,.52) 100%); }
.art-face .art-copy { position: absolute; z-index: 4; left: 9%; right: 9%; bottom: 7.5%; }
/* pages 2, 4 and 5: the copy sits in the sky at the top, so the beach club, the pool and the people below stay clear;
   the light scrim flips to the top with it */
.art-face .art-copy.top { top: 7.5%; bottom: auto; }
.art-face:has(.art-copy.top) .art-scrim { background: linear-gradient(rgba(11,11,11,.58), rgba(11,11,11,.36) 24%, rgba(11,11,11,.12) 42%, rgba(11,11,11,0) 54%); }
.art-face:has(.art-copy.top.long) .art-scrim { background: linear-gradient(rgba(11,11,11,.6), rgba(11,11,11,.42) 30%, rgba(11,11,11,.2) 52%, rgba(11,11,11,0) 66%); }
.art-face .art-copy.top .biglbl { margin-top: 4%; }
@media (max-width: 600px) {
  .art-face:has(.art-copy.top) .art-scrim { background: linear-gradient(rgba(11,11,11,.62), rgba(11,11,11,.44) 32%, rgba(11,11,11,.18) 54%, rgba(11,11,11,0) 66%); }
}
.art-face .art-copy .eyebrow { font-size: clamp(11px, 1.75cqh, 13.5px); font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--accent-1); margin-bottom: 4%; text-shadow: 0 0 1px rgba(11,11,11,.95), 0 1px 2px rgba(11,11,11,.9), 0 0 10px rgba(11,11,11,.6); }
.art-face .art-copy h3 { font-family: 'Silver Editorial', Didot, serif; font-weight: 400; font-size: clamp(19px, 3.9cqh, 32px); line-height: 1.12; letter-spacing: .02em; text-shadow: 0 1px 3px rgba(11,11,11,.55), 0 2px 22px rgba(11,11,11,.75); }
.art-face .art-copy p { margin-top: 3.2%; font-size: clamp(13.5px, 2.35cqh, 18px); font-weight: 500; letter-spacing: .02em; line-height: 1.5; color: var(--ink); text-shadow: 0 0 1px rgba(11,11,11,.9), 0 1px 2px rgba(11,11,11,.85), 0 1px 14px rgba(11,11,11,.7); }
.art-face .art-copy .big { font-family: 'Silver Editorial', Didot, serif; font-size: clamp(22px, 5.6cqh, 46px); line-height: 1.05; margin-top: 3.5%; text-shadow: 0 1px 3px rgba(11,11,11,.55), 0 2px 26px rgba(11,11,11,.8); }
.art-face .art-copy .biglbl { margin-top: 2%; font-size: clamp(10.5px, 1.75cqh, 13.5px); font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--ink); text-shadow: 0 0 1px rgba(11,11,11,.95), 0 1px 2px rgba(11,11,11,.9), 0 0 10px rgba(11,11,11,.6); }
.art-face .art-copy .biglbl + .big { margin-top: 1.5%; }
.art-face .art-copy .feature { margin-top: 3.5%; font-size: clamp(10.5px, 1.75cqh, 13.5px); font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--ink); text-shadow: 0 0 1px rgba(11,11,11,.95), 0 1px 2px rgba(11,11,11,.9), 0 0 10px rgba(11,11,11,.6); }
/* legibility over the renders comes from the letters themselves: a tight edge shadow plus a soft
   wide glow that only sits behind the words, so the scene stays uncovered */
.art-face .art-copy h3, .art-face .art-copy .big { text-shadow: 0 0 1px rgba(11,11,11,.7), 0 1px 3px rgba(11,11,11,.65), 0 0 22px rgba(11,11,11,.55), 0 0 44px rgba(11,11,11,.35); }
.art-face .art-copy p, .art-face .art-copy .feature, .art-face .art-copy .biglbl {
  text-shadow: 0 0 1px rgba(11,11,11,.95), 0 1px 2px rgba(11,11,11,.9), 0 0 12px rgba(11,11,11,.6), 0 0 26px rgba(11,11,11,.4); }
.art-face .art-copy .eyebrow { color: #FFF6EA; text-shadow: 0 0 1px rgba(11,11,11,1), 0 1px 2px rgba(11,11,11,1), 0 0 8px rgba(11,11,11,.9), 0 0 18px rgba(11,11,11,.7), 0 0 34px rgba(11,11,11,.45); }


/* page numbers, so a reader can say "page 3" */
.folio { position: absolute; z-index: 6; left: 0; right: 0; bottom: 2.4%; text-align: center; font-size: clamp(9.5px, 1.5cqh, 12px); font-weight: 500; letter-spacing: .2em;
  color: var(--espresso); pointer-events: none; }
.art-face .folio { color: #fff; text-shadow: 0 0 1px rgba(11,11,11,1), 0 0 4px rgba(11,11,11,.95), 0 0 10px rgba(11,11,11,.7); }

/* ---- the operator panel ---- */
.letter-face .sono-logo { width: 58%; height: auto; display: block; margin: 2% 0 8%; mix-blend-mode: multiply; }

/* ---- letter-face content blocks ---- */
.letter-face p + p { margin-top: 4%; }
.letter-face .spec { margin: 1% 0 6%; }
.letter-face .spec .room { font-family: 'Silver Editorial', Didot, serif; font-size: clamp(17px, 3.1cqh, 25px); margin-bottom: 3.5%; }
.letter-face .spec .row { font-size: clamp(13px, 2.15cqh, 17px); font-weight: 500; letter-spacing: .02em; line-height: 1.45; padding: 2.4% 0; border-top: 1px solid rgba(169,135,106,.45); color: #161310; }
.letter-face .spec .row:last-child { border-bottom: 1px solid rgba(169,135,106,.45); }
.letter-face .reserved { margin-top: 7%; font-size: clamp(11px, 1.75cqh, 13.5px); font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--espresso); }
.letter-face .pool { margin-top: 5%; }
.letter-face .pool .lbl { font-size: clamp(11px, 1.85cqh, 13.5px); font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--espresso); margin-bottom: 1.8%; }
.letter-face .featline { margin-top: 6%; font-family: 'Silver Editorial', Didot, serif; font-style: italic; font-size: clamp(15px, 2.6cqh, 21px); color: #161310; }
.letter-face .closing { margin-top: 4.5%; }
.letter-face .doc { margin-top: 5.5%; }
.letter-face .doc .lbl { font-size: clamp(10.5px, 1.8cqh, 14px); font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: #161310; margin-bottom: 1.8%; }
.letter-face .doc .lbl .n { color: var(--accent-2); margin-right: .9em; }

/* ---- the next-steps page ---- */
.letter-face.dense { padding: 8% 9%; }
.letter-face.dense h2 { margin-bottom: 4%; }
.step { display: flex; gap: 4.5%; margin-top: 3%; }
.step .n { font-family: 'Silver Editorial', Didot, serif; font-size: clamp(13px, 2.1cqh, 17px); color: var(--accent-2); min-width: 2em; }
.step .t { font-size: clamp(11.5px, 1.85cqh, 14.5px); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: #161310; }
.step p { font-size: clamp(12.5px, 2cqh, 15.5px); font-weight: 500; letter-spacing: .02em; line-height: 1.4; color: #161310; margin-top: 1%; }
.cta { display: inline-block; margin-top: 3%; font-size: clamp(10px, 1.55cqh, 12.5px); font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: #161310; text-decoration: none; border: 1px solid #161310; padding: .9em 1.6em .75em; cursor: pointer; }
/* step 1's documents, in one box: a count, a tick once complete, one upload button */
.step > div:last-child { flex: 1; min-width: 0; }
.box .line > span:first-child { white-space: nowrap; }
.box { margin-top: 2.6%; border: 1px solid rgba(169,135,106,.55); padding: 2.6% 4%; }
.box .line { display: flex; align-items: center; justify-content: space-between; gap: 4%; min-height: 2.6em;
  font-size: clamp(10.5px, 1.6cqh, 13px); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: #161310; }
.box .line + .line { border-top: 1px solid rgba(169,135,106,.3); }
.box .right { display: flex; align-items: center; gap: 1.1em; flex-shrink: 0; }
.box .line > span:first-child { flex: 1; min-width: 0; }
.box .val { color: var(--espresso); letter-spacing: .08em; }
.box .val.done::after { content: '\2713'; margin-left: .6em; color: #2f5d3a; }
.box .cta { margin-top: 0; padding: .7em 1.2em .55em; }
.box .boxfoot { border-top: 1px solid rgba(169,135,106,.3); padding: 2.6% 0 .6%; }
.box .line > span:first-child { white-space: normal; }
/* a step that is still to come reads as a quiet sentence */
.note { margin-top: 1.4%; font-size: clamp(12px, 1.9cqh, 15px); font-weight: 400; letter-spacing: .01em; line-height: 1.4; color: #4a3b30; }
.letter-face.dense .step { margin-top: 4.2%; }
.letter-face.dense.tight { padding-top: 6%; padding-bottom: 9%; }
.letter-face.dense.tight .step { margin-top: 2.6%; }
.letter-face.dense.tight .box { margin-top: 1.8%; padding-top: 1.6%; padding-bottom: 1.6%; }
.letter-face.dense.tight .box .line { min-height: 2.25em; }
.letter-face.dense.tight .boxfoot { padding-top: 1.6%; }
.letter-face.dense.tighter .step p { line-height: 1.3; }
.letter-face.dense.tighter h2 { margin-bottom: 0; }
.letter-face.dense.tighter .fin { margin-top: 2.5%; }
.letter-face.dense.tightest .step p, .letter-face.dense.tightest .note { font-size: 1.75cqh; }
.letter-face.dense.tightest .box .line { font-size: 1.45cqh; min-height: 2.1em; }
.letter-face.dense.tightest .status { font-size: 1.4cqh; }
.letter-face.dense.tightest h2 { font-size: 3.8cqh; }
.letter-face.dense h2 { margin-bottom: 1%; }
/* live progress on each step: a tick once done, otherwise what happens next */
.status { margin-top: 2.2%; font-size: clamp(10px, 1.55cqh, 12.5px); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--espresso); }
.status.done::before { content: '\2713'; margin-right: .7em; color: #2f5d3a; letter-spacing: 0; }
.step.done .n { color: #2f5d3a; }
.letter-face .fin { margin-top: 4.5%; font-family: 'Silver Editorial', Didot, serif; font-style: italic; font-size: clamp(14px, 2.4cqh, 19px); }

.end-face { background: var(--canvas); border: var(--frame) solid var(--relief); align-items: center; justify-content: center; display: flex; }
.end-face img { width: 52%; display: block; }
/* phones: the page is small, so the type keeps its size and the margins give way */
@media (max-width: 600px) {
  .letter-face { padding: 9% 9.5%; }
  .letter-face.dense { padding: 8% 8.5%; }
  .letter-face p, .art-face .art-copy p, .step p { font-size: 15px; }
  .letter-face .spec .row { font-size: 14.5px; }
  .step .t { font-size: 13px; }
  .letter-face .eyebrow, .letter-face .pool .lbl, .letter-face .reserved, .letter-face .doc .lbl,
  .art-face .art-copy .eyebrow, .art-face .art-copy .biglbl, .art-face .art-copy .feature { font-size: 11.5px; }
  .cta { font-size: 11.5px; }
}
/* a phone on its side shows the two-page spread at a few hundred pixels tall: the type keeps
   the magazine's own proportions to the page instead of the upright phone's minimum sizes */
@media (orientation: landscape) and (max-height: 500px) {
  .cover-face .cl .big { font-size: 4.3cqh; }
  .cover-face .cl .small { font-size: 2.1cqh; }
  .cover-face .cap { font-size: 2.1cqh; }
  .letter-face .eyebrow { font-size: 1.85cqh; }
  .letter-face h2 { font-size: 4.4cqh; }
  .letter-face p { font-size: 2.6cqh; }
  .art-face .art-copy .eyebrow { font-size: 1.75cqh; }
  .art-face .art-copy h3 { font-size: 3.9cqh; }
  .art-face .art-copy p { font-size: 2.35cqh; }
  .art-face .art-copy .big { font-size: 5.6cqh; }
  .art-face .art-copy .biglbl { font-size: 1.75cqh; }
  .art-face .art-copy .feature { font-size: 1.75cqh; }
  .letter-face .spec .room { font-size: 3.1cqh; }
  .letter-face.rooms-page.tighter .spec .room { font-size: 2.7cqh; }
  .letter-face.rooms-page.tightest .spec .room { font-size: 2.4cqh; }
  .letter-face .spec .row { font-size: 2.15cqh; }
  .letter-face .reserved { font-size: 1.75cqh; }
  .letter-face .pool .lbl { font-size: 1.85cqh; }
  .letter-face .featline { font-size: 2.6cqh; }
  .letter-face .doc .lbl { font-size: 1.8cqh; }
  .step .n { font-size: 2.1cqh; }
  .step .t { font-size: 1.85cqh; }
  .step p { font-size: 2cqh; }
  .cta { font-size: 1.55cqh; }
  .letter-face .fin { font-size: 2.4cqh; }
  .letter-face { padding: 11% 12%; }
  .letter-face.dense { padding: 8% 9%; }
  .letter-face .rule { width: 6cqh; }
  #reader .turnhint { display: none; }
}
/* ---- the back of a turning leaf is plain paper (page-flip copies the page to draw it) ---- */
.page.leafback { background: var(--relief); }
.page.leafback > * { visibility: hidden; }
.page.leafback::after { display: none; }
/* touch: the still holds until the clip is truly running */
.art-face.pending .still { opacity: 1; }
/* ---- the deposit, early in the issue, and how to pay ---- */
.letter-face .box[data-depositbox] { margin-top: 7%; }
.box .val.out { color: #8a2e1f; }
.box .line .when { color: var(--espresso); letter-spacing: .08em; }
/* the floor plans: one button on page 3 however many room types, every plan in the sheet; shown only when a room
   type in the purchase has a plan */
.letter-face .plans-btn { margin-top: 0; margin-bottom: 5%; width: fit-content; align-self: flex-start; }
.letter-face .plans-btn:not(.shown) { display: none; }
/* four or more room types: smaller lines, so page 3 keeps its shape */
/* page 3 holds one line per room type. When they do not fit, js/fit.js closes the page up a step at a time, then
   carries the end of it over onto a following page (.cont) */
.letter-face.rooms-page.tight h2 { margin-bottom: 4%; }
.letter-face.rooms-page.tight .eyebrow { margin-bottom: 4.5%; }
.letter-face.rooms-page.tight .spec { margin-bottom: 4%; }
.letter-face.rooms-page.tight .spec .room { margin-bottom: 1.6%; }
.letter-face.rooms-page.tight .spec .row { padding: 1.6% 0; }
.letter-face.rooms-page.tight .plans-btn { margin-bottom: 4%; }
.letter-face.rooms-page.tight .reserved { margin-top: 4%; }
.letter-face.rooms-page.tighter { padding-top: 6%; }
.letter-face.rooms-page.tighter .spec .room { font-size: clamp(15px, 2.7cqh, 22px); }
.letter-face.rooms-page.tightest .spec .room { font-size: clamp(14px, 2.4cqh, 20px); margin-bottom: 1%; }
.letter-face.rooms-page.tightest h2 { margin-bottom: 2.5%; }
.letter-face.rooms-page.tightest p { line-height: 1.4; }
/* the carried-over part of page 3 starts with the rest of the room list, or the total */
.letter-face.rooms-page.cont > .spec:first-child { margin-top: 0; }
.box .line .val.wait { color: #6b5a4c; }
.signers { margin-top: 2%; }
