/*
Theme Name:   Pulptropolis
Theme URI:    https://pulptropolis.media/
Description:  Pulptropolis Media — standalone theme. Books are WooCommerce products; Dispatches are a custom post type. Provides the full site design, WooCommerce template overrides, and the ACF-backed book metadata layer.
Author:       Pulptropolis Media
Author URI:   https://pulptropolis.media/
Version:      2.0.0
Requires PHP: 7.4
Text Domain:  pulptropolis
*/

/* =========================================================================
   1. FONTS
   -------------------------------------------------------------------------
   Loaded via wp_enqueue_style() in functions.php, not @import. An @import
   here is invisible to the browser's preload scanner: it can't start the
   font request until this stylesheet has downloaded and parsed, which
   serialises two round-trips before any text renders.
   ========================================================================= */

/* =========================================================================
   2. DESIGN TOKENS
   ========================================================================= */
:root {
  --ppt-bg:        #ffffff;
  --ppt-bg-elev:   #f5f3ee;
  --ppt-bg-card:   #ffffff;
  --ppt-ink:       #0e0c0a;
  --ppt-ink-dim:   #4a3f30;
  --ppt-ink-mute:  #8a8074;
  --ppt-rule:      rgba(14,12,10,0.16);
  --ppt-accent:    #d62828;
  --ppt-accent-dp: #9a1c1c;
  --ppt-hot:       #f4a300;
  --ppt-display:   'Big Shoulders Display', 'Bebas Neue', Impact, sans-serif;
  --ppt-mono:      'IBM Plex Mono', ui-monospace, monospace;
  --ppt-body:      'Inter Tight', 'Inter', system-ui, -apple-system, sans-serif;

  --ppt-pad-x:     clamp(20px, 4vw, 64px);
  --ppt-pad-y:     clamp(48px, 7vw, 96px);
}

/* =========================================================================
   3. BASE
   ========================================================================= */
html, body { background: var(--ppt-bg); color: var(--ppt-ink); }
body, p, li, td {
  font-family: var(--ppt-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ppt-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--ppt-ink);
}
h1 { font-size: clamp(48px, 9vw, 140px); }
h2 { font-size: clamp(36px, 6vw, 72px); }
h3 { font-size: clamp(28px, 4vw, 48px); }
h4 { font-size: clamp(22px, 2.6vw, 32px); }

a { color: var(--ppt-ink); text-decoration: none; }
a:hover { color: var(--ppt-accent); }
hr, .ppt-rule { border: 0; border-top: 1px solid var(--ppt-rule); margin: 0; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--ppt-accent); color: #fff; }

/* =========================================================================
   4. UTILITY CLASSES
   ========================================================================= */

/* Visually hidden, still read aloud. WordPress themes are expected to define
   this — core only supplies the class name, not the styling — and until now
   this one did not, so the newsletter block's "Email address" label was
   sitting in plain view above the input on every page that renders it.

   clip-path is what modern browsers honour; the clip/height/width trio is the
   old recipe, kept because it is what older engines fall back to. Both are
   needed, and neither alone is enough. */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
}
/* For skip-links: there is no skip-link in this theme today, but the moment one
   is added it must become visible when focused, or it is a link keyboard users
   can reach and never see. Cheaper to carry the rule than to debug its absence. */
.screen-reader-text:focus {
  clip: auto;
  clip-path: none;
  height: auto;
  width: auto;
  margin: 0;
  padding: 15px 23px 14px;
  overflow: visible;
  top: 5px;
  left: 5px;
  z-index: 100000;
  background: var(--ppt-bg-elev);
  color: var(--ppt-ink);
  font-family: var(--ppt-mono);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  box-shadow: 4px 4px 0 0 var(--ppt-ink);
}
.ppt-wrap     { padding: var(--ppt-pad-y) var(--ppt-pad-x); }
.ppt-band     { border-bottom: 2px solid var(--ppt-ink); }
.ppt-elev     { background: var(--ppt-bg-elev); }
.ppt-ink-bg   { background: var(--ppt-ink); color: var(--ppt-bg); }
.ppt-ink-bg h1, .ppt-ink-bg h2, .ppt-ink-bg h3 { color: var(--ppt-bg); }

.ppt-kicker {
  font-family: var(--ppt-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ppt-ink-dim);
  display: inline-block;
}
.ppt-kicker--accent { color: var(--ppt-accent-dp); }
.ppt-kicker--hot    { color: var(--ppt-hot); }

.ppt-double-rule {
  border-top: 4px double var(--ppt-ink);
  padding-top: 28px;
  margin-top: 32px;
}

/* Buttons.
   Every declaration here used to carry !important solely to outrank Divi's
   .et_pb_button rules. With no parent theme competing, normal specificity
   wins — so the overrides are gone and these are now ordinary, overridable
   styles. Keep them that way. */
.ppt-btn,
a.ppt-btn,
button.ppt-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ppt-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 20px;
  border: 1px solid var(--ppt-ink);
  background: transparent;
  color: var(--ppt-ink);
  border-radius: 0;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
  line-height: 1;
  cursor: pointer;
}
.ppt-btn:hover {
  background: var(--ppt-ink);
  color: var(--ppt-bg);
}
.ppt-btn:focus-visible {
  outline: 2px solid var(--ppt-accent);
  outline-offset: 2px;
}
.ppt-btn--accent {
  background: var(--ppt-accent);
  color: #ffffff;
  border-color: var(--ppt-accent);
}
.ppt-btn--accent:hover {
  background: var(--ppt-accent-dp);
  border-color: var(--ppt-accent-dp);
  color: #ffffff;
}
