/*
Theme Name: Red Panda Collective
Theme URI: https://example.com
Author: Red Panda Media Group
Description: One-page dark landing theme for a collective of veteran SDCC attendees. Halftone comic-print accents, off-register display type, minimal copy. All page copy is editable via Appearance > Customize > Landing Page Copy.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: red-panda-collective
*/

/* ---------- Tokens ---------- */
:root {
  --ink: #15161b;        /* page background */
  --panel: #1d1f26;      /* raised surfaces */
  --line: #2c2f39;       /* hairlines */
  --cream: #eee8da;      /* primary text (logo cream) */
  --dim: #9b968b;        /* secondary text */
  --rust: #d0622d;       /* panda rust — primary accent */
  --sand: #c6a566;       /* panda sand — secondary accent */
  --max: 68rem;
  --pad: clamp(1.25rem, 5vw, 3rem);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: "Archivo", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sand); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--rust);
  color: var(--ink);
  padding: 0.6rem 1rem;
  z-index: 99;
  font-family: "IBM Plex Mono", monospace;
  text-decoration: none;
}
.skip-link:focus { left: 0.75rem; top: 0.75rem; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* Mono utility voice — the "comms readout" */
.mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------- Header ---------- */
.site-head {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--cream);
}
.brand img { max-height: 44px; width: auto; }
.brand-name {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.head-status { color: var(--dim); }
.head-status::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--rust);
  margin-right: 0.5rem;
  vertical-align: 1px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
/* halftone burst — comic print texture, one corner only */
.hero::before {
  content: "";
  position: absolute;
  right: -18rem;
  top: -14rem;
  width: 46rem;
  height: 46rem;
  border-radius: 50%;
  background-image: radial-gradient(var(--rust) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  opacity: 0.14;
  -webkit-mask-image: radial-gradient(circle at center, #000 0%, transparent 68%);
          mask-image: radial-gradient(circle at center, #000 0%, transparent 68%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding-top: 6rem; padding-bottom: 4rem; }
.eyebrow { display: block; margin-bottom: 1.5rem; color: var(--sand); }

.hero h1 {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 800;
  font-size: clamp(3.25rem, 11vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 1.75rem;
  /* off-register comic print */
  text-shadow:
    3px 3px 0 rgba(208, 98, 45, 0.55),
    -3px -3px 0 rgba(198, 165, 102, 0.28);
}
.hero-sub {
  max-width: 34rem;
  color: var(--dim);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  margin: 0 0 2.5rem;
  /* hidden until the hero is hovered or focused */
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.hero-inner:hover .hero-sub,
.hero-inner:focus-within .hero-sub {
  opacity: 1;
  transform: translateY(0);
}
/* no hover on touch devices — keep the byline visible */
@media (hover: none) {
  .hero-sub { opacity: 1; transform: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  position: relative;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--rust);
  padding: 1rem 2.25rem;
  border: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--sand); transform: translateY(-2px); }
/* radar ping */
.btn-ping::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--rust);
  animation: ping 2.6s ease-out infinite;
  pointer-events: none;
}
@keyframes ping {
  0%   { opacity: 0.8; transform: scale(1); }
  100% { opacity: 0;   transform: scale(1.25); }
}
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--sand);
}
.btn-ghost:hover { background: var(--sand); color: var(--ink); transform: translateY(-2px); }

/* ---------- About ---------- */
.about { border-bottom: 1px solid var(--line); }
.about .wrap { padding-top: 6rem; padding-bottom: 6rem; }
.about p {
  font-size: clamp(1.35rem, 3.4vw, 2rem);
  line-height: 1.4;
  max-width: 42rem;
  margin: 1.25rem 0 0;
}
.about p strong { color: var(--rust); font-weight: 500; }

/* Rotating field-notes stack — all blurbs share one grid cell, only .is-active shows */
.blurb-stack {
  display: grid;
  max-width: 42rem;
  margin-top: 1.25rem;
}
.blurb {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-size: clamp(1.35rem, 3.4vw, 2rem);
  line-height: 1.4;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0s linear 0.7s;
}
.blurb.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s ease, visibility 0s linear 0s;
}

/* ---------- Credibility strip ---------- */
.creds { border-bottom: 1px solid var(--line); background: var(--panel); }
.creds .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 0;
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
}
.creds span { color: var(--cream); }
.creds span + span::before {
  content: "//";
  color: var(--rust);
  margin: 0 1.1rem;
}

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; }
.contact::before {
  content: "";
  position: absolute;
  left: -14rem;
  bottom: -14rem;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  background-image: radial-gradient(var(--sand) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  opacity: 0.1;
  -webkit-mask-image: radial-gradient(circle at center, #000 0%, transparent 68%);
          mask-image: radial-gradient(circle at center, #000 0%, transparent 68%);
  pointer-events: none;
}
.contact .wrap {
  position: relative;
  z-index: 1;
  padding-top: 7rem;
  padding-bottom: 7rem;
  text-align: center;
}
.contact h2 {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 700;
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  text-transform: uppercase;
  line-height: 1;
  margin: 0 0 2rem;
}

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line); }
.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

/* ---------- Contact page (/contact/ template) ---------- */
.contact-page {
  min-height: calc(100vh - 5rem);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.contact-page::before {
  content: "";
  position: absolute;
  left: -14rem;
  bottom: -14rem;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  background-image: radial-gradient(var(--sand) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  opacity: 0.1;
  -webkit-mask-image: radial-gradient(circle at center, #000 0%, transparent 68%);
          mask-image: radial-gradient(circle at center, #000 0%, transparent 68%);
  pointer-events: none;
}
.contact-page .wrap {
  position: relative;
  z-index: 1;
  padding-top: 4rem;
  padding-bottom: 4rem;
  text-align: center;
  max-width: 44rem;
}
.contact-page .eyebrow {
  display: block;
  margin-bottom: 1.25rem;
  color: var(--sand);
}
.contact-page-heading {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
  text-shadow:
    3px 3px 0 rgba(208, 98, 45, 0.55),
    -3px -3px 0 rgba(198, 165, 102, 0.28);
}
.contact-page-sub {
  color: var(--dim);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  margin: 0 auto 3rem;
  max-width: 34rem;
}
.contact-page-email {
  display: inline-block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--sand);
  text-decoration: none;
  padding: 0.15rem 0.25rem 0.5rem;
  border-bottom: 1px solid var(--sand);
  transition: color 0.25s ease, border-color 0.25s ease, letter-spacing 0.25s ease;
}
.contact-page-email:hover,
.contact-page-email:focus-visible {
  color: var(--rust);
  border-color: var(--rust);
  letter-spacing: 0.02em;
}

/* ---------- Motion & small screens ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn:hover { transition: none; transform: none; }
  .btn-ping::after { animation: none; opacity: 0; }
}
@media (max-width: 640px) {
  .head-status { display: none; }
  .hero { min-height: 86vh; }
  .creds .wrap { flex-direction: column; }
  .creds span + span::before { content: ""; margin: 0; }
}
