:root {
  --ink: #f4ecdf;
  --ink-soft: rgba(244, 236, 223, .7);
  --panel: rgba(20, 12, 8, .55);
  --line: rgba(244, 236, 223, .4);
  --page: #1d1410;
  font: 15px/1.45 system-ui, sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--page); }
a { color: inherit; }

.btn, button.btn {
  display: inline-block;
  font: 13px/1 system-ui, sans-serif;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 7px 11px;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: rgba(20, 12, 8, .8); }

.swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  margin-right: 8px;
  vertical-align: -2px;
  border: 1px solid var(--line);
}

/* ---------- scroll page ---------- */

.scroll-page { height: 100vh; overflow: hidden; }
.scroll-page #paper { position: fixed; inset: 0; background-repeat: repeat; }
.scroll-page #art {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
  user-select: none;
}
.scroll-page #art.drag { cursor: grabbing; }

.toolbar { position: fixed; left: 12px; bottom: 12px; display: flex; gap: 6px; flex-wrap: wrap; }

.style-menu {
  position: fixed;
  left: 12px;
  bottom: 52px;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  width: 270px;
  padding: 6px;
  background: rgba(20, 12, 8, .88);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.style-link {
  display: grid;
  grid-template-columns: auto 1fr;
  padding: 6px 8px;
  border-radius: 4px;
  text-decoration: none;
}
.style-link small { grid-column: 2; color: var(--ink-soft); font-size: 12px; }
.style-link:hover, .style-link[aria-current] { background: rgba(244, 236, 223, .12); }
.style-link .swatch { grid-row: span 2; margin-top: 3px; }

.caption {
  position: fixed;
  right: 14px;
  bottom: 16px;
  font: italic 13px Georgia, serif;
  color: var(--ink-soft);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}

/* ---------- gallery ---------- */

.hero { max-width: 1100px; margin: 0 auto; padding: 48px 20px 12px; }
.hero h1 { font: 600 34px/1.2 Georgia, serif; margin: 0 0 8px; }
.hero p { color: var(--ink-soft); margin: 0 0 18px; max-width: 640px; }

.gallery {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
.card {
  display: flex;
  flex-direction: column;
  background: #2a1d17;
  border: 1px solid rgba(244, 236, 223, .15);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  transition: transform .15s, border-color .15s;
}
.card:hover { transform: translateY(-2px); border-color: var(--line); }
.card .preview { display: block; width: 100%; aspect-ratio: 3 / 2; background: #3a2a22; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.card h2 { font: 600 19px/1.2 Georgia, serif; margin: 0 0 2px; }
.card .region { margin: 0 0 6px; color: var(--ink-soft); font-size: 13px; }
.card .blurb { margin: 0 0 12px; flex: 1; }
.card .btn { align-self: flex-start; }
.card.unavailable .preview { opacity: .3; }

.footer { max-width: 1100px; margin: 0 auto; padding: 8px 20px 40px; color: var(--ink-soft); font-size: 13px; }
