/* Hexmonger — studio site styles. No build step; this file is served as-is. */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #0f0d14;
  --ink-2: #16131d;
  --ink-3: #1f1b28;
  --line: #2e2939;
  --text: #ece6da;
  --muted: #a39cae;
  --faint: #6f6879;
  --gold: #e2b567;
  --gold-2: #f3cf8e;
  --ember: #d9774a;
  --paper: #f1ebdd;
  --paper-ink: #17140f;
  --radius: 14px;
  --wrap: 1180px;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(226,181,103,.07), transparent 60%),
    radial-gradient(900px 500px at -10% 40%, rgba(120,90,180,.08), transparent 60%),
    var(--ink);
  color: var(--text);
  font: 16.5px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--gold); color: var(--ink); padding: 8px 12px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -.01em; margin: 0; }
.eyebrow {
  font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 14px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(15,13,20,.78);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(46,41,57,.7);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 30px; height: 30px; }
.brand span { font: 600 15px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; }
.site-nav { display: flex; gap: 26px; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.site-nav a:hover { color: var(--text); }
@media (max-width: 560px) {
  .site-nav { gap: 16px; }
  .brand span { letter-spacing: .18em; font-size: 14px; }
  .site-nav a.hide-sm { display: none; }
}

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border-radius: 999px;
  font: 600 15px/1 var(--sans); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--gold); color: #1a1408; }
