/* Discover Guides — book pages. Same "basalt night" look as the hub. */
:root {
  --night: #0a1116; --night-2: #0f1a21; --night-3: #142630;
  --frost: #e8eef1; --mist: rgba(232,238,241,.72); --line: rgba(232,238,241,.14);
  --red: #d9483b; --glacier: #9fd4e2; --white: #fff;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Playfair Display", Georgia, serif;
  --radius: 4px; --header-h: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { overflow-x: clip; }
body { margin: 0; font-family: var(--sans); color: var(--frost); background: var(--night); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.06; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: .74rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--glacier); margin-bottom: 16px; }
h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 18px; color: var(--white); }
.lead { color: var(--mist); max-width: 60ch; }
.rule { width: 64px; height: 3px; border: 0; background: var(--red); margin: 22px 0; }
:focus-visible { outline: 3px solid var(--glacier); outline-offset: 3px; }

/* The Discover wordmark: thin "Discover", bold place, red full stop */
.wm { font-family: var(--sans); font-weight: 300; letter-spacing: -.03em; white-space: nowrap; color: var(--white); }
.wm b { font-weight: 800; }
.wm i { font-style: normal; font-weight: 800; color: var(--red); }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); display: flex; align-items: center; color: var(--white); background: rgba(10,17,22,.55); backdrop-filter: blur(10px); transition: background .25s; }
.site-header.solid { background: rgba(10,17,22,.92); box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { text-decoration: none; font-weight: 500; font-size: 1.15rem; letter-spacing: -.03em; white-space: nowrap; }
.logo b { font-weight: 800; } .logo i { font-style: normal; color: var(--red); font-weight: 800; }
.nav { display: flex; gap: 22px; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.nav a { text-decoration: none; opacity: .9; } .nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }

/* Hero: the cover itself, blurred and faint, fades into the page */
.bh { position: relative; overflow: hidden; overflow: clip; max-width: 100vw; isolation: isolate; min-height: min(100svh, 980px); display: flex; align-items: center; }
.bh-bg { position: absolute; inset: 0; width: 100%; height: 100%; transform: scale(1.12); object-fit: cover; z-index: -2; opacity: .42; filter: blur(16px) saturate(.9); -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%); }
.bh::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,17,22,.3) 0%, rgba(10,17,22,.72) 60%), linear-gradient(180deg, rgba(10,17,22,.5) 0%, transparent 30%, var(--night) 100%); }
.bh-wrap { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; padding-top: calc(var(--header-h) + 60px); padding-bottom: 90px; }
.bh-cover { perspective: 1400px; }
.bh-cover img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 2px; transform: rotateY(8deg) rotateX(2deg); box-shadow: -26px 34px 70px rgba(0,0,0,.6), 0 2px 6px rgba(0,0,0,.4); transition: transform .6s; }
.bh-cover:hover img { transform: none; }
.brand-line { font-size: clamp(1.3rem, 2.4vw, 1.8rem); margin-bottom: 14px; max-width: 100%; }
.brand-line .wm { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 640px) { .brand-line { font-size: clamp(1rem, 5.6vw, 1.3rem); } .bh h1 { overflow-wrap: anywhere; } }
.bh h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(2.8rem, 7vw, 5.6rem); line-height: .95; letter-spacing: -.02em; color: var(--white); }
.bh-sub { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2vw, 1.5rem); margin: 16px 0 0; max-width: 34ch; }
.lede { font-size: 1.04rem; color: rgba(255,255,255,.86); max-width: 54ch; }
.price { font: 800 2rem var(--sans); letter-spacing: -.03em; color: var(--white); margin: 8px 0 14px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.price small { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }
.price.soon { font-size: 1.4rem; }

/* Buy buttons */
.buy { display: flex; flex-wrap: wrap; gap: 10px; }
.applepay, .amazon { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 54px; min-width: 210px; padding: 0 22px; border-radius: 10px; text-decoration: none; font: 600 1.25rem -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif; letter-spacing: -.01em; transition: transform .15s, border-color .2s; }
.applepay { background: #000; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.applepay:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.65); }
.applepay svg { width: 18px; height: 22px; margin-top: -3px; fill: currentColor; }
.amazon { background: transparent; color: var(--frost); border: 1px solid rgba(232,238,241,.35); font-family: var(--sans); font-size: 1rem; font-weight: 700; }
.amazon svg { width: 22px; height: 22px; fill: #f2a33a; }
.applepay small, .amazon small { font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .75; margin-left: 10px; }
.off { cursor: default; opacity: .7; } .applepay.off:hover { transform: none; border-color: rgba(255,255,255,.3); }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 30px; border-top: 1px solid rgba(232,238,241,.18); padding-top: 20px; margin-top: 28px; max-width: 560px; }
.facts b { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--white); }
.facts span { font-size: .9rem; color: var(--mist); }

/* Sections */
.sec { padding: clamp(70px, 9vw, 120px) 0; }
.head { max-width: 760px; margin-bottom: 40px; }
.look { background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 20%, var(--night-2) 80%, var(--night) 100%); }
.look-wrap { display: grid; grid-template-columns: minmax(0, 440px) 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.body p { color: var(--mist); max-width: 62ch; }
.inside { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--line); }
.inside li { position: relative; padding: 15px 0 15px 26px; border-bottom: 1px solid var(--line); }
.inside li::before { content: ""; position: absolute; left: 0; top: 1.6em; width: 12px; height: 2px; background: var(--red); }
.inside strong { display: block; color: var(--white); }
.inside span { font-size: .92rem; color: var(--mist); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-block; padding: 14px 24px; border-radius: 2px; font: 700 .76rem var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; }
.btn.primary { background: var(--frost); color: var(--night); } .btn.primary:hover { background: #fff; }
.btn.ghost { border-color: rgba(255,255,255,.5); color: #fff; } .btn.ghost:hover { background: #fff; color: var(--night); }

/* Preview viewer */
.viewer { background: rgba(15,26,33,.92); border: 1px solid var(--line); border-radius: 6px; padding: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5); position: sticky; top: calc(var(--header-h) + 20px); }
.viewer-bar { display: flex; justify-content: space-between; padding: 2px 4px 10px; font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--mist); }
.viewer-bar .tag { color: var(--glacier); } .viewer-bar output { color: var(--white); font-variant-numeric: tabular-nums; }
.stage { position: relative; aspect-ratio: 2/3; background: #fff; border-radius: 2px; overflow: hidden; cursor: pointer; user-select: none; }
.stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.stage .end { position: absolute; inset: 0; display: grid; place-content: center; gap: 12px; padding: 24px; text-align: center; background: rgba(10,17,22,.94); color: var(--frost); z-index: 2; }
.stage .end strong { font-family: var(--serif); font-size: 1.5rem; } .stage .end p { color: var(--mist); margin: 0; }
.stage .end .buy { justify-content: center; } .stage .end .applepay, .stage .end .amazon { min-width: 0; width: 100%; max-width: 300px; margin: 0 auto; }
.novi .stage { cursor: default; } .novi .stage > img { object-fit: cover; filter: blur(2px) brightness(.5); }
.stage > .wm { position: absolute; left: 12px; bottom: 10px; z-index: 1; font-size: .82rem; text-shadow: 0 1px 8px rgba(0,0,0,.6); pointer-events: none; }
.viewer-ctrl { display: flex; align-items: center; gap: 10px; padding-top: 10px; }
.viewer-ctrl button { width: 44px; height: 40px; border-radius: 3px; border: 1px solid var(--line); background: transparent; color: var(--frost); font: 700 1.2rem var(--sans); cursor: pointer; }
.viewer-ctrl button:disabled { opacity: .3; cursor: default; }
.viewer-ctrl input { flex: 1; min-width: 0; accent-color: var(--red); }

/* Branded images (wordmark on every image) */
.hl, .ph { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--night-3); }
.hl > .wm, .ph > .wm { position: absolute; left: 14px; top: 12px; font-size: .95rem; text-shadow: 0 1px 10px rgba(0,0,0,.65); pointer-events: none; }
.hl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); }
.hl img { width: 100%; aspect-ratio: 2/3; object-fit: cover; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.hl::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 70px; background: linear-gradient(180deg, rgba(10,17,22,.55), transparent); pointer-events: none; }
.ph-grid { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); }
.ph-grid.n1 { grid-template-columns: 1fr; } .ph-grid.n2 { grid-template-columns: 1fr 1fr; }
.ph img { width: 100%; height: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform .8s; }
.ph-grid.n1 img { aspect-ratio: 16/8; }
.ph:hover img { transform: scale(1.04); }
.ph::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 80px; background: linear-gradient(180deg, rgba(10,17,22,.5), transparent); pointer-events: none; }

