/*
Theme Name: Positively Psychic
Theme URI: https://positivelypsychic.com/
Author: Positively Psychic
Description: Custom block theme for positivelypsychic.com. A calm, practical first-reading guide with a deep teal, coral, ivory, and muted gold visual system.
Requires at least: 6.5
Requires PHP: 7.4
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Text Domain: positivelypsychic-theme
*/

:root {
  --pp-ink: #241a12;
  --pp-muted: #5d5044;
  --pp-teal: #123b37;
  --pp-teal-soft: #dce9e4;
  --pp-coral: #b8431f;
  --pp-coral-dark: #923316;
  --pp-gold: #c9860e;
  --pp-ivory: #fff8ee;
  --pp-mist: #f5f1ea;
  --pp-line: #dfcba8;
  --pp-white: #ffffff;
  --pp-shadow: 0 18px 55px rgb(36 26 18 / 0.12);
  --pp-radius: 14px;
  --pp-radius-sm: 10px;
  --pp-max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--pp-ivory);
  color: var(--pp-ink);
  font-family: "Nunito Sans", "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

body,
p {
  line-height: 1.65;
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgb(201 134 14 / 0.65);
  outline-offset: 4px;
}

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

.wp-site-blocks {
  overflow-x: hidden;
}

.pp-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  width: min(calc(100% - 32px), var(--pp-max));
  margin: 14px auto 0;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgb(223 203 168 / 0.85);
  border-radius: var(--pp-radius);
  background: rgb(255 248 238 / 0.92);
  box-shadow: 0 12px 36px rgb(36 26 18 / 0.08);
  backdrop-filter: blur(18px);
}

.pp-brand {
  font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--pp-teal);
  white-space: nowrap;
}

.pp-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  min-width: 0;
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--pp-muted);
}

.pp-nav a,
.pp-footer__links a,
.pp-footer__legal a {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.pp-nav a:hover,
.pp-footer__links a:hover,
.pp-footer__legal a:hover {
  color: var(--pp-coral);
  text-decoration: underline;
}

.pp-header-cta,
.pp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--pp-radius-sm);
  font-weight: 900;
  line-height: 1;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.pp-header-cta {
  padding: 0 16px;
  border: 2px solid var(--pp-gold);
  background: var(--pp-coral);
  color: var(--pp-ivory);
  white-space: nowrap;
}

.pp-header-cta:hover,
.pp-button--primary:hover {
  background: var(--pp-coral-dark);
}

.pp-header-cta:active,
.pp-button:active {
  transform: translateY(1px);
}

.pp-site-main {
  display: grid;
  gap: 0;
}

.pp-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 1.06fr);
  gap: 34px;
  width: min(calc(100% - 32px), var(--pp-max));
  margin: 34px auto 0;
  padding: 22px;
  border: 1px solid var(--pp-line);
  border-radius: 20px;
  background: linear-gradient(135deg, var(--pp-white), #fbefe7);
  box-shadow: var(--pp-shadow);
}

.pp-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 570px;
  padding: 38px 14px 38px 28px;
}

.pp-kicker {
  margin: 0 0 14px;
  color: var(--pp-coral);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.pp-hero h1,
.pp-section h2,
.pp-final-cta h2 {
  margin: 0;
  font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.98;
  color: var(--pp-ink);
}

.pp-hero h1 {
  max-width: 11ch;
  font-size: 4.7rem;
}

.pp-hero__lede {
  max-width: 34rem;
  margin: 22px 0 0;
  color: var(--pp-muted);
  font-size: 1.24rem;
}

.pp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.pp-button {
  padding: 0 22px;
  border: 2px solid transparent;
  font-size: 0.98rem;
}

.pp-button--primary {
  border-color: var(--pp-gold);
  background: var(--pp-coral);
  color: var(--pp-ivory);
}

.pp-button--secondary {
  border-color: var(--pp-line);
  background: var(--pp-white);
  color: var(--pp-teal);
}

.pp-button--secondary:hover {
  border-color: var(--pp-gold);
  background: #fff4e2;
}

.pp-button--light {
  min-width: 190px;
  border-color: var(--pp-gold);
  background: var(--pp-ivory);
  color: var(--pp-teal);
}

.pp-button--light:hover {
  background: #ffffff;
}

.pp-hero__notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.pp-hero__notes span {
  padding: 8px 10px;
  border: 1px solid rgb(18 59 55 / 0.18);
  border-radius: 999px;
  background: rgb(18 59 55 / 0.06);
  color: var(--pp-teal);
  font-size: 0.82rem;
  font-weight: 800;
}

.pp-hero__media {
  position: relative;
  min-height: 570px;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: var(--pp-teal-soft);
}

.pp-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pp-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(calc(100% - 32px), var(--pp-max));
  margin: 20px auto 0;
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius);
  background: var(--pp-white);
  overflow: hidden;
}

