@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/barlow-condensed-600-latin.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/barlow-condensed-700-latin.woff2') format('woff2'); }
@font-face { font-family: 'Bowlby One SC'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/bowlby-one-sc-latin.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500 700; font-display: swap; src: url('fonts/dm-sans-500-700-latin.woff2') format('woff2'); }

:root {
  --studio-black: oklch(14% 0.008 195);
  --studio-deep: oklch(18% 0.012 190);
  --paper: oklch(94% 0.012 95);
  --muted: oklch(69% 0.015 190);
  --metal-light: oklch(78% 0.008 190);
  --cyan: oklch(82% 0.16 205);
  --amber: oklch(79% 0.15 83);
}

* { box-sizing: border-box; }
html { background: var(--studio-black); }

body {
  margin: 0;
  min-height: 100svh;
  color: var(--paper);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
  background-color: var(--studio-deep);
  background-image: linear-gradient(180deg, oklch(18% 0.012 190), oklch(13% 0.008 190));
}

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; z-index: 20; padding: 8px 12px; background: var(--cyan); color: var(--studio-black); font-weight: 700; }

a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

.topbar {
  position: relative; z-index: 15; min-height: 64px;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px;
  padding: 8px max(24px, env(safe-area-inset-left)) 8px max(24px, env(safe-area-inset-right));
  border-bottom: 1px solid oklch(38% 0.01 190); background: oklch(13% 0.008 190); box-shadow: 0 3px 0 oklch(8% 0.006 190);
}
.brand { display: flex; align-items: center; gap: 12px; width: max-content; text-decoration: none; }
.brand-mark {
  display: block; width: 42px; height: 42px; flex: 0 0 42px; border: 2px solid oklch(58% 0.012 190); border-radius: 3px;
  object-fit: cover; box-shadow: inset 0 0 0 1px var(--studio-black);
}
.brand-name { color: var(--paper); font: 14px/1 'Bowlby One SC'; }
.brand-name i { color: var(--cyan); font-style: normal; }

.site-nav { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.site-nav a { color: var(--muted); font: 600 .75rem 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--cyan); text-decoration: underline; }
.site-nav a[aria-current='page'] { color: var(--cyan); }
.site-nav .nav-dub-maker { min-height: 40px; display: inline-flex; align-items: center; padding: 0 9px; border: 1px solid oklch(88% 0.13 83); border-radius: 3px; background: var(--amber); color: var(--studio-black); font-weight: 700; box-shadow: 0 0 0 1px oklch(18% 0.012 190), 0 2px 0 oklch(54% 0.11 76); }
.site-nav .nav-dub-maker:hover, .site-nav .nav-dub-maker:focus-visible { background: var(--paper); color: var(--studio-black); text-decoration: none; }

.page-content { width: min(760px, 100%); margin: 0 auto; padding: 26px 18px 10px; }

.breadcrumbs { margin: 0 0 18px; color: var(--muted); font-size: .76rem; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs span { padding: 0 6px; }

.page-content h1 { margin: 0 0 10px; color: var(--paper); font: 400 1.5rem/1.2 'Bowlby One SC'; }
.page-content .lede { max-width: 66ch; color: var(--metal-light); font-size: .98rem; line-height: 1.6; }
.page-content h2 { margin: 30px 0 8px; color: var(--cyan); font: 400 1.1rem/1.25 'Bowlby One SC'; }
.page-content h3 { margin: 20px 0 4px; color: var(--paper); font: 700 .95rem/1.3 'DM Sans', sans-serif; }
.page-content p, .page-content li, .page-content dd, .page-content dt { color: var(--metal-light); font-size: .9rem; line-height: 1.65; }
.page-content p { margin: 0 0 12px; max-width: 68ch; }
.page-content ul, .page-content ol { margin: 0 0 12px; padding-left: 22px; max-width: 68ch; }
.page-content li { margin-bottom: 6px; }
.page-content li b, .page-content dt { color: var(--paper); }
.page-content a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }
.page-content a:hover { color: var(--paper); }
.page-content strong { color: var(--paper); }

.numbered-steps li { margin-bottom: 10px; }

.tutorial-video { max-width: 68ch; margin: 24px 0 30px; }
.tutorial-video-heading { display: flex; align-items: baseline; gap: 10px; margin-bottom: 9px; }
.tutorial-video-heading span { flex: 0 0 auto; color: var(--amber); font: 700 .65rem 'Barlow Condensed', sans-serif; letter-spacing: .04em; }
.page-content .tutorial-video-heading h2 { margin: 0; color: var(--paper); font-size: 1rem; }
.tutorial-video-frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border: 1px solid oklch(49% 0.012 190); border-radius: 4px;
  background: oklch(8% 0.008 190);
  box-shadow: 0 10px 24px oklch(5% 0.008 190 / .5), inset 0 0 0 3px oklch(24% 0.012 190);
}
.tutorial-video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

.callout {
  margin: 0 0 16px; padding: 12px 14px; max-width: 68ch;
  border-left: 3px solid var(--amber); border-radius: 2px;
  background: oklch(22% 0.012 190);
}
.callout p:last-child { margin-bottom: 0; }

