/*
Theme Name: 23percentrobbery
Author: Mara Finch Studio
Description: A classic PHP WordPress theme with dynamic category navigation, Customizer-driven content, and a Marketo-inspired asymmetric hero layout.
Version: 1.0.7
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: tpr-theme
*/

:root {
  --tpr-bg: #fefdff;
  --tpr-surface: #ffffff;
  --tpr-soft: #f8f7fa;
  --tpr-border: #efedf2;
  --tpr-text: #0f0235;
  --tpr-muted: #67666e;
  --tpr-accent: #b31aef;
  --tpr-accent-alt: #ff7340;
  --tpr-font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --tpr-base-font-size: 16px;
  --tpr-heading-size: 48px;
  --tpr-card-radius: 22px;
  --tpr-container: 1220px;
  --tpr-shadow: 0 24px 70px rgba(15, 2, 53, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--tpr-bg);
  color: var(--tpr-text);
  font-family: var(--tpr-font-family);
  font-size: var(--tpr-base-font-size);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--tpr-accent) 45%, transparent);
  outline-offset: 3px;
}

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

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

button {
  cursor: pointer;
}

.tpr-site {
  min-height: 100vh;
  overflow-x: clip;
}

.tpr-skip-link {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--tpr-text);
  color: var(--tpr-surface);
  transition: top 160ms ease;
}

.tpr-skip-link:focus {
  top: 16px;
}

.tpr-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: color-mix(in srgb, var(--tpr-bg) 86%, transparent);
  backdrop-filter: blur(18px);
}

.tpr-header-inner {
  width: min(100% - 32px, var(--tpr-container));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tpr-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--tpr-text);
}

.tpr-brand-logo {
  width: auto;
  max-width: 170px;
  max-height: 44px;
}

.tpr-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--tpr-surface);
  background: linear-gradient(135deg, var(--tpr-accent), var(--tpr-accent-alt));
  font-size: 15px;
  font-weight: 800;
}

.tpr-brand-name {
  max-width: 190px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tpr-primary-nav,
.tpr-header-actions {
  display: none;
}

.tpr-nav-list,
.tpr-footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tpr-nav-list {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tpr-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--tpr-muted);
  font-size: 14px;
  font-weight: 600;
  transition: background 160ms ease, color 160ms ease;
}

.tpr-nav-link:hover,
.tpr-menu-item-current > .tpr-nav-link {
  background: var(--tpr-soft);
  color: var(--tpr-text);
}

.tpr-icon-button {
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--tpr-border) 82%, var(--tpr-text));
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--tpr-surface);
  color: var(--tpr-text);
  box-shadow: 0 10px 28px rgba(15, 2, 53, 0.08);
}

.tpr-icon-lines,
.tpr-icon-lines::before,
.tpr-icon-lines::after {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  display: block;
}

.tpr-icon-lines {
  position: relative;
}

.tpr-icon-lines::before,
.tpr-icon-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.tpr-icon-lines::before {
  top: -6px;
}

.tpr-icon-lines::after {
  top: 6px;
}

.tpr-category-shell {
  position: relative;
}

.tpr-category-button {
  width: auto;
  min-width: 46px;
  gap: 8px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
}

.tpr-category-button::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.tpr-category-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(320px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid var(--tpr-border);
  border-radius: var(--tpr-card-radius);
  background: var(--tpr-surface);
  box-shadow: var(--tpr-shadow);
}

.tpr-category-list {
  list-style: none;
  display: grid;
  gap: 6px;
  padding: 0;
  margin: 0;
}

.tpr-category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 14px;
  color: var(--tpr-muted);
  font-size: 14px;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease;
}

.tpr-category-link:hover,
.tpr-category-item-current > .tpr-category-link {
  background: var(--tpr-soft);
  color: var(--tpr-text);
}

.tpr-category-count {
  min-width: 24px;
  padding: 1px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tpr-accent) 12%, var(--tpr-surface));
  color: var(--tpr-accent);
  text-align: center;
  font-size: 12px;
}

.tpr-category-children {
  list-style: none;
  display: grid;
  gap: 4px;
  margin: 4px 0 6px 14px;
  padding: 0 0 0 10px;
  border-left: 1px solid var(--tpr-border);
}

.tpr-header-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--tpr-muted);
  font-size: 14px;
  font-weight: 700;
}

.tpr-mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 120;
  padding: 18px;
  background: color-mix(in srgb, var(--tpr-bg) 96%, white);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
}

.tpr-mobile-panel:target,
.tpr-mobile-panel.tpr-mobile-panel-open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

.tpr-mobile-panel-inner {
  min-height: calc(100vh - 36px);
  padding: 18px;
  border: 1px solid var(--tpr-border);
  border-radius: calc(var(--tpr-card-radius) + 6px);
  background: var(--tpr-surface);
  box-shadow: var(--tpr-shadow);
}

.tpr-mobile-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.tpr-mobile-close {
  font-size: 22px;
  line-height: 1;
}

.tpr-mobile-nav-list {
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 0 0 26px;
  padding: 0;
}

