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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

:root {
  --pp-bg: #fbf7ef;
  --pp-fg: #221b12;
  --pp-primary: #e8582f;
  --pp-secondary: #3fb8a6;
  --pp-accent: #ffc63f;
  --pp-muted: hsl(40 30% 92%);
  --pp-muted-fg: hsl(34 15% 40%);
  --pp-border: hsl(34 20% 86%);
  --pp-radius: 0.5rem;
  --pp-font-heading: 'Bricolage Grotesque', sans-serif;
  --pp-font-body: 'Figtree', sans-serif;
  --pp-ink-shadow: 4px 4px 0 #221b12;
}

html.dark {
  --pp-bg: hsl(34 30% 8%);
  --pp-fg: hsl(40 30% 96%);
  --pp-muted: hsl(34 15% 16%);
  --pp-muted-fg: hsl(40 10% 62%);
  --pp-border: hsl(34 15% 18%);
  --pp-ink-shadow: 4px 4px 0 hsl(40 30% 96% / 0.15);
}

body.pp-answer-page {
  margin: 0;
  font-family: var(--pp-font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--pp-fg);
  background: var(--pp-bg);
  overflow-x: hidden;
}

a {
  color: var(--pp-primary);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid var(--pp-accent);
  outline-offset: 2px;
}

.pp-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 2px solid var(--pp-fg);
  background: color-mix(in srgb, var(--pp-bg) 95%, transparent);
  backdrop-filter: blur(8px);
}

.pp-site-header__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
  min-height: 4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.pp-site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--pp-fg);
  text-decoration: none;
  font-family: var(--pp-font-heading);
  font-weight: 800;
  font-size: 1.25rem;
}

html.dark .pp-site-header__brand img {
  filter: brightness(0) invert(1);
}

.pp-site-header__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.pp-site-header__nav a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pp-muted-fg);
  text-decoration: none;
}

.pp-site-header__nav a:hover {
  color: var(--pp-primary);
}

.pp-site-header__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.pp-site-header__login {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pp-muted-fg);
  text-decoration: none;
}

.pp-theme-toggle {
  border: 2px solid var(--pp-fg);
  background: var(--pp-bg);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--pp-fg);
}

.pp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.875rem;
  text-decoration: none;
  border: 2px solid var(--pp-fg);
  box-shadow: 2px 2px 0 var(--pp-fg);
}

.pp-btn--primary {
  background: var(--pp-primary);
  color: #fff;
}

.pp-btn--ink {
  background: var(--pp-fg);
  color: var(--pp-bg);
}

.pp-answer {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 4rem;
}

.pp-crumbs {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--pp-muted-fg);
  margin: 0 0 1.5rem;
  padding-top: 0.5rem;
}

.pp-hub-page .pp-crumbs {
  padding-top: 0.75rem;
}

.pp-crumbs a {
  color: var(--pp-muted-fg);
}

.pp-answer__eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pp-secondary);
  margin: 0 0 0.5rem;
}

.pp-answer__title {
  font-family: var(--pp-font-heading);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.15;
  margin: 0 0 1.25rem;
}

.pp-answer__short {
  background: #fff;
  border: 3px solid var(--pp-fg);
  border-radius: 20px;
  box-shadow: var(--pp-ink-shadow);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
}

html.dark .pp-answer__short {
  background: hsl(34 30% 10%);
}

.pp-answer__short-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pp-muted-fg);
  margin-bottom: 0.35rem;
}

.pp-answer__short p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.pp-answer__meta {
  font-size: 0.875rem;
  color: var(--pp-muted-fg);
  margin: 0 0 2rem;
}

.pp-prose {
  max-width: 65ch;
  line-height: 1.7;
}

.pp-prose h2 {
  font-family: var(--pp-font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 2.25rem 0 1rem;
  max-width: none;
}

.pp-prose h3 {
  font-family: var(--pp-font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.3;
  margin: 1.75rem 0 0.65rem;
  max-width: none;
}

.pp-prose p {
  margin: 0 0 1.25rem;
}

.pp-prose ul,
.pp-prose ol {
  margin: 0 0 1.35rem;
  padding-left: 1.35rem;
}

.pp-prose li {
  margin: 0 0 0.5rem;
  padding-left: 0.25rem;
}

.pp-prose li::marker {
  color: var(--pp-primary);
}

.pp-prose ul li {
  list-style-type: disc;
}

.pp-prose blockquote {
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--pp-secondary);
  background: color-mix(in srgb, var(--pp-secondary) 8%, var(--pp-bg));
}

.pp-answer__table-wrap {
  overflow-x: auto;
  margin: 0.5rem 0 2rem;
  border: 2px solid var(--pp-border);
  border-radius: var(--pp-radius);
}

.pp-answer__table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 280px;
}

