/*
Theme Name: YPR Theme
Theme URI: https://yourpsychicreview.com/
Author: Your Psychic Review
Description: Own block theme for yourpsychicreview.com. A calm consumer-guide design system with cool paper, deep navy ink, one warm-gold accent, and editorial comparison layouts.
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: ypr-theme
*/

:root {
  --ypr-ink: #0f1523;
  --ypr-navy: #18243d;
  --ypr-navy-2: #243250;
  --ypr-paper: #f4f6f9;
  --ypr-paper-2: #e7eef6;
  --ypr-card: #ffffff;
  --ypr-line: #d5dde8;
  --ypr-muted: #566174;
  --ypr-soft: #eef3f8;
  --ypr-gold: #b77a23;
  --ypr-gold-2: #d5a04a;
  --ypr-radius: 16px;
  --ypr-radius-sm: 10px;
  --ypr-shadow: 0 22px 60px rgba(15, 21, 35, 0.12);
  --ypr-shell: min(1140px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #f8fafc 0%, var(--ypr-paper) 420px),
    var(--ypr-paper);
  color: var(--ypr-ink);
  font-family: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
textarea {
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(183, 122, 35, 0.55);
  outline-offset: 4px;
  border-radius: 8px;
}

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

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

.wp-block-template-part,
.wp-site-blocks > header,
.wp-site-blocks > footer {
  margin-block-start: 0;
}

.ypr-page {
  background: var(--ypr-paper);
}

.ypr-shell {
  width: var(--ypr-shell);
  margin-inline: auto;
}

.ypr-kicker {
  width: fit-content;
  margin: 0 0 1rem;
  padding: 0.42rem 0.72rem;
  border: 1px solid rgba(183, 122, 35, 0.28);
  border-radius: 999px;
  background: rgba(183, 122, 35, 0.09);
  color: #69420d;
  font: 700 0.78rem/1.1 "IBM Plex Mono", Consolas, monospace;
  text-transform: uppercase;
}

.ypr-hero {
  position: relative;
  min-height: min(760px, calc(100dvh - 70px));
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(circle at 92% 12%, rgba(213, 160, 74, 0.22), transparent 28rem),
    linear-gradient(135deg, #f8fafc 0%, #eef3f8 48%, #dfe8f3 100%);
}

.ypr-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.ypr-hero-copy h1 {
  max-width: 11ch;
  margin: 0;
  color: var(--ypr-ink);
  font-family: "Sora", "Segoe UI", Arial, sans-serif;
  font-size: clamp(3.15rem, 7vw, 6.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.ypr-lede {
  max-width: 41rem;
  margin: 1.35rem 0 0;
  color: var(--ypr-muted);
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
  line-height: 1.65;
}

.ypr-actions,
.ypr-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin-top: 1.7rem;
}

.ypr-button,
.wp-block-button__link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: var(--ypr-radius-sm) !important;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
  white-space: nowrap;
}

.ypr-button {
  padding: 0.95rem 1.25rem;
}

.ypr-button:hover,
.wp-block-button__link:hover {
  transform: translateY(-1px);
}

.ypr-button:active,
.wp-block-button__link:active {
  transform: translateY(1px);
}

.ypr-button-primary,
.wp-block-button__link {
  border: 1px solid rgba(15, 21, 35, 0.08);
  background: var(--ypr-gold);
  color: #101520;
  box-shadow: 0 12px 30px rgba(183, 122, 35, 0.26);
}

.ypr-button-primary:hover,
.wp-block-button__link:hover {
  background: #9d6519;
  color: #ffffff;
}

.ypr-button-secondary {
  border: 1px solid rgba(15, 21, 35, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ypr-ink);
}

.ypr-button-secondary:hover {
  border-color: rgba(15, 21, 35, 0.36);
  background: #ffffff;
}

.ypr-hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  max-width: 34rem;
  margin: 2rem 0 0;
}

.ypr-hero-proof div {
  padding: 1rem;
  border: 1px solid rgba(15, 21, 35, 0.1);
  border-radius: var(--ypr-radius-sm);
  background: rgba(255, 255, 255, 0.56);
}

.ypr-hero-proof dt {
  font: 700 1.7rem/1 "Sora", "Segoe UI", Arial, sans-serif;
  color: var(--ypr-navy);
}

.ypr-hero-proof dd {
  margin: 0.28rem 0 0;
  color: var(--ypr-muted);
  font-size: 0.86rem;
}

.ypr-hero-visual {
  position: relative;
  border-radius: calc(var(--ypr-radius) + 6px);
  overflow: hidden;
  background: var(--ypr-navy);
  box-shadow: var(--ypr-shadow);
  isolation: isolate;
}

.ypr-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: inherit;
  pointer-events: none;
}

.ypr-hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.ypr-visual-note {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  max-width: min(20rem, calc(100% - 2rem));
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--ypr-radius-sm);
  background: rgba(15, 21, 35, 0.76);
  color: #ffffff;
  backdrop-filter: blur(14px);
}

