:root {
  --paper: #f7f3ea;
  --paper-deep: #eee8dc;
  --surface: #fffdf9;
  --ink: #25332c;
  --ink-soft: #536158;
  --sage: #728475;
  --sage-deep: #43584b;
  --sage-pale: #dce5dc;
  --gold: #b69962;
  --gold-pale: #eee2c9;
  --light-start: #43584b;
  --light-end: #2e4237;
  --lavender: #928ba4;
  --line: rgba(67, 88, 75, 0.16);
  --shadow: 0 22px 65px rgba(46, 57, 49, 0.1);
  --radius-lg: 30px;
  --radius-md: 20px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body[data-theme="fe"],
body[data-theme="disciplina"] {
  --sage: #6f8191;
  --sage-deep: #3f5668;
  --sage-pale: #dce5eb;
  --gold: #b19a6a;
  --gold-pale: #eee4cf;
  --light-start: #425b70;
  --light-end: #2d4051;
}

body[data-theme="entendimento"],
body[data-theme="mediunidade"] {
  --sage: #6f758e;
  --sage-deep: #444b68;
  --sage-pale: #e0e1ea;
  --gold: #aa9467;
  --gold-pale: #eee5d1;
  --light-start: #4a506d;
  --light-end: #30364f;
}

body[data-theme="vida"],
body[data-theme="corpo"] {
  --sage: #77798d;
  --sage-deep: #4d5064;
  --sage-pale: #e4e3ea;
  --gold: #b0986c;
  --gold-pale: #eee4d2;
  --light-start: #505368;
  --light-end: #363849;
}

body[data-theme="caridade"],
body[data-theme="servir"] {
  --sage: #9a756d;
  --sage-deep: #674c47;
  --sage-pale: #eadeda;
  --gold: #b58e62;
  --gold-pale: #f0e1cf;
  --light-start: #73534c;
  --light-end: #513a36;
}

body[data-theme="desapego"],
body[data-theme="evolucao"] {
  --sage: #8c806c;
  --sage-deep: #5d5242;
  --sage-pale: #e7e0d5;
  --gold: #ae8d57;
  --gold-pale: #efe0c7;
  --light-start: #645640;
  --light-end: #443929;
}

body[data-theme="invisivel"] {
  --sage: #668985;
  --sage-deep: #3b625f;
  --sage-pale: #d9e8e5;
  --gold: #ad9566;
  --gold-pale: #eee4cf;
  --light-start: #3e6864;
  --light-end: #294a47;
}

body[data-theme="vibracao"] {
  --sage: #83788f;
  --sage-deep: #594e68;
  --sage-pale: #e6e0ea;
  --gold: #b39969;
  --gold-pale: #eee3ce;
  --light-start: #62566f;
  --light-end: #43394f;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--sage-deep);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.share-button {
  position: absolute;
  z-index: 10;
  top: 22px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 253, 249, 0.65);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.share-button:hover {
  border-color: var(--sage);
  background: var(--surface);
  transform: translateY(-1px);
}

.share-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: min(780px, 100svh);
  overflow: hidden;
  padding: 126px 24px 98px;
  background:
    radial-gradient(circle at 18% 8%, rgba(238, 226, 201, 0.8), transparent 34%),
    radial-gradient(circle at 88% 70%, rgba(220, 229, 220, 0.9), transparent 36%),
    linear-gradient(160deg, #faf7f0 0%, #f7f3ea 52%, #f2eee5 100%);
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(182, 153, 98, 0.16);
  border-radius: 50%;
  content: "";
}

.hero::before {
  top: -160px;
  right: -105px;
}

.hero::after {
  bottom: -180px;
  left: -140px;
}

.hero-glow {
  position: absolute;
  z-index: -1;
  top: 48%;
  left: 50%;
  width: min(660px, 110vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0) 68%);
  transform: translate(-50%, -50%);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--sage-deep);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero blockquote {
  position: relative;
  align-self: stretch;
  width: auto;
  max-width: 840px;
  margin: 0 auto;
  justify-self: center;
  text-align: center;
}

.hero blockquote p {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(2.55rem, 9vw, 5.35rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
  overflow-wrap: break-word;
}

.opening-quote {
  position: absolute;
  top: -72px;
  left: 50%;
  color: rgba(182, 153, 98, 0.18);
  font-family: var(--font-display);
  font-size: 12rem;
  line-height: 1;
  transform: translateX(-50%);
}

.hero blockquote footer {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  color: var(--sage-deep);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero blockquote footer::before,
.hero blockquote footer::after {
  width: 30px;
  height: 1px;
  background: var(--gold);
  content: "";
}

.hero-ornament {
  position: absolute;
  top: 22%;
  right: 8%;
}

.hero-ornament span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(182, 153, 98, 0.5);
}

.hero-ornament span:nth-child(2) {
  top: 26px;
  left: 20px;
  width: 3px;
  height: 3px;
}

.hero-ornament span:nth-child(3) {
  top: 52px;
  left: -8px;
  opacity: 0.6;
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-hint svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.content-shell {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0 36px;
}

.section {
  padding-bottom: 96px;
}

.section-heading {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 34px;
}

.section-number {
  margin: 8px 0 0;
  color: var(--gold);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.section-heading h2,
.related-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
}

.bio-card {
  position: relative;
  display: grid;
  gap: 24px;
  overflow: hidden;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 249, 0.74);
  box-shadow: var(--shadow);
}

.bio-card::after {
  position: absolute;
  right: -55px;
  bottom: -80px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 229, 220, 0.7), transparent 68%);
  content: "";
}

