/* jeffrude.com — site.css
   Single source of truth for all sizing and layout.
   Theme colors come from theme.js.
*/

* { margin:0; padding:0; box-sizing:border-box; }

/* ── TYPOGRAPHY SCALE ──────────────────────────────────────
   One scale used everywhere. Nothing overrides this.
   xs  = 12px  labels, tags, small meta
   sm  = 15px  tagline, footer, counter label
   md  = 17px  body text, card body, nav, switcher
   lg  = 22px  card links, marquee
   xl  = 28px  section labels, card titles (Press Start 2P)
   hero= clamp  page title
   icon= 52px  hero icon
*/

body {
  font-family: 'Courier New', monospace;
  font-size: 17px;
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
}

/* ── BACKGROUND PATTERN ── */
.bg-pattern { position:fixed; inset:0; z-index:0; pointer-events:none; }
.page-content { position:relative; z-index:1; }

/* ── MARQUEE ── */
.marq {
  overflow: hidden;
  white-space: nowrap;
  padding: 6px 0;
  font-family: 'VT323', monospace;
  font-size: 17px;
  letter-spacing: 2px;
}
.marq-inner {
  display: inline-block;
  animation: scroll-left 22s linear infinite;
}
@keyframes scroll-left {
  from { transform: translateX(100vw); }
  to   { transform: translateX(-100%); }
}

/* ── HEADER ── */
.site-header {
  padding: 16px 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.site-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 13px;
  text-decoration: none;
  letter-spacing: 2px;
  justify-self: start;
}
.site-nav {
  display: flex;
  gap: 32px;
  justify-self: center;
}
.nav-link {
  font-family: 'VT323', monospace;
  font-size: 17px;
  text-decoration: none;
  letter-spacing: 2px;
  transition: opacity 0.15s;
  border: none;
  opacity: 0.45;
}
.nav-link:hover  { opacity: 0.85; }
.nav-link.active { opacity: 1; }

/* ── HERO ── */
.hero {
  text-align: center;
  padding: 40px 24px 24px;
}
.hero-icon {
  font-size: 44px;
  margin-bottom: 16px;
  display: block;
  animation: bounce 2.5s ease-in-out infinite;
}
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@media(prefers-reduced-motion:reduce) { .hero-icon { animation:none; } }

.page-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(14px, 2.5vw, 22px);
  margin-bottom: 10px;
  line-height: 1.5;
  letter-spacing: 2px;
}

/* ── DIVIDER ── */
.rule {
  border: none;
  margin: 24px 32px;
}

/* ── SECTION LABEL ── */
.section-label {
  display: block;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  padding: 28px 32px 12px;
  max-width: 1100px;
  margin: 0 auto;
  border: none !important;
}

/* ── GRID ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  padding: 0 32px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ── CARDS ── */
.card {
  padding: 22px;
  transition: border-color 0.2s, transform 0.1s;
}
.card:hover { transform: translateY(-2px); }

.card-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.card-body {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 14px;
}
.card-link {
  font-family: 'VT323', monospace;
  font-size: 22px;
  text-decoration: none;
  letter-spacing: 1px;
  display: inline-block;
  transition: letter-spacing 0.15s;
}
.card-link:hover { letter-spacing: 3px; }

/* ── TAGS ── */
.tag {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  margin: 3px 2px 0 0;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ── HIT COUNTER ── */
.counter-wrap {
  text-align: center;
  padding: 16px;
  font-family: 'VT323', monospace;
}
.counter-label {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.4;
  margin-bottom: 6px;
}
.hit-counter {
  font-size: 36px;
  padding: 4px 16px;
  letter-spacing: 6px;
  display: inline-block;
  background: #000;
}

/* ── UNDER CONSTRUCTION ── */
.under-con {
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  border: 2px dashed currentColor;
  padding: 6px 12px;
  opacity: 0.5;
  letter-spacing: 1px;
}

/* ── STYLE SWITCHER BAR ── */
.theme-bar {
  padding: 10px 32px;
}
.style-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-family: 'VT323', monospace;
  font-size: 17px;
  letter-spacing: 2px;
}
.style-label {
  font-size: 17px;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.45;
}
.style-btn {
  font-family: 'VT323', monospace;
  font-size: 17px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.15s;
}
.style-btn:hover  { opacity: 0.85; }
.style-btn.active { opacity: 1; }

/* ── FOOTER ── */
.site-footer {
  padding: 20px 32px;
  text-align: center;
  font-family: 'VT323', monospace;
  font-size: 17px;
  letter-spacing: 1px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.footer-link {
  text-decoration: none;
  letter-spacing: 2px;
  font-size: 17px;
  opacity: 0.6;
}
.footer-link:hover { opacity: 1; }

/* ── BLINK ── */
.blink { animation: blink-k 0.8s step-end infinite; }
@keyframes blink-k { 50%{opacity:0} }

/* ── RESPONSIVE ── */
@media(max-width:600px) {
  .site-header { grid-template-columns: 1fr; gap:10px; text-align:center; }
  .site-name { justify-self: center; }
  .site-nav { gap: 16px; }
  .grid { padding: 0 16px 32px; }
  .rule { margin: 16px; }
}

/* ── FEATURED CARD ── */
.featured-card {
  margin: 0 32px 32px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 32px;
}
.featured-card .card {
  padding: 32px;
}
.featured-card .card-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0.45;
  margin-bottom: 14px;
}
.featured-card .card-title {
  font-size: 13px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.featured-card .card-body {
  font-size: 17px;
  line-height: 1.9;
  margin-bottom: 20px;
}
.featured-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
@media(max-width:700px) {
  .featured-card .card { grid-template-columns: 1fr; }
  .featured-card { padding: 0 16px; }
}