.pp-answer__table-wrap th,
.pp-answer__table-wrap td {
  border: 1px solid var(--pp-border);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.pp-answer__table-wrap th {
  background: var(--pp-muted);
  font-weight: 700;
}

.pp-callout {
  background: color-mix(in srgb, var(--pp-secondary) 12%, var(--pp-bg));
  border: 2px solid var(--pp-secondary);
  border-radius: var(--pp-radius);
  padding: 1rem 1.15rem;
  margin: 0 0 2rem;
}

.pp-callout__title {
  font-family: var(--pp-font-heading);
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.pp-faq h2,
.pp-sources h2,
.pp-answer__compare h2,
.pp-cta__title,
.pp-related h2 {
  font-family: var(--pp-font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  margin: 0 0 1rem;
}

.pp-faq__item {
  border: 2px solid var(--pp-border);
  border-radius: var(--pp-radius);
  margin-bottom: 0.65rem;
  padding: 0;
  background: #fff;
}

html.dark .pp-faq__item {
  background: hsl(34 30% 10%);
}

.pp-faq__item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.85rem 1rem;
  list-style: none;
}

.pp-faq__item summary::-webkit-details-marker {
  display: none;
}

.pp-faq__item summary::after {
  content: '+';
  float: right;
  font-weight: 800;
}

.pp-faq__item[open] summary::after {
  content: '−';
}

.pp-faq__a {
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--pp-border);
}

.pp-sources ol {
  margin: 0;
  padding-left: 1.25rem;
}

.pp-sources li {
  margin-bottom: 0.65rem;
}

.pp-cta {
  background: #fff;
  border: 3px solid var(--pp-fg);
  border-radius: 20px;
  box-shadow: var(--pp-ink-shadow);
  padding: 1.5rem;
  margin: 2.5rem 0;
}

html.dark .pp-cta {
  background: hsl(34 30% 10%);
}

.pp-related__grid {
  display: grid;
  gap: 1rem;
}

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

.pp-related__card {
  display: block;
  background: #fff;
  border: 3px solid var(--pp-fg);
  border-radius: 20px;
  box-shadow: var(--pp-ink-shadow);
  padding: 1rem 1.1rem;
  color: var(--pp-fg);
  text-decoration: none;
}

html.dark .pp-related__card {
  background: hsl(34 30% 10%);
}

.pp-related__card span {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.pp-related__card small {
  color: var(--pp-muted-fg);
  line-height: 1.45;
}

.pp-hub__intro {
  font-size: 1.05rem;
  color: var(--pp-muted-fg);
  max-width: 38rem;
}

.pp-hub__list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pp-row {
  border: 2px solid var(--pp-border);
  border-radius: var(--pp-radius);
  padding: 1rem 1.1rem;
  background: #fff;
}

html.dark .pp-row {
  background: hsl(34 30% 10%);
}

.pp-row__q {
  font-family: var(--pp-font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--pp-fg);
  text-decoration: none;
  display: block;
  margin-bottom: 0.35rem;
}

.pp-row__a {
  margin: 0 0 0.5rem;
  color: var(--pp-muted-fg);
  font-size: 0.95rem;
}

.pp-row__date {
  font-size: 0.8rem;
  color: var(--pp-muted-fg);
}

.pp-site-footer {
  background: hsl(34 30% 10%);
  color: hsl(41 60% 96%);
  margin-top: 3rem;
}

.pp-site-footer a {
  color: hsl(41 60% 96% / 0.75);
  text-decoration: none;
}

.pp-site-footer a:hover {
  color: var(--pp-accent);
}

.pp-site-footer__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 4rem 1rem 2rem;
}

.pp-site-footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .pp-site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.pp-site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--pp-font-heading);
  font-weight: 800;
}

.pp-site-footer__brand img {
  filter: brightness(0) invert(1);
}

.pp-site-footer__tagline {
  font-family: var(--pp-font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 1rem 0 0.5rem;
}

.pp-site-footer__accent {
  color: var(--pp-accent);
}

.pp-site-footer__blurb {
  font-size: 0.875rem;
  color: hsl(41 60% 96% / 0.55);
  max-width: 20rem;
}

.pp-site-footer__heading {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: hsl(41 60% 96% / 0.45);
  margin: 0 0 0.75rem;
}

.pp-site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pp-site-footer__col a {
  font-size: 0.875rem;
}

.pp-site-footer__bar {
  border-top: 1px solid hsl(41 60% 96% / 0.12);
}

.pp-site-footer__bar-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: hsl(41 60% 96% / 0.45);
}

@media (min-width: 640px) {
  .pp-site-footer__bar-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}
