/* Gallery of map styles. */
:root {
  --bg: #f5efe2;
  --ink: #2b2620;
  --soft: #6b6155;
  --card: #fffaf0;
  --line: rgba(43, 38, 32, 0.14);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1b19;
    --ink: #f1ebdf;
    --soft: #b3a998;
    --card: #282521;
    --line: rgba(241, 235, 223, 0.14);
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 Inter, system-ui, sans-serif; }
header, main, .credit { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
header { padding-top: 48px; padding-bottom: 28px; }
.home { color: #d9663d; font-weight: 600; text-decoration: none; letter-spacing: 0.04em; }
h1 { font: 800 clamp(34px, 6vw, 58px)/1.02 Fraunces, Georgia, serif; margin: 10px 0 14px; max-width: 14ch; }
header p { max-width: 62ch; color: var(--soft); margin: 0; }
main { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; padding-bottom: 32px; }
.style {
  display: block;
  padding: 18px 20px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.style:hover, .style:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12); outline: none; }
.style:focus-visible { box-shadow: 0 0 0 3px #d9663d; }
.style h2 { font: 700 24px/1.15 Fraunces, Georgia, serif; margin: 14px 0 6px; }
.style p { margin: 0 0 12px; color: var(--soft); }
.style small { font-weight: 600; font-size: 13px; }
.swatch { display: flex; height: 64px; border-radius: 8px; overflow: hidden; }
.swatch i { flex: 1; }
.play i:nth-child(1) { background: #f4ead5; } .play i:nth-child(2) { background: #f2a07b; }
.play i:nth-child(3) { background: #a9cd8e; } .play i:nth-child(4) { background: #a9d4e6; }
.diorama i:nth-child(1) { background: #f7f0e1; } .diorama i:nth-child(2) { background: #ff5fa2; }
.diorama i:nth-child(3) { background: #ffd23f; } .diorama i:nth-child(4) { background: #3a78c9; }
.board i:nth-child(1) { background: #2e5e3e; } .board i:nth-child(2) { background: #c8302c; }
.board i:nth-child(3) { background: #efe6cf; } .board i:nth-child(4) { background: #e7b73a; }
.tourist i:nth-child(1) { background: #2f7f7a; } .tourist i:nth-child(2) { background: #e0664f; }
.tourist i:nth-child(3) { background: #e8b640; } .tourist i:nth-child(4) { background: #f3e7c9; }
.blueprint i:nth-child(1) { background: #173a6b; } .blueprint i:nth-child(2) { background: #20508f; }
.blueprint i:nth-child(3) { background: #cfe4ff; } .blueprint i:nth-child(4) { background: #f0b44c; }
.stamps i:nth-child(1) { background: #3a2418; } .stamps i:nth-child(2) { background: #d8b86a; }
.stamps i:nth-child(3) { background: #f3ead6; } .stamps i:nth-child(4) { background: #b0453a; }
.credit { color: var(--soft); font-size: 13px; padding-bottom: 32px; }
.credit a { color: inherit; }
@media (prefers-reduced-motion: reduce) { .style { transition: none; } }
