/* GoodHandGames – site styles */
:root {
  --bg: #0d0b0a;
  --bg-2: #16120f;
  --panel: #1c1713;
  --line: #3a2f24;
  --text: #e6dcc8;
  --muted: #a8998a;
  --gold: #c9a24a;
  --gold-bright: #e6c36a;
  --red: #9b2323;
  --red-glow: rgba(190, 40, 30, 0.35);
  --max: 1100px;
  --head: "Cinzel", Georgia, serif;
  --body: "EB Garamond", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(ellipse at 50% -10%, #2a1d14 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--body);
  font-size: 1.2rem;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-bright); }
a:hover { color: #fff; }

h1, h2, h3, .brand, .btn, nav a {
  font-family: var(--head);
  letter-spacing: 0.06em;
}
h1 { font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.1; margin: 0 0 0.5rem; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); color: var(--gold); margin: 0 0 1rem; }
h3 { font-size: 1.25rem; color: var(--gold-bright); margin: 0 0 0.4rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 64px 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13, 11, 10, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-size: 1.25rem; font-weight: 700;
}
.brand svg { width: 34px; height: 40px; flex: none; }
.brand span b { color: var(--gold); font-weight: 700; }
nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; }
nav a {
  color: var(--muted); text-decoration: none; font-size: 0.9rem;
  text-transform: uppercase; padding: 4px 0; border-bottom: 2px solid transparent;
}
nav a:hover, nav a[aria-current="page"] { color: var(--gold-bright); border-bottom-color: var(--gold); }

/* Hero */
.hero {
  position: relative; text-align: center; padding: 110px 0 100px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: center / cover no-repeat;
  opacity: 0.22; filter: saturate(0.6) sepia(0.4);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, var(--bg) 75%);
}
.hero > .wrap { position: relative; z-index: 1; }
.eyebrow {
  font-family: var(--head); text-transform: uppercase; letter-spacing: 0.25em;
  color: var(--gold); font-size: 0.85rem; margin-bottom: 14px;
}
.lead { font-size: 1.35rem; color: var(--muted); max-width: 720px; margin: 0 auto 30px; }
.divider {
  width: 220px; height: 14px; margin: 18px auto;
  background:
    linear-gradient(var(--gold), var(--gold)) left center / 90px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right center / 90px 1px no-repeat;
  position: relative;
}
.divider::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px;
  background: var(--gold); transform: translate(-50%, -50%) rotate(45deg);
}

/* Buttons */
.btn {
  display: inline-block; padding: 13px 28px; margin: 6px;
  border: 1px solid var(--gold); color: var(--gold-bright); background: rgba(0,0,0,0.35);
  text-decoration: none; text-transform: uppercase; font-size: 0.9rem; cursor: pointer;
  transition: box-shadow 0.2s, background 0.2s, color 0.2s;
}
.btn:hover { background: var(--red); color: #fff; box-shadow: 0 0 22px var(--red-glow); border-color: #d06a4a; }
.btn.primary { background: var(--red); color: #fff; border-color: #b8553a; }
.btn.primary:hover { background: #b52b2b; }

/* Panels / cards */
.panel {
  background: var(--panel); border: 1px solid var(--line);
  box-shadow: inset 0 0 40px rgba(0,0,0,0.5);
  padding: 28px;
}
.grid { display: grid; gap: 22px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.game-card { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; padding: 0; overflow: hidden; }
.game-card .art { min-height: 320px; background: #000 center / cover no-repeat; position: relative; }
.game-card .body { padding: 32px; }
@media (max-width: 760px) { .game-card { grid-template-columns: 1fr; } .game-card .art { min-height: 220px; } }

.badge {
  display: inline-block; font-family: var(--head); font-size: 0.75rem; letter-spacing: 0.18em;
  text-transform: uppercase; padding: 5px 12px; border: 1px solid var(--red);
  color: #f1b9a8; background: rgba(155, 35, 35, 0.25); margin-bottom: 14px;
}
.meta { color: var(--muted); font-size: 1rem; margin: 0 0 16px; }
.meta b { color: var(--text); font-weight: 500; }

.feature h3::before { content: "◆ "; color: var(--red); font-size: 0.8em; }
.feature p { margin: 0; color: var(--muted); }

.class-card { text-align: center; }
.class-card .icon { font-size: 2rem; color: var(--gold); line-height: 1; margin-bottom: 8px; font-family: var(--head); }

/* Screenshot placeholders */
.shot {
  aspect-ratio: 16 / 9; background: #000 center / cover no-repeat; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--muted);
  font-family: var(--head); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.shot.empty { background: repeating-linear-gradient(45deg, #15110e, #15110e 12px, #191410 12px, #191410 24px); }

/* Devlog */
.post { margin-bottom: 40px; }
.post .date { color: var(--muted); font-size: 0.95rem; margin-bottom: 10px; display: block; }
.post img { border: 1px solid var(--line); margin: 18px 0; }
.post ul { padding-left: 1.2em; }

/* Forms */
form label { display: block; font-family: var(--head); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin: 16px 0 6px; }
input, textarea, select {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 1.05rem;
  background: #0f0c0a; color: var(--text); border: 1px solid var(--line);
}
input:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(201,162,74,0.2); }
textarea { min-height: 160px; resize: vertical; }
.hidden { display: none; }

.socials { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.socials a { display: flex; gap: 10px; align-items: center; text-decoration: none; }

/* Draft placeholders – remove the class once real text is in */
.todo {
  background: rgba(201, 162, 74, 0.14); outline: 1px dashed var(--gold);
  padding: 0 4px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line); padding: 30px 0; margin-top: 40px;
  color: var(--muted); font-size: 0.95rem; text-align: center;
}
.site-footer nav ul { justify-content: center; margin-bottom: 10px; }

.center { text-align: center; }
.page-title { padding: 70px 0 30px; text-align: center; }
