@font-face {
  font-family: 'Reenie Beanie';
  src: url('../assets/fonts/ReenieBeanie.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { color-scheme: dark; background: #000; }

body {
  margin: 0;
  padding: 0 0 clamp(40px, 4vw, 64px);
  background: #000;
  color: #f7f4f4;
}

header { padding: 24px clamp(20px, 3vw, 48px); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: #d6d0d3;
  font: 400 clamp(22px, 1.6vw, 30px)/1.2 'Reenie Beanie', 'Segoe Print', cursive;
  text-decoration: none;
}

.back-link svg { width: 20px; height: 13px; flex-shrink: 0; }
.back-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.back-link:focus-visible { outline: 1px solid currentColor; outline-offset: 5px; }

.art-gallery {
  display: grid;
  justify-items: center;
  gap: clamp(64px, 8vw, 128px);
  margin: 0;
}

.art-gallery figure { width: 100%; min-width: 0; margin: 0; }
.art-gallery img { display: block; width: 100%; height: auto; }

html.ink-gallery-active body { padding-bottom: 0; }
html.ink-gallery-active header {
  position: fixed;
  z-index: 2;
  inset: 0 0 auto;
  pointer-events: none;
  background: linear-gradient(#000c, #0000);
}
html.ink-gallery-active .back-link { pointer-events: auto; }
#gallery-stage { position: fixed; inset: 0; width: 100%; height: 100%; }
#gallery-photo {
  position: fixed;
  top: 76px;
  left: 0;
  width: 100%;
  height: calc(100% - 104px);
  object-fit: contain;
  pointer-events: none;
}
#gallery-scroll { width: 100%; }
