:root {
  color-scheme: dark;
  --ink: #080706;
  --panel: rgba(20, 17, 13, 0.9);
  --ivory: #f7f1e7;
  --muted: #b9afa1;
  --gold: #c89b50;
}

* { box-sizing: border-box; }

html {
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ivory);
  background:
    radial-gradient(circle at 50% -10%, rgba(200, 155, 80, 0.16), transparent 31rem),
    linear-gradient(180deg, #0d0b08 0%, #060605 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-user-select: none;
  user-select: none;
}

.viewer-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  padding: 0.8rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(200, 155, 80, 0.34);
  background: var(--panel);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
}

.back-link {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}
.back-link:hover,
.back-link:focus-visible { color: var(--gold); }
.viewer-brand { display: grid; flex: 1; gap: 0.18rem; text-align: center; }
.brand-name { color: var(--gold); font-family: Georgia, serif; font-size: 1.18rem; letter-spacing: 0.14em; }
.brand-subtitle { color: var(--muted); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; }
.viewer-status { flex: 0 0 auto; color: var(--gold); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.13em; }

main { width: min(100%, 1120px); margin: 0 auto; padding: 0 clamp(0.75rem, 3vw, 2rem); }

.catalogue-intro {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(3.25rem, 8vw, 6.5rem) 1rem clamp(2.25rem, 5vw, 4rem);
  text-align: center;
}

.eyebrow { margin: 0 0 1rem; color: var(--gold); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; }
h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.35rem, 7vw, 5.2rem); font-weight: 400; letter-spacing: -0.035em; line-height: 0.95; }
.catalogue-intro > p:last-child { max-width: 620px; margin: 1.4rem auto 0; color: var(--muted); font-size: clamp(0.95rem, 2vw, 1.08rem); line-height: 1.7; }

.catalogue-pages { display: grid; gap: clamp(2rem, 6vw, 5.5rem); padding-bottom: 5rem; }
.catalogue-sheet { width: min(100%, 780px); margin: 0 auto; }
.page-guard { position: relative; overflow: hidden; border: 1px solid rgba(200, 155, 80, 0.22); border-radius: 5px; background: #090807; box-shadow: 0 28px 70px rgba(0, 0, 0, 0.52); }
.page-guard::after { content: ""; position: absolute; inset: 0; z-index: 2; background: transparent; }
.catalogue-sheet img { display: block; width: 100%; height: auto; pointer-events: none; -webkit-touch-callout: none; }
figcaption { padding-top: 0.7rem; color: rgba(185, 175, 161, 0.72); font-size: 0.7rem; letter-spacing: 0.11em; text-align: center; text-transform: uppercase; }

footer { padding: 2.25rem 1rem 3rem; border-top: 1px solid rgba(200, 155, 80, 0.2); color: rgba(185, 175, 161, 0.72); font-size: 0.72rem; letter-spacing: 0.08em; text-align: center; }
.print-message { display: none; }

@media (max-width: 520px) {
  .viewer-bar { min-height: 60px; }
  .back-link { font-size: 0.6rem; }
  .brand-subtitle { display: none; }
  .catalogue-intro { padding-top: 2.8rem; }
  .catalogue-pages { gap: 2.35rem; }
}

@media print {
  body > * { display: none !important; }
  .print-message { display: grid !important; min-height: 100vh; place-items: center; color: #111; background: #fff; font-size: 18pt; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
