/*
Theme Name: Elliott Coe
Theme URI: https://example.com/elliott-coe
Author: Elliott Coe
Author URI: https://example.com
Description: A quiet, charcoal-and-grain personal theme for developers and game makers. Tracks projects as public journals via a custom "Project" post type, with linked posts, a typewriter hero, dark/light toggle, animated grid, and a hidden Konami easter egg.
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: elliott-coe
Tags: blog, portfolio, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ------------------------------------------------------------------
   Design tokens (ported from the original app's globals.css)
------------------------------------------------------------------ */
:root {
  --font-heading: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* Light mode — warm off-white, considered and quiet */
  --background: oklch(0.97 0.004 80);
  --foreground: oklch(0.22 0.005 60);
  --card: oklch(0.99 0.003 80);
  --card-foreground: oklch(0.22 0.005 60);
  --primary: oklch(0.55 0.14 38);
  --primary-foreground: oklch(0.98 0.005 80);
  --secondary: oklch(0.93 0.005 80);
  --secondary-foreground: oklch(0.28 0.005 60);
  --muted: oklch(0.93 0.005 80);
  --muted-foreground: oklch(0.5 0.006 60);
  --accent: oklch(0.91 0.01 80);
  --accent-foreground: oklch(0.28 0.005 60);
  --border: oklch(0.88 0.005 70);
  --radius: 0.5rem;

  --container: 48rem;
  --pad-x: 1.5rem;
}

html.dark {
  /* Dark mode — deep charcoal, off-white text */
  --background: oklch(0.215 0.003 60);
  --foreground: oklch(0.93 0.004 80);
  --card: oklch(0.255 0.003 60);
  --card-foreground: oklch(0.93 0.004 80);
  --primary: oklch(0.7 0.14 42);
  --primary-foreground: oklch(0.2 0.01 60);
  --secondary: oklch(0.3 0.004 60);
  --secondary-foreground: oklch(0.93 0.004 80);
  --muted: oklch(0.3 0.004 60);
  --muted-foreground: oklch(0.66 0.006 70);
  --accent: oklch(0.32 0.005 60);
  --accent-foreground: oklch(0.93 0.004 80);
  --border: oklch(1 0 0 / 9%);
}

/* ------------------------------------------------------------------
   Reset / base
------------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  background: var(--background);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--foreground);
  background: transparent;
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

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

/* ------------------------------------------------------------------
   Layout helpers
------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
}

.section {
  scroll-margin-top: 6rem;
  padding-block: 5rem;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  margin-top: 0.5rem;
}

.section-link {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s;
  white-space: nowrap;
}

.section-link:hover {
  color: var(--foreground);
}

/* ------------------------------------------------------------------
   Ambient animated grid + grain overlay
------------------------------------------------------------------ */
.bg-grid {
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 90vh;
  z-index: -10;
  background-image:
    linear-gradient(to right, color-mix(in oklch, var(--foreground) 100%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklch, var(--foreground) 100%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.08;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
}

html.dark .bg-grid {
  opacity: 0.13;
}

.grain-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  mix-blend-mode: overlay;
}

@media (prefers-reduced-motion: no-preference) {
  .bg-grid {
    animation: grid-drift 24s linear infinite;
  }
}

@keyframes grid-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 56px 56px, 56px 56px; }
}

/* ------------------------------------------------------------------
   Navigation
------------------------------------------------------------------ */
.site-nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  padding-inline: 1rem;
}

.nav-inner {
  margin-top: 1rem;
  display: flex;
  width: 100%;
  max-width: var(--container);
  align-items: center;
  justify-content: space-between;
  border-radius: 9999px;
  border: 1px solid transparent;
  padding-inline: 1rem;
  height: 3.5rem;
  transition: all 0.3s ease;
}