.ypr-visual-note strong {
  display: block;
  font-family: "Sora", "Segoe UI", Arial, sans-serif;
  font-size: 0.94rem;
}

.ypr-visual-note span {
  display: block;
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  line-height: 1.45;
}

.ypr-trust-band {
  padding: 1.1rem 0;
  background: var(--ypr-navy);
  color: #ffffff;
}

.ypr-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--ypr-radius);
  background: rgba(255, 255, 255, 0.13);
}

.ypr-trust-grid article {
  min-height: 100%;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.045);
}

.ypr-trust-grid span {
  color: var(--ypr-gold-2);
  font: 700 0.78rem/1 "IBM Plex Mono", Consolas, monospace;
}

.ypr-trust-grid h2 {
  margin: 0.45rem 0 0;
  color: #ffffff;
  font-size: 1.15rem;
}

.ypr-trust-grid p {
  margin: 0.55rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.96rem;
  line-height: 1.55;
}

.ypr-section {
  padding: clamp(3.25rem, 7vw, 6rem) 0;
}

.ypr-two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}

.ypr-section h2,
.ypr-final-cta h2 {
  margin: 0;
  color: var(--ypr-ink);
  font-family: "Sora", "Segoe UI", Arial, sans-serif;
  font-size: clamp(2.15rem, 4vw, 4.3rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.ypr-copy-stack {
  display: grid;
  gap: 1rem;
  color: var(--ypr-muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.ypr-copy-stack p,
.ypr-section-head p,
.ypr-panel p,
.ypr-format-grid p,
.ypr-format-grid li,
.ypr-faq details p,
.ypr-redflag-list li {
  margin: 0;
}

.ypr-checklist,
.ypr-formats,
.ypr-faq {
  background: #f8fafc;
}

.ypr-section-head {
  max-width: 45rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.ypr-section-head .ypr-kicker {
  margin-inline: auto;
}

.ypr-section-head-left {
  margin-inline: 0;
  text-align: left;
}

.ypr-section-head-left .ypr-kicker {
  margin-inline: 0;
}

.ypr-section-head p {
  margin-top: 1rem;
  color: var(--ypr-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.ypr-card-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr 0.95fr;
  grid-auto-rows: minmax(230px, auto);
  gap: 1rem;
}

.ypr-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.25rem, 2.3vw, 2rem);
  border: 1px solid var(--ypr-line);
  border-radius: var(--ypr-radius);
  background: var(--ypr-card);
  box-shadow: 0 12px 35px rgba(15, 21, 35, 0.06);
}

.ypr-card-feature {
  grid-row: span 2;
  background:
    linear-gradient(180deg, rgba(183, 122, 35, 0.08), rgba(255, 255, 255, 0.92)),
    var(--ypr-card);
}

.ypr-card-dark {
  background: var(--ypr-navy);
  color: #ffffff;
}

.ypr-card img {
  width: 44px;
  height: 44px;
  margin-bottom: auto;
}

.ypr-card h3 {
  margin: 2rem 0 0.6rem;
  color: inherit;
  font: 700 1.28rem/1.15 "Sora", "Segoe UI", Arial, sans-serif;
}

.ypr-card p {
  margin: 0;
  color: var(--ypr-muted);
  line-height: 1.62;
}

.ypr-card-dark p {
  color: rgba(255, 255, 255, 0.76);
}

.ypr-steps {
  background:
    linear-gradient(180deg, rgba(231, 238, 246, 0.72), rgba(244, 246, 249, 0.92));
}

.ypr-steps-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
  align-items: stretch;
}

.ypr-panel {
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--ypr-radius);
  background: var(--ypr-navy);
  color: #ffffff;
}

.ypr-panel h2,
.ypr-panel .ypr-kicker {
  color: #ffffff;
}

.ypr-panel .ypr-kicker {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.ypr-panel p {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.7;
}

.ypr-inline-link {
  display: inline-flex;
  margin-top: 1.35rem;
  color: var(--ypr-gold);
  font-weight: 700;
  text-decoration: underline;
}

.ypr-inline-light {
  color: #ffd28a;
}

.ypr-step-list {
  display: grid;
  gap: 1rem;
}

.ypr-step-list article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--ypr-line);
  border-radius: var(--ypr-radius);
  background: rgba(255, 255, 255, 0.72);
}

.ypr-step-list span {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border-radius: 999px;
  background: rgba(183, 122, 35, 0.12);
  color: var(--ypr-gold);
  font: 700 0.95rem/1 "IBM Plex Mono", Consolas, monospace;
}

.ypr-step-list h3 {
  margin: 0 0 0.35rem;
  font-size: 1.12rem;
}

.ypr-step-list p {
  margin: 0;
  color: var(--ypr-muted);
  line-height: 1.55;
}

.ypr-format-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.ypr-format-grid article {
  padding: 1.5rem;
  border: 1px solid var(--ypr-line);
  border-radius: var(--ypr-radius);
  background: var(--ypr-card);
}

.ypr-format-grid h3 {
  margin: 0 0 0.7rem;
  font-size: 1.24rem;
}

.ypr-format-grid p,
.ypr-format-grid li {
  color: var(--ypr-muted);
  line-height: 1.62;
}

.ypr-format-grid ul {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.ypr-redflags {
  background: var(--ypr-navy);
  color: #ffffff;
}

.ypr-redflags h2,
.ypr-redflags .ypr-kicker {
  color: #ffffff;
}

.ypr-redflags .ypr-kicker {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.ypr-redflag-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ypr-redflag-list li {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--ypr-radius-sm);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.58;
}

.ypr-redflag-list strong {
  color: #ffffff;
}

.ypr-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.ypr-faq details {
  border: 1px solid var(--ypr-line);
  border-radius: var(--ypr-radius-sm);
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 21, 35, 0.045);
}

.ypr-faq summary {
  cursor: pointer;
  padding: 1.1rem 1.2rem;
  color: var(--ypr-ink);
  font: 700 1rem/1.25 "Sora", "Segoe UI", Arial, sans-serif;
}

.ypr-faq details p {
  padding: 0 1.2rem 1.15rem;
  color: var(--ypr-muted);
  line-height: 1.62;
}

.ypr-final-cta {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  background:
    linear-gradient(135deg, rgba(24, 36, 61, 0.96), rgba(15, 21, 35, 1)),
    var(--ypr-navy);
  color: #ffffff;
}

.ypr-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
}