.pp-trust-strip div {
  padding: 20px 22px;
  border-left: 1px solid var(--pp-line);
}

.pp-trust-strip div:first-child {
  border-left: 0;
}

.pp-trust-strip strong,
.pp-trust-strip span {
  display: block;
}

.pp-trust-strip strong {
  font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
  font-size: 1.1rem;
  color: var(--pp-teal);
}

.pp-trust-strip span {
  margin-top: 4px;
  color: var(--pp-muted);
  font-size: 0.94rem;
}

.pp-section {
  width: min(calc(100% - 32px), var(--pp-max));
  margin: 0 auto;
  padding: 86px 0;
}

.pp-section--split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
}

.pp-section--reverse {
  grid-template-columns: 1.05fr 0.95fr;
}

.pp-section--band {
  width: 100%;
  max-width: none;
  padding: 86px max(16px, calc((100vw - var(--pp-max)) / 2));
  background: var(--pp-teal);
  color: var(--pp-ivory);
}

.pp-section--band .pp-kicker,
.pp-section--band h2,
.pp-section--band h3 {
  color: var(--pp-ivory);
}

.pp-section--band p {
  color: rgb(255 248 238 / 0.78);
}

.pp-section__header {
  max-width: 720px;
  margin-bottom: 30px;
}

.pp-section__header h2,
.pp-section__intro h2,
.pp-final-cta h2 {
  font-size: 3.05rem;
}

.pp-section__header p:not(.pp-kicker),
.pp-section__intro p:not(.pp-kicker) {
  max-width: 42rem;
  margin: 16px 0 0;
  color: var(--pp-muted);
  font-size: 1.08rem;
}

.pp-panel {
  padding: 34px;
  border-radius: var(--pp-radius);
  background: var(--pp-white);
  box-shadow: var(--pp-shadow);
}

.pp-panel--deep {
  border: 1px solid rgb(18 59 55 / 0.12);
  background: linear-gradient(145deg, var(--pp-teal), #1f514b);
  color: var(--pp-ivory);
}

.pp-panel--deep p {
  margin-top: 0;
  color: rgb(255 248 238 / 0.86);
  font-size: 1.1rem;
}

.pp-check-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.pp-check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--pp-ivory);
}

.pp-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 12px;
  border: 3px solid var(--pp-gold);
  border-radius: 50%;
}

.pp-card-grid,
.pp-guide-grid,
.pp-steps {
  display: grid;
  gap: 18px;
}

.pp-card-grid--three {
  grid-template-columns: repeat(3, 1fr);
}

.pp-card,
.pp-guide,
.pp-step,
.pp-faq-list details {
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius);
  background: var(--pp-white);
}

.pp-card,
.pp-guide {
  min-height: 250px;
  padding: 28px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.pp-card:hover,
.pp-guide:hover {
  transform: translateY(-3px);
  border-color: var(--pp-gold);
  box-shadow: 0 18px 42px rgb(36 26 18 / 0.1);
}

.pp-card__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--pp-teal-soft);
  color: var(--pp-teal);
  font-weight: 900;
}

.pp-card h3,
.pp-guide h3,
.pp-step h3 {
  margin: 0;
  font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
  font-size: 1.35rem;
  line-height: 1.15;
  color: var(--pp-teal);
}

.pp-card p,
.pp-guide p,
.pp-step p {
  margin: 14px 0 0;
  color: var(--pp-muted);
}

.pp-steps {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 30px;
}

.pp-step {
  min-height: 260px;
  padding: 28px;
  background: rgb(255 248 238 / 0.08);
  border-color: rgb(255 248 238 / 0.24);
}

.pp-step span {
  display: block;
  margin-bottom: 24px;
  font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
  color: var(--pp-gold);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
}

.pp-step p {
  color: rgb(255 248 238 / 0.78);
}

.pp-quote-panel {
  padding: 38px;
  border-radius: var(--pp-radius);
  background: linear-gradient(145deg, #fff2df, #ffffff);
  box-shadow: var(--pp-shadow);
}

.pp-quote-panel blockquote {
  margin: 0;
  font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.12;
  color: var(--pp-teal);
}

.pp-quote-panel p {
  margin: 18px 0 0;
  color: var(--pp-coral);
  font-weight: 900;
}

.pp-guide-grid {
  grid-template-columns: repeat(4, 1fr);
}

.pp-guide {
  min-height: 230px;
}

.pp-faq {
  padding-top: 54px;
}

.pp-faq-list {
  display: grid;
  gap: 12px;
  max-width: 880px;
}

.pp-faq-list details {
  padding: 0;
  overflow: hidden;
}

.pp-faq-list summary {
  cursor: pointer;
  padding: 22px 24px;
  color: var(--pp-teal);
  font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
  font-size: 1.16rem;
  font-weight: 800;
}

.pp-faq-list p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--pp-muted);
}