.tpr-mobile-nav-list .tpr-nav-link {
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--tpr-soft);
}

.tpr-mobile-heading {
  margin: 0 0 10px;
  color: var(--tpr-muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.tpr-main {
  display: block;
}

.tpr-container {
  width: min(100% - 32px, var(--tpr-container));
  margin: 0 auto;
}

.tpr-hero {
  padding: 42px 0 72px;
}

.tpr-hero-shell {
  position: relative;
}

.tpr-hero-media {
  position: relative;
  min-height: 440px;
  border-radius: calc(var(--tpr-card-radius) + 16px);
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--tpr-accent) 18%, transparent), transparent 30%),
    linear-gradient(135deg, color-mix(in srgb, var(--tpr-accent) 20%, var(--tpr-soft)), color-mix(in srgb, var(--tpr-accent-alt) 20%, var(--tpr-soft)));
  box-shadow: var(--tpr-shadow);
}

.tpr-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.01);
}

.tpr-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 2, 53, 0.34), rgba(15, 2, 53, 0.02) 52%),
    linear-gradient(0deg, rgba(254, 253, 255, 0.12), rgba(254, 253, 255, 0));
}

.tpr-hero-card {
  position: relative;
  z-index: 2;
  width: min(100%, 640px);
  margin: -120px auto 0;
  padding: 28px;
  border: 1px solid color-mix(in srgb, var(--tpr-border) 78%, white);
  border-radius: calc(var(--tpr-card-radius) + 10px);
  background: color-mix(in srgb, var(--tpr-surface) 91%, transparent);
  box-shadow: var(--tpr-shadow);
  backdrop-filter: blur(18px);
}

.tpr-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px 12px;
  border: 1px solid var(--tpr-border);
  border-radius: 999px;
  background: var(--tpr-surface);
  color: var(--tpr-muted);
  font-size: 13px;
  font-weight: 800;
}

.tpr-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tpr-accent-alt);
}

.tpr-hero-title,
.tpr-section-title,
.tpr-archive-title,
.tpr-single-title {
  margin: 0;
  color: var(--tpr-text);
  font-family: var(--tpr-font-family);
  font-weight: 700;
  letter-spacing: 0;
}

.tpr-hero-title {
  max-width: 820px;
  font-size: clamp(40px, 9vw, var(--tpr-heading-size));
  line-height: 1.08;
}

.tpr-hero-copy {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--tpr-muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.75;
}

.tpr-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.tpr-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.tpr-button:hover {
  transform: translateY(-1px);
}

.tpr-button-primary {
  background: var(--tpr-text);
  color: var(--tpr-surface);
  box-shadow: 0 16px 34px color-mix(in srgb, var(--tpr-text) 18%, transparent);
}

.tpr-button-secondary {
  border-color: var(--tpr-border);
  background: var(--tpr-surface);
  color: var(--tpr-text);
}

.tpr-intro-grid {
  display: grid;
  gap: 18px;
  padding: 0 0 72px;
}

.tpr-intro-card {
  padding: 24px;
  border: 1px solid var(--tpr-border);
  border-radius: var(--tpr-card-radius);
  background: var(--tpr-surface);
}

.tpr-intro-label {
  margin: 0 0 8px;
  color: var(--tpr-accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.tpr-intro-text {
  margin: 0;
  color: var(--tpr-muted);
}

.tpr-section {
  padding: 72px 0;
}

.tpr-section-muted {
  background: color-mix(in srgb, var(--tpr-soft) 72%, transparent);
}

.tpr-section-head {
  display: grid;
  gap: 16px;
  margin-bottom: 34px;
}

.tpr-section-title,
.tpr-archive-title {
  font-size: clamp(30px, 6vw, 48px);
  line-height: 1.2;
}

.tpr-section-copy,
.tpr-archive-description {
  max-width: 620px;
  margin: 0;
  color: var(--tpr-muted);
  font-size: 16px;
}

.tpr-post-grid {
  display: grid;
  gap: 18px;
}

.tpr-post-card {
  border: 1px solid var(--tpr-border);
  border-radius: var(--tpr-card-radius);
  background: var(--tpr-surface);
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.tpr-post-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--tpr-accent) 25%, var(--tpr-border));
  box-shadow: 0 20px 48px rgba(15, 2, 53, 0.09);
}

.tpr-card-image {
  display: block;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, color-mix(in srgb, var(--tpr-accent) 20%, var(--tpr-soft)), color-mix(in srgb, var(--tpr-accent-alt) 20%, var(--tpr-soft)));
  overflow: hidden;
}

.tpr-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.tpr-post-card:hover .tpr-card-image img {
  transform: scale(1.035);
}

.tpr-card-body {
  padding: 22px;
}

.tpr-card-meta,
.tpr-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 12px;
  color: var(--tpr-muted);
  font-size: 13px;
  font-weight: 700;
}

.tpr-card-title {
  margin: 0;
  color: var(--tpr-text);
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
}

.tpr-card-title a:hover {
  color: var(--tpr-accent);
}

