/* Mark Anthony · Books. His look from the VERTIGE shop: warm black, paper ink, Baskerville. */
@font-face { font-family: "MA Baskerville"; src: url("/fonts/baskervville-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "MA Baskerville"; src: url("/fonts/baskervville-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "MA Baskerville"; src: url("/fonts/baskervville-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --paper: #1b1919;
  --ink: #f2eee9;
  --mute: rgba(242, 238, 233, .62);
  --line: rgba(242, 238, 233, .16);
  --glass: rgba(242, 238, 233, .06);
  --serif: "MA Baskerville", "Baskerville", "Libre Baskerville", Georgia, serif;
  --pad: clamp(20px, 4vw, 56px);
  --max: 1440px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 18px; line-height: 1.5; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

.label { font-size: 11px; line-height: 1.4; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--ink); color: var(--paper); text-decoration: none; font-size: 14px; }
.skip:focus { top: 12px; }

/* Bar */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(27, 25, 25, .82); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 56px; }
.name { text-decoration: none; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; }
.bar-links { display: flex; gap: clamp(14px, 2.4vw, 32px); }
.bar-links a { text-decoration: none; font-size: 15px; color: var(--mute); transition: color .2s; white-space: nowrap; }
.bar-links a:hover, .bar-links a[aria-current="location"] { color: var(--ink); }
@media (max-width: 760px) { .bar nav { display: none; } }

/* Opening */
.opening { padding-top: clamp(48px, 9vw, 120px); padding-bottom: clamp(56px, 8vw, 112px); }
.rule { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.mega { font-weight: 400; font-size: clamp(64px, 15vw, 220px); line-height: .9; letter-spacing: -.02em; margin-top: clamp(28px, 5vw, 64px); margin-inline-start: -.04em; }
.lede { margin-top: clamp(20px, 2.5vw, 32px); max-width: 34ch; font-size: clamp(19px, 1.9vw, 26px); font-style: italic; color: var(--mute); line-height: 1.35; }
.shelf { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 2vw, 28px); margin-top: clamp(44px, 7vw, 96px); align-items: end; }
.shelf a { display: block; text-decoration: none; }
.shelf img { width: 100%; object-fit: cover; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.shelf a:hover img { transform: translateY(-6px); }
.shelf span { display: block; margin-top: 12px; font-size: 14px; color: var(--mute); overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .shelf { grid-template-columns: repeat(5, 38vw); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); padding-bottom: 6px; scrollbar-width: none; }
  .shelf::-webkit-scrollbar { display: none; }
  .shelf li { scroll-snap-align: start; }
}

/* Books */
.books { outline: none; }
.book { border-top: 1px solid var(--line); padding-block: clamp(48px, 8vw, 120px); }
.book-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 112px); align-items: center; }
.cover img { width: 100%; max-width: 560px; object-fit: cover; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), 0 2px 6px rgba(0, 0, 0, .35); background: #242121; }
.count { margin-bottom: clamp(16px, 2vw, 28px); }
.book-t { font-weight: 400; font-size: clamp(48px, 7vw, 112px); line-height: .95; letter-spacing: -.015em; overflow-wrap: anywhere; }
.book-line { margin-top: 20px; max-width: 30ch; font-size: clamp(19px, 1.7vw, 24px); font-style: italic; line-height: 1.4; color: var(--mute); }
.facts { display: flex; flex-wrap: wrap; margin-top: 28px; border-top: 1px solid var(--line); }
.facts li { padding: 12px 18px 12px 0; margin-inline-end: 18px; font-size: 15px; color: var(--mute); border-inline-end: 1px solid var(--line); }
.facts li:last-child { border-inline-end: 0; }
.obtn { margin-top: 36px; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border-radius: 999px; border: 1px solid rgba(242, 238, 233, .35); background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); cursor: pointer; font-size: 16px; letter-spacing: .02em; transition: background .25s, border-color .25s; }
.obtn:hover { background: rgba(242, 238, 233, .12); border-color: rgba(242, 238, 233, .6); }

.inside { margin-top: clamp(40px, 6vw, 88px); }
.spreads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); margin-top: 16px; }
.spreads img { width: 100%; object-fit: cover; background: #242121; }
@media (max-width: 1023px) {
  .book-grid { grid-template-columns: minmax(0, 1fr); }
  .cover img { max-width: min(78vw, 420px); }
}
@media (max-width: 760px) {
  .spreads { grid-template-columns: repeat(3, 84vw); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scrollbar-width: none; }
  .spreads::-webkit-scrollbar { display: none; }
  .spreads li { scroll-snap-align: start; }
}

/* Buy sheet */
.sheet { margin: 0; margin-inline-start: auto; padding: 0; border: 0; border-inline-start: 1px solid var(--line); width: min(520px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; background: rgba(27, 25, 25, .9); -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; }
.sheet::backdrop { background: rgba(10, 9, 9, .55); }
.sheet[open] { animation: sheet-in .38s cubic-bezier(.2, .7, .2, 1); }
@keyframes sheet-in { from { transform: translateX(32px); opacity: 0; } }
.sheet-in { padding: 24px clamp(20px, 4vw, 40px) 48px; }
.sheet-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.close { background: none; border: 0; padding: 8px 0; cursor: pointer; font-size: 12px; letter-spacing: .18em; }
.sheet-t { font-weight: 400; font-size: clamp(40px, 6vw, 64px); line-height: 1; margin-top: 28px; overflow-wrap: anywhere; }
.sheet-format { margin-top: 18px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip { min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: none; cursor: pointer; font-size: 15px; color: var(--mute); }
.chip[aria-pressed="true"] { border-color: rgba(242, 238, 233, .55); background: var(--glass); color: var(--ink); }
.format { display: flex; flex-direction: column; }
.region { margin-top: 32px; }
.region.here { order: -1; }
.region h3 { font-weight: 400; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.shops a { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 48px; padding-block: 10px; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 17px; }
.shops a:hover .arr { transform: translate(2px, -2px); color: var(--ink); }
.arr { color: var(--mute); transition: transform .2s, color .2s; }
.sheet-note { margin-top: 32px; font-size: 14px; color: var(--mute); }
@media (max-width: 640px) {
  .sheet { margin: auto 0 0; width: 100vw; height: auto; max-height: 88dvh; border-inline-start: 0; border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; }
  @keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } }
}

/* Footer */
.foot { border-top: 1px solid var(--line); margin-top: clamp(24px, 4vw, 48px); }
.foot-in { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 32px; padding-block: 40px 56px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.foot-links a { text-decoration: none; font-size: 15px; color: var(--mute); }
.foot-links a:hover { color: var(--ink); }
.fine { font-size: 13px; color: var(--mute); }

/* Arrival */
@media (prefers-reduced-motion: no-preference) {
  .js .rise { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
  .js .rise.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
