/* ============================================================================
   MUSE  ·  quiet comic catalog
   A print-studio / specimen-catalog perspective — not an aisle, chessboard,
   or ticket alley. Cream paper, crop marks, hanging job tickets, salon frame.
   Images use object-fit: contain so logo.png and banner.png are never cropped.
   ============================================================================ */

:root {
  --cream: #F4EDE2;
  --paper: #EBE2D3;
  --beige: #E5DED1;
  --sand: #D9CDB8;
  --ink: #2A1C14;
  --ink-soft: #4A3426;
  --clay: #C45C3E;
  --gold: #C9A86A;
  --line: #24180F;
  --halo: rgba(244, 237, 226, 0.88);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Outfit", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.82rem;
  word-break: break-all;
}

::selection {
  background: var(--clay);
  color: #fff8f0;
}

/* ---------- decent fill under contain-art ---------- */
.page-fill {
  position: fixed;
  inset: 0;
  z-index: -6;
  background:
    radial-gradient(900px 500px at 18% 8%, rgba(232, 214, 184, 0.7), transparent 55%),
    radial-gradient(800px 480px at 88% 92%, rgba(196, 92, 62, 0.1), transparent 50%),
    linear-gradient(180deg, #F7F1E8 0%, #EFE6D8 48%, #E4D8C6 100%);
}

/* Banner as BACKGROUND mural — full image, never cropped */
.banner-mural {
  position: fixed;
  inset: 0;
  z-index: -5;
  display: grid;
  place-items: center;
  pointer-events: none;
  overflow: hidden;
}

.banner-mural img {
  width: min(100%, 1400px);
  height: min(100%, 780px);
  object-fit: contain;
  object-position: center;
  opacity: 0.28;
  filter: saturate(0.9);
}

/* 3D print studio */
.studio-world {
  position: fixed;
  inset: 0;
  z-index: -4;
  perspective: 1280px;
  perspective-origin: 50% 12%;
  pointer-events: none;
  overflow: hidden;
}

.studio-wall {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 42%;
  background:
    linear-gradient(180deg, rgba(244, 237, 226, 0.15), rgba(232, 220, 200, 0.55)),
    repeating-linear-gradient(
      90deg,
      transparent 0 96px,
      rgba(42, 28, 20, 0.035) 96px 97px
    );
  transform: translateZ(-80px);
}

.studio-floor {
  position: absolute;
  left: -35%;
  top: 34%;
  width: 170%;
  height: 190%;
  background:
    repeating-linear-gradient(90deg, rgba(42, 28, 20, 0.055) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(0deg, rgba(42, 28, 20, 0.045) 0 1px, transparent 1px 92px),
    linear-gradient(#E8DCC8, #CDBFA8);
  transform: rotateX(64deg) rotateZ(-7deg);
  transform-origin: top center;
  box-shadow: 0 -50px 90px rgba(42, 28, 20, 0.12);
}

.studio-beam {
  position: absolute;
  top: 0;
  width: 18px;
  height: 38%;
  background: linear-gradient(#d7c7ae, #b9a78c);
  border: 3px solid var(--line);
  box-shadow: 6px 0 0 #fff6ea inset;
}

.studio-beam.l { left: 7%; transform: skewX(-8deg); }
.studio-beam.r { right: 7%; transform: skewX(8deg); }

.paper-grain {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.reg-marks {
  position: fixed;
  inset: 18px;
  z-index: -2;
  pointer-events: none;
  border: 1.5px dashed rgba(42, 28, 20, 0.12);
}

/* ---------- plaque nav ---------- */
.plaque {
  position: sticky;
  top: 10px;
  z-index: 40;
  margin: 10px auto 0;
  width: min(1180px, calc(100% - 24px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  background: rgba(244, 237, 226, 0.86);
  border: 3.5px solid var(--line);
  box-shadow: 7px 7px 0 var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-die {
  width: 52px;
  height: 52px;
  border: 3px solid var(--line);
  border-radius: 50%;
  background: #fffaf3;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 3px 3px 0 var(--line);
}

.brand-die.sm {
  width: 40px;
  height: 40px;
}

.brand-die img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.brand-type {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-type strong {
  font-family: "Fraunces", serif;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.brand-type em {
  font-style: normal;
  font-family: "Boogaloo", cursive;
  color: var(--clay);
  letter-spacing: 0.18em;
  font-size: 0.78rem;
}

.tabs {
  display: flex;
  gap: 22px;
  font-family: "Boogaloo", cursive;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.tabs a:hover {
  color: var(--clay);
}

.plaque-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ico {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 3px solid var(--line);
  background: #fffaf3;
  font-size: 1.15rem;
  box-shadow: 3px 3px 0 var(--line);
}

.ico:hover {
  background: var(--clay);
  color: #fff8f0;
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 3px solid var(--line);
  background: #fffaf3;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--line);
}

.drawer {
  display: none;
}

.btn-muse,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 3px solid var(--line);
  padding: 12px 18px;
  font-family: "Boogaloo", cursive;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  box-shadow: 4px 4px 0 var(--line);
  cursor: pointer;
  background: var(--clay);
  color: #fff8f0;
  transition: transform 0.15s ease;
}

.btn-ghost {
  background: #fffaf3;
  color: var(--ink);
}

.btn-muse.sm,
.btn-ghost.sm {
  padding: 8px 12px;
  font-size: 1rem;
  box-shadow: 3px 3px 0 var(--line);
}

.btn-muse:hover,
.btn-ghost:hover,
.ico:hover {
  transform: translate(-1px, -1px);
}

.btn-muse.ok,
.btn-ghost.ok {
  background: #2f7a4b;
  color: #f4fff6;
}

/* ---------- folio ---------- */
.folio {
  width: min(1180px, calc(100% - 28px));
  margin: 28px auto 80px;
  display: grid;
  gap: 72px;
}

.section-kicker {
  margin: 0 0 6px;
  font-family: "Boogaloo", cursive;
  letter-spacing: 0.22em;
  color: var(--clay);
  font-size: 0.95rem;
}

.section-title {
  margin: 0 0 18px;
  font-family: "Fraunces", serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 0.95;
}

.lede {
  max-width: 46rem;
  margin: 0 0 28px;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.55;
}

.yaw-left { transform: rotate(-1.4deg); }
.yaw-right { transform: rotate(1.2deg); }

/* crop marks */
.crop {
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
}
.crop.tl { top: -2px; left: -2px; border-top: 3px solid var(--line); border-left: 3px solid var(--line); }
.crop.tr { top: -2px; right: -2px; border-top: 3px solid var(--line); border-right: 3px solid var(--line); }
.crop.bl { bottom: -2px; left: -2px; border-bottom: 3px solid var(--line); border-left: 3px solid var(--line); }
.crop.br { bottom: -2px; right: -2px; border-bottom: 3px solid var(--line); border-right: 3px solid var(--line); }

/* ---------- HERO ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) 1.15fr;
  gap: 36px;
  align-items: center;
  min-height: calc(100svh - 120px);
}

.diecut {
  position: relative;
  background: rgba(255, 250, 243, 0.78);
  border: 4px solid var(--line);
  box-shadow: 10px 10px 0 var(--line);
  padding: 22px 18px 28px;
}

.plate-no {
  margin: 0 0 10px;
  text-align: center;
  font-family: "Boogaloo", cursive;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.diecut-hole {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 4px dashed var(--line);
  background:
    radial-gradient(circle at 50% 40%, #fffdf8, var(--beige));
  display: grid;
  place-items: center;
  overflow: hidden;
}

.diecut-hole img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.bubble {
  position: absolute;
  right: 10%;
  top: 18%;
  background: #fffaf3;
  border: 3px solid var(--line);
  border-radius: 18px 18px 18px 4px;
  padding: 4px 14px 8px;
  font-family: "Fraunces", serif;
  font-size: 1.6rem;
  box-shadow: 3px 3px 0 var(--line);
}

.hero-copy {
  background: rgba(244, 237, 226, 0.82);
  border: 4px solid var(--line);
  box-shadow: 10px 10px 0 var(--line);
  padding: clamp(22px, 4vw, 42px);
}

.issue {
  margin: 0 0 10px;
  font-family: "Boogaloo", cursive;
  letter-spacing: 0.16em;
  color: var(--clay);
}

.wordmark {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 800;
  font-size: clamp(4.2rem, 12vw, 8.2rem);
  line-height: 0.82;
  letter-spacing: -0.03em;
}

.ticker {
  margin: 8px 0 16px;
  font-family: "Boogaloo", cursive;
  font-size: 1.8rem;
  color: var(--clay);
  letter-spacing: 0.12em;
}

.bio {
  margin: 0 0 22px;
  max-width: 38rem;
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cta-row.tight { gap: 8px; }

.ca-tile {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  background: #fffaf3;
  border: 3px solid var(--line);
  box-shadow: 4px 4px 0 var(--line);
}

.ca-tile.wide {
  margin-top: 8px;
}

.ca-label {
  display: block;
  font-family: "Boogaloo", cursive;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  color: var(--clay);
  margin-bottom: 4px;
}

/* ---------- ABOUT — open book ---------- */
.spread {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 0;
  perspective: 1400px;
}

.page {
  background: #fffaf3;
  border: 4px solid var(--line);
  min-height: 420px;
  padding: 28px 26px 32px;
  position: relative;
}

.page.left {
  box-shadow: 10px 10px 0 var(--line);
  z-index: 1;
}

.page.right {
  box-shadow: 12px 12px 0 var(--line);
  border-left-width: 3px;
  background:
    linear-gradient(90deg, rgba(42, 28, 20, 0.06), transparent 18px),
    #fffaf3;
}

.gutter {
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: "Boogaloo", cursive;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.page-art {
  height: 300px;
  display: grid;
  place-items: center;
}

.page-art img {
  width: min(88%, 280px);
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.caption-line {
  margin: 8px 0 0;
  text-align: center;
  font-family: "Boogaloo", cursive;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.page h3 {
  margin: 28px 0 12px;
  font-family: "Fraunces", serif;
  font-size: 1.85rem;
}

.page p {
  margin: 0 0 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.notes {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.notes li {
  padding: 10px 12px;
  border: 2.5px solid var(--line);
  background: var(--cream);
  box-shadow: 3px 3px 0 var(--line);
}

/* ---------- HOW TO BUY — hanging tickets ---------- */
.howto {
  position: relative;
}

.rail {
  height: 10px;
  background: linear-gradient(#cbb79a, #a89274);
  border: 3px solid var(--line);
  box-shadow: 0 6px 0 rgba(42, 28, 20, 0.12);
  margin: 0 8px -6px;
}

.tickets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.ticket {
  position: relative;
  margin-top: 18px;
  background: #fffaf3;
  border: 3.5px solid var(--line);
  box-shadow: 6px 8px 0 var(--line);
  padding: 28px 18px 22px;
}

.ticket.t1 { transform: rotate(-2.2deg); }
.ticket.t2 { transform: rotate(1.6deg); margin-top: 36px; }
.ticket.t3 { transform: rotate(-1.1deg); }
.ticket.t4 { transform: rotate(2.4deg); margin-top: 30px; }

.clip {
  position: absolute;
  top: -16px;
  left: 50%;
  width: 16px;
  height: 28px;
  transform: translateX(-50%);
  background: var(--clay);
  border: 3px solid var(--line);
  border-radius: 3px 3px 8px 8px;
}

.ticket .num {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 2.2rem;
  color: var(--clay);
  line-height: 1;
}

.ticket h3 {
  margin: 8px 0 8px;
  font-family: "Boogaloo", cursive;
  font-size: 1.55rem;
}

.ticket p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
  font-size: 0.98rem;
}

/* ---------- COMMUNITY salon ---------- */
.salon-frame {
  position: relative;
  margin: 0 0 28px;
  padding: 18px;
  background: #fffaf3;
  border: 5px solid var(--line);
  box-shadow: 12px 12px 0 var(--line);
}

.salon-frame img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  object-position: center;
  background: var(--cream);
}

.salon-docks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.dock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 22px 12px;
  background: #fffaf3;
  border: 3.5px solid var(--line);
  box-shadow: 6px 6px 0 var(--line);
  text-align: center;
}

.dock i {
  font-size: 1.8rem;
}

.dock span {
  font-family: "Boogaloo", cursive;
  font-size: 1.4rem;
}

.dock em {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.dock.buy {
  background: var(--clay);
  color: #fff8f0;
}

.dock.buy em {
  color: rgba(255, 248, 240, 0.8);
}

.dock:hover {
  transform: translate(-2px, -2px);
}

/* ---------- footer ---------- */
.colophon {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0 8px;
  border-top: 3px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.colophon .brand {
  font-family: "Boogaloo", cursive;
  font-size: 1.1rem;
  color: var(--ink);
}

.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff8f0;
  padding: 10px 16px;
  border: 3px solid var(--line);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 80;
  font-family: "Boogaloo", cursive;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .tabs { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .drawer {
    display: none;
    position: sticky;
    top: 78px;
    z-index: 39;
    margin: 8px 12px 0;
    background: #fffaf3;
    border: 3px solid var(--line);
    box-shadow: 5px 5px 0 var(--line);
    padding: 10px 16px 14px;
    flex-direction: column;
    gap: 10px;
    font-family: "Boogaloo", cursive;
    font-size: 1.2rem;
  }
  .drawer.open { display: flex; }

  .hero-grid,
  .spread,
  .tickets,
  .salon-docks {
    grid-template-columns: 1fr;
  }

  .hero-grid { min-height: 0; }
  .page.right { border-left-width: 4px; }
  .ticket.t1,
  .ticket.t2,
  .ticket.t3,
  .ticket.t4 {
    transform: none;
    margin-top: 22px;
  }

  .studio-beam { display: none; }
  .studio-floor { transform: rotateX(72deg); }
  .yaw-left, .yaw-right { transform: none; }

  .ca-tile,
  .ca-tile.wide {
    flex-direction: column;
    align-items: stretch;
  }

  .colophon {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .plaque { padding: 8px 10px; }
  .brand-type strong { font-size: 1.1rem; }
  .ico:nth-child(2) { display: none; }
  .wordmark { font-size: 3.6rem; }
  .diecut-hole,
  .page-art { height: auto; }
  .page-art { min-height: 220px; }
  .salon-frame img { max-height: 280px; }
}
