/* Chromolume digital programmes — shared styles. Brand: black, white, signal pink. */
@font-face { font-family:"Poppins"; font-weight:300; font-display:swap; src:url(fonts/Poppins-300.woff2) format("woff2"); }
@font-face { font-family:"Poppins"; font-weight:400; font-display:swap; src:url(fonts/Poppins-400.woff2) format("woff2"); }
@font-face { font-family:"Poppins"; font-weight:500; font-display:swap; src:url(fonts/Poppins-500.woff2) format("woff2"); }
@font-face { font-family:"Poppins"; font-weight:600; font-display:swap; src:url(fonts/Poppins-600.woff2) format("woff2"); }
@font-face { font-family:"Mukta Mahee"; font-weight:700; font-display:swap; src:url(fonts/Mukta-Mahee-700.woff2) format("woff2"); }
@font-face { font-family:"Mukta Mahee"; font-weight:800; font-display:swap; src:url(fonts/Mukta-Mahee-800.woff2) format("woff2"); }

:root {
  --ink:#111114; --ink-2:#1b1b20; --ink-3:#26262d; --paper:#fff;
  --pink:#FE00C1; --pink-soft:rgba(254,0,193,.14);
  --text:#f4f4f6; --muted:#a3a3ad; --line:rgba(255,255,255,.1);
  --bar-h:58px; --radius:999px;
  --head:"Mukta Mahee", "Arial Narrow", system-ui, sans-serif;
  --body:"Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; scroll-padding-top:calc(var(--bar-h) + 8px); }
body { margin:0; background:var(--ink); color:var(--text); font:15px/1.55 var(--body); }
a { color:inherit; }
img { max-width:100%; }
:focus-visible { outline:2px solid var(--pink); outline-offset:3px; }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* ── Top bar ─────────────────────────────────────────── */
.bar { position:sticky; top:0; z-index:20; height:calc(var(--bar-h) + env(safe-area-inset-top));
  padding:env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  display:flex; align-items:center; gap:10px;
  background:rgba(17,17,20,.86); backdrop-filter:saturate(1.4) blur(14px); -webkit-backdrop-filter:saturate(1.4) blur(14px);
  border-bottom:1px solid var(--line); }
.bar .logo { display:block; flex:none; line-height:0; }
.bar .logo img { height:24px; width:auto; }
.bar .spacer { flex:1; }
.progress { position:absolute; left:0; bottom:-1px; height:2px; width:100%; background:var(--pink);
  transform-origin:0 50%; transform:scaleX(var(--p, 0)); }

.btn { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:40px; padding:0 16px;
  border-radius:var(--radius); border:1px solid var(--line); background:rgba(255,255,255,.06); color:var(--text);
  font:500 13.5px/1 var(--body); text-decoration:none; cursor:pointer; -webkit-tap-highlight-color:transparent;
  transition:background .15s, border-color .15s, transform .1s; }
.btn:hover { background:rgba(255,255,255,.12); }
.btn:active { transform:scale(.97); }
.btn svg { width:17px; height:17px; flex:none; }
.btn.primary { background:var(--pink); border-color:var(--pink); color:#fff; font-weight:600; }
.btn.primary:hover { background:#e400ad; }
.btn.icon { width:40px; padding:0; }
@media (max-width:420px) { .bar .btn .label { display:none; } .bar .btn { width:40px; padding:0; } }

/* ── Intro ───────────────────────────────────────────── */
.intro { max-width:760px; margin:0 auto; padding:44px 20px 34px; text-align:center; }
.eyebrow { display:block; color:var(--pink); font:700 12.5px/1 var(--head); letter-spacing:.14em; text-transform:uppercase; margin-bottom:14px; }
.intro h1 { margin:0; font:800 clamp(30px, 8vw, 54px)/1 var(--head); text-transform:uppercase; letter-spacing:.005em; text-wrap:balance; }
.intro h1 .dot { color:var(--pink); }
.intro .sub { margin:12px 0 0; color:var(--muted); font-size:15px; }
.intro .actions { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-top:26px; }
.intro .actions .btn { min-height:46px; padding:0 22px; font-size:14.5px; }
.tip { display:flex; align-items:center; justify-content:center; gap:8px; margin:20px 0 0; color:var(--muted); font-size:13px; }
.tip svg { width:16px; height:16px; color:var(--pink); flex:none; }

/* ── Pages ───────────────────────────────────────────── */
.pages { display:grid; grid-template-columns:minmax(0, 680px); justify-content:center; gap:12px; padding:0 0 40px; }
.page { margin:0; position:relative; background:var(--paper); box-shadow:0 10px 40px rgba(0,0,0,.45); }
.page a { display:block; line-height:0; cursor:zoom-in; -webkit-tap-highlight-color:transparent; }
.page img { display:block; width:100%; height:auto; background:#f2f2f2; }
@media (min-width:720px) { .pages { gap:22px; padding:0 20px 56px; } .page { border-radius:3px; overflow:hidden; } }
/* Laptops: rebuild the printed spreads */
@media (min-width:1080px) {
  .pages { grid-template-columns:repeat(2, minmax(0, 520px)); column-gap:0; row-gap:36px; }
  .page { border-radius:0; }
  .page:first-of-type { grid-column-start:2; }
  .page:last-of-type:nth-of-type(even) { grid-column-start:1; }
  .page:nth-of-type(even) { box-shadow:-10px 10px 40px rgba(0,0,0,.45); }
  .page:nth-of-type(odd):not(:first-of-type) { box-shadow:10px 10px 40px rgba(0,0,0,.45); }
  .page:nth-of-type(even):not(:last-of-type)::after { content:""; position:absolute; inset:0 0 0 auto; width:28px;
    background:linear-gradient(to left, rgba(0,0,0,.10), transparent); pointer-events:none; }
  .page:nth-of-type(odd):not(:first-of-type)::after { content:""; position:absolute; inset:0 auto 0 0; width:28px;
    background:linear-gradient(to right, rgba(0,0,0,.10), transparent); pointer-events:none; }
}

.counter { position:fixed; z-index:15; right:max(14px, env(safe-area-inset-right)); bottom:calc(14px + env(safe-area-inset-bottom));
  padding:8px 14px; border-radius:var(--radius); background:rgba(17,17,20,.88); border:1px solid var(--line);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  color:var(--muted); font:500 12.5px/1 var(--body); font-variant-numeric:tabular-nums;
  opacity:0; transform:translateY(8px); transition:opacity .25s, transform .25s; pointer-events:none; }
.counter.on { opacity:1; transform:none; }
.counter b { color:var(--text); font-weight:600; }

/* ── Footer ──────────────────────────────────────────── */
.foot { border-top:1px solid var(--line); background:#0a0a0c; text-align:center;
  padding:52px 20px calc(70px + env(safe-area-inset-bottom)); }
.foot .thanks { margin:0 auto 6px; max-width:none; font:800 clamp(24px, 6vw, 34px)/1.1 var(--head); text-transform:uppercase; }
.foot .thanks .dot { color:var(--pink); }
.foot p { color:var(--muted); margin:0 auto; max-width:440px; font-size:14px; }
.foot .actions { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin:24px 0 38px; }
.foot .brand { display:inline-block; line-height:0; opacity:.9; }
.foot .brand img { height:30px; width:auto; }
.foot .fine { margin-top:16px; font-size:12px; color:#6f6f78; }
.foot .fine a { color:inherit; }

/* ── Page picker ─────────────────────────────────────── */
dialog.picker { width:min(720px, 100vw); max-width:100vw; max-height:min(86vh, 900px); margin:auto auto 0; padding:0;
  border:0; border-radius:18px 18px 0 0; background:var(--ink-2); color:var(--text); overflow:hidden; }
@media (min-width:720px) { dialog.picker { margin:auto; border-radius:18px; } }
dialog.picker::backdrop { background:rgba(0,0,0,.65); backdrop-filter:blur(3px); }
dialog.picker[open] { display:flex; flex-direction:column; animation:rise .22s ease-out; }
@keyframes rise { from { transform:translateY(24px); opacity:0; } }
.picker-head { display:flex; align-items:center; justify-content:space-between; padding:16px 18px 12px; border-bottom:1px solid var(--line); }
.picker-head h2 { margin:0; font:800 20px/1 var(--head); text-transform:uppercase; }
.picker-head h2 .dot { color:var(--pink); }
.thumbs { overflow:auto; display:grid; grid-template-columns:repeat(auto-fill, minmax(96px, 1fr)); gap:16px 12px;
  padding:16px 18px calc(22px + env(safe-area-inset-bottom)); }
.thumbs a { text-decoration:none; color:var(--muted); font-size:12px; text-align:center; -webkit-tap-highlight-color:transparent; }
.thumbs img { display:block; width:100%; height:auto; background:#fff; border-radius:3px; margin-bottom:6px;
  outline:2px solid transparent; outline-offset:2px; transition:outline-color .15s; }
.thumbs a:hover img, .thumbs a[aria-current] img { outline-color:var(--pink); }
.thumbs a[aria-current] { color:var(--text); }

/* ── Lightbox tweaks ─────────────────────────────────── */
.pswp { --pswp-bg:#0a0a0c; --pswp-placeholder-bg:#222; }
.pswp__counter { font:500 13px/1 var(--body); opacity:.8; }

/* ── Homepage ────────────────────────────────────────── */
.home .intro { padding-top:56px; }
.grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:26px 18px; max-width:980px; margin:0 auto; padding:0 20px 70px; }
.card { text-decoration:none; display:flex; flex-direction:column; gap:4px; }
.card img { width:100%; height:auto; background:#fff; border-radius:4px; margin-bottom:8px; box-shadow:0 10px 30px rgba(0,0,0,.4); transition:transform .2s; }
.card:hover img { transform:translateY(-3px); }
.card .t { font:800 17px/1.15 var(--head); text-transform:uppercase; }
.card .s { color:var(--muted); font-size:13px; }
.empty { color:var(--muted); text-align:center; grid-column:1/-1; }

@media (prefers-reduced-motion:reduce) { *, *::before, *::after { animation:none !important; transition:none !important; } }
