:root {
  color-scheme: dark;
  --bg: #090b0d;
  --panel: #121518;
  --panel-soft: #1b2023;
  --ink: #f7f7f2;
  --muted: #a7b0b2;
  --neon: #08d58a;
  --cyan: #19bde4;
  --red: #bd2832;
  --line: rgba(8, 213, 138, .35);
  --reader-width: 1240px;
  --ease: cubic-bezier(.22, .7, .22, 1);
  font-family: Rajdhani, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 132px; }
body { min-width: 320px; margin: 0; background: var(--bg); color: var(--ink); }
a { color: inherit; }
button, select { font: inherit; }
button { color: inherit; }
.skip-link { position: fixed; z-index: 50; top: 10px; left: 10px; padding: 11px 14px; transform: translateY(-160%); background: var(--neon); color: #07100b; font-weight: 700; }
.skip-link:focus { transform: translateY(0); }

.album-header { position: sticky; z-index: 30; top: 0; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 9px max(18px, calc((100vw - var(--reader-width)) / 2)); border-bottom: 1px solid var(--line); background: rgba(9, 11, 13, .95); backdrop-filter: blur(12px); animation: header-enter .6s var(--ease) both; }
.album-brand { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.brand-kicker { color: var(--neon); font: 700 11px/1 Barlow Condensed, sans-serif; letter-spacing: .16em; }
.brand-title { color: var(--ink); font: 700 17px/.95 Barlow Condensed, sans-serif; letter-spacing: .06em; }
.brand-title b { color: var(--neon); font-weight: 800; }
.return-link { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid rgba(8, 213, 138, .55); color: var(--ink); font: 700 12px/1 Barlow Condensed, sans-serif; letter-spacing: .08em; text-decoration: none; transition: background .2s, color .2s; }
.return-link:hover, .return-link:focus-visible { background: var(--neon); color: #07100b; outline: none; }

.album-hero { position: relative; width: min(var(--reader-width), calc(100% - 36px)); margin: 0 auto; padding: clamp(36px, 6vw, 76px) 0 34px; overflow: hidden; }
.album-hero::before { position: absolute; z-index: -1; inset: 2% auto auto 48%; width: min(48vw, 520px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(8, 213, 138, .14), rgba(25, 189, 228, .07) 42%, transparent 72%); content: ""; filter: blur(16px); }
.eyebrow { margin: 0 0 15px; color: var(--muted); font: 700 14px/1 Barlow Condensed, sans-serif; letter-spacing: .16em; }
.eyebrow span { margin-left: 8px; color: var(--neon); }
.album-hero h1 { max-width: 880px; margin: 0; font: 800 clamp(40px, 7vw, 86px)/.82 Barlow Condensed, sans-serif; letter-spacing: -.015em; text-transform: uppercase; }
.album-hero h1 span { color: var(--neon); }
.hero-copy { max-width: 700px; margin: 24px 0 8px; color: #e0e2df; font-size: clamp(16px, 2vw, 20px); font-weight: 600; line-height: 1.35; }
.hero-hint { max-width: 760px; margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.4; }

.reading-progress { position: sticky; z-index: 24; top: 71px; height: 3px; background: rgba(255, 255, 255, .08); }
.reading-progress span { display: block; width: 4.17%; height: 100%; background: linear-gradient(90deg, var(--neon), var(--cyan)); transition: width .35s var(--ease); }
.reader-toolbar { position: sticky; z-index: 25; top: 74px; min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px max(18px, calc((100vw - var(--reader-width)) / 2)); border-bottom: 1px solid rgba(255, 255, 255, .08); background: rgba(13, 16, 18, .97); backdrop-filter: blur(12px); }
.page-select-wrap { display: flex; align-items: center; gap: 10px; color: var(--muted); font: 700 11px/1 Barlow Condensed, sans-serif; letter-spacing: .12em; }
.page-select-wrap select { min-width: 210px; max-width: min(40vw, 390px); padding: 10px 31px 10px 12px; border: 1px solid rgba(8, 213, 138, .4); border-radius: 0; background: var(--panel); color: var(--ink); font-size: 14px; font-weight: 600; }
.page-navigation { display: flex; align-items: center; gap: 12px; }
.tool-button, .zoom-button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 11px; border: 1px solid rgba(255, 255, 255, .18); background: var(--panel); color: var(--ink); font: 700 12px/1 Barlow Condensed, sans-serif; letter-spacing: .06em; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.tool-button:hover:not(:disabled), .tool-button:focus-visible:not(:disabled) { border-color: var(--cyan); color: var(--cyan); outline: none; }
.tool-button:disabled { opacity: .35; cursor: not-allowed; }
.page-counter { min-width: 112px; color: var(--neon); font: 700 12px/1 Barlow Condensed, sans-serif; letter-spacing: .08em; text-align: center; }
.zoom-button { border-color: var(--neon); background: var(--neon); color: #07100b; }
.zoom-button:hover, .zoom-button:focus-visible { border-color: var(--cyan); background: var(--cyan); outline: none; }
.screen-reader-note { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.album-pages { width: min(var(--reader-width), calc(100% - 36px)); margin: 0 auto; padding: 24px 0 54px; display: flex; flex-direction: column; gap: 30px; }
.album-page { margin: 0; padding: 12px; border: 1px solid rgba(8, 213, 138, .24); background: var(--panel); box-shadow: 0 14px 40px rgba(0, 0, 0, .3); scroll-margin-top: 150px; }
.page-caption { min-height: 43px; display: flex; align-items: center; gap: 12px; padding: 0 3px 10px; }
.page-index { flex: 0 0 auto; display: inline-flex; min-width: 48px; height: 27px; align-items: center; justify-content: center; background: var(--neon); color: #07100b; font: 800 12px/1 Barlow Condensed, sans-serif; letter-spacing: .05em; }
.page-title { flex: 1; margin: 0; color: var(--ink); font: 700 clamp(16px, 2.2vw, 22px)/1 Barlow Condensed, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.page-kind { color: var(--muted); font: 700 10px/1 Barlow Condensed, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.page-canvas { position: relative; width: 100%; aspect-ratio: 1920 / 1498; overflow: hidden; background: #080a0c; }
.page-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.profile-hotspot { position: absolute; z-index: 3; display: block; border: 0; background: transparent; color: transparent; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.profile-hotspot:hover, .profile-hotspot:focus-visible { outline: 2px solid var(--neon); outline-offset: -2px; background: rgba(8, 213, 138, .08); }
.profile-hotspot:focus-visible { outline-width: 3px; }
.profile-hotspot::after { position: absolute; right: 3px; bottom: 3px; padding: 4px 6px; background: var(--neon); color: #07100b; content: "INSTAGRAM ↗"; font: 800 9px/1 Barlow Condensed, sans-serif; letter-spacing: .04em; opacity: 0; transition: opacity .18s; }
.profile-hotspot:hover::after, .profile-hotspot:focus-visible::after { opacity: 1; }
.noscript { padding: 18px; color: var(--ink); }
.album-footer { width: min(var(--reader-width), calc(100% - 36px)); min-height: 72px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); color: var(--muted); font: 700 12px/1 Barlow Condensed, sans-serif; letter-spacing: .1em; }
.album-footer a { color: var(--neon); text-decoration: none; }
.album-footer a:hover, .album-footer a:focus-visible { color: var(--cyan); outline: none; }

.zoom-dialog { width: min(96vw, 1320px); max-width: none; max-height: 94dvh; padding: 12px; overflow: hidden; border: 1px solid rgba(8, 213, 138, .45); background: #090b0d; color: var(--ink); }
.zoom-dialog::backdrop { background: rgba(0, 0, 0, .88); backdrop-filter: blur(5px); }
.zoom-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 2px 10px; }
.zoom-toolbar p { margin: 0; color: var(--neon); font: 700 14px/1 Barlow Condensed, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.zoom-toolbar button { padding: 9px 12px; border: 1px solid var(--neon); background: var(--panel); color: var(--ink); font: 700 12px/1 Barlow Condensed, sans-serif; cursor: pointer; }
.zoom-toolbar button:hover, .zoom-toolbar button:focus-visible { background: var(--neon); color: #07100b; outline: none; }
.zoom-scroll { max-height: calc(94dvh - 93px); overflow: auto; overscroll-behavior: contain; }
.zoom-image { display: block; width: 100%; height: auto; margin: 0 auto; }
.zoom-help { margin: 9px 2px 1px; color: var(--muted); font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.reveal { opacity: 0; transform: translateY(18px); filter: blur(2px); transition: opacity .58s var(--ease), transform .58s var(--ease), filter .58s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); filter: blur(0); }
@keyframes header-enter { from { opacity: 0; transform: translateY(-9px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 760px) {
  html { scroll-padding-top: 128px; }
  .album-header { min-height: 62px; padding: 7px 12px; gap: 10px; }
  .brand-kicker { font-size: 9px; }
  .brand-title { font-size: 14px; }
  .return-link { padding: 8px 9px; font-size: 10px; }
  .album-hero { width: calc(100% - 28px); padding: 36px 0 24px; }
  .album-hero h1 { font-size: clamp(38px, 11vw, 66px); }
  .hero-copy { margin-top: 18px; font-size: 16px; }
  .hero-hint { font-size: 13px; }
  .reading-progress { top: 61px; }
  .reader-toolbar { top: 64px; min-height: 100px; flex-wrap: wrap; gap: 8px; padding: 8px 12px; }
  .page-select-wrap { flex: 1 1 100%; justify-content: space-between; }
  .page-select-wrap select { flex: 1; min-width: 0; max-width: none; }
  .page-navigation { gap: 5px; }
  .tool-button { padding: 8px 7px; font-size: 11px; }
  .page-counter { min-width: 93px; font-size: 11px; }
  .zoom-button { margin-left: auto; padding: 8px 9px; font-size: 11px; }
  .album-pages { width: 100%; gap: 15px; padding: 15px 0 35px; }
  .album-page { padding: 7px; border-left: 0; border-right: 0; }
  .page-caption { min-height: 36px; gap: 8px; padding-bottom: 7px; }
  .page-index { min-width: 39px; height: 23px; font-size: 10px; }
  .page-title { font-size: 15px; }
  .page-kind { display: none; }
  .profile-hotspot::after { opacity: .95; font-size: 8px; }
  .album-footer { width: calc(100% - 24px); min-height: 60px; font-size: 10px; }
  .zoom-dialog { width: 96vw; max-height: 94dvh; padding: 8px; }
  .zoom-scroll { max-height: calc(94dvh - 82px); }
  .zoom-image { width: 1000px; max-width: none; }
  .zoom-help { font-size: 11px; }
}

@media (max-width: 380px) {
  .return-link { max-width: 130px; gap: 4px; font-size: 9px; }
  .tool-button span { max-width: 56px; overflow: hidden; }
  .page-counter { min-width: 78px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}
