/*
Theme Name: Quiet Study
Theme URI: https://nikolaostrimandilis.gr
Author: Ranking House
Description: Centered calm multi-page theme for Nikolaos Trimandilis.
Version: 1.5.4
Text Domain: quiet-study
Requires at least: 6.4
Requires PHP: 8.0
*/

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/corm-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/corm-400i.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/corm-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mulish";
  src: url("assets/fonts/mul-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mulish";
  src: url("assets/fonts/mul-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mulish";
  src: url("assets/fonts/mul-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #213b37;
  --ink-2: #2c4a45;
  --paper: #eef0e9;
  --panel: #e4e8dd;
  --panel-2: #dde2d4;
  --rose: #bf766b;
  --rose-deep: #a85f55;
  --stone: #5d6a61;
  --line: #cdd3c4;
  --cream: #f4f3ec;
  --display: "Cormorant Garamond", Georgia, serif;
  --ui: "Mulish", system-ui, sans-serif;
  --read: "Cormorant Garamond", Georgia, serif;
  --maxw: 1140px;
  --readw: 42rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --radius: 4px;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
::selection { background: var(--rose); color: #fff; }

:where(h1, h2, h3) {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 .8rem;
}
p { margin: 0 0 1.05rem; }

.wrap {
  width: min(100% - 2.75rem, var(--maxw));
  margin-inline: auto;
}
.eyebrow {
  font-family: var(--ui);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--rose-deep);
  display: inline-block;
}

/* reveal */
.reveal { opacity: 1; transform: none; }
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
html.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .18s; }
.reveal.d3 { transition-delay: .28s; }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(238, 240, 233, .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  width: min(100% - 2.75rem, var(--maxw));
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.brand .mark { flex: 0 0 auto; }
.brand b {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.05;
}
.brand span {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 3px;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: var(--radius);
  padding: .5rem .75rem;
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
}

.primary-nav { display: flex; align-items: center; gap: 1.2rem; }
.primary-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .2rem 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-menu a {
  text-decoration: none;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
  padding: 4px 0;
  position: relative;
}
.primary-menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  height: 1.5px; width: 0;
  background: var(--rose);
  transition: width .35s var(--ease);
}
.primary-menu a:hover::after,
.primary-menu .current-menu-item > a::after,
.primary-menu .current_page_item > a::after { width: 100%; }
.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a { color: var(--rose-deep); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: var(--cream) !important;
  text-decoration: none !important;
  font-size: .88rem;
  font-weight: 600;
  padding: .72rem 1.05rem;
  border-radius: 999px;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--ink-2); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  font-family: var(--ui);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none !important;
  border-radius: 999px;
  padding: .95rem 1.45rem;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-solid {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream) !important;
}
.btn-solid:hover {
  background: var(--ink-2);
  border-color: var(--ink-2);
}
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink) !important;
}
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 96px;
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
}
.hero-arch {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  width: min(1180px, 128vw);
  opacity: .7;
  pointer-events: none;
}
.hero-arch path {
  fill: none;
  stroke: color-mix(in srgb, var(--ink) 16%, transparent);
  stroke-width: 1.5;
}
.hero-arch .inner { stroke: color-mix(in srgb, var(--rose) 30%, transparent); }
.hero-grid {
  position: relative;
  z-index: 2;
  max-width: 880px;
  text-align: center;
  margin: 0 auto;
}
.hero .eyebrow { display: block; margin-bottom: 26px; }
.hero h1 {
  font-weight: 400;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.04;
  letter-spacing: -.005em;
  margin: 0 0 28px;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--rose-deep);
}
.hero .lead {
  font-family: var(--read);
  color: var(--ink-2);
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto 38px;
}
.hero-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- SECTIONS ---------- */
.section { padding: 96px 0; position: relative; }
.sec-head,
.section-head {
  max-width: 720px;
  margin: 0 0 56px;
}
.sec-head.center,
.section-head {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.sec-head h2,
.section-head h2 {
  font-size: clamp(30px, 4.4vw, 46px);
  margin: 0;
  letter-spacing: -.01em;
}
.sec-head .eyebrow,
.section-head .eyebrow { display: block; margin-bottom: 16px; }
.sec-head p,
.section-head p {
  font-family: var(--read);
  font-size: 18.5px;
  color: var(--stone);
  margin: 18px 0 0;
}
.section-cta {
  margin-top: 2rem;
  text-align: center;
}
.arc-rule {
  display: block;
  margin: 0 auto;
  width: 120px;
  height: 26px;
  color: var(--rose);
}
.arc-rule path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  opacity: .7;
  stroke-linecap: round;
}