.nav-inner.scrolled {
  height: 3rem;
  border-color: var(--border);
  background: color-mix(in oklch, var(--background) 70%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-brand .dot {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
}

.nav-menu a {
  border-radius: 9999px;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.nav-menu a:hover {
  color: var(--foreground);
}

.theme-toggle {
  margin-left: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  color: var(--muted-foreground);
  transition: background 0.2s, color 0.2s;
}

.theme-toggle:hover {
  background: var(--accent);
  color: var(--foreground);
}

.theme-toggle svg {
  width: 1rem;
  height: 1rem;
}

.theme-toggle .icon-sun { display: none; }
html.dark .theme-toggle .icon-sun { display: block; }
html.dark .theme-toggle .icon-moon { display: none; }

/* ------------------------------------------------------------------
   Hero
------------------------------------------------------------------ */
.hero {
  position: relative;
  margin-inline: auto;
  display: flex;
  min-height: 78vh;
  max-width: var(--container);
  flex-direction: column;
  justify-content: center;
  padding-inline: var(--pad-x);
  padding-top: 8rem;
  padding-bottom: 3rem;
}

.hero-eyebrow {
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
}

.hero-title {
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  font-weight: 600;
  line-height: 1.05;
}

.hero-sub {
  margin-top: 1.75rem;
  display: flex;
  align-items: center;
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  color: var(--muted-foreground);
}

.hero-sub .typed {
  font-family: var(--font-heading);
  color: var(--foreground);
}

.caret {
  margin-left: 2px;
  display: inline-block;
  width: 2px;
  height: 1.5rem;
  transform: translateY(2px);
  background: var(--primary);
}

@media (prefers-reduced-motion: no-preference) {
  .caret { animation: caret-blink 1s steps(1) infinite; }
}

@keyframes caret-blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

/* ------------------------------------------------------------------
   Status line ("Now")
------------------------------------------------------------------ */
.status-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
  padding-block: 1.25rem;
  font-size: 0.875rem;
}

.status-now {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
}

.dot {
  position: relative;
  display: inline-flex;
  width: 0.5rem;
  height: 0.5rem;
  flex-shrink: 0;
}

.dot .core {
  position: relative;
  display: inline-flex;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--primary);
}

.pulse-dot {
  position: absolute;
  display: inline-flex;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--primary);
  animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--primary) 50%, transparent); }
  70% { box-shadow: 0 0 0 6px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ------------------------------------------------------------------
   Post list
------------------------------------------------------------------ */
.post-list {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 0;
}

.post-row {
  border-top: 1px solid var(--border);
}

.post-row a {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-inline: -1rem;
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  transition: background 0.2s;
}

.post-row a:hover {
  background: color-mix(in oklch, var(--accent) 40%, transparent);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.post-meta .mono { font-family: var(--font-mono); }

.post-meta .reading {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.badge-project {
  border-radius: 9999px;
  border: 1px solid color-mix(in oklch, var(--primary) 30%, transparent);
  padding: 0.0625rem 0.5rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: color-mix(in oklch, var(--primary) 90%, var(--foreground));
}

.post-row h3 {
  font-size: 1.25rem;
  font-weight: 500;
  transition: color 0.2s;
}

.post-row a:hover h3 {
  color: var(--primary);
}

.post-row p {
  color: var(--muted-foreground);
  text-wrap: pretty;
}

/* ------------------------------------------------------------------
   Project grid + cards
------------------------------------------------------------------ */
.project-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in oklch, var(--primary) 40%, transparent);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.35);
}

.project-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.project-card:hover .project-media img {
  transform: scale(1.05);
}

.project-media .status-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem;
}

.project-body-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.project-body h3 {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 1.125rem;
  font-weight: 500;
}

.project-body h3 .arrow {
  width: 1rem;
  height: 1rem;
  color: var(--muted-foreground);
  transition: transform 0.2s, color 0.2s;
}

.project-card:hover .arrow {
  transform: translate(2px, -2px);
  color: var(--primary);
}

.project-updated {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.project-desc {
  flex: 1;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.tag {
  border-radius: var(--radius);
  background: var(--secondary);
  color: var(--secondary-foreground);
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
}

.entry-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Status badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
  background: color-mix(in oklch, var(--card) 80%, transparent);
}

.status-badge.is-active {
  border-color: color-mix(in oklch, var(--primary) 40%, transparent);
  color: var(--primary);
}

.status-badge .led {
  position: relative;
  display: inline-flex;
  width: 0.375rem;
  height: 0.375rem;
}

.status-badge .led .core {
  position: relative;
  display: inline-flex;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: var(--muted-foreground);
}

.status-badge.is-active .led .core { background: var(--primary); }

.status-badge.is-active .led .pulse-dot {
  width: 0.375rem;
  height: 0.375rem;
}

/* ------------------------------------------------------------------
   About
------------------------------------------------------------------ */
.about-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: color-mix(in oklch, var(--foreground) 90%, transparent);
  text-wrap: pretty;
}

.about-body .accent { color: var(--primary); }

