/*
Theme Name: Simple As Pi Yoga
Theme URI: https://simpleaspi.yoga/
Author: Simple As Pi Yoga
Description: A lightweight custom WordPress theme for Simple As Pi Yoga Meditation.
Version: 1.0.1
Requires at least: 6.7
Tested up to: 7.0
Requires PHP: 8.1
Text Domain: simpleaspi
*/

:root {
  --blue-950: #06285f;
  --blue-900: #07377f;
  --blue-800: #0a3f9d;
  --blue-700: #1454b7;
  --blue-100: #e9f0fb;
  --gold: #ffbc2c;
  --gold-deep: #d89400;
  --gold-pale: #fff1cc;
  --sage: #7f987b;
  --sage-pale: #e9efe7;
  --ivory: #fbf8f2;
  --sand: #f3ede3;
  --white: #fff;
  --ink: #12223a;
  --muted: #5e6978;
  --line: rgba(8, 55, 127, .14);
  --shadow: 0 20px 50px rgba(12, 41, 79, .10);
  --radius: 26px;
  --shell: min(1260px, calc(100% - 40px));
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Aptos, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed;
  left: 16px; top: 12px;
  z-index: 2000;
  transform: translateY(-160%);
  padding: 10px 15px;
  border-radius: 10px;
  color: #fff;
  background: var(--blue-950);
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

.shell { width: var(--shell); margin-inline: auto; }
.section-shell { width: min(1380px, calc(100% - 28px)); margin-inline: auto; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-deep);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .18em;
  line-height: 1.3;
  text-transform: uppercase;
}
.eyebrow.light { color: #ffdb7e; }

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: .7rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid rgba(255, 188, 44, .75);
  outline-offset: 3px;
}
.button-blue { color: #fff; background: var(--blue-800); box-shadow: 0 12px 24px rgba(10, 63, 157, .22); }
.button-blue:hover { background: var(--blue-900); box-shadow: 0 15px 30px rgba(10, 63, 157, .28); }
.button-gold { color: var(--blue-950); background: var(--gold); box-shadow: 0 10px 22px rgba(216, 148, 0, .18); }
.button-gold:hover { background: #ffc84b; }
.button-outline { color: var(--blue-800); border-color: var(--blue-700); background: rgba(255,255,255,.82); }
.button-outline:hover { background: var(--white); box-shadow: 0 10px 24px rgba(10,63,157,.12); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(8,55,127,.07);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px);
}
.header-inner {
  min-height: 88px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
}
.brand,
.brand .custom-logo-link { display: inline-flex; align-items: center; }
.brand img,
.brand .custom-logo { width: 128px; height: auto; }
.site-nav { display: flex; justify-content: center; align-items: center; }
.site-nav-list { display: flex; justify-content: center; align-items: center; gap: clamp(16px, 2.2vw, 30px); margin: 0; padding: 0; list-style: none; }
.site-nav-list li { margin: 0; }
.site-nav a {
  position: relative;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -7px;
  width: 0; height: 2px;
  background: var(--gold);
  transform: translateX(-50%);
  transition: width .2s ease;
}
.site-nav a:hover::after { width: 100%; }
.header-cta { white-space: nowrap; }
.menu-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  padding: 11px;
}
.menu-toggle span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--blue-900); transition: .2s ease; }