.btn-primary:hover { background: var(--gold-2); color: #1a1408; }
.btn-ghost { border-color: rgba(236,230,218,.28); color: var(--text); background: rgba(15,13,20,.35); }
.btn-ghost:hover { border-color: var(--text); color: #fff; }
.btn-soon {
  border-color: rgba(236,230,218,.14); color: var(--muted); background: rgba(15,13,20,.35);
  cursor: default;
}
.btn-soon small { font-weight: 500; color: var(--faint); font-size: 12px; letter-spacing: .04em; }

/* ---------- hero: featured game ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(720px, 88vh);
  display: flex; align-items: flex-end;
  border-bottom: 1px solid var(--line);
}
.hero-art { position: absolute; inset: 0; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(15,13,20,.94) 0%, rgba(15,13,20,.78) 34%, rgba(15,13,20,.15) 66%, rgba(15,13,20,0) 100%),
    linear-gradient(0deg, var(--ink) 0%, rgba(15,13,20,0) 30%);
}
.hero-copy { position: relative; z-index: 1; padding: 120px 0 72px; max-width: 600px; }
.hero h1 { font-size: clamp(44px, 7vw, 80px); font-weight: 650; }
.hero .tagline {
  font: italic 400 clamp(20px, 2.4vw, 26px)/1.3 var(--serif);
  color: var(--gold-2); margin: 14px 0 18px;
}
.hero p.lede { color: #d6d0c5; margin: 0; font-size: 17.5px; max-width: 34em; }
.platforms { margin-top: 18px; font-size: 13.5px; color: var(--muted); letter-spacing: .02em; }
.platforms b { color: var(--text); font-weight: 600; }

@media (max-width: 760px) {
  .hero { min-height: 0; flex-direction: column; align-items: stretch; }
  .hero-art { position: relative; aspect-ratio: 16 / 10; }
  .hero::after { display: none; }
  .hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--ink) 0%, rgba(15,13,20,0) 35%); }
  .hero-copy { padding: 4px 0 48px; }
  .btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------- sections ---------- */
section { padding: 88px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(32px, 4vw, 46px); }
.section-head p { color: var(--muted); max-width: 30em; margin: 0; }

/* feature strip under the hero */
.feature { padding-top: 56px; }
.feature-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.feature-list li { padding-left: 34px; position: relative; color: #d6d0c5; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px;
  background: url("img/hexmonger-mark.svg") center / contain no-repeat; opacity: .9;
}
.feature-list strong { display: block; color: var(--text); font-family: var(--serif); font-size: 20px; font-weight: 600; margin-bottom: 2px; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shots a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--ink-3); }
.shots a:first-child { grid-column: 1 / -1; }
.shots img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .4s ease; }
.shots a:hover img { transform: scale(1.03); }
.shots-note { grid-column: 1 / -1; font-size: 13px; color: var(--faint); margin: 2px 0 0; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- in development ---------- */
.upcoming { background: linear-gradient(180deg, rgba(31,27,40,.0), rgba(31,27,40,.55) 30%, rgba(31,27,40,.55) 70%, rgba(31,27,40,0)); }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
.card {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: var(--ink-2); border: 1px solid var(--line);
}
.card-art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.card-body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card h3 { font-size: 32px; }
.card p { margin: 0; color: #cfc8bd; }
.card .meta { margin-top: auto; padding-top: 10px; font-size: 13.5px; color: var(--muted); }
.badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  padding: 8px 11px; border-radius: 999px;
  background: rgba(15,13,20,.82); color: var(--gold-2); border: 1px solid rgba(226,181,103,.35);
}

/* Cozy Necromancy art */
.art-necro { background: #2a2540; }
.art-necro img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }

/* Goblin Hunt art — pen-and-ink on paper, built from the game's own sprites */
.art-goblin {
  background:
    repeating-linear-gradient(-38deg, rgba(23,20,15,.05) 0 1px, transparent 1px 7px),
    var(--paper);
  color: var(--paper-ink);
  display: grid; place-items: center;
}
.art-goblin .ink-frame {
  position: absolute; inset: 14px; border: 2.5px solid var(--paper-ink);
  outline: 1px solid var(--paper-ink); outline-offset: -7px;
}
.art-goblin .sprites { position: absolute; inset: 0; }
.art-goblin .sprites img { position: absolute; image-rendering: pixelated; mix-blend-mode: multiply; }
.art-goblin .s-house { width: 34%; left: 8%; bottom: 12%; }
.art-goblin .s-barrow { width: 20%; right: 11%; bottom: 20%; }
.art-goblin .s-tower { width: 7%; right: 40%; bottom: 16%; }
.art-goblin .s-tower2 { width: 5%; right: 34%; bottom: 26%; }
.art-goblin .title-plate {
  position: relative; text-align: center; padding: 10px 22px 12px;
  background: var(--paper); border: 2px solid var(--paper-ink);
  transform: translateY(-38%);
}
.art-goblin .title-plate span {
  display: block; font: 700 clamp(26px, 3.4vw, 40px)/1 var(--serif);
  letter-spacing: .06em; text-transform: uppercase;
}
.art-goblin .title-plate em { display: block; font: italic 400 14px/1.2 var(--serif); margin-top: 6px; }
.art-goblin .blood { color: #9d1a1a; }
.art-goblin::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
  background: linear-gradient(0deg, rgba(23,20,15,.12), transparent);
}

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.about-grid h2 { font-size: clamp(32px, 4vw, 46px); }
.about-copy p { margin: 0 0 16px; color: #d6d0c5; font-size: 17.5px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.pillar { border-top: 1px solid var(--line); padding-top: 14px; }
.pillar b { display: block; font-family: var(--serif); font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.pillar span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .pillars { grid-template-columns: 1fr; }
}

/* ---------- contact / footer ---------- */
.contact { padding: 72px 0 80px; border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact h2 { font-size: 30px; margin-bottom: 28px; }
.contact h3 { font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.contact ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.contact a { text-decoration: none; }
.contact a:hover { text-decoration: underline; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; gap: 28px; } }

.site-footer { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--faint); font-size: 13.5px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ---------- 404 ---------- */
.lost { min-height: calc(100vh - 64px - 90px); display: grid; place-items: center; text-align: center; padding: 64px 0; }
.lost img { width: 72px; margin: 0 auto 24px; opacity: .9; }
.lost h1 { font-size: clamp(36px, 6vw, 60px); margin-bottom: 12px; }
.lost p { color: var(--muted); margin: 0 auto; max-width: 30em; }
.lost .btns { justify-content: center; }

/* whole card clickable through its title link */
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card .meta a { position: relative; z-index: 2; }
.card:has(.card-link):hover { border-color: rgba(226,181,103,.5); }