/* ------------------------------------------------------------------
   Article / single
------------------------------------------------------------------ */
.article {
  margin-inline: auto;
  max-width: var(--container);
  padding-inline: var(--pad-x);
  padding-top: 8rem;
  padding-bottom: 5rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.back-link:hover { color: var(--foreground); }
.back-link svg { width: 1rem; height: 1rem; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.article-meta .mono { font-family: var(--font-mono); }

.article h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.article-excerpt {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  text-wrap: pretty;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

/* Prose */
.prose {
  font-size: 1.0625rem;
  line-height: 1.75;
}

.prose > * + * { margin-top: 1.5rem; }

.prose h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2.5rem;
}

.prose p { color: color-mix(in oklch, var(--foreground) 92%, transparent); }

.prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose ul, .prose ol { padding-left: 1.5rem; }
.prose li + li { margin-top: 0.5rem; }

.prose blockquote {
  border-left: 2px solid var(--primary);
  padding-left: 1.25rem;
  font-style: italic;
  color: var(--muted-foreground);
  font-family: var(--font-heading);
  font-size: 1.25rem;
}

.prose img { border-radius: var(--radius); }

/* Code */
.prose pre,
.code-block {
  position: relative;
  margin-block: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: color-mix(in oklch, var(--card) 100%, transparent);
  overflow: hidden;
}

.prose pre {
  padding: 1.25rem 1rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
}

.prose :not(pre) > code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--secondary);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
}

.copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  color: var(--muted-foreground);
  background: color-mix(in oklch, var(--background) 70%, transparent);
  opacity: 0;
  transition: opacity 0.2s, color 0.2s;
}

.prose pre:hover .copy-btn,
.copy-btn:focus-visible { opacity: 1; }

.copy-btn:hover { color: var(--foreground); }

/* Journal / series navigation */
.journal-nav {
  display: grid;
  gap: 0.75rem;
  margin-top: 3.5rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

@media (min-width: 640px) {
  .journal-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.journal-nav a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1rem;
  transition: border-color 0.2s;
}

.journal-nav a:hover {
  border-color: color-mix(in oklch, var(--primary) 40%, transparent);
}

.journal-nav .label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.journal-nav .label svg { width: 0.75rem; height: 0.75rem; }
.journal-nav .next { align-items: flex-end; text-align: right; }
.journal-nav strong { font-weight: 500; font-family: var(--font-heading); }

/* Project hero (single-project) */
.project-hero {
  position: relative;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

.project-hero img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------------
   Footer
------------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  max-width: var(--container);
  margin-inline: auto;
  padding: 4rem var(--pad-x);
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.footer-brand p:first-child {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
}

.footer-brand .desc {
  margin-top: 0.75rem;
  max-width: 20rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

.footer-social {
  margin-top: 1.25rem;
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-social a { transition: color 0.2s; }
.footer-social a:hover { color: var(--foreground); }

.changelog-title {
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
}

.changelog {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 11rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  font-size: 0.875rem;
}

.changelog li { display: flex; gap: 0.75rem; }

.changelog .date {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.changelog .text {
  color: color-mix(in oklch, var(--foreground) 80%, transparent);
  text-wrap: pretty;
}

.footer-colophon {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 var(--pad-x) 2.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ------------------------------------------------------------------
   Konami easter egg
------------------------------------------------------------------ */
@keyframes glitch-shake {
  0%, 100% { transform: translate(0); filter: none; }
  20% { transform: translate(-3px, 2px); filter: hue-rotate(90deg) saturate(2); }
  40% { transform: translate(3px, -2px); filter: invert(0.2); }
  60% { transform: translate(-2px, -1px); filter: hue-rotate(-60deg); }
  80% { transform: translate(2px, 1px); filter: contrast(1.5); }
}

html.glitch-active { animation: glitch-shake 0.18s steps(2) 14; }

.konami-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  background: color-mix(in oklch, var(--background) 85%, transparent);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-align: center;
  padding-inline: 1.5rem;
}

.konami-overlay.visible { display: flex; }

.konami-overlay .floor {
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--primary);
}

.konami-overlay .headline {
  font-family: var(--font-heading);
  font-size: clamp(1.875rem, 6vw, 3rem);
  font-weight: 600;
}

.konami-overlay .whisper {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ------------------------------------------------------------------
   Utilities / WordPress core
------------------------------------------------------------------ */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.skip-link:focus { left: 1rem; top: 1rem; }

.alignwide { max-width: 60rem; }
.alignfull { max-width: none; }
.aligncenter { margin-inline: auto; }

.pagination {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  font-size: 0.875rem;
}

.pagination a {
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.pagination a:hover { color: var(--foreground); }

.empty-state {
  color: var(--muted-foreground);
  padding-block: 2rem;
}
