/* ============================================================
   The Chronicle — shared stylesheet
   Gold & black theme. Used by every page on the site.
   ============================================================ */

:root {
  --black:        #0a0a0a;
  --black-soft:   #121212;
  --panel:        #17150f;
  --panel-border: #2a2416;
  --gold:         #d4af37;
  --gold-bright:  #f1cf5b;
  --gold-dim:     #9a7d28;
  --text:         #ece7d8;
  --text-dim:     #a39e8f;
  --radius:       14px;
  --maxw:         1100px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% -10%, #1c1708 0%, rgba(28,23,8,0) 60%),
    var(--black);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--panel-border);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: 0.5px;
  color: var(--text);
}
.brand:hover { text-decoration: none; color: var(--text); }
.brand .mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--serif);
  font-weight: 700;
}
.brand b { color: var(--gold); font-weight: 700; }
.nav a { color: var(--text-dim); margin-left: 22px; font-size: 0.95rem; }
.nav a:hover { color: var(--gold); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 72px 20px 40px;
}
.hero .eyebrow {
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0 0 14px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  margin: 0 0 16px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-dim));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.08rem;
}
.rule {
  width: 90px; height: 2px;
  margin: 26px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ---------- Search ---------- */
.search-wrap { max-width: 520px; margin: 32px auto 0; }
.search {
  width: 100%;
  padding: 13px 18px;
  background: var(--black-soft);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.search:focus {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.12);
}

/* ---------- Game grid ---------- */
.section-title {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 1.5rem;
  margin: 56px 0 6px;
}
.section-sub { color: var(--text-dim); margin: 0 0 24px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  padding-bottom: 20px;
}
.card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--panel), var(--black-soft));
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-dim);
  box-shadow: 0 14px 30px rgba(0,0,0,0.5);
  text-decoration: none;
}
.card .thumb {
  height: 150px;
  background: linear-gradient(135deg, #241d0b, #0e0e0e);
  display: grid;
  place-items: center;
  color: var(--gold-dim);
  font-family: var(--serif);
  font-size: 2.2rem;
  border-bottom: 1px solid var(--panel-border);
}
.card .body { padding: 18px 18px 20px; }
.card h3 { margin: 0 0 6px; color: var(--text); font-size: 1.15rem; }
.card:hover h3 { color: var(--gold); }
.card p { margin: 0 0 12px; color: var(--text-dim); font-size: 0.92rem; }
.badge {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  padding: 3px 10px;
}
.no-results {
  color: var(--text-dim);
  text-align: center;
  padding: 40px 0;
  display: none;
}

/* ---------- Article (game page) ---------- */
.article { padding: 40px 0 30px; }
.breadcrumb { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 20px; }
.breadcrumb a { color: var(--gold-dim); }

.article h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 10px;
  color: var(--gold);
}
.meta {
  color: var(--text-dim);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  margin-bottom: 8px;
}
.meta .badge { color: var(--gold); }

.article h2 {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 1.5rem;
  margin: 44px 0 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--panel-border);
}
.article h3 { color: var(--gold-bright); margin: 28px 0 6px; font-size: 1.15rem; }
.article p, .article li { color: var(--text); }
.article ul, .article ol { padding-left: 22px; }
.article li { margin: 6px 0; }
.article li::marker { color: var(--gold); }

.callout {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 20px 0;
  color: var(--text-dim);
}
.callout b { color: var(--gold); }

/* checklist look for ordered steps */
.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps > li {
  position: relative;
  padding: 10px 0 10px 46px;
  border-bottom: 1px dashed var(--panel-border);
}
.steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 0; top: 10px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: var(--panel);
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  border-radius: 50%;
  font-size: 0.9rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.95rem;
}
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--panel-border); }
th { color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--panel-border);
  margin-top: 60px;
  padding: 34px 0;
  color: var(--text-dim);
  font-size: 0.92rem;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}
.social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 8px 16px;
  transition: border-color .15s, color .15s;
}
.social a:hover { border-color: var(--gold-dim); color: var(--gold); text-decoration: none; }
.social svg { width: 16px; height: 16px; fill: currentColor; }

@media (max-width: 560px) {
  .nav a { margin-left: 14px; }
  .site-footer .container { flex-direction: column; text-align: center; }
}