/* ---------- HOME INTRO ---------- */
.intro-home {
  background: var(--paper);
  padding-top: 36px;
}
.intro-panel {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(2rem, 4vw, 3rem);
}
.intro-panel p {
  font-family: var(--read);
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  line-height: 1.7;
  color: var(--ink-2);
  text-align: left;
}
.jung-quote {
  margin: 2rem 0 0;
  padding: 1.4rem 1.5rem 1.2rem;
  border-top: 1px solid var(--line);
  text-align: center;
}
.jung-quote p {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  color: var(--ink);
  margin: 0 0 .7rem;
  text-align: center;
  line-height: 1.45;
}
.jung-quote cite {
  font-family: var(--ui);
  font-style: normal;
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rose-deep);
  font-weight: 600;
}

/* ---------- ABOUT ---------- */
.about {
  background: var(--panel);
  border-block: 1px solid var(--line);
}
.about-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.portrait {
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 200px 200px 14px 14px;
  background: radial-gradient(120% 90% at 50% 0%, #2f534d 0%, var(--ink) 60%);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  box-shadow: 0 30px 60px -36px rgba(33, 59, 55, .55);
}
.portrait .ph-mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.portrait .ph-mono {
  font-family: var(--display);
  font-weight: 500;
  font-size: 84px;
  color: rgba(244, 243, 236, .16);
  letter-spacing: .04em;
  line-height: 1;
}
.portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portrait figcaption {
  position: relative;
  z-index: 2;
  color: var(--cream);
  font-family: var(--ui);
  font-size: 12.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  padding: 0 0 22px;
  opacity: .78;
}
.about-body h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 14px 0 8px;
}
.about-body .role {
  font-family: var(--display);
  color: var(--rose-deep);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: .02em;
  margin-bottom: 1.1rem;
}
.about-body p {
  font-family: var(--read);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-2);
}
.creds {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.creds li {
  font-family: var(--ui);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 7px 16px;
}
.about-actions { margin-top: 1.8rem; }

/* ---------- APPROACH ---------- */
.approach {
  background: var(--ink);
  color: var(--cream);
}
.approach .eyebrow { color: #d99b91; }
.approach .sec-head h2 { color: var(--cream); }
.approach .sec-head p { color: rgba(244, 243, 236, .66); }
.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(244, 243, 236, .14);
  border: 1px solid rgba(244, 243, 236, .14);
  border-radius: 18px;
  overflow: hidden;
}
.principle {
  background: var(--ink);
  padding: 40px 38px;
}
.principle .gr {
  font-family: var(--display);
  font-style: italic;
  font-size: 30px;
  color: var(--rose);
  opacity: .9;
  margin-bottom: 18px;
  line-height: 1;
}
.principle h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 25px;
  margin: 0 0 12px;
  color: var(--cream);
}
.principle p {
  font-family: var(--read);
  font-size: 16.5px;
  line-height: 1.68;
  color: rgba(244, 243, 236, .78);
  margin: 0;
}

/* ---------- THERAPIES ---------- */
.therapies { background: var(--paper); }
.therapies-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.ther-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 38px 36px;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.ther-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 48px -34px rgba(33, 59, 55, .4);
  border-color: var(--panel-2);
}
.ther-card .num {
  font-family: var(--display);
  font-style: italic;
  font-size: 19px;
  color: var(--rose-deep);
}
.ther-card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 28px;
  margin: 8px 0 14px;
  color: var(--ink);
}
.ther-card p {
  font-family: var(--read);
  font-size: 16.5px;
  line-height: 1.68;
  color: var(--ink-2);
  margin: 0;
}
.ther-card .arc-deco {
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 120px;
  height: 120px;
  color: var(--rose);
  opacity: .13;
  pointer-events: none;
}

