/* Sample 3 · LUXE, THE MAGAZINE · homepage */
.mg-desk { padding: 26px 0 30px; background: radial-gradient(90% 70% at 50% 40%, #3b342b, #1a1714 75%); color: #f4efe6; overflow: hidden; }
.mg-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.mg-kicker { font-family: var(--ff-head); font-style: italic; font-size: clamp(1.1rem, 2.4vw, 1.5rem); color: #fdc41b; }
.mg-help { margin: 0; color: rgba(255,255,255,.65); font-size: .9rem; }
.mg-stage { perspective: 2400px; display: grid; place-items: center; padding: 6px 0 10px; }
.mg-book { --pw: min(500px, calc((100vw - 96px) / 2), calc((100vh - 250px) * .74)); position: relative; width: calc(var(--pw) * 2); height: calc(var(--pw) / .74); transition: transform .9s cubic-bezier(.645,.045,.355,1); transform-style: preserve-3d; }
.mg-book.spread.closed { transform: translateX(-25%); }
.mg-book.spread.ended { transform: translateX(25%); }
.mg-book.single { --pw: min(calc(100vw - 40px), 430px, calc((100svh - 230px) * .74)); width: var(--pw); }
.mg-book::before { content: ""; position: absolute; inset: 3% 2% -4%; background: rgba(0,0,0,.55); filter: blur(28px); z-index: -1; border-radius: 20px; transform: translateZ(-2px); }
.leaf { position: absolute; top: 0; left: 50%; width: 50%; height: 100%; transform-origin: 0 50%; transform-style: preserve-3d; transition: transform .95s cubic-bezier(.645,.045,.355,1); cursor: pointer; }
.single .leaf { left: 0; width: 100%; }
.leaf.flipped { transform: rotateY(-180deg); }
.single .leaf.flipped { transform: rotateY(-180deg) translateZ(1px); opacity: 0; transition: transform .8s cubic-bezier(.645,.045,.355,1), opacity .1s .7s; }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; background: #f7f3ea; color: #111; container-type: inline-size; border-radius: 0 6px 6px 0; }
.face.back { transform: rotateY(180deg); border-radius: 6px 0 0 6px; }
.face::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,.22), rgba(0,0,0,0) 7%); }
.face.back::after { background: linear-gradient(270deg, rgba(0,0,0,.22), rgba(0,0,0,0) 7%); }
.single .face::after { background: linear-gradient(90deg, rgba(0,0,0,.18), rgba(0,0,0,0) 4%); }
.pg-in { position: absolute; inset: 0; padding: 7cqw; display: flex; flex-direction: column; }
.folio { position: absolute; bottom: 2.6cqw; left: 7cqw; font-size: 2.2cqw; letter-spacing: .2em; opacity: .55; font-weight: 600; }
.face.back .folio { left: auto; right: 7cqw; }
.pg-blank { background: #efe9dc; }
.pg-kick { font-size: 2.6cqw; letter-spacing: .3em; text-transform: uppercase; font-weight: 700; }
.face h3 { font-family: var(--ff-head); font-weight: 500; line-height: .95; letter-spacing: -.02em; }
.face h3 em { font-style: italic; }
.pg-shop { align-self: flex-start; display: inline-flex; gap: 2cqw; align-items: center; background: #111; color: #fff; border: 0; border-radius: 999px; padding: 2.6cqw 4.6cqw; font-weight: 700; font-size: 3.2cqw; margin-top: auto; cursor: pointer; }
.pg-shop b { color: #fdc41b; }
.pg-shop:hover { background: #fdc41b; color: #111; }
.pg-shop:hover b { color: #111; }
.pg-more { margin-top: auto; font-weight: 700; font-size: 3.2cqw; text-decoration: underline; text-underline-offset: 4px; }

/* Cover */
.pg-cover { background: #fdc41b; }
.pg-cover .pg-in { padding: 5cqw 6cqw; }
.cv-top { display: flex; justify-content: space-between; font-size: 2.4cqw; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; border-bottom: 2px solid #111; padding-bottom: 1.6cqw; }
.cv-mast { font-family: "Bodoni Moda", serif; font-weight: 900; font-size: 31cqw; line-height: .8; letter-spacing: -.04em; margin: 2.5cqw 0 0; text-align: center; color: #111; position: relative; z-index: 1; }
.cv-by { text-align: center; font-size: 2.6cqw; letter-spacing: .5em; text-transform: uppercase; font-weight: 700; margin-top: 1cqw; position: relative; z-index: 1; }
.cv-by b { font-family: var(--ff-head); font-style: italic; letter-spacing: 0; text-transform: none; font-size: 4cqw; margin-left: .4em; }
.cv-star { position: absolute; left: 30%; right: 2%; top: 24%; bottom: 9%; z-index: 2; display: grid; place-items: center; }
.cv-star img { max-height: 100%; max-width: 100%; object-fit: contain; filter: drop-shadow(0 4cqw 4cqw rgba(0,0,0,.28)); position: relative; z-index: 1; }
.cv-star img.solid { border: 2cqw solid #fff; height: 80%; width: auto; }
.cv-sun { position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%; background: #fff; opacity: .5; }
.cv-lines { position: absolute; left: 6cqw; top: 46%; z-index: 3; list-style: none; margin: 0; padding: 0; display: grid; gap: 3.4cqw; max-width: 30cqw; font-size: 3cqw; line-height: 1.15; }
.cv-lines b { font-family: var(--ff-head); font-size: 4.6cqw; display: block; line-height: 1; }
.cv-tag { position: absolute; right: 6cqw; bottom: 14cqw; z-index: 3; background: #111; color: #fff; padding: 2.4cqw 3.4cqw; font-size: 3.2cqw; transform: rotate(-4deg); display: grid; }
.cv-tag small { font-size: 2.1cqw; letter-spacing: .2em; text-transform: uppercase; color: #fdc41b; }
.cv-tag b { font-family: var(--ff-head); font-style: italic; font-weight: 500; font-size: 4.2cqw; }
.cv-bar { position: absolute; left: 6cqw; bottom: 5cqw; z-index: 3; background: #fff; padding: 1.4cqw 2cqw; display: grid; gap: .8cqw; }
.cv-bar i { width: 20cqw; height: 6cqw; background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 4px, #111 4px 5px, transparent 5px 8px, #111 8px 11px, transparent 11px 12px); }
.cv-bar span { font-size: 1.8cqw; letter-spacing: .2em; font-weight: 700; }
.cv-open { position: absolute; right: 5cqw; bottom: 5cqw; z-index: 3; font-weight: 800; font-size: 3cqw; background: #fff; padding: 1.6cqw 3cqw; border-radius: 999px; animation: nudge 1.6s infinite; }
@keyframes nudge { 50% { transform: translateX(1.6cqw); } }
.mg-book:not(.closed) .cv-open { display: none; }
.closed .leaf:first-child { animation: peel 3.4s 1.2s infinite; }
@keyframes peel { 0%, 70%, 100% { transform: rotateY(0); } 80% { transform: rotateY(-14deg); } 90% { transform: rotateY(-3deg); } }
@media (prefers-reduced-motion: reduce) { .closed .leaf:first-child, .cv-open { animation: none; } }

/* Contents */
.pg-toc h3 { font-family: "Bodoni Moda", serif; font-style: italic; font-size: 14cqw; margin: 1cqw 0 2cqw; }
.toc { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.toc button { width: 100%; display: grid; grid-template-columns: 1fr auto; text-align: left; border: 0; border-top: 1px solid rgba(0,0,0,.18); background: none; padding: 1.5cqw 0; color: #111; cursor: pointer; }
.toc b { font-family: var(--ff-head); font-size: 4cqw; font-weight: 600; line-height: 1.05; }
.toc small { grid-column: 1; font-size: 2.6cqw; color: #6b675f; }
.toc i { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; font-family: "Bodoni Moda", serif; font-size: 6cqw; color: #c99a10; }
.toc button:hover b { text-decoration: underline; }
.toc-ed { margin-top: auto; font-size: 2.8cqw; line-height: 1.4; border-left: 3px solid #fdc41b; padding-left: 3cqw; }
.toc-ed b { font-family: var(--ff-head); font-style: italic; }

/* Features */
.pg-feat .pg-in { gap: 2cqw; }
.pg-img { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; }
.pg-img img { position: absolute; inset: 0; margin: auto; width: 88%; height: 100%; object-fit: contain; z-index: 1; filter: drop-shadow(0 3cqw 3cqw rgba(0,0,0,.25)); transition: transform .5s var(--spring); }
.pg-img img.solid { width: 100%; object-fit: cover; }
.leaf:hover .pg-img img { transform: scale(1.03); }
.pg-num { position: absolute; left: -1cqw; top: -4cqw; font-family: "Bodoni Moda", serif; font-weight: 900; font-size: 40cqw; line-height: 1; color: transparent; -webkit-text-stroke: 2px currentColor; opacity: .25; }
.pg-copy h3 { font-size: 9.4cqw; margin: 0 0 1.6cqw; }
.pg-name { font-weight: 700; font-size: 3.4cqw; margin: 0 0 1cqw; }
.pg-name em { font-family: var(--ff-head); font-weight: 400; }
.pg-desc { font-size: 2.9cqw; line-height: 1.4; margin: 0 0 1.2cqw; opacity: .8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pg-meta { font-size: 2.6cqw; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin: 0 0 1.6cqw; opacity: .75; }
.pg-dots { display: flex; gap: 1.4cqw; align-items: center; margin-bottom: 2.6cqw; }
.pg-dots i { width: 3.6cqw; height: 3.6cqw; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); }
.pg-dots em { font-size: 2.6cqw; font-style: normal; margin-left: 1cqw; opacity: .7; }
.pg-copy .pg-shop { margin-top: 0; }
.pg-a { background: #fff3c4; }
.pg-b { background: #111; color: #f4efe6; }
.pg-b .pg-shop { background: #fdc41b; color: #111; }
.pg-b .pg-shop b { color: #111; }
.pg-b .pg-num { color: #fdc41b; opacity: .5; }
.pg-b .pg-img::before { content: ""; position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(253,196,27,.35), transparent); }
.pg-c { background: #f7f3ea; }
.pg-c .pg-img { background: #fdc41b; margin: -7cqw -7cqw 0; padding-top: 6cqw; }
.pg-c .pg-num { color: #111; opacity: .18; left: 4cqw; top: 2cqw; }

/* Accessories column */
.pg-col h3 { font-size: 10cqw; margin: 2cqw 0 4cqw; }
.col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; }
.col-it { border: 0; background: #fff; padding: 3cqw; display: grid; gap: .6cqw; text-align: left; color: #111; cursor: pointer; border-radius: 4px; transition: transform .3s var(--spring); }
.col-it:hover { transform: translateY(-1cqw) rotate(-1deg); }
.col-it span { height: 24cqw; display: grid; place-items: center; }
.col-it img { max-height: 100%; max-width: 100%; object-fit: contain; }
.col-it img.solid { width: 100%; height: 100%; object-fit: cover; }
.col-it b { font-size: 2.9cqw; line-height: 1.15; }
.col-it small { font-size: 2.8cqw; color: #8a6400; font-weight: 700; }

/* Abroad page: airmail envelope */
.pg-abroad { background: #fff; }
.pg-abroad::before { content: ""; position: absolute; inset: 0; border: 3.4cqw solid transparent; border-image: repeating-linear-gradient(45deg, #c4372b 0 14px, #fff 14px 22px, #1e4fa8 22px 36px, #fff 36px 44px) 40; pointer-events: none; }
.pg-abroad .pg-in { padding: 11cqw; }
.pg-abroad h3 { font-size: 8cqw; margin: 3cqw 0; }
.pg-abroad h3 em { background: #fdc41b; padding: 0 .1em; }
.pg-abroad p { font-size: 3.2cqw; line-height: 1.45; }
.ab-stamps { display: flex; flex-wrap: wrap; gap: 2cqw; margin: 2cqw 0 4cqw; }
.ab-stamps span { border: 2px dashed #1e4fa8; color: #1e4fa8; padding: 1.4cqw 2.4cqw; font-weight: 700; font-size: 2.8cqw; transform: rotate(var(--r, -3deg)); text-transform: uppercase; letter-spacing: .08em; }
.ab-stamps span:nth-child(2n) { --r: 4deg; border-color: #c4372b; color: #c4372b; }

/* Fit note */
.pg-note { background: #efe9dc; }
.pg-note h3 { font-family: "Bodoni Moda", serif; font-style: italic; font-size: 12cqw; margin: 3cqw 0 4cqw; }
.pg-note ol { margin: 0; padding-left: 5cqw; display: grid; gap: 3cqw; font-size: 3.6cqw; line-height: 1.4; }

/* Back cover */
.pg-back { background: #111; color: #fff; text-align: center; }
.pg-back .pg-in { align-items: center; justify-content: center; gap: 3cqw; }
.bk-box { width: 34cqw; }
.bk-box svg { width: 100%; height: auto; }
.pg-back h3 { font-size: 9cqw; margin: 0; }
.pg-back h3 em { color: #fdc41b; }
.pg-back p { font-size: 3.2cqw; opacity: .8; max-width: 70cqw; margin: 0; }
.pg-back .pg-shop { align-self: center; margin-top: 2cqw; background: #fdc41b; color: #111; }
.bk-c { font-size: 2.8cqw !important; line-height: 1.7; }
.bk-c a { text-decoration: underline; }

/* Nav under the book */
.mg-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 18px; }
.mg-btn { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.4); background: transparent; color: #fff; font-size: 1.3rem; transition: background .2s, color .2s; }
.mg-btn:hover:not(:disabled) { background: #fdc41b; color: #111; border-color: #fdc41b; }
.mg-btn:disabled { opacity: .3; }
.mg-count { display: grid; gap: 6px; text-align: center; min-width: 150px; }
.mg-count b { font-family: var(--ff-head); font-style: italic; font-weight: 500; font-size: 1.15rem; }
.mg-count span { height: 3px; background: rgba(255,255,255,.18); border-radius: 3px; overflow: hidden; }
.mg-count span i { display: block; height: 100%; background: #fdc41b; transform-origin: 0 50%; transition: transform .6s var(--ease); }
@media (max-width: 899px) { .mg-head { margin-bottom: 12px; } .mg-nav { margin-top: 14px; } }

.mg-abroad { background: #111; color: #fff; margin-top: 30px; }
.mg-abroad .btn-ghost { color: #fff; }
.mg-abroad .kab h2 { font-family: "Bodoni Moda", serif; font-weight: 500; }
.mg-abroad .kab h2 em { font-style: italic; }

@media (max-width: 899px) { .mg-nav { justify-content: flex-start; } }

body.mag-page[data-page] { background: #f4f0e8; }