.tpr-card-excerpt {
  margin: 12px 0 0;
  color: var(--tpr-muted);
  font-size: 15px;
}

.tpr-feature-grid {
  display: grid;
  gap: 18px;
}

.tpr-feature-card {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--tpr-border);
  border-radius: var(--tpr-card-radius);
  background: var(--tpr-surface);
}

.tpr-feature-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--tpr-accent) 20%, white), color-mix(in srgb, var(--tpr-accent-alt) 22%, white));
}

.tpr-feature-title {
  margin: 0 0 8px;
  color: var(--tpr-text);
  font-size: 20px;
  line-height: 1.35;
}

.tpr-feature-text {
  margin: 0;
  color: var(--tpr-muted);
  font-size: 14px;
}

.tpr-archive-header,
.tpr-single-header {
  padding: 62px 0 30px;
}

.tpr-loop {
  padding: 28px 0 80px;
}

.tpr-single {
  width: min(100% - 32px, 860px);
  margin: 0 auto;
  padding: 54px 0 86px;
}

.tpr-single-title {
  font-size: clamp(34px, 7vw, 58px);
  line-height: 1.1;
}

.tpr-single-content {
  margin-top: 34px;
  color: var(--tpr-text);
  font-size: 18px;
}

.tpr-single-content > *:first-child {
  margin-top: 0;
}

.tpr-single-content a {
  color: var(--tpr-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tpr-single-content p,
.tpr-single-content ul,
.tpr-single-content ol {
  margin: 0 0 1.35em;
}

.tpr-single-content h2,
.tpr-single-content h3,
.tpr-single-content h4 {
  margin: 1.8em 0 0.7em;
  line-height: 1.22;
}

.tpr-single-footer {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--tpr-border);
  color: var(--tpr-muted);
}

.tpr-single-nav {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.tpr-single-nav a {
  display: block;
  padding: 16px;
  border: 1px solid var(--tpr-border);
  border-radius: 16px;
  background: var(--tpr-surface);
  font-weight: 700;
}

.tpr-empty {
  padding: 42px;
  border: 1px solid var(--tpr-border);
  border-radius: var(--tpr-card-radius);
  background: var(--tpr-surface);
  color: var(--tpr-muted);
}

.tpr-footer {
  padding: 70px 0 34px;
  border-top: 1px solid var(--tpr-border);
  background: var(--tpr-surface);
}

.tpr-footer-grid {
  display: grid;
  gap: 34px;
}

.tpr-footer-about {
  max-width: 360px;
}

.tpr-footer-copy {
  margin: 18px 0 0;
  color: var(--tpr-muted);
}

.tpr-footer-title {
  margin: 0 0 14px;
  color: var(--tpr-text);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.tpr-footer-menu {
  display: grid;
  gap: 8px;
}

.tpr-footer-menu .tpr-nav-link {
  justify-content: flex-start;
  min-height: auto;
  padding: 2px 0;
  border-radius: 0;
  background: transparent;
}

.tpr-footer .tpr-category-link {
  min-height: auto;
  justify-content: flex-start;
  padding: 3px 0;
  border-radius: 0;
  background: transparent;
}

.tpr-footer-bottom {
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid var(--tpr-border);
  color: var(--tpr-muted);
  font-size: 13px;
}

.tpr-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;
}

@media (min-width: 700px) {
  .tpr-header-inner,
  .tpr-container {
    width: min(100% - 60px, var(--tpr-container));
  }

  .tpr-hero {
    padding-top: 66px;
  }

  .tpr-hero-card {
    margin-left: 40px;
    margin-right: 0;
  }

  .tpr-intro-grid,
  .tpr-post-grid,
  .tpr-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tpr-section-head {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
    align-items: end;
  }

  .tpr-single-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .tpr-primary-nav,
  .tpr-header-actions {
    display: flex;
    align-items: center;
  }

  .tpr-primary-nav {
    justify-content: center;
    flex: 1;
  }

  .tpr-header-actions {
    gap: 8px;
  }

  .tpr-menu-button {
    display: none;
  }

  .tpr-hero-shell {
    min-height: 680px;
  }

  .tpr-hero-media {
    min-height: 620px;
  }

  .tpr-hero-media img {
    min-height: 620px;
  }

  .tpr-hero-card {
    position: absolute;
    left: 32px;
    bottom: -34px;
    margin: 0;
    padding: 38px;
  }

  .tpr-post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tpr-post-grid.tpr-post-grid-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tpr-feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tpr-footer-grid {
    grid-template-columns: 1.1fr 0.6fr 0.7fr;
    align-items: start;
  }
}

@media (max-width: 420px) {
  .tpr-header-inner,
  .tpr-container,
  .tpr-single {
    width: min(100% - 24px, var(--tpr-container));
  }

  .tpr-brand-name {
    max-width: 140px;
  }

  .tpr-hero-card {
    padding: 22px;
    margin-top: -82px;
  }

  .tpr-hero-media,
  .tpr-hero-media img {
    min-height: 360px;
  }

  .tpr-button {
    width: 100%;
  }
}