.hero {
  position: relative;
  min-height: 600px;
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(500px, 1.25fr);
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(130deg, #fffdfa 0%, var(--ivory) 50%, var(--sand) 100%);
  box-shadow: inset 0 0 0 1px rgba(8,55,127,.05);
}
.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: clamp(54px, 6vw, 86px) clamp(34px, 5.5vw, 78px);
}
.hero h1 {
  max-width: 660px;
  margin: 0;
  color: var(--blue-900);
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: .99;
}
.hero h1 em { color: var(--blue-700); font-weight: 500; }
.accent-rule { width: 78px; height: 4px; margin: 24px 0 20px; border-radius: 2px; background: var(--gold); }
.hero-lead { max-width: 570px; margin: 0; color: #394b63; font-size: 1.05rem; line-height: 1.72; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.location-line { display: flex; align-items: center; gap: 8px; margin: 24px 0 0; color: var(--blue-900); font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.location-line svg { width: 20px; fill: none; stroke: var(--sage); stroke-width: 1.8; }
.hero-leaf {
  position: absolute;
  right: -14px; bottom: 3px;
  width: 205px;
  opacity: .26;
  fill: none;
  stroke: var(--sage);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  pointer-events: none;
}
.hero-media {
  position: relative;
  min-height: 600px;
  margin: 0;
  overflow: hidden;
  border-radius: 48% 28px 28px 48% / 70% 28px 28px 70%;
  background: var(--blue-900);
}
.hero-media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, rgba(5,38,91,.02), rgba(5,38,91,.16));
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 57% center; }
.hero-media figcaption, .about-photo figcaption { position: absolute; clip: rect(0 0 0 0); width: 1px; height: 1px; overflow: hidden; }
.hero-ring {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 50%;
}
.ring-one { width: 260px; height: 260px; right: 15%; top: 12%; }
.ring-two { width: 205px; height: 205px; right: calc(15% + 28px); top: calc(12% + 28px); }
.hero-dot { position: absolute; z-index: 3; width: 34px; height: 34px; right: 23%; bottom: 18%; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 9px rgba(255,255,255,.15); }

