/*
Theme Name: A Spiritual Awakening
Theme URI: https://www.aspiritualawakening.com
Author: Tom Cavanaugh
Description: Custom theme for A Spiritual Awakening — writings, book, and reflections on the eight pillars of holistic living. Hero, Book, About, and Subscribe copy/images are editable under Appearance > Customize. Letters are standard WordPress Posts. Navigation is editable under Appearance > Menus.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: spiritual-awakening
*/

/* ===== A Spiritual Awakening ===== */

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background: #04060c;
  overflow-x: hidden;
  font-family: "EB Garamond", Georgia, serif;
  color: #f3ead9;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

::selection { background: #4fc3ae; color: #04060c; }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 1px solid #4fc3ae; outline-offset: 3px;
}

/* fixed cosmic texture — viewport-sized, content scrolls over it */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom,
      rgba(4,6,12,.55) 0%, rgba(4,6,12,.72) 14%,
      rgba(4,6,12,.78) 50%, rgba(4,6,12,.72) 85%,
      rgba(4,6,12,.6) 100%),
    url("images/cosmic-alignment-bg.webp?v=4") center / cover no-repeat;
}

/* fine grain, sitting over everything, breaking up flat black */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ===== Top nav — transparent over the hero ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; min-height: 88px;
}
.nav__right { display: flex; align-items: center; gap: 2rem; }
.nav__cta {
  padding: .6rem 1.4rem; border-radius: 999px;
  border: 1px solid rgba(217,173,114,.55);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: #f3ead9; text-decoration: none; white-space: nowrap;
  background: rgba(7,23,34,.35);
  transition: border-color .25s, color .25s, background .25s;
}
.nav__cta:hover { border-color: #d9ad72; color: #d9ad72; }
.nav__brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: "Cinzel", "Cormorant Garamond", Georgia, serif;
  font-size: 1.05rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none;
  color: #f3ead9; text-shadow: 0 1px 10px rgba(0,0,0,.9);
}
.nav__brand-icon {
  width: 20px; height: 20px; opacity: .85;
  filter: drop-shadow(0 0 6px rgba(79,195,174,.55));
}
.nav__links { display: flex; gap: 2rem; }
.nav__links a {
  font-size: .9rem; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; color: #e2d6bc;
  text-shadow: 0 1px 8px rgba(0,0,0,.9);
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: color .25s, border-color .25s;
}
.nav__links a:hover { color: #4fc3ae; border-bottom-color: #4fc3ae; }

/* WordPress nav menus wrap items in <ul><li>; unwrap them visually so the
   flex layout above still applies directly to the <a> tags */
.nav__links ul, .footer__nav ul { display: contents; }
.nav__links li, .footer__nav li { list-style: none; display: contents; }

@media (max-width: 640px) {
  .nav { flex-wrap: wrap; row-gap: .6rem; }
  .nav__links { gap: 1.2rem; flex-wrap: wrap; }
  .nav__links a { font-size: .8rem; }
}

/* ===== Hero — left editorial column over the page-wide cosmic bg ===== */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.hero__inner {
  position: relative; z-index: 2;
  width: min(1200px, 86%); margin: 0 auto;
  min-height: inherit;
  display: flex; align-items: center;
  padding-top: 88px; /* clears the fixed nav */
}

.hero__text { position: relative; max-width: 46%; }
.hero__text::before {
  content: "";
  position: absolute; z-index: -1; inset: -3rem -4rem;
  background: radial-gradient(ellipse 75% 70% at 30% 50%, rgba(4,6,12,.65), transparent 72%);
}

.hero__eyebrow {
  font-size: .8rem; font-weight: 600;
  letter-spacing: .32em; text-transform: uppercase;
  color: #d9ad72;
  text-shadow: 0 1px 10px rgba(0,0,0,.85);
}

.hero__title {
  font-family: "Cinzel", "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1.08;
  color: #f3ead9; margin-top: 1.1rem;
  text-shadow: 0 2px 22px rgba(0,0,0,.85);
}
.hero__em { color: #d9ad72; font-style: italic; }

.hero__sub {
  margin-top: 1.3rem; max-width: 32rem;
  font-size: 1.08rem; line-height: 1.65;
  color: #e2d6bc;
  text-shadow: 0 1px 10px rgba(0,0,0,.85);
}
.hero__sub em { color: #f3ead9; }

.hero__ctas {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-top: 2.1rem;
}

.hero__by {
  margin-top: 2.2rem;
  font-size: .82rem; letter-spacing: .34em; text-transform: uppercase;
  color: rgba(243,234,217,.75);
  text-shadow: 0 1px 8px rgba(0,0,0,.9);
}
.hero__by::before { content: "— "; color: #d9ad72; }

/* vertical tagline on the far right, over the open imagery */
.hero__side {
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-size: .72rem; letter-spacing: .42em; text-transform: uppercase;
  color: rgba(243,234,217,.55);
  text-shadow: 0 1px 8px rgba(0,0,0,.9);
}

@media (max-width: 900px) {
  .hero__text { max-width: 100%; }
  .hero__side { display: none; }
}

/* ===== Scroll indicator ===== */
.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  text-decoration: none;
}
.hero__scroll-label {
  font-size: .65rem; letter-spacing: .4em; text-transform: uppercase;
  color: rgba(243,234,217,.55); padding-left: .4em; /* optically centers spaced text */
}
.hero__scroll-chevron {
  width: 10px; height: 10px;
  border-right: 1px solid rgba(243,234,217,.6);
  border-bottom: 1px solid rgba(243,234,217,.6);
  transform: rotate(45deg);
  animation: chevbob 2.4s ease-in-out infinite;
}
.hero__scroll:hover .hero__scroll-label { color: #4fc3ae; }
.hero__scroll:hover .hero__scroll-chevron { border-color: #4fc3ae; }
@keyframes chevbob {
  0%, 100% { transform: rotate(45deg) translate(0,0); }
  50%      { transform: rotate(45deg) translate(4px,4px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__scroll-chevron { animation: none; }
}

/* ===== The eight-point seal ===== */
.seal {
  position: absolute; z-index: 1;
  top: 50%; left: 50%;
  translate: -50% -50%;
  width: min(760px, 95vw); height: auto;
  opacity: .3;
  filter: drop-shadow(0 0 14px rgba(79,195,174,.6))
          drop-shadow(0 0 45px rgba(79,195,174,.3))
          drop-shadow(0 0 90px rgba(79,195,174,.18));
  animation: sealturn 150s linear infinite;
}
.seal--small { width: min(280px, 60vw); opacity: .16; }
@keyframes sealturn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .seal { animation: none; }
}

/* ===== Sections ===== */
.wrap { width: min(1200px, 86%); margin: 0 auto; }
.section { padding: 5rem 0 3.8rem; }

/* section header: tiny gold eyebrow + hairline rule + optional right link */
.sec-head {
  display: flex; align-items: center; gap: 1.4rem;
  margin-bottom: 2.4rem;
}
.sec-head__label {
  font-family: "Cinzel", "Cormorant Garamond", Georgia, serif;
  font-size: .76rem; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase;
  color: #d9ad72; white-space: nowrap;
  text-shadow: 0 1px 8px rgba(0,0,0,.7);
}
.sec-head__label::before {
  content: "\2726"; margin-right: .55em;
  font-size: .85em; opacity: .8;
  text-shadow: 0 0 8px rgba(217,173,114,.6);
}
.sec-head__rule {
  position: relative;
  flex: 1; height: 1px;
  background: linear-gradient(to right, rgba(217,173,114,.45), rgba(217,173,114,.06));
}
.sec-head__rule::after {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 5px; height: 5px;
  background: #d9ad72;
  transform: translate(-2.5px, -50%) rotate(45deg);
  box-shadow: 0 0 6px rgba(217,173,114,.65);
}
.sec-head__link {
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: #e2d6bc; text-decoration: none; white-space: nowrap;
  text-shadow: 0 1px 8px rgba(0,0,0,.8);
  transition: color .25s;
}
.sec-head__link:hover { color: #d9ad72; }

/* pill buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.9rem; border-radius: 999px;
  font-family: inherit; font-size: .8rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background .25s, border-color .25s, color .25s, transform .25s;
}
.btn--gold {
  background: linear-gradient(155deg, #f2d9a8 0%, #d9ad72 45%, #b8874f 100%);
  border: 1px solid #d9ad72; color: #100b06;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -3px 5px rgba(0,0,0,.22), 0 8px 22px rgba(217,173,114,.2);
  text-shadow: 0 1px 0 rgba(255,255,255,.15);
}
.btn--gold:hover {
  background: linear-gradient(155deg, #f8e4bc 0%, #e8c58b 45%, #c99a5f 100%);
  border-color: #e8c58b; transform: translateY(-1px);
}
.btn--ghost {
  background: rgba(7,23,34,.35); border: 1px solid rgba(217,173,114,.5);
  color: #f3ead9;
}
.btn--ghost:hover { border-color: #d9ad72; color: #d9ad72; }
.btn--small { padding: .6rem 1.3rem; font-size: .72rem; }
.btn__play {
  width: 0; height: 0;
  border-left: 8px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

/* scroll reveal: fades and lifts in as it enters view */
[data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity .9s ease, transform .9s ease;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

.h2 {
  font-family: "Cinzel", "Cormorant Garamond", Georgia, serif;
  font-weight: 600; font-size: 1.7rem; letter-spacing: .01em;
  color: #f3ead9;
  margin-bottom: 1.4rem;
}

/* ===== The Book ===== */
.book {
  position: relative;
  background: transparent;
}
/* twinkling star canvas — sits behind the content */
.starfield {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.book .wrap { position: relative; z-index: 1; }
.book__grid {
  display: grid; grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 3.5rem; align-items: start;
}
.book__cover img {
  width: 100%; display: block;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.7)) drop-shadow(0 0 30px rgba(79,195,174,.12));
}
.book__cover figcaption {
  margin-top: .8rem; font-size: .85rem; font-style: italic;
  color: rgba(226,214,188,.6); text-align: center;
}
.book__text p { color: #e2d6bc; margin-bottom: 1.1rem; }
.book__text em { color: #f3ead9; }
.book__text p.book__pillars-line {
  margin-top: 1.6rem; font-style: italic;
  color: #4fc3ae;
}
.book__cta { margin-top: 2rem; }
.book__cta .linkbtn { text-decoration: none; }

@media (max-width: 720px) {
  .book__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .book__cover { max-width: 300px; margin: 0 auto; }
}

/* ===== Subscribe ===== */
.subscribe {
  position: relative;
  background: transparent;
  text-align: center;
}
.subscribe .wrap { position: relative; z-index: 1; }
.subscribe__box {
  max-width: 780px; margin: 0 auto;
  padding: 2.8rem 2.5rem;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(79,195,174,.25);
  box-shadow: 0 0 60px rgba(79,195,174,.06), 0 20px 50px rgba(0,0,0,.5);
}
.section-note {
  color: #e2d6bc; margin: 0 auto 2.2rem; max-width: 34rem;
}

/* ===== Newsletter — bordered translucent panel over the cosmic bg ===== */
.newsletter { position: relative; background: transparent; }
.newsletter .wrap { position: relative; z-index: 1; }
.newsletter__panel {
  display: grid; grid-template-columns: 55fr 45fr;
  gap: 3rem; align-items: center;
  padding: 2.6rem 3rem;
  border-radius: 10px;
  background: rgba(7,23,34,.55);
  border: 1px solid rgba(217,173,114,.4);
  outline: 1px solid rgba(217,173,114,.16); outline-offset: 7px;
  backdrop-filter: blur(6px);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.newsletter__copy .sec-head__label { display: block; margin-bottom: .9rem; }
.newsletter__title { margin-bottom: .8rem; }
.newsletter__note { color: #b9b7ae; font-size: .98rem; line-height: 1.6; }
.newsletter__form .signup { flex-direction: column; align-items: stretch; max-width: none; }
.newsletter__form .signup__field { flex: 1 1 auto; width: 100%; }
.newsletter__form .linkbtn { align-self: stretch; text-align: center; margin-top: .4rem; }
.newsletter__form .signup__msg { text-align: center; }
.newsletter__fine {
  margin-top: .8rem; font-size: .78rem;
  color: rgba(185,183,174,.7); text-align: center;
}
@media (max-width: 860px) {
  .newsletter__panel { grid-template-columns: 1fr; gap: 1.8rem; padding: 2rem 1.6rem; }
}

/* inline form: name + email + button on one row */
.signup {
  display: flex; gap: .6rem; justify-content: center;
  max-width: 640px; margin: 0 auto; flex-wrap: wrap;
}
.signup__field { flex: 1 1 180px; text-align: left; }
.signup__field span {
  display: block; font-size: .8rem; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(226,214,188,.7);
  margin-bottom: .35rem;
}
.signup__field em { font-size: .8rem; opacity: .65; text-transform: none; letter-spacing: 0; }
.signup__field input {
  width: 100%; padding: .7rem .9rem;
  font-family: "EB Garamond", Georgia, serif; font-size: 1.05rem; color: #f3ead9;
  background: rgba(255,255,255,.06); border: 1px solid rgba(79,195,174,.3);
  outline: none; transition: border-color .25s, background .25s;
}
.signup__field input:focus {
  border-color: #4fc3ae; background: rgba(255,255,255,.09);
}
.signup__field textarea {
  width: 100%; padding: .7rem .9rem; resize: vertical;
  font-family: "EB Garamond", Georgia, serif; font-size: 1.05rem; color: #f3ead9;
  background: rgba(255,255,255,.06); border: 1px solid rgba(79,195,174,.3);
  outline: none; transition: border-color .25s, background .25s;
}
.signup__field textarea:focus {
  border-color: #4fc3ae; background: rgba(255,255,255,.09);
}
.signup__field--wide { flex: 1 1 100%; }
.linkbtn {
  display: inline-block; font-family: "EB Garamond", Georgia, serif;
  font-size: .85rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: #100b06;
  background: linear-gradient(155deg, #f2d9a8 0%, #d9ad72 45%, #b8874f 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -3px 5px rgba(0,0,0,.22), 0 8px 22px rgba(217,173,114,.2);
  text-shadow: 0 1px 0 rgba(255,255,255,.15);
  padding: .8rem 1.9rem; border: 1px solid #d9ad72; border-radius: 999px;
  cursor: pointer;
  align-self: flex-end; transition: background .25s, border-color .25s, transform .25s;
}
.linkbtn:hover {
  background: linear-gradient(155deg, #f8e4bc 0%, #e8c58b 45%, #c99a5f 100%);
  border-color: #e8c58b; transform: translateY(-1px);
}
.signup__msg { margin-top: 1.2rem; font-size: .95rem; color: #4fc3ae; min-height: 1.4em; }
.signup__msg--error { color: #d98a76; }

/* ===== Subscribe modal ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  background: rgba(2,4,10,.75);
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }

.modal {
  position: relative;
  width: min(600px, 100%);
  max-height: 90vh; overflow-y: auto; overflow-x: hidden;
  padding: 3.2rem 2.6rem 2.8rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(79,195,174,.09), transparent 60%),
    #0a0805;
  border: 1px solid rgba(79,195,174,.3);
  outline: 1px solid rgba(217,169,78,.18);
  outline-offset: 8px;
  box-shadow: 0 0 90px rgba(79,195,174,.12), 0 30px 60px rgba(0,0,0,.6);
  transform: translateY(16px) scale(.98);
  transition: transform .3s ease;
}
.modal-overlay.is-open .modal { transform: translateY(0) scale(1); }

/* faint rotating sigil, watermarked behind the content */
.modal__sigil {
  position: absolute; z-index: 0;
  top: 46%; left: 50%; translate: -50% -50%;
  width: 340px; height: auto;
  color: #ffffff; opacity: .05;
  animation: sealturn 150s linear infinite;
}

/* corner flourishes, one svg reused at all four corners */
.modal__corner {
  position: absolute; z-index: 2;
  width: 34px; height: 34px;
  color: #d9a94e; opacity: .65;
  fill: none; stroke: currentColor; stroke-width: 1.3;
}
.modal__corner circle { fill: currentColor; stroke: none; }
.modal__corner--tl { top: 10px; left: 10px; }
.modal__corner--tr { top: 10px; right: 10px; transform: scaleX(-1); }
.modal__corner--bl { bottom: 10px; left: 10px; transform: scaleY(-1); }
.modal__corner--br { bottom: 10px; right: 10px; transform: scale(-1, -1); }

.modal__close {
  position: absolute; top: 1rem; right: 1.1rem; z-index: 3;
  width: 2rem; height: 2rem;
  background: none; border: none; cursor: pointer;
  font-size: 1.6rem; line-height: 1; color: rgba(226,214,188,.6);
  transition: color .2s;
}
.modal__close:hover { color: #4fc3ae; }

.modal__eyebrow {
  position: relative; z-index: 1;
  text-align: center; margin-bottom: 1.2rem;
  font-size: .72rem; letter-spacing: .32em; text-transform: uppercase;
  color: #d9a94e;
}

.modal .h2 { position: relative; z-index: 1; text-align: center; }
.modal .section-note { position: relative; z-index: 1; text-align: center; }
.modal .signup {
  position: relative; z-index: 1;
  flex-direction: column; align-items: stretch;
}
.modal .signup__field { flex: 1 1 auto; width: 100%; }
.modal .linkbtn { align-self: stretch; text-align: center; margin-top: .4rem; }
.modal .signup__msg { position: relative; z-index: 1; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .modal-overlay, .modal, .modal__sigil { transition: none; animation: none; }
}

/* ===== Featured Writings — editorial cards over the cosmic bg ===== */
.latest {
  position: relative;
  background: transparent;
}
.latest .wrap { position: relative; z-index: 1; }
.latest__row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.3rem;
}
.fcard {
  display: flex; flex-direction: column;
  border-radius: 8px; overflow: hidden;
  background: rgba(7,23,34,.55);
  border: 1px solid rgba(217,173,114,.3);
  outline: 1px solid rgba(217,173,114,.16); outline-offset: 6px;
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition: border-color .3s, transform .3s, box-shadow .3s, outline-color .3s;
}
.fcard:hover {
  border-color: rgba(217,173,114,.6);
  outline-color: rgba(217,173,114,.32);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}
.fcard__media {
  display: block; aspect-ratio: 16 / 10; overflow: hidden;
}
.fcard__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease;
}
.fcard:hover .fcard__media img { transform: scale(1.04); }
.fcard__body {
  display: flex; flex-direction: column; gap: .55rem;
  padding: 1.4rem 1.4rem 1.6rem; flex: 1;
}
.fcard__kicker {
  font-size: .68rem; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase;
  color: #d9ad72;
}
.fcard__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem; line-height: 1.2; color: #f3ead9;
}
.fcard__excerpt { font-size: .92rem; line-height: 1.55; color: #b9b7ae; }
.fcard__more {
  margin-top: auto; padding-top: .7rem;
  font-size: .75rem; letter-spacing: .18em; text-transform: uppercase;
  color: #e2d6bc; transition: color .25s;
}
.fcard:hover .fcard__more { color: #d9ad72; }

@media (max-width: 820px) {
  .latest__row { grid-template-columns: 1fr; }
}

/* ===== Why Now — the cycles ===== */
.cycles {
  position: relative;
  background: transparent;
}
.cycles .wrap { position: relative; z-index: 1; }
.cycles__lead { color: #e2d6bc; font-size: 1.1rem; line-height: 1.75; }
.cycles__scale {
  list-style: none; margin: 2.4rem 0;
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid rgba(79,195,174,.18);
  border-bottom: 1px solid rgba(79,195,174,.18);
  padding: 1.6rem 0;
}
.cycles__step {
  display: flex; flex-direction: column; gap: .35rem;
  text-align: center; flex: 1;
}
.cycles__num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.1rem; color: #4fc3ae;
}
.cycles__unit {
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(226,214,188,.7);
}
.cycles__text { color: #e2d6bc; margin-bottom: 1.4rem; }
.cycles__links { display: flex; gap: 2rem; flex-wrap: wrap; }

@media (max-width: 640px) {
  .cycles__scale { flex-direction: column; align-items: center; gap: 1.2rem; }
}

/* ===== About — Tom, and his writings ===== */
.about {
  position: relative;
  background: transparent;
}
.about__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.3fr 1fr;
  gap: 3rem; align-items: stretch;
}
.about__writings {
  display: flex; flex-direction: column;
}
.about__writings .about__writings-list {
  flex: 1; justify-content: space-between;
}
.about__main .sec-head__label { display: block; margin-bottom: 1rem; }
.about__main .h2 { margin-bottom: 1.2rem; }
.about__text p { color: #e2d6bc; margin-bottom: 1.1rem; }
.about__text em { color: #f3ead9; }
.about__main .btn { margin-top: 1rem; }
.about__writings-label {
  display: block; margin-bottom: 1.2rem;
  font-family: "Cinzel", "Cormorant Garamond", Georgia, serif;
  font-size: .76rem; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase;
  color: #d9ad72;
}
.about__writings-label::before {
  content: "\2726"; margin-right: .55em;
  font-size: .85em; opacity: .8;
}
.about__writings-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; margin-top: 0; }
.about__writings-list li {
  border-top: 1px solid rgba(243,234,217,.15); padding-top: 1rem;
}
.about__writings-list li:first-child { border-top: none; padding-top: 0; }
.about__writings-list a {
  display: flex; flex-direction: column; gap: .3rem; text-decoration: none;
}
.about__writings-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.1rem; line-height: 1.3; color: #f3ead9;
  transition: color .25s;
}
.about__writings-list a:hover .about__writings-title { color: #4fc3ae; }
.about__writings-excerpt {
  font-size: .85rem; line-height: 1.5; color: rgba(226,214,188,.6);
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.about__writings-kicker {
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(226,214,188,.55);
}
.about__writings-list li.is-empty { opacity: .45; }
.about__writings-list li.is-empty .about__writings-title { font-style: italic; }
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; gap: 2rem; }
}

.pullquote {
  margin-top: 2.6rem; padding-left: 1.4rem;
  border-left: 2px solid #4fc3ae;
}
.pullquote p {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic; font-size: 1.5rem; line-height: 1.4;
  color: #f3ead9;
}

/* ===== Footer ===== */
.footer {
  position: relative;
  background: transparent;
  padding: 3.6rem 0 2.8rem;
  text-align: center;
  overflow: hidden;
}
/* a thin glowing line replaces the flat border-top */
.footer::before {
  content: "";
  position: absolute; top: 0; left: 50%; translate: -50% 0;
  width: min(320px, 70%); height: 1px;
  background: linear-gradient(to right, transparent, rgba(79,195,174,.55), transparent);
}
/* faint glow rising behind the content, echoing the hero/modal seal */
.footer::after {
  content: "";
  position: absolute; bottom: -70%; left: 50%; translate: -50% 0;
  width: 560px; height: 560px; pointer-events: none;
  background: radial-gradient(circle, rgba(79,195,174,.07), transparent 70%);
}
.footer__inner { position: relative; z-index: 1; }

.footer__top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(217,173,114,.18);
  margin-bottom: 1.6rem;
  text-align: left;
}
.footer__brand {
  display: inline-flex; align-items: center; gap: .8rem;
  text-decoration: none;
}
.footer__mark {
  display: block; width: 30px; height: 30px;
  opacity: .7;
  filter: drop-shadow(0 0 10px rgba(217,173,114,.5));
}
.footer__name {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.05rem; letter-spacing: .2em; text-transform: uppercase;
  color: #f3ead9;
}
.footer__tag {
  display: block; margin-top: .25rem;
  font-size: .68rem; letter-spacing: .24em; text-transform: uppercase;
  color: rgba(226,214,188,.55);
}
.footer__nav {
  display: flex; gap: 1.6rem; justify-content: center;
}
.footer__nav a {
  font-size: .8rem; letter-spacing: .15em; text-transform: uppercase;
  color: rgba(226,214,188,.7); text-decoration: none;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: color .25s, border-color .25s;
}
.footer__nav a:hover { color: #4fc3ae; border-bottom-color: rgba(79,195,174,.5); }
.footer__small {
  font-size: .8rem; letter-spacing: .04em;
  color: rgba(226,214,188,.45);
}

/* ===== Awakening — the video, front and center ===== */
.awakening {
  position: relative;
  background: transparent;
}
.awakening__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 460px) 1fr;
  gap: 3rem; align-items: center;
}
.awakening__media video {
  width: 100%; aspect-ratio: 1 / 1; height: auto; display: block;
  object-fit: cover;
  border: 1px solid rgba(79,195,174,.25);
  box-shadow: 0 0 60px rgba(79,195,174,.1), 0 24px 50px rgba(0,0,0,.6);
  background: #000;
}
.awakening__text p {
  color: #e2d6bc; font-size: 1.1rem; line-height: 1.75;
  margin-bottom: 1.2rem;
}
.awakening__quote {
  margin-top: 3.5rem; padding-left: 0; border-left: none;
  display: flex; align-items: center; gap: 2rem;
  text-align: center;
}
.awakening__quote::before,
.awakening__quote::after {
  content: ""; flex: 1; height: 1px;
}
.awakening__quote::before {
  background: linear-gradient(to right, transparent, rgba(79,195,174,.5));
}
.awakening__quote::after {
  background: linear-gradient(to left, transparent, rgba(79,195,174,.5));
}
.awakening__quote p { flex-shrink: 0; }
.awakening__transcript {
  margin-top: 1rem;
  border: 1px solid rgba(79,195,174,.18);
  background: rgba(4,6,12,.6);
}
.awakening__transcript summary {
  cursor: pointer; padding: .7rem 1rem;
  font-size: .85rem; letter-spacing: .12em; text-transform: uppercase;
  color: #4fc3ae; list-style: none;
}
.awakening__transcript summary::-webkit-details-marker { display: none; }
.awakening__transcript summary::before {
  content: "+"; margin-right: .6rem; color: rgba(79,195,174,.7);
}
.awakening__transcript[open] summary::before { content: "–"; }
.awakening__transcript-body {
  padding: 0 1rem 1rem; max-height: 320px; overflow-y: auto;
}
.awakening__transcript-body p {
  color: rgba(226,214,188,.75); font-size: .92rem; line-height: 1.7;
  margin-bottom: .9rem;
}

@media (max-width: 760px) {
  .awakening__grid { grid-template-columns: 1fr; gap: 2rem; }
  .awakening__media { max-width: 420px; margin: 0 auto; }
}

/* ===== Writings page ===== */
.hero--page { min-height: 55vh; }

/* editorial list: featured letter, then a ruled archive */
.writings {
  position: relative;
  background: transparent;
  overflow: hidden;
}
.writings::before {
  content: "";
  position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  width: 620px; height: 620px; max-width: 90%;
  background: url("images/sigil.png") center / contain no-repeat;
  opacity: .035; pointer-events: none; z-index: 0;
  animation: sealturn 220s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .writings::before { animation: none; }
}
.writings .wrap { position: relative; z-index: 1; }
.featured, .archive { max-width: none; }

.post__meta {
  font-size: .75rem; letter-spacing: .3em; text-transform: uppercase;
  color: #d9a94e; margin-bottom: 1rem;
}
.post__link {
  font-size: .85rem; letter-spacing: .15em; text-transform: uppercase;
  color: #4fc3ae; text-decoration: none;
}
.post__link:hover { text-decoration: underline; }

.featured { padding-bottom: 3rem; }
.featured__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500; font-size: clamp(2rem, 5vw, 2.8rem);
  color: #f3ead9; margin-bottom: 1.1rem;
}
.featured__excerpt {
  color: #e2d6bc; font-size: 1.15rem; line-height: 1.7;
  margin-bottom: 1.6rem;
}

.archive { list-style: none; }
.archive__item { border-top: 1px solid rgba(243,234,217,.15); }
.archive__item:last-child { border-bottom: 1px solid rgba(243,234,217,.15); }
.archive__link {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 2rem; padding: 1.3rem 0; text-decoration: none;
}
.archive__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.4rem; color: #f3ead9;
  transition: color .25s;
}
.archive__link:hover .archive__title { color: #4fc3ae; }
.archive__date {
  font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(226,214,188,.55); white-space: nowrap;
}

/* ===== Single letter page ===== */
.article {
  position: relative;
  background: transparent;
  padding-top: 9rem; /* clears the fixed nav */
  overflow: hidden;
}
.article::before {
  content: "";
  position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  width: 620px; height: 620px; max-width: 90%;
  background: url("images/sigil.png") center / contain no-repeat;
  opacity: .035; pointer-events: none; z-index: 0;
  animation: sealturn 220s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .article::before { animation: none; }
}
.article__wrap { position: relative; z-index: 1; }
.article__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500; font-size: clamp(2.2rem, 5.5vw, 3.2rem);
  color: #f3ead9; margin-bottom: 1rem;
  max-width: 46rem;
}
.article__lede {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic; font-size: 1.35rem; color: #4fc3ae;
  margin-bottom: 2.4rem;
  max-width: 46rem;
}
.article__body p {
  color: #e2d6bc; font-size: 1.15rem; line-height: 1.8;
  margin-bottom: 1.4rem;
}
.article__body p:first-of-type::first-letter {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 3.2em; line-height: .85;
  float: left; padding: .08em .12em 0 0;
  color: #d9a94e;
}
/* ===== Media gallery ===== */
.gallery {
  margin-top: 2.4rem;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.4rem;
}
.gallery__item {
  position: relative;
  display: flex; flex-direction: column;
  text-align: left; cursor: pointer;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(79,195,174,.2);
  padding: 0; overflow: hidden;
  font: inherit; color: inherit;
  transition: border-color .3s, background .3s, transform .3s;
}
.gallery__item:hover, .gallery__item:focus-visible {
  border-color: rgba(79,195,174,.5);
  background: rgba(255,255,255,.05);
  transform: translateY(-3px);
}
.gallery__thumb {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16 / 9; overflow: hidden;
  background: linear-gradient(160deg, #0c1018, #050710);
}
.gallery__thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease, filter .3s ease;
  filter: brightness(.75);
}
.gallery__item:hover .gallery__thumb img,
.gallery__item:focus-visible .gallery__thumb img {
  transform: scale(1.04); filter: brightness(.6);
}
.gallery__thumb::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 70% at center, rgba(79,195,174,.12), transparent 70%);
}
.gallery__play {
  position: relative; z-index: 1;
  width: 46px; height: 46px;
  color: #4fc3ae;
  fill: none; stroke: currentColor; stroke-width: 1.4;
  filter: drop-shadow(0 0 10px rgba(79,195,174,.5));
  transition: transform .25s, color .25s;
}
.gallery__play path { fill: currentColor; stroke: none; }
.gallery__item:hover .gallery__play,
.gallery__item:focus-visible .gallery__play {
  transform: scale(1.1); color: #d9a94e;
}
.gallery__caption {
  display: flex; flex-direction: column; gap: .3rem;
  padding: 1.1rem 1.3rem 1.3rem;
}
.gallery__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem; color: #f3ead9; line-height: 1.35;
}
.gallery__note {
  font-size: .85rem; font-style: italic; color: rgba(226,214,188,.6);
}

/* ===== Fullscreen lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  background: rgba(2,4,10,.94);
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__stage {
  width: 100%; max-width: 1100px; max-height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.lightbox__stage video {
  max-width: 100%; max-height: 85vh; width: 100%;
  display: block; background: #000;
  border: 1px solid rgba(79,195,174,.25);
  box-shadow: 0 0 90px rgba(79,195,174,.12), 0 30px 60px rgba(0,0,0,.7);
}
.lightbox__close {
  position: absolute; top: 1.2rem; right: 1.4rem; z-index: 1;
  width: 2.4rem; height: 2.4rem;
  background: none; border: none; cursor: pointer;
  font-size: 2rem; line-height: 1; color: rgba(243,234,217,.7);
  transition: color .2s;
}
.lightbox__close:hover { color: #4fc3ae; }

@media (prefers-reduced-motion: reduce) {
  .lightbox { transition: none; }
}

.article__back { margin-top: 3rem; }
.article__back a {
  font-size: .85rem; letter-spacing: .15em; text-transform: uppercase;
  color: #4fc3ae; text-decoration: none;
}
.article__back a:hover { text-decoration: underline; }

/* ===== Content panels — text sits on a surface, not on the art ===== */
.cycles__panel,
.book__text,
.about__main,
.about__writings,
.awakening__text,
.featured,
.archive,
.article__body {
  width: 100%;
  background: rgba(7,23,34,.55);
  border: 1px solid rgba(217,173,114,.3);
  outline: 1px solid rgba(217,173,114,.16); outline-offset: 7px;
  border-radius: 10px;
  backdrop-filter: blur(6px);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  padding: 2.2rem 2.4rem;
}
@media (max-width: 640px) {
  .cycles__panel, .book__text, .about__main, .about__writings, .awakening__text,
  .featured, .archive, .article__body { padding: 1.5rem 1.2rem; }
}

/* the moving layer — oversized so edges never show when it drifts */
.hero__bg {
  position: absolute; inset: -4%;
  background: url("images/hero-bg.webp?v=4") center / cover no-repeat;
  will-change: transform;
}

/* dark overlay + gradient, sitting above the image */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom,
      rgba(2,4,10,.88) 0%,
      rgba(2,4,10,.55) 35%,
      rgba(2,4,10,.45) 60%,
      rgba(4,6,12,.72) 100%),
    radial-gradient(ellipse 70% 50% at 50% 45%, transparent 40%, rgba(2,4,10,.5) 100%);
}

/* Hidden honeypot field for bot-only completion. */
.sa-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Share links on individual letters. */
.article-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 42px 0 8px;
  padding-top: 24px;
  border-top: 1px solid rgba(217, 173, 114, .18);
  font-size: 14px;
}
.article-share span {
  margin-right: 4px;
  color: #9e9482;
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.article-share a {
  color: #d9ad72;
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 173, 114, .35);
  transition: color .2s ease, border-color .2s ease;
}
.article-share a:hover,
.article-share a:focus-visible {
  color: #f0d5a0;
  border-color: currentColor;
}

/* Share links on individual letters. */
.article-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 42px 0 8px;
  padding-top: 24px;
  border-top: 1px solid rgba(217, 173, 114, .18);
  font-size: 14px;
}
.article-share span {
  margin-right: 4px;
  color: #9e9482;
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.article-share a {
  color: #d9ad72;
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 173, 114, .35);
  transition: color .2s ease, border-color .2s ease;
}
.article-share a:hover,
.article-share a:focus-visible {
  color: #f0d5a0;
  border-color: currentColor;
}