.spec-list { margin: 0 0 16px; max-width: 68ch; }
.spec-list div { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 8px 0; border-bottom: 1px solid oklch(30% 0.012 190); }
.spec-list dt { flex: 0 0 130px; font: 600 .78rem 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.spec-list dd { margin: 0; flex: 1 1 200px; }

.pack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 0 0 20px; }
.pack-card { padding: 14px 16px; border: 1px solid oklch(34% 0.012 190); border-radius: 4px; background: oklch(21% 0.012 190); }
.pack-card h3 { margin: 0 0 4px; }
.pack-card p { margin: 0 0 10px; font-size: .84rem; }
.pack-card .pack-meta { color: var(--muted); font: 600 .72rem 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: .04em; }
.pack-gallery { margin: 0 0 30px; }
.pack-gallery-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 0 0 12px; }
.pack-gallery-head h2, .pack-gallery-head p { margin: 0; }
.pack-gallery-head p { max-width: none; color: var(--muted); font-size: .78rem; }
.pack-grid--preview { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.pack-grid--preview .pack-card { min-width: 0; display: flex; flex-direction: column; padding: 0 14px 13px; overflow: hidden; }
.pack-grid--preview .pack-card-preview { position: relative; width: calc(100% + 28px); aspect-ratio: 16 / 9; display: block; align-self: center; overflow: hidden; margin: 0 -14px 13px; border-bottom: 1px solid oklch(34% 0.012 190); background: oklch(10% 0.008 190); line-height: 0; }
.pack-grid--preview .pack-card-preview img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 220ms cubic-bezier(.22,1,.36,1), filter 180ms; }
.pack-grid--preview .pack-card-preview:hover img, .pack-grid--preview .pack-card-preview:focus-visible img { filter: brightness(1.08); transform: scale(1.025); }
.pack-grid--preview .pack-card-preview:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.pack-grid--preview .pack-card h3 { font-size: 1rem; }
.pack-grid--preview .pack-card > p:last-child { flex: 1; margin-bottom: 0; }
.pack-card-warning { position: absolute; left: 8px; bottom: 8px; padding: 4px 6px; border: 1px solid oklch(78% 0.13 83); border-radius: 2px; background: oklch(12% 0.012 190 / .92); color: oklch(91% 0.12 83); font: 700 .58rem/1 'Barlow Condensed', sans-serif; text-transform: uppercase; }

/* Pack screenshots are hotlinked from GameBanana, not rehosted here, so the
   authors' CDN serves them and this site keeps storing no pack content. */
.pack-shots { margin: 0 0 18px; max-width: 68ch; }
.pack-shots .shot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.pack-shots a { display: block; border: 1px solid oklch(34% 0.012 190); border-radius: 4px; background: oklch(10% 0.008 190); overflow: hidden; line-height: 0; }
.pack-shots a:hover, .pack-shots a:focus-visible { border-color: var(--cyan); }
.pack-shots img { display: block; width: 100%; height: auto; }
.pack-shots figcaption { margin-top: 8px; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.pack-shots figcaption a { display: inline; border: 0; background: none; line-height: inherit; color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 8px; }
.cta-button {
  display: inline-block; padding: 11px 18px; border-radius: 3px;
  background: var(--cyan); color: var(--studio-black);
  font: 700 .8rem 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: .05em; text-decoration: none;
}
.page-content a.cta-button:not(.is-quiet),
.page-content a.cta-button:not(.is-quiet):hover,
.page-content a.cta-button:not(.is-quiet):focus-visible { color: var(--paper); }
.cta-button:hover { color: var(--studio-black); filter: brightness(1.08); }
.cta-button.is-quiet { background: transparent; border: 1px solid oklch(43% 0.012 190); color: var(--muted); }
.cta-button.is-quiet:hover { color: var(--cyan); }

.site-footer-nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px;
  width: min(760px, 100%); margin: 30px auto 0; padding: 16px 18px 30px;
  border-top: 1px solid oklch(34% 0.012 190);
}
.site-footer-nav a { color: var(--muted); font: 600 .75rem 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; }
.site-footer-nav a:hover { color: var(--cyan); text-decoration: underline; }

@media (max-width: 720px) {
  .topbar { min-height: 58px; grid-template-columns: auto 1fr; padding: 8px 14px; gap: 10px; }
  .brand-mark { width: 34px; height: 34px; flex-basis: 34px; }
  .brand-name { display: none; }
  .site-nav { min-width: 0; display: flex; gap: 10px; }
  .site-nav a { display: none; white-space: nowrap; font-size: .68rem; }
  .site-nav a[href*="how-to-play"] { display: block; }
  .site-nav .nav-dub-maker { min-height: 34px; display: inline-flex; align-items: center; padding: 0 7px; }
  .pack-gallery-head { display: block; }
  .pack-gallery-head p { margin-top: 4px; }
  .pack-grid--preview { grid-template-columns: 1fr; }
  .page-content h1 { font-size: 1.25rem; }
  .page-content h2 { font-size: 1rem; }
  .page-content .lede { font-size: .92rem; }
  .spec-list dt { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
