/* Shared chrome for perks / crafting / professions pages */
:root {
  --bg-deep: #06080e;
  --bg: #0c1018;
  --panel: #121a24;
  --panel-2: #182230;
  --gold: #c5a059;
  --gold-bright: #f0d088;
  --ink: #dce4f0;
  --muted: #8090a8;
  --ember: #e06030;
  --rule: rgba(197, 160, 89, 0.22);
  --display: "Cinzel", serif;
  --body: "EB Garamond", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body {
  background-image:
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(197, 160, 89, 0.08), transparent 55%),
    linear-gradient(180deg, #06080e 0%, #0c1018 40%, #080a10 100%);
  min-height: 100vh;
}
a { color: var(--gold-bright); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--ember); }
h1, h2, h3 {
  font-family: var(--display);
  color: var(--gold-bright);
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}
h1 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 900; }
h2 { font-size: clamp(1.2rem, 2vw, 1.55rem); color: var(--gold); }
h3 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); }

nav.site {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(to bottom, rgba(6, 8, 14, 0.96), rgba(6, 8, 14, 0.88));
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(10px);
}
nav.site .inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.75rem 1.25rem; flex-wrap: wrap;
}
nav.site .brand {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--gold-bright);
}
nav.site .brand img { width: 30px; height: 30px; }
nav.site ul {
  list-style: none; display: flex; gap: 1rem; margin: 0; padding: 0; flex-wrap: wrap;
}
nav.site ul a {
  font-family: var(--display); font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink);
}
nav.site ul a.active { color: var(--gold-bright); }
nav.site .play {
  background: linear-gradient(to bottom, var(--gold), #8a6a30);
  color: #1a120c; font-family: var(--display); font-weight: 700;
  padding: 0.5rem 1rem; border-radius: 2px; letter-spacing: 0.12em;
  text-transform: uppercase; font-size: 0.72rem; border: 1px solid var(--gold-bright);
}

.page-hero {
  text-align: center;
  padding: 2.5rem 1.25rem 2rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.page-hero .bg-camp {
  position: absolute; inset: 0;
  background: center/cover no-repeat url("/images/camp-ref-itch.png");
  opacity: 0.18; filter: saturate(0.85) brightness(0.7);
  pointer-events: none;
}
.page-hero .inner { position: relative; max-width: 820px; margin: 0 auto; }
.page-hero .eyebrow {
  font-family: var(--display); color: var(--ember);
  letter-spacing: 0.22em; text-transform: uppercase; font-size: 0.75rem;
}
.page-hero p { color: var(--muted); margin: 0.6rem auto 0; font-size: 1.05rem; }
.page-hero .links {
  margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
}
.page-hero .links a {
  font-family: var(--display); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--rule); padding: 0.4rem 0.75rem; border-radius: 2px; background: var(--panel);
}

.container { max-width: 1180px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.section { margin-bottom: 2.5rem; }
.lead { color: var(--muted); max-width: 720px; margin: 0 0 1.25rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
}
.card {
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1rem 1.1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: border-color 0.15s, transform 0.12s;
}
.card:hover { border-color: rgba(197, 160, 89, 0.45); transform: translateY(-1px); }
.card .tier {
  font-family: var(--mono); font-size: 0.68rem; color: var(--gold);
  letter-spacing: 0.08em;
}
.card p { margin: 0.35rem 0 0; font-size: 0.9rem; color: var(--muted); }
.card .icon { font-size: 1.4rem; margin-bottom: 0.25rem; }
.card .icon.icon-art {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.45rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--rule);
  image-rendering: pixelated;
}
.card .icon.icon-art img {
  width: 44px; height: 44px;
  object-fit: contain;
  image-rendering: pixelated;
}
.card .tier {
  display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap;
}
.card .tier-badge {
  width: 26px; height: 26px;
  object-fit: contain;
  flex-shrink: 0;
  image-rendering: auto;
}
.card-perk { min-height: 9.5rem; }

.stat-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.65rem; border-radius: 999px;
  border: 1px solid var(--rule); font-family: var(--display);
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; background: var(--panel); color: var(--ink);
}
.stat-pill.active { border-color: var(--gold); color: var(--gold-bright); background: rgba(197, 160, 89, 0.12); }
.stat-pill .dot {
  width: 0.75rem; height: 0.75rem; border-radius: 50%;
}

.filters { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.25rem; }

table.data {
  width: 100%; border-collapse: collapse; font-size: 0.9rem;
  background: var(--panel); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden;
}
table.data th {
  text-align: left; font-family: var(--display); font-size: 0.7rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold);
  padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--rule);
  background: rgba(0, 0, 0, 0.25);
}
table.data td {
  padding: 0.55rem 0.8rem; border-bottom: 1px solid rgba(100, 140, 180, 0.08);
  color: var(--ink); vertical-align: top;
}
table.data tr:last-child td { border-bottom: 0; }
table.data .muted { color: var(--muted); font-size: 0.85rem; }

.loading { color: var(--muted); font-style: italic; padding: 2rem; text-align: center; }

footer.site {
  text-align: center; padding: 2rem 1rem; border-top: 1px solid var(--rule);
  color: var(--muted); font-size: 0.85rem;
}
footer.site .links a {
  margin: 0 0.55rem; font-family: var(--display); font-size: 0.7rem;
  letter-spacing: 0.1em; text-transform: uppercase;
}

.hero-camp-strip {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.25rem; align-items: stretch;
  margin-bottom: 2rem;
}
@media (max-width: 800px) {
  .hero-camp-strip { grid-template-columns: 1fr; }
  nav.site ul { display: none; }
}
.camp-shot {
  border: 1px solid var(--rule); border-radius: 4px; overflow: hidden;
  min-height: 200px;
  background: center/cover no-repeat url("/images/camp-ref-itch.png");
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.camp-copy {
  background: var(--panel); border: 1px solid var(--rule); border-radius: 4px;
  padding: 1.1rem 1.2rem;
}
.camp-copy ul { margin: 0.5rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.92rem; }

.badge {
  display: inline-block; font-family: var(--mono); font-size: 0.65rem;
  padding: 2px 6px; border-radius: 2px; border: 1px solid var(--rule); color: var(--gold);
}