.monogram {
  position: relative;
  z-index: 1;
  display: grid;
  width: 88px;
  height: 88px;
  border: 1px solid rgba(182, 153, 98, 0.38);
  border-radius: 50%;
  color: var(--sage-deep);
  background: linear-gradient(145deg, #f4eddf, #fffdf9);
  font-family: var(--font-display);
  font-size: 2rem;
  place-items: center;
}

.bio-copy {
  position: relative;
  z-index: 1;
}

.person-role {
  margin: 0 0 2px;
  color: var(--sage-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bio-copy h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.1;
}

.bio-copy p:not(.person-role),
.reading-copy > p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.82;
}

.message-section {
  padding-top: 12px;
}

.reading-copy {
  max-width: 720px;
  margin-left: auto;
}

.reading-copy .lead {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.72rem, 5.5vw, 2.45rem);
  font-weight: 600;
  line-height: 1.18;
}

.highlight-quote {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  margin-top: 38px;
  padding: 26px 22px;
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--gold-pale);
}

.highlight-quote svg {
  width: 28px;
  fill: var(--gold);
}

.highlight-quote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.2;
}

.light-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #f8faf7;
  background:
    radial-gradient(circle at 82% 12%, rgba(182, 153, 98, 0.2), transparent 26%),
    linear-gradient(150deg, var(--light-start) 0%, var(--light-end) 100%);
}

.light-content {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: 82px 0 88px;
}

.light-heading .section-number,
.light-heading .eyebrow {
  color: #dbc394;
}

.light-intro {
  max-width: 610px;
  margin: 0 0 38px 52px;
  color: rgba(248, 250, 247, 0.76);
}

.practice-steps {
  display: grid;
  gap: 14px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.practice-steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.055);
}

.step-marker {
  display: grid;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(219, 195, 148, 0.44);
  border-radius: 50%;
  color: #dbc394;
  font-family: var(--font-display);
  font-size: 1.2rem;
  place-items: center;
}

.practice-steps h3 {
  margin: 0 0 3px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.1;
}

.practice-steps p {
  margin: 0;
  color: rgba(248, 250, 247, 0.72);
  font-size: 0.92rem;
  line-height: 1.65;
}

.reflection-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  width: 100%;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: #e7d2a7;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.reflection-button:hover {
  background: #f0deb8;
  transform: translateY(-1px);
}

.button-icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage-deep);
  box-shadow: 0 0 0 5px rgba(67, 88, 75, 0.14);
}

.reflection-message {
  margin: 22px 0 0;
  color: #f0dcb3;
  font-family: var(--font-display);
  font-size: 1.55rem;
  text-align: center;
}

.light-orbit {
  position: absolute;
  z-index: -1;
  right: -230px;
  bottom: -260px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(219, 195, 148, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(219, 195, 148, 0.025), 0 0 0 120px rgba(219, 195, 148, 0.018);
}

.site-footer {
  padding: 30px 20px 36px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  background: var(--paper-deep);
  font-size: 0.75rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--ink);
  font-weight: 800;
  text-underline-offset: 3px;
}

.toast {
  position: fixed;
  z-index: 50;
  right: 16px;
  bottom: 18px;
  left: 16px;
  max-width: 380px;
  margin: 0 auto;
  padding: 12px 16px;
  border-radius: 14px;
  color: #fff;
  background: rgba(37, 51, 44, 0.94);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

@media (min-width: 700px) {
  .hero {
    padding-right: 56px;
    padding-left: 56px;
  }

  .hero blockquote p {
    line-height: 1.02;
  }

  .bio-card {
    grid-template-columns: 120px 1fr;
    gap: 34px;
    padding: 42px;
  }

  .monogram {
    width: 112px;
    height: 112px;
    font-size: 2.35rem;
  }

  .section-heading {
    grid-template-columns: 46px 1fr;
    gap: 18px;
  }

  .reading-copy {
    padding-right: 52px;
  }

  .practice-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .practice-steps li {
    grid-template-columns: 1fr;
    min-height: 220px;
    padding: 26px;
  }

  .reflection-button {
    width: auto;
    margin-left: 58px;
  }

}

@media (min-width: 1000px) {
  .content-shell {
    padding-top: 124px;
  }

  .section {
    padding-bottom: 130px;
  }

  .bio-card {
    margin-left: 62px;
  }

  .message-section .section-heading {
    position: relative;
    left: -62px;
  }
}

@media (max-width: 420px) {
  .share-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .share-button {
    width: 44px;
    padding: 0;
    justify-content: center;
  }

  .hero {
    min-height: 720px;
  }

}

@media (max-width: 360px) {
  .hero {
    padding-right: 20px;
    padding-left: 20px;
  }

  .hero blockquote p {
    font-size: clamp(2.15rem, 11vw, 2.5rem);
  }

  .content-shell,
  .light-content {
    width: calc(100% - 32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