.ypr-final-cta h2 {
  max-width: 16ch;
  color: #ffffff;
}

.ypr-final-cta .ypr-kicker {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.ypr-cta-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.ypr-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(24, 36, 61, 0.96) !important;
  backdrop-filter: blur(14px);
}

.ypr-header .wp-block-site-title a {
  color: #ffffff;
  text-decoration: none;
}

.ypr-header p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.78rem;
  margin: 0;
}

.ypr-header p a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  text-decoration: none;
}

.ypr-header p a:hover {
  color: #ffffff;
}

.ypr-footer {
  margin-block-start: 0;
}

.ypr-legal-row a {
  text-decoration: underline;
}

.ypr-callout {
  background: var(--wp--preset--color--featured);
  border-left: 4px solid var(--wp--preset--color--accent);
  border-radius: var(--ypr-radius-sm);
  padding: 1.25rem 1.5rem;
}

table.ypr-compare {
  width: 100%;
  overflow: hidden;
  border-collapse: collapse;
  border-radius: var(--ypr-radius);
}

table.ypr-compare th {
  padding: 12px 16px;
  background: var(--wp--preset--color--featured);
  font-family: var(--wp--preset--font-family--fontprimary);
  font-size: 0.9rem;
  text-align: left;
}

table.ypr-compare td {
  padding: 12px 16px;
  border-top: 1px solid var(--wp--preset--color--mono-4);
  font-size: 0.95rem;
}

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

@media (max-width: 980px) {
  :root {
    --ypr-shell: min(100vw - 28px, 720px);
  }

  .ypr-hero {
    min-height: auto;
  }

  .ypr-hero-grid,
  .ypr-two-col,
  .ypr-steps-layout,
  .ypr-cta-inner {
    grid-template-columns: 1fr;
  }

  .ypr-hero-copy h1 {
    max-width: 12ch;
  }

  .ypr-card-grid,
  .ypr-format-grid,
  .ypr-trust-grid,
  .ypr-faq-grid {
    grid-template-columns: 1fr;
  }

  .ypr-card-feature {
    grid-row: auto;
  }

  .ypr-cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  :root {
    --ypr-shell: min(100vw - 24px, 560px);
  }

  .ypr-hero {
    padding-top: 2.3rem;
  }

  .ypr-hero-copy h1 {
    max-width: 11ch;
    font-size: clamp(2.65rem, 14vw, 4rem);
  }

  .ypr-actions,
  .ypr-cta-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ypr-button {
    width: 100%;
  }

  .ypr-hero-proof {
    grid-template-columns: 1fr;
  }

  .ypr-visual-note {
    position: static;
    max-width: none;
    border-radius: 0;
  }

  .ypr-step-list article {
    grid-template-columns: 1fr;
  }

  .ypr-header .wp-block-group.alignwide {
    gap: 0.8rem;
  }

  .ypr-header p {
    gap: 0.55rem;
  }
}