.pp-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(100% - 32px), var(--pp-max));
  margin: 0 auto 72px;
  padding: 42px;
  border-radius: 20px;
  background: var(--pp-coral);
  color: var(--pp-ivory);
  box-shadow: var(--pp-shadow);
}

.pp-final-cta h2,
.pp-final-cta .pp-kicker {
  color: var(--pp-ivory);
}

.pp-final-cta p:not(.pp-kicker) {
  max-width: 36rem;
  margin: 12px 0 0;
  color: rgb(255 248 238 / 0.84);
  font-size: 1.08rem;
}

.pp-footer {
  padding: 54px max(16px, calc((100vw - var(--pp-max)) / 2)) 28px;
  background: var(--pp-teal);
  color: var(--pp-ivory);
}

.pp-footer__main,
.pp-footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.pp-footer__main {
  align-items: flex-start;
}

.pp-brand--footer {
  color: var(--pp-ivory);
}

.pp-footer p {
  max-width: 34rem;
  margin: 12px 0 0;
  color: rgb(255 248 238 / 0.76);
}

.pp-footer__links {
  display: grid;
  gap: 10px;
  min-width: 240px;
  font-weight: 800;
}

.pp-footer__legal {
  align-items: center;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgb(255 248 238 / 0.18);
  font-size: 0.9rem;
}

.pp-footer__legal p:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.wp-block-button__link {
  border-radius: var(--pp-radius-sm) !important;
  border: 2px solid var(--pp-gold) !important;
}

@media (max-width: 1040px) {
  .pp-header {
    grid-template-columns: 1fr auto;
  }

  .pp-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .pp-hero,
  .pp-section--split,
  .pp-section--reverse {
    grid-template-columns: 1fr;
  }

  .pp-hero__copy,
  .pp-hero__media {
    min-height: auto;
  }

  .pp-hero__media {
    aspect-ratio: 16 / 10;
  }

  .pp-hero h1 {
    max-width: 13ch;
    font-size: 3.7rem;
  }

  .pp-card-grid--three,
  .pp-steps {
    grid-template-columns: 1fr;
  }

  .pp-guide-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .pp-header {
    width: min(calc(100% - 20px), var(--pp-max));
    margin-top: 10px;
    gap: 12px;
    padding: 11px;
  }

  .pp-brand {
    font-size: 1rem;
  }

  .pp-header-cta {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.86rem;
  }

  .pp-nav {
    gap: 14px;
    font-size: 0.88rem;
  }

  .pp-hero {
    width: min(calc(100% - 20px), var(--pp-max));
    margin-top: 18px;
    padding: 12px;
    border-radius: var(--pp-radius);
  }

  .pp-hero__copy {
    padding: 22px 8px 16px;
  }

  .pp-hero h1 {
    font-size: 2.85rem;
  }

  .pp-hero__lede {
    font-size: 1.05rem;
  }

  .pp-actions {
    flex-direction: column;
  }

  .pp-button {
    width: 100%;
  }

  .pp-trust-strip {
    grid-template-columns: 1fr;
    width: min(calc(100% - 20px), var(--pp-max));
  }

  .pp-trust-strip div,
  .pp-trust-strip div:first-child {
    border-left: 0;
    border-top: 1px solid var(--pp-line);
  }

  .pp-trust-strip div:first-child {
    border-top: 0;
  }

  .pp-section {
    width: min(calc(100% - 20px), var(--pp-max));
    padding: 58px 0;
  }

  .pp-section--band {
    width: 100%;
    padding: 58px 10px;
  }

  .pp-section__header h2,
  .pp-section__intro h2,
  .pp-final-cta h2 {
    font-size: 2.25rem;
  }

  .pp-panel,
  .pp-card,
  .pp-guide,
  .pp-step,
  .pp-quote-panel {
    padding: 22px;
  }

  .pp-guide-grid {
    grid-template-columns: 1fr;
  }

  .pp-quote-panel blockquote {
    font-size: 1.5rem;
  }

  .pp-final-cta {
    flex-direction: column;
    align-items: stretch;
    width: min(calc(100% - 20px), var(--pp-max));
    margin-bottom: 46px;
    padding: 26px;
  }

  .pp-footer {
    padding: 42px 16px 24px;
  }

  .pp-footer__main,
  .pp-footer__legal {
    flex-direction: column;
  }

  .pp-footer__legal p:last-child {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