.offerings { padding: 92px 0 96px; background: #fff; }
.section-heading { max-width: 720px; margin-bottom: 44px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading h2, .about-copy h2, .kind-heading h2, .community-title h2, .newsletter h2 {
  margin: 0;
  color: var(--blue-900);
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 3.1rem);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.1;
}
.offer-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.offer-card {
  min-width: 0;
  padding: 30px 22px 25px;
  border: 1px solid rgba(8,55,127,.10);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 11px 32px rgba(9,50,108,.07);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.offer-card:hover { transform: translateY(-6px); border-color: rgba(8,55,127,.22); box-shadow: 0 20px 45px rgba(9,50,108,.12); }
.offer-icon { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 50%; }
.offer-icon.blue { color: var(--blue-800); background: var(--blue-100); }
.offer-icon.gold { color: #b87900; background: var(--gold-pale); }
.offer-icon.sage { color: #54724f; background: var(--sage-pale); }
.offer-icon svg { width: 38px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.offer-card h3 { min-height: 2.7em; margin: 0 0 11px; color: var(--blue-900); font-size: 1.04rem; line-height: 1.3; }
.offer-card p { min-height: 7.8em; margin: 0 0 14px; color: var(--muted); font-size: .91rem; line-height: 1.58; }
.offer-card a, .text-link { color: var(--blue-800); font-size: .9rem; font-weight: 800; text-decoration: none; }
.offer-card a span, .text-link span { color: var(--gold-deep); transition: padding-left .2s ease; }
.offer-card a:hover span, .text-link:hover span { padding-left: 5px; }

.about-section { padding: 88px 0; background: linear-gradient(125deg, #faf5ec 0%, #fffdf9 52%, #f7f0e6 100%); }
.about-grid { display: grid; grid-template-columns: 1.05fr .9fr 1.35fr; gap: 48px; align-items: center; }
.about-photo { position: relative; min-height: 510px; margin: 0; overflow: hidden; border-radius: 24px 44% 24px 24px / 24px 48% 24px 24px; background: var(--sand); box-shadow: var(--shadow); }
.about-photo img { width: 100%; height: 100%; min-height: 510px; object-fit: cover; object-position: center 45%; }
.photo-orbit { position: absolute; border: 1px solid rgba(255,255,255,.75); border-radius: 50%; }
.orbit-one { width: 210px; height: 210px; top: -55px; left: -55px; }
.orbit-two { width: 165px; height: 165px; top: -32px; left: -32px; }
.photo-dot { position: absolute; top: 34px; left: 34px; width: 36px; height: 36px; border-radius: 50%; background: var(--gold); }
.about-copy { padding-block: 15px; }
.about-copy .role { margin: 8px 0 22px; color: var(--gold-deep); font-weight: 800; }
.about-copy p:not(.eyebrow):not(.role) { color: #435267; }
.text-link { display: inline-flex; margin-top: 10px; gap: 8px; }
.kind-words { min-width: 0; }
.kind-heading { margin-bottom: 22px; }
.quote-stack { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
blockquote { position: relative; min-height: 270px; margin: 0; padding: 54px 22px 22px; border: 1px solid rgba(8,55,127,.10); border-radius: 20px; background: rgba(255,255,255,.87); box-shadow: 0 12px 30px rgba(8,55,127,.06); }
.quote-mark { position: absolute; top: 18px; left: 20px; color: var(--blue-800); font-family: Georgia, serif; font-size: 3.2rem; font-weight: 700; line-height: 1; }
blockquote p { margin: 0 0 22px; color: #27364a; font-size: .9rem; line-height: 1.58; }
blockquote footer { color: var(--blue-900); font-size: .8rem; font-weight: 800; }
blockquote footer span { display: block; color: var(--muted); font-weight: 500; }

.community { padding: 42px 0; border-block: 1px solid rgba(8,55,127,.08); background: #fff; }
.community-inner { display: grid; grid-template-columns: 270px 1fr; align-items: center; gap: 38px; }
.community-title h2 { font-size: 1.65rem; }
.community-marks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.community-marks span { min-height: 55px; display: grid; place-items: center; padding: 10px 14px; border: 1px solid rgba(8,55,127,.09); border-radius: 14px; color: #657180; background: #fbfcfe; font-family: var(--serif); font-size: .92rem; text-align: center; }

.newsletter { position: relative; overflow: hidden; padding: 45px 0; color: #fff; background: linear-gradient(100deg, var(--blue-900), var(--blue-700)); }
.newsletter::before, .newsletter::after { content: ''; position: absolute; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; }
.newsletter::before { width: 280px; height: 280px; left: -120px; top: -150px; }
.newsletter::after { width: 360px; height: 360px; right: -180px; bottom: -280px; }
.newsletter-inner { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr minmax(430px, .9fr); align-items: center; gap: 25px; }
.newsletter-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; color: var(--gold); background: #fff; }
.newsletter-icon svg { width: 34px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.newsletter h2 { color: #fff; font-size: clamp(1.65rem, 2.3vw, 2.5rem); }
.newsletter-copy p:last-child { margin: 6px 0 0; color: rgba(255,255,255,.74); }
.newsletter-form { display: grid; grid-template-columns: 1fr auto; position: relative; }
.newsletter-form input { min-width: 0; height: 52px; padding: 0 20px; border: 0; border-radius: 999px 0 0 999px; color: var(--ink); background: #fff; }
.newsletter-form .button { height: 52px; border-radius: 0 999px 999px 0; }
.form-note { position: absolute; top: calc(100% + 8px); left: 20px; margin: 0; color: rgba(255,255,255,.68); font-size: .72rem; }

.site-footer { color: rgba(255,255,255,.82); background: var(--blue-950); }
.footer-grid { padding: 58px 0 44px; display: grid; grid-template-columns: 1.3fr .7fr .7fr 1.35fr; gap: 48px; }
.footer-logo { display: inline-flex; padding: 12px 16px; border-radius: 16px; background: #fff; }
.footer-logo img { width: 135px; }
.footer-brand p { max-width: 320px; }
.footer-location { color: #ffda79; font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.site-footer h2 { margin: 0 0 15px; color: #fff; font-size: .86rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.footer-links a, .footer-bottom a { color: rgba(255,255,255,.76); text-decoration: none; }
.footer-links a:hover, .footer-bottom a:hover { color: var(--gold); }
.acknowledgement p { margin: 0 0 9px; color: rgba(255,255,255,.68); font-size: .84rem; line-height: 1.55; }
.footer-bottom { min-height: 62px; display: flex; justify-content: space-between; align-items: center; gap: 24px; border-top: 1px solid rgba(255,255,255,.13); font-size: .78rem; }
.footer-bottom nav { display: flex; gap: 22px; }

.reveal { opacity: 1; transform: none; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1180px) {
  .header-inner { gap: 18px; }
  .site-nav-list { gap: 14px; }
  .site-nav a { font-size: .82rem; }
  .hero { grid-template-columns: .9fr 1.05fr; }
  .offer-grid { grid-template-columns: repeat(3, 1fr); }
  .offer-card p { min-height: auto; }
  .about-grid { grid-template-columns: .95fr 1fr; }
  .kind-words { grid-column: 1 / -1; }
  .quote-stack { grid-template-columns: repeat(3, 1fr); }
  .newsletter-inner { grid-template-columns: auto 1fr; }
  .newsletter-form { grid-column: 2; width: 100%; }
}

@media (max-width: 980px) {
  :root { --shell: min(100% - 32px, 820px); }
  .header-inner { grid-template-columns: auto 1fr auto; min-height: 78px; }
  .brand img { width: 110px; }
  .menu-toggle { display: block; justify-self: end; }
  .header-cta { display: none; }
  .site-nav {
    position: absolute;
    top: 100%; left: 16px; right: 16px;
    display: grid;
    gap: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: .2s ease;
  }
  .site-nav-list { display: grid; gap: 0; width: 100%; }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .site-nav a { padding: 10px 12px; font-size: .95rem; }
  .site-nav a::after { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-copy { padding: 62px 42px 42px; }
  .hero-media { min-height: 460px; border-radius: 40% 40% 28px 28px / 24% 24% 28px 28px; }
  .hero-leaf { right: -30px; }
  .offer-grid { grid-template-columns: repeat(2, 1fr); }
  .community-inner { grid-template-columns: 1fr; }
  .community-title { text-align: center; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* WordPress integration and interior content templates. */
.admin-bar .site-header { top: 32px; }
.site-main { min-height: 55vh; }
.content-shell { width: min(900px, calc(100% - 40px)); margin-inline: auto; padding: 76px 0 96px; }
.content-shell.wide { width: var(--shell); }
.entry-header { margin-bottom: 36px; }
.entry-title,
.archive-title {
  margin: 0;
  color: var(--blue-900);
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.02;
}
.entry-meta { margin-top: 12px; color: var(--muted); font-size: .9rem; }
.entry-content { color: #33445b; font-size: 1.04rem; }
.entry-content > * { max-width: 760px; margin-inline: auto; }
.entry-content > .alignwide { max-width: 1100px; }
.entry-content > .alignfull { max-width: none; }
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--blue-900);
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
}
.entry-content h2 { margin-top: 2.2em; font-size: clamp(2rem, 4vw, 3rem); }
.entry-content h3 { margin-top: 1.8em; font-size: 1.65rem; }
.entry-content a { color: var(--blue-800); text-decoration-thickness: .08em; text-underline-offset: .15em; }
.entry-content img { border-radius: 18px; }
.entry-content .wp-block-button__link { border-radius: 999px; color: #fff; background: var(--blue-800); font-weight: 750; }
.post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 42px; }
.post-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 11px 32px rgba(9,50,108,.07); }
.post-card-thumbnail img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0; }
.post-card-body { padding: 24px; }
.post-card h2 { margin: 0 0 12px; color: var(--blue-900); font-family: var(--serif); font-size: 1.55rem; font-weight: 500; line-height: 1.15; }
.post-card h2 a { text-decoration: none; }
.post-card p { color: var(--muted); }
.pagination { margin-top: 44px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { min-width: 42px; min-height: 42px; display: grid; place-items: center; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.page-numbers.current { color: #fff; border-color: var(--blue-800); background: var(--blue-800); }
.not-found { text-align: center; }
.not-found p { max-width: 580px; margin-inline: auto; color: var(--muted); }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

@media (max-width: 980px) {
  .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

@media (max-width: 720px) {
  .content-shell { width: min(100% - 26px, 620px); padding: 56px 0 72px; }
  .post-list { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --shell: min(100% - 26px, 620px); }
  .section-shell { width: calc(100% - 18px); }
  .hero-copy { padding: 46px 24px 34px; }
  .hero h1 { font-size: clamp(2.65rem, 12vw, 4rem); }
  .hero-media { min-height: 350px; border-radius: 36% 36% 22px 22px / 18% 18% 22px 22px; }
  .hero-actions .button { flex: 1 1 170px; }
  .offerings { padding: 70px 0; }
  .offer-grid { grid-template-columns: 1fr; }
  .offer-card h3 { min-height: auto; }
  .about-section { padding: 68px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .about-photo, .about-photo img { min-height: 450px; }
  .quote-stack { grid-template-columns: 1fr; }
  blockquote { min-height: auto; }
  .community-marks { grid-template-columns: repeat(2, 1fr); }
  .newsletter-inner { grid-template-columns: 1fr; text-align: center; }
  .newsletter-icon { margin-inline: auto; }
  .newsletter-form { grid-column: auto; grid-template-columns: 1fr; gap: 10px; }
  .newsletter-form input, .newsletter-form .button { border-radius: 999px; }
  .form-note { position: static; margin-top: 4px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { padding: 20px 0; flex-direction: column; align-items: flex-start; }
}