/* More books */
.mb-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.mb { text-decoration: none; }
.mb img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 2px; box-shadow: -14px 20px 44px rgba(0,0,0,.5); transition: transform .4s; }
.mb:hover img { transform: translateY(-6px); }
.mb h3 { font-family: var(--serif); font-size: 1.15rem; color: var(--white); margin: 16px 0 4px; }
.mb p { margin: 0; font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--glacier); }

.site-footer { background: #070c10; color: rgba(255,255,255,.75); padding: 50px 0 40px; font-size: .86rem; }
.footer-inner { display: grid; gap: 18px; } .site-footer .logo { color: #fff; font-size: 1.3rem; } .site-footer p { margin: 0; opacity: .65; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s, transform .8s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 900px) {
  .bh-wrap { grid-template-columns: 1fr; gap: 36px; padding-top: calc(var(--header-h) + 36px); }
  .bh-cover { width: min(66vw, 300px); }
  .bh-cover img { transform: none; }
  .look-wrap { grid-template-columns: 1fr; }
  .viewer { position: static; max-width: 460px; }
  .mb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .hl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hl > .wm, .ph > .wm { font-size: .7rem; left: 8px; top: 8px; }
  .ph-grid, .ph-grid.n2 { grid-template-columns: 1fr 1fr; }
  .ph-grid.n3 .ph:first-child { grid-column: 1 / -1; }
  .ph-grid.n3 .ph:first-child img { aspect-ratio: 16/10; }
  .applepay, .amazon { min-width: 0; flex: 1 1 100%; }
  .facts { grid-template-columns: 1fr 1fr; gap: 14px 18px; }
}
