/* Idle Archery press kit: the game's Catppuccin UI panels with the logo's gold. */
:root {
  --bg: #181922;
  --panel: #1e1f28;
  --border: #30313e;
  --text: #cdd6f4;
  --muted: #b8bfd2;
  --gold: #f7ba25;
  --gold-light: #feee64;
  --blue: #8badfe;
  --sea: #2f7f80;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 18px/1.6 "Pixelify Sans", system-ui, sans-serif;
  letter-spacing: .015em; }
p, li { max-width: 70ch; }
a { color: var(--blue); }
img, video { max-width: 100%; display: block; }
.px { image-rendering: pixelated; }
h1, h2, h3 { font-weight: 600; line-height: 1.2; }
h2 { color: var(--gold); font-size: 1.9rem; margin: 0 0 16px; border-bottom: 2px solid var(--border); padding-bottom: 8px; }
h3 { color: var(--gold-light); font-size: 1.2rem; margin: 24px 0 8px; }

.hero { position: relative; min-height: min(34vh, 320px); display: grid; align-items: end; overflow: hidden; background: var(--sea); }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.hero-text { position: relative; padding: 24px 16px; max-width: 1100px; width: 100%; margin: 0 auto; }
.hero h1 { margin: 0; }
.hero h1 img { width: min(380px, 70vw); height: auto; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .45)); }
.intro { padding: 32px 0 0; }
.pitch { font-size: 1.2rem; max-width: 760px; margin: 0 0 18px; }
.buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; }
.btn { display: inline-block; padding: 10px 18px; background: var(--panel); border: 2px solid var(--blue); color: var(--text);
  text-decoration: none; font-weight: 600; }
.btn:hover { background: var(--border); }
.btn.big { background: var(--gold); border-color: #8f5a10; color: #1c1422; font-size: 1.2rem; padding: 14px 22px;
  box-shadow: 0 4px 0 #8f5a10; }
.btn.big:hover { background: var(--gold-light); }

.toc { position: sticky; top: 0; z-index: 2; display: flex; gap: 4px 18px; flex-wrap: wrap; justify-content: center;
  padding: 10px 16px; background: rgba(30, 31, 40, .95); border-bottom: 2px solid var(--border); }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--gold); }

main { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
section { padding: 48px 0 8px; }
.note, .files { color: var(--muted); }
.files a { text-decoration: none; }
.files a:hover { text-decoration: underline; }
.features li { margin: 4px 0; }

.facts { border-collapse: collapse; width: 100%; background: var(--panel); border: 2px solid var(--border); }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.facts th { width: 30%; color: var(--muted); font-weight: 400; }

.video { position: relative; aspect-ratio: 16 / 9; background: #000; border: 2px solid var(--border); margin-bottom: 12px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.sprites { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.card { margin: 0; background: var(--panel); border: 2px solid var(--border); display: flex; flex-direction: column; }
/* Every preview sits in the same 16:10 frame, so cards in a row line up whatever the image shape. */
.card > a:first-child { position: relative; display: block; aspect-ratio: 16 / 10; background: #14151c; }
.card > a:first-child img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.card video { width: 100%; height: auto; aspect-ratio: 1; background: #14151c; }
.sprites .card > a:first-child { aspect-ratio: 1; background: none; }
.sprites .card > a:first-child img { inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); }
.card figcaption { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; font-size: 16px; }
.card .name { text-decoration: none; overflow-wrap: anywhere; }
.card .name:hover { text-decoration: underline; }
.card .meta { color: var(--muted); font-size: 15px; }
.card .what { color: var(--text); }

.palette { list-style: none; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.palette li { display: flex; flex-direction: column; font-size: 16px; }
.palette span { height: 56px; border: 2px solid var(--border); margin-bottom: 4px; }
.palette small { color: var(--muted); font-size: 15px; }

footer { margin-top: 48px; padding: 24px 16px; text-align: center; color: var(--muted); border-top: 2px solid var(--border); }
footer a { color: var(--muted); }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  h2 { font-size: 1.5rem; }
  .hero { min-height: 200px; }
  .buttons { flex-direction: column; align-items: stretch; }
  .btn { text-align: center; }
  .grid { grid-template-columns: 1fr; }
  .facts th { width: 38%; }
}
