/* Ink & Bone site. Colours are the game's palette (art/palette.json). */
:root {
  --ink-0: #1c1220;
  --ink-1: #2d1c2c;
  --ink-2: #433043;
  --red-1: #86263a;
  --red-2: #c0413f;
  --red-0: #4c1a2e;
  --gold-1: #c98a2e;
  --gold-2: #efc24e;
  --gold-3: #fbe8a0;
  --cream: #f4ecdc;
  --stone: #d3cbc1;
  --stone-dim: #a9a1a3;
  --teal: #9fd6c4;
  --teal-glow: #336f7c;
  --gutter: clamp(16px, 4vw, 48px);
  --pixel: "Jersey 10", sans-serif;
  --mono: Silkscreen, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink-0);
  color: var(--cream);
  font-family: "Pixelify Sans", sans-serif;
}

img { display: block; max-width: 100%; height: auto; image-rendering: pixelated; }

a { color: var(--gold-2); }
a:hover { color: var(--gold-3); }
a:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: #2f1f47; }

.hero-art {
  width: 100%;
  height: clamp(520px, 56.25vw, 1000px);
  object-fit: cover;
  /* on narrow screens keep the tattoo shop, not the caff, in frame */
  object-position: 70% 100%;
}

.nav {
  position: absolute;
  inset: 0 0 auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  padding: 16px var(--gutter);
  font-family: var(--mono);
}

.brand { font-size: 14px; letter-spacing: 2px; color: var(--gold-3); }

.nav-links { display: flex; gap: 20px; font-size: 13px; }
.nav-links a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-shadow: 0 2px 0 var(--ink-0);
}

.hero-title {
  position: absolute;
  inset: 64px 0 auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
  text-align: center;
}

.hero-title h1 {
  margin: 0;
  font-family: var(--pixel);
  font-weight: 400;
  font-size: clamp(60px, 8.5vw, 132px);
  line-height: 0.9;
  letter-spacing: 2px;
  color: var(--gold-3);
  text-shadow: 0 4px 0 var(--gold-1), 0 10px 0 var(--red-1), 0 14px 0 var(--ink-0);
}

.ribbon {
  margin-top: 14px;
  background: var(--red-2);
  color: var(--gold-3);
  font-family: var(--mono);
  font-size: clamp(12px, 1.6vw, 16px);
  letter-spacing: 6px;
  padding: 8px 20px 8px 26px;
  box-shadow: 0 4px 0 var(--red-0);
}

/* Status */
.status {
  margin: 0;
  padding: clamp(48px, 7vw, 72px) var(--gutter) clamp(32px, 4vw, 48px);
  text-align: center;
  font-family: var(--pixel);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  letter-spacing: 4px;
  color: var(--teal);
  text-shadow: 0 0 14px var(--teal-glow);
}

/* Screenshots */
.shots {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(56px, 8vw, 96px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 24px);
}

.shot {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 4px solid var(--ink-2);
}

.shot-main { flex: 2 1 560px; min-width: 0; height: auto; align-self: flex-start; }

.shot-side {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vw, 24px);
}

/* Download panel */
.download { max-width: 880px; margin: 0 auto; padding: 0 var(--gutter) clamp(56px, 8vw, 96px); }

.panel {
  border: 4px solid var(--red-1);
  box-shadow: 0 0 0 4px var(--ink-0), 0 0 0 6px var(--red-2);
  background: var(--ink-0);
  margin: 6px;
}

.panel-bar {
  background: var(--red-1);
  padding: 12px clamp(14px, 3vw, 20px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  font-family: var(--mono);
  font-size: clamp(12px, 1.6vw, 14px);
  color: var(--gold-3);
}

.panel-note {
  margin: 0;
  padding: 24px clamp(14px, 3vw, 20px) 8px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--stone);
}

.dl-list { display: flex; flex-direction: column; padding: 8px clamp(4px, 1vw, 8px) 8px; }

.dl {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 12px;
  padding: 16px 12px;
  min-height: 44px;
  text-decoration: none;
  color: var(--cream);
  border-bottom: 2px dashed var(--ink-2);
}
.dl:last-child { border-bottom: 0; }
.dl:hover { background: var(--ink-1); color: var(--cream); }

.dl-name { font-family: var(--pixel); font-size: clamp(28px, 4vw, 32px); line-height: 1; }
.dl-meta { font-family: var(--mono); font-size: 13px; color: var(--gold-2); }

.panel-foot {
  margin: 0;
  padding: 4px clamp(14px, 3vw, 20px) 20px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--stone-dim);
}

/* Footer */
.footer {
  border-top: 2px solid var(--ink-1);
  padding: 32px var(--gutter);
  display: flex;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--stone-dim);
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
