/* ==============================================
   Base resets + utility classes
   ============================================== */

/* Smooth-scroll for fragment links (#section) and any programmatic scroll.
   Automatically disabled by browsers when prefers-reduced-motion is set. */
html {
  scroll-behavior: smooth;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

/* Prevent 100vw from causing horizontal scroll */
html,
body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Body baseline (typography.css refines the type-specific bits) */
body {
  min-height: 100vh;
}

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

a {
  color: inherit;
}

/* Skip-link (only visible when focused) */
.skip-link.screen-reader-text {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link.screen-reader-text:focus {
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  z-index: 100000;
  background: var(--primary);
  color: var(--on-primary);
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 13px;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* Container utility — content max-width + horizontal padding */
.ch-container {
  width: 100%;
  max-width: var(--content-max-width, 1280px);
  margin: 0 auto;
  padding: 32px 24px;
}

/* Native form select arrow — used by contact form on light bg */
.ch-form-field--select {
  position: relative;
}

.ch-form-field--select::after {
  content: '';
  pointer-events: none;
  position: absolute;
  right: 14px;
  top: 70%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #000000;
  z-index: 1;
}

.ch-form-field--select select {
  appearance: none;
  -webkit-appearance: none;
}

/* Hide sidebar on Instagram & Game Recap single-post views */
.single-pp_insta_post #sidebar,
.single-pp_game_summary #sidebar {
  display: none !important;
}

/* Pagination block */
.ch-pagination {
  margin: 32px auto;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.ch-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: 600 14px/1 var(--font-sans);
  color: var(--ink);
  text-decoration: none;
  background: var(--paper);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.ch-pagination .page-numbers:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.ch-pagination .page-numbers.current {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}
