/* The Cove's Slate & Gold palette and self-hosted display face. */
@font-face {
  font-family: "Jim Nightshade";
  src: url("/fonts/JimNightshade-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --slate: #1a1d23;
  --abyss: #131519;
  --panel: #21252d;
  --text: #ecedf1;
  --soft: #b6bdc9;
  --gold: #f7d27e;
  --border: #3a424e;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse 52rem 29rem at 65% 10rem, #273441 0%, transparent 95%),
    linear-gradient(var(--slate), var(--abyss) 55%);
  color: var(--text);
  font: 1rem/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
}

a { color: var(--gold); text-underline-offset: .2em; }
a:hover { color: #fff0c8; }
:focus-visible { outline: 2px solid #fff0c8; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
[id] { scroll-margin-block-start: 1rem; }

.wrap { width: min(1056px, calc(100% - 40px)); margin-inline: auto; }
.site-header { background: var(--abyss); border-bottom: 1px solid var(--border); }
.header-inner, .footer-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--text);
  text-decoration: none;
  font: 1.65rem/1.1 "Jim Nightshade", Georgia, serif;
}
.brand svg { color: var(--gold); flex: none; }
.page-nav { display: flex; gap: clamp(.85rem, 3vw, 1.5rem); }
.page-nav a { font-size: .88rem; font-weight: 650; color: var(--soft); text-decoration: none; padding-block: .7rem; }
.page-nav a:hover { color: var(--gold); }
.skip-link {
  position: fixed;
  z-index: 1;
  inset: .5rem auto auto .5rem;
  padding: .45rem .8rem;
  background: var(--abyss);
  transform: translateY(calc(-100% - 1rem));
}
.skip-link:focus { transform: none; }

.hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(3rem, 7vw, 5.75rem);
  border-bottom: 1px solid var(--border);
}
.game-icon {
  width: clamp(9rem, 17vw, 13rem);
  border: 1px solid #81eee7;
  border-radius: 23%;
  box-shadow: 0 1.125rem 3.125rem #080b10a8;
}
.eyebrow { color: var(--gold); font-size: .79rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.hero h1 {
  margin-block: .12em .24em;
  font: 400 clamp(3.75rem, 8vw, 7rem)/.98 "Jim Nightshade", Georgia, serif;
  letter-spacing: -.025em;
}
.pitch { max-width: 34ch; color: var(--soft); font-size: clamp(1.05rem, 2vw, 1.35rem); }
.button {
  display: inline-block;
  margin-block-start: 1.4rem;
  padding: .65rem 1.1rem;
  border: 1px solid var(--gold);
  border-radius: .65rem;
  background: var(--gold);
  color: #211708;
  font-weight: 750;
  text-decoration: none;
}
.button:hover { background: #fff0c8; color: #211708; }

.gallery { padding-block: clamp(2rem, 5vw, 3.75rem); }
.gallery h2, .prose h2, .prose h1 {
  font: 400 clamp(2.4rem, 4.5vw, 3.75rem)/1.08 "Jim Nightshade", Georgia, serif;
}
.screens {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.65rem, 2vw, 1.45rem);
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}
.screens figure {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: .95rem;
  background: var(--panel);
}
.screens img { width: 100%; }
.screens figcaption { padding: .65rem .5rem; text-align: center; font-size: .875rem; font-weight: 600; }

.info-stack { width: min(100%, 840px); margin-inline: auto; display: grid; gap: 1rem; padding-block-end: 3.5rem; }
.panel { padding: clamp(1.25rem, 4vw, 2.75rem); border: 1px solid var(--border); border-radius: 1rem; background: var(--panel); }
.prose { overflow-wrap: break-word; }
.prose p { max-width: 72ch; margin-block-start: .7rem; color: var(--soft); }
.prose strong { color: var(--text); }
.prose h3, .standalone .prose h2 { margin-block-start: 1.25rem; font: 700 1.075rem/1.3 system-ui, sans-serif; }
.prose .eyebrow { margin-block-start: 0; color: var(--gold); }
.prose .effective { margin-block: .15rem 1.2rem; font-size: .9rem; }
.standalone { flex: 1; max-width: 840px; padding-block: clamp(1.5rem, 5vw, 4rem); }
.site-footer { margin-block-start: auto; border-top: 1px solid var(--border); background: var(--abyss); }
.footer-inner { min-height: 78px; color: var(--soft); }
.footer-inner a { font: 1.5rem/1.1 "Jim Nightshade", Georgia, serif; text-decoration: none; }

@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .hero { display: flex; flex-direction: column; gap: 1.3rem; text-align: center; padding-block: 2.35rem; }
  .hero h1 { font-size: clamp(2.75rem, 14vw, 4.5rem); }
  .game-icon { width: 7.5rem; }
  .pitch { margin-inline: auto; }
  .screens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