/* ---------- PUBLICATIONS ---------- */
.publications { background: var(--panel); border-block: 1px solid var(--line); }
.pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.pub-card {
  margin: 0;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.pub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 48px -34px rgba(33, 59, 55, .4);
}
.pub-cover {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ink);
}
.pub-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pub-cover-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  color: var(--cream);
  padding: 2rem;
  text-align: center;
  background:
    radial-gradient(80% 70% at 50% 20%, #2f534d 0%, var(--ink) 70%);
}
.pub-cover-text span {
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #d99b91;
}
.pub-cover-text strong {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.15;
}
.pub-cover-text em {
  font-family: var(--ui);
  font-style: normal;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(244, 243, 236, .62);
  margin-top: .4rem;
}
.pub-card figcaption {
  font-family: var(--read);
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--ink-2);
  padding: 24px 26px;
  font-style: italic;
}
.pub-card figcaption b {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- BLOG HUB ---------- */
.blog-hub { padding-top: 1.5rem; }
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.article-card {
  margin: 0;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 48px -34px rgba(33, 59, 55, .4);
}
.article-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--panel-2);
}
.article-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-card-fallback {
  display: block;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(80% 80% at 30% 20%, #2f534d 0%, var(--ink) 70%);
}
.article-card-body {
  padding: 1.25rem 1.3rem 1.45rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  flex: 1;
}
.article-card-body .meta {
  color: var(--stone);
  font-size: .82rem;
}
.article-card-body h2,
.article-card-body h3 {
  font-size: 1.45rem;
  margin: 0;
  line-height: 1.2;
  font-weight: 600;
}
.article-card-body h2 a,
.article-card-body h3 a {
  text-decoration: none;
  color: var(--ink);
}
.article-card-body h2 a:hover,
.article-card-body h3 a:hover { color: var(--rose-deep); }
.article-card-body p {
  color: var(--stone);
  font-size: .98rem;
  margin: 0;
  flex: 1;
}
.home-articles .article-card-body p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-more {
  font-size: .88rem;
  font-weight: 600;
  color: var(--rose-deep);
  text-decoration: none;
}
.article-card-more:hover { text-decoration: underline; }

.article-featured {
  margin: 0 0 2rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.article-featured img {
  width: 100%;
  height: auto;
  display: block;
}
.article-source {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--stone);
  font-size: .95rem;
}
.author-box {
  margin-top: 3rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--cream);
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1.1rem;
  align-items: center;
}
.author-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--ink);
  display: grid;
  place-items: center;
}
.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.author-mono {
  font-family: var(--display);
  color: rgba(244, 243, 236, .35);
  font-size: 1.8rem;
}
.author-label {
  margin: 0 0 .2rem;
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rose-deep);
  font-weight: 600;
}
.author-box h2 {
  font-size: 1.35rem;
  margin: 0 0 .35rem;
}
.author-box p { margin: 0; color: var(--stone); font-size: .95rem; }

/* ---------- ARTICLES ---------- */
.articles-preview { background: var(--paper); }
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.post-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.post-list a {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 500;
}
.post-list a:hover { color: var(--rose-deep); }
.post-list .meta {
  color: var(--stone);
  font-size: .88rem;
  white-space: nowrap;
}

/* ---------- CONTACT ---------- */
.contact-home { background: var(--paper); padding-bottom: 72px; }
.contact-card {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 54px;
  align-items: center;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(40px, 5vw, 64px);
  margin-top: 42px;
}
.contact-details h2,
.contact-form-wrap h2 {
  font-size: clamp(30px, 4.4vw, 44px);
  margin: 0 0 18px;
}
.contact-details p {
  font-family: var(--read);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-2);
}
.contact-details a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.contact-details a:hover {
  color: var(--rose-deep);
  border-bottom-color: var(--rose);
}
.contact-lines {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}
.contact-lines strong {
  display: block;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: .25rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem .85rem;
  margin-top: .15rem;
}
.social-link {
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.social-link:hover {
  color: var(--rose-deep);
  border-bottom-color: var(--rose);
}
.footer-social {
  margin-top: 1.15rem;
}
.footer-social .social-link {
  color: rgba(244, 243, 236, .68);
  border-bottom-color: rgba(244, 243, 236, .18);
}
.footer-social .social-link:hover {
  color: var(--rose);
  border-bottom-color: var(--rose);
}

.nt-form label {
  display: block;
  font-size: .86rem;
  font-weight: 600;
  margin-bottom: .35rem;
}
.nt-form p { margin-bottom: .95rem; }
.nt-form .nt-hp {
  position: absolute !important;
  left: -9999px !important;
  height: 0 !important;
  overflow: hidden !important;
}
.nt-form input[type="text"],
.nt-form input[type="email"],
.nt-form input[type="tel"],
.nt-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 10px;
  padding: .85rem .95rem;
  font: inherit;
}
.nt-form textarea { min-height: 9rem; resize: vertical; }
.nt-form input:focus,
.nt-form textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--rose) 40%, transparent);
  border-color: var(--rose);
}
.form-success {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .95rem 1rem;
  margin-bottom: 1rem;
}
.form-note { color: var(--stone); font-size: .92rem; }

