/* pixel-content.css — shared content components for the PixelQuest pages
   (About, Pages, Contact). Pairs with rs-theme.css (which provides the shell,
   palette vars, fonts, and the walking-hero ground band). */
:root {
  --display: 'Pixelify Sans', 'VT323', monospace;
  --card: rgba(24, 20, 18, 0.72);
  --card-line: rgba(235, 240, 250, 0.15);
  --rose: #b4bac4;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
}
.section {
  margin: 0 0 22px;
}

/* Typographic polish: balance headings (even line lengths, no stranded word)
   and keep paragraphs from orphaning a single word on the last line. */
h1,
h2,
h3,
.pc-h1,
.pc-h2 {
  text-wrap: balance;
}
p,
.lead,
.panel-text {
  text-wrap: pretty;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--read);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.label::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 150, 90, 0.14);
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 34px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(2px);
}
/* Premium spacing: equal padding on all sides + a consistent label-to-content
   gap on every panel-style card. */
.card .panel-head {
  margin-bottom: 18px;
}
/* Stacked top-level cards need vertical breathing room so they don't touch /
   collide — grid-item cards are spaced by their container's `gap` instead, so
   this is scoped to direct children of the page wrapper only. */
.wrap > .card + .card,
main > .card + .card {
  margin-top: 18px;
}
.ic {
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--read);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 3px solid var(--ink);
  padding: 12px 16px;
  cursor: pointer;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.4), inset -2px -2px 0 rgba(0, 0, 0, 0.4),
    0 5px 0 rgba(0, 0, 0, 0.4);
}
.btn:hover {
  filter: brightness(1.12);
}
.btn:active {
  transform: translateY(4px);
  box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.45), inset -2px -2px 0 rgba(255, 255, 255, 0.25),
    0 1px 0 rgba(0, 0, 0, 0.4);
}
/* Two-class selectors (.btn.btn-*) so the button text colour beats the global
   `body.rs-site a { color: var(--gold) }` rule — otherwise .btn-gold renders
   gold text on a gold background (invisible "View Work" / "Résumé" CTAs). */
.btn.btn-gold {
  background: var(--gold);
  color: #3a2606;
}
.btn.btn-ghost {
  background: var(--panel-2);
  color: var(--text);
  border: 2px solid var(--panel);
}
.btn.btn-red {
  background: var(--red);
  color: var(--ink);
}
/* "Coming soon" — a non-interactive, visibly inactive button (use on a <span>,
   not an <a>, so there's nothing to click). */
.btn.btn-soon {
  background: var(--panel-2);
  color: #aab0c0;
  cursor: not-allowed;
  opacity: 0.78;
}
.btn.btn-soon:hover {
  filter: none;
}
.btn.btn-soon:active {
  transform: none;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.4), inset -2px -2px 0 rgba(0, 0, 0, 0.4),
    0 5px 0 rgba(0, 0, 0, 0.4);
}

/* skill / tech chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  font-family: var(--read);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: #d5d8de;
  background: #1b1917;
  padding: 6px 11px;
  border-radius: 7px;
  border: 1px solid #2d2926;
  box-shadow: none;
  transition: transform 0.12s var(--nc-ease, ease), background 0.12s, border-color 0.12s;
}
.chip:hover {
  transform: translateY(-2px);
  background: #24211e;
  border-color: #45403b;
}

/* hero avatar (Home + About) — a clean pixel-framed monogram panel.
   Replaces the old procedurally-drawn canvas portrait. */
.hero-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.avatar {
  width: 168px;
  height: 196px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: linear-gradient(160deg, #1e1815 0%, #0f0d0c 55%, #060708 100%);
  border: 3px solid var(--ink);
  box-shadow: inset 3px 3px 0 rgba(255, 255, 255, 0.08),
    inset -3px -3px 0 rgba(0, 0, 0, 0.5), 0 8px 0 rgba(0, 0, 0, 0.32);
}
/* a few faint stars inside the panel so it reads as a night-sky badge,
   not an empty box */
.avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(1.5px 1.5px at 22% 24%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1.5px 1.5px at 78% 18%, rgba(255, 225, 200, 0.45), transparent),
    radial-gradient(1.5px 1.5px at 66% 74%, rgba(255, 255, 255, 0.4), transparent);
}
.avatar-mark {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-weight: 700;
  font-size: 68px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--gold);
  text-shadow: 3px 3px 0 #0b1022;
}

/* labelled sidebar items (Home + About) */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sb-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
}
.sb-item .ic {
  margin-top: 2px;
}
.sb-item .k {
  font-family: var(--read);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 3px;
  line-height: 1.4;
}
.sb-item .v {
  font-size: 18px;
  color: var(--text);
  line-height: 1.3;
}

h1.pc-h1,
h2.pc-h2 {
  font-family: var(--display);
  font-weight: 600;
  color: #fff;
  text-shadow: 3px 3px 0 #000;
  margin: 12px 0;
}
h1.pc-h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.05;
}
h2.pc-h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.1;
}
.lead {
  color: var(--rose);
  font-size: 19px;
  line-height: 1.45;
  max-width: 60ch;
}
.muted {
  color: var(--muted);
}
