/*
Theme Name: Ad The Jokester
Theme URI: https://adthejokester.com
Author: AdTheJokester Studio
Author URI: https://adthejokester.com
Description: Production-ready underground internet magazine and horror zine theme. Comic book aesthetics, Gen-Z culture, futuristic editorial layouts, 3D ebook vault, and cult digital lore. Normal is boring.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: adthejokester
Tags: news, entertainment, dark-mode, custom-post-types, grid-layout, accessibility-ready, editorial
*/

:root {
  /* Brand Color Palette */
  --bg-primary: #070708;
  --bg-secondary: #111113;
  --bg-tertiary: #19191d;
  --color-yellow: #F3E43A;
  --color-pink: #FF356E;
  --color-cyan: #37D5E8;
  --color-offwhite: #EEE9DC;
  --color-muted: #8E8A82;
  --color-border: #222227;
  --color-border-bright: #33333b;

  /* Accent Gradients & Shadows */
  --shadow-brutal-yellow: 5px 5px 0px #F3E43A;
  --shadow-brutal-pink: 5px 5px 0px #FF356E;
  --shadow-brutal-cyan: 5px 5px 0px #37D5E8;
  --shadow-brutal-dark: 6px 6px 0px #000000;
  --shadow-brutal-white: 4px 4px 0px #EEE9DC;

  /* Typography */
  --font-display: 'Bebas Neue', 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-mono: 'Space Mono', 'JetBrains Mono', monospace;

  /* Layout & Spacing */
  --container-max: 1380px;
  --container-reading: 780px;
  --header-height: 72px;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;

  /* Transition Speeds */
  --ease-brutal: cubic-bezier(0.2, 1, 0.3, 1);
}

/* Universal Reset & Base Rules */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--color-offwhite);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background-color: var(--bg-primary);
  color: var(--color-offwhite);
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Subtle overall background noise & comic grain overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  background-image: 
    radial-gradient(rgba(243, 228, 58, 0.03) 1px, transparent 1px),
    radial-gradient(rgba(55, 213, 232, 0.02) 1px, transparent 1px);
  background-size: 24px 24px, 48px 48px;
  background-position: 0 0, 12px 12px;
  z-index: 9999;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-offwhite);
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

h1 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

p {
  margin-bottom: 1.25rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s var(--ease-brutal), border-color 0.15s var(--ease-brutal), transform 0.15s var(--ease-brutal);
}

a:hover, a:focus {
  color: var(--color-yellow);
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

ul, ol {
  list-style-position: inside;
}

::selection {
  background-color: var(--color-yellow);
  color: var(--bg-primary);
}

/* Screen reader only utility */
.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.screen-reader-text:focus {
  position: fixed !important;
  top: 10px;
  left: 10px;
  z-index: 100000;
  width: auto !important;
  height: auto !important;
  padding: 12px 20px !important;
  background: var(--color-yellow);
  color: var(--bg-primary);
  clip: auto !important;
  text-decoration: none;
  font-weight: 900;
  font-family: var(--font-mono);
  box-shadow: var(--shadow-brutal-dark);
}