/* ---------- INNER PAGES ---------- */
.page-hero {
  padding: 64px 0 28px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel) 0%, var(--paper) 100%);
}
.page-hero .wrap { max-width: var(--readw); text-align: center; }
.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  margin-top: .7rem;
}
.page-hero p { color: var(--stone); margin: .8rem auto 0; max-width: 36rem; }

.page-shell,
.post-shell {
  width: min(100% - 2.75rem, var(--readw));
  margin: 0 auto;
  padding: 2.8rem 0 5rem;
}
.wide-shell {
  width: min(100% - 2.75rem, var(--maxw));
  margin: 0 auto;
  padding: 2.8rem 0 5rem;
}
.wide-shell .contact-card { margin-top: 0; }

.prose :where(h2) {
  font-size: 1.85rem;
  margin-top: 2.1rem;
}
.prose :where(ul) { padding-left: 1.15rem; }
.prose :where(li) { margin-bottom: .45rem; }
.prose a {
  color: var(--rose-deep);
  text-underline-offset: .15em;
}
.entry-meta {
  color: var(--stone);
  font-size: .92rem;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(244, 243, 236, .72);
  padding: 64px 0 36px;
}
.footer-grid {
  width: min(100% - 2.75rem, var(--maxw));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(244, 243, 236, .12);
}
.foot-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.foot-brand b {
  display: block;
  font-family: var(--display);
  font-size: 1.45rem;
  color: var(--cream);
  font-weight: 600;
}
.foot-brand span {
  display: block;
  margin-top: .35rem;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(244, 243, 236, .5);
}
.foot-brand p {
  margin-top: 1rem;
  max-width: 28ch;
  color: rgba(244, 243, 236, .58);
  font-size: .95rem;
}
.footer-col h3 {
  color: var(--cream);
  font-family: var(--ui);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1rem;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .55rem;
}
.footer-col a {
  color: rgba(244, 243, 236, .68);
  text-decoration: none;
}
.footer-col a:hover { color: var(--rose); }
.footer-bottom {
  width: min(100% - 2.75rem, var(--maxw));
  margin: 0 auto;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .88rem;
  color: rgba(244, 243, 236, .45);
}
.powered-by {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: rgba(244, 243, 236, .55);
}
.powered-by span {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.powered-by img {
  height: 22px;
  width: auto;
  opacity: .92;
}
.powered-by:hover { color: var(--cream); }
.powered-by:hover img { opacity: 1; }

@media (max-width: 980px) {
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .about-grid,
  .contact-card,
  .footer-grid,
  .principles,
  .therapies-grid,
  .author-box {
    grid-template-columns: 1fr;
  }
  .article-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 360px; margin: 0 auto; }
  .post-list li { grid-template-columns: 1fr; gap: .25rem; }
  .nav-cta { display: none; }
  .principle { padding: 28px 24px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    display: none;
    width: 100%;
  }
  .primary-nav.is-open { display: block; }
  .header-inner { flex-wrap: wrap; }
  .primary-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .4rem 0 .8rem;
  }
  .primary-menu a {
    display: block;
    padding: .85rem 0;
    border-bottom: 1px solid var(--line);
  }
  .primary-menu a::after { display: none; }
  .hero { min-height: auto; padding: 56px 0 68px; }
  .section { padding: 68px 0; }
  .brand span { display: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
