/* ============================================================
   Awaken Self — shared stylesheet
   A dawn-inspired, warm light theme. Deep green + gold/earth
   accents on warm off-white paper. Hand-written, no frameworks,
   no external assets. Serif display: Georgia stack.
   ============================================================ */

:root {
  --paper: #faf6ec;
  --paper-deep: #f3ecdb;
  --paper-card: rgba(255, 253, 247, 0.72);
  --ink: #262b23;
  --ink-soft: #5a5e52;
  --green: #33523f;
  --green-deep: #1f3527;
  --green-mist: #7d9b84;
  --gold: #b3894a;
  --gold-soft: #d9b878;
  --earth: #a9805a;
  --rose: #d9a08a;
  --line: rgba(179, 137, 74, 0.35);
  --shadow-soft: 0 10px 30px rgba(58, 48, 28, 0.08);
  --shadow-lift: 0 22px 48px rgba(58, 48, 28, 0.14);
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Fine film grain over the whole page — pure CSS (inline SVG turbulence),
   fixed, non-interactive, very low opacity. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold-soft); }
a:hover { color: var(--green-deep); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }
.center { text-align: center; }

/* ---------- Scroll reveal (CSS only, progressive) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Header / nav ---------- */

.site-header {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 252, 244, 0.9), rgba(243, 236, 219, 0.85));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 20;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--green-deep); }
.brand svg { flex: 0 0 auto; filter: drop-shadow(0 2px 4px rgba(179, 137, 74, 0.35)); }

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
}
.main-nav a {
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: 4px;
  background: linear-gradient(var(--gold), var(--gold)) left bottom / 0% 2px no-repeat;
  transition: background-size 0.35s ease, color 0.25s ease;
}
.main-nav a:hover { color: var(--green-deep); background-size: 100% 2px; }

/* ---------- Hero (dawn) ---------- */

.hero {
  position: relative;
  text-align: center;
  padding: 110px 0 96px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 75% 55% at 50% 108%, rgba(217, 160, 138, 0.5), transparent 65%),
    radial-gradient(ellipse 90% 60% at 50% 115%, rgba(217, 184, 120, 0.45), transparent 70%),
    linear-gradient(180deg, #f7efdd 0%, #faf3e3 38%, #f6ecda 72%, var(--paper) 100%);
}

/* The sun — a soft orb that slowly breathes. */
.hero .orb {
  position: absolute;
  left: 50%;
  bottom: -190px;
  width: 460px;
  height: 460px;
  margin-left: -230px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%,
    rgba(255, 244, 214, 0.95) 0%,
    rgba(240, 205, 140, 0.55) 38%,
    rgba(224, 168, 120, 0.22) 62%,
    rgba(224, 168, 120, 0) 72%);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hero .orb { animation: breathe 9s ease-in-out infinite alternate; }
}
@keyframes breathe {
  from { transform: scale(1); opacity: 0.85; }
  to   { transform: scale(1.09); opacity: 1; }
}

/* Horizon rings around the sun. */
.hero .rings {
  position: absolute;
  left: 50%;
  bottom: -262px;
  width: 620px;
  height: 620px;
  margin-left: -310px;
  border-radius: 50%;
  border: 1px solid rgba(179, 137, 74, 0.28);
  box-shadow: 0 0 0 46px rgba(179, 137, 74, 0.05), 0 0 0 110px rgba(179, 137, 74, 0.035);
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 2; }

.hero .motif { margin-bottom: 20px; }
.hero .motif svg { filter: drop-shadow(0 3px 8px rgba(179, 137, 74, 0.4)); }

.hero h1 {
  font-family: var(--serif);
  font-weight: normal;
  font-size: clamp(3.1rem, 9vw, 5.6rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  margin: 0 0 18px;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.hero .tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  color: var(--green);
  margin: 0 0 26px;
  letter-spacing: 0.05em;
}

.hero p.lede {
  max-width: 620px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.hero .scroll-hint {
  margin-top: 44px;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--earth);
}

/* ---------- Page heads (inner pages) ---------- */

.page-head {
  position: relative;
  text-align: center;
  padding: 84px 0 8px;
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -260px;
  width: 560px;
  height: 380px;
  margin-left: -280px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(240, 205, 140, 0.4), rgba(240, 205, 140, 0) 68%);
  pointer-events: none;
}
.page-head h1 {
  position: relative;
  font-family: var(--serif);
  font-weight: normal;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  margin: 0 0 12px;
}
.page-head .sub {
  position: relative;
  font-family: var(--serif);
  font-style: italic;
  color: var(--green);
  font-size: 1.15rem;
  margin: 0;
}

/* ---------- Sections & type ---------- */

section { padding: 58px 0; }

.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--earth);
  font-weight: 600;
  margin: 0 0 12px;
}

h2 {
  font-family: var(--serif);
  font-weight: normal;
  font-size: clamp(1.8rem, 4.5vw, 2.3rem);
  line-height: 1.25;
  margin: 0 0 18px;
  color: var(--ink);
}

h3 {
  font-family: var(--serif);
  font-weight: normal;
  font-size: 1.32rem;
  margin: 0 0 8px;
}

p { margin: 0 0 1.15em; }

/* Ornamental rule: hairline with a gold diamond at centre. */
.rule {
  border: none;
  margin: 6px auto;
  width: min(1080px, calc(100% - 48px));
  height: 14px;
  position: relative;
  background:
    linear-gradient(var(--line), var(--line)) left center / calc(50% - 14px) 1px no-repeat,
    linear-gradient(var(--line), var(--line)) right center / calc(50% - 14px) 1px no-repeat;
}
.rule::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 0 3px var(--paper);
}

.section-lede {
  max-width: 600px;
  margin: 0 auto 34px;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- Cards (glass) ---------- */

.grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 680px) {
  .grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  position: relative;
  background: var(--paper-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(179, 137, 74, 0.3);
  border-radius: 14px;
  padding: 30px 27px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: rgba(179, 137, 74, 0.55); }
.card:hover::before { opacity: 1; }

.card .kicker { margin-bottom: 10px; }
.card p { color: var(--ink-soft); margin-bottom: 0; }
.card p + p { margin-top: 0.85em; }
.card h3 a { color: var(--ink); text-decoration: none; transition: color 0.25s ease; }
.card h3 a:hover { color: var(--green); }

.card .meta {
  font-size: 0.82rem;
  color: var(--earth);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.read-more {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.93rem;
  letter-spacing: 0.04em;
}

/* ---------- Pillar cards (art pieces) ---------- */

.pillar {
  text-align: center;
  padding: 40px 26px 34px;
}
.pillar .numeral {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 3.4rem;
  line-height: 1;
  margin-bottom: 14px;
  background: linear-gradient(160deg, var(--gold) 10%, var(--earth) 55%, var(--green-mist) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--earth);
}
.pillar h3 { font-size: 1.5rem; margin-bottom: 10px; }
.pillar .glyph { display: block; margin-bottom: 16px; opacity: 0.9; }
.pillar::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 20px;
  width: 34px;
  height: 1px;
  margin-left: -17px;
  background: var(--gold-soft);
}
.pillar.tint-1 { background: linear-gradient(175deg, rgba(255, 250, 236, 0.85), rgba(243, 231, 205, 0.6)); }
.pillar.tint-2 { background: linear-gradient(175deg, rgba(253, 247, 240, 0.85), rgba(240, 220, 205, 0.55)); }
.pillar.tint-3 { background: linear-gradient(175deg, rgba(248, 250, 241, 0.85), rgba(222, 233, 214, 0.55)); }
.pillar.tint-4 { background: linear-gradient(175deg, rgba(246, 248, 244, 0.85), rgba(214, 226, 216, 0.55)); }

/* ---------- Buttons / CTA ---------- */

.btn {
  display: inline-block;
  background: linear-gradient(160deg, var(--green) 0%, var(--green-deep) 100%);
  color: #fdfbf3;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 1rem;
  letter-spacing: 0.03em;
  border: 1px solid var(--green-deep);
  box-shadow: 0 8px 20px rgba(31, 53, 39, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover { color: #fdfbf3; transform: translateY(-2px); box-shadow: 0 14px 28px rgba(31, 53, 39, 0.26); }

.btn.ghost {
  background: rgba(255, 253, 247, 0.6);
  color: var(--green);
  border-color: var(--gold);
  box-shadow: none;
}
.btn.ghost:hover { background: var(--green); color: #fdfbf3; border-color: var(--green-deep); }

.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 90% at 50% 130%, rgba(217, 184, 120, 0.4), transparent 65%),
    linear-gradient(170deg, #3a5c46 0%, var(--green-deep) 70%);
  color: #f3efe2;
  text-align: center;
  border-radius: 18px;
  padding: 58px 30px;
  margin: 10px 0 6px;
  box-shadow: var(--shadow-lift);
}
.cta-band h2 { color: #fdfbf3; }
.cta-band p { color: #d8dcc9; max-width: 540px; margin-left: auto; margin-right: auto; }
.cta-band .btn { background: linear-gradient(160deg, #fdfbf3, #f0e6cd); color: var(--green-deep); border-color: #f0e6cd; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25); }
.cta-band .btn:hover { color: var(--green-deep); }

/* ---------- Article (journal typesetting) ---------- */

.article { padding: 66px 0 16px; }

.article .meta {
  text-align: center;
  color: var(--earth);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 14px;
}

.article h1 {
  font-family: var(--serif);
  font-weight: normal;
  font-size: clamp(2.1rem, 6vw, 3rem);
  line-height: 1.22;
  text-align: center;
  margin: 0 0 14px;
}

.article .standfirst {
  font-family: var(--serif);
  font-style: italic;
  text-align: center;
  color: var(--ink-soft);
  font-size: 1.14rem;
  max-width: 560px;
  margin: 0 auto 40px;
}

.article .body { font-size: 1.08rem; line-height: 1.95; }
.article .body p { margin-bottom: 1.4em; }
.article .body p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 3.4em;
  float: left;
  line-height: 0.82;
  padding: 6px 12px 0 0;
  color: var(--green);
  text-shadow: 1px 1px 0 rgba(179, 137, 74, 0.35);
}

.article blockquote.pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.5;
  text-align: center;
  color: var(--green-deep);
  margin: 2em auto;
  padding: 0.4em 0.5em;
  max-width: 540px;
  border: none;
  position: relative;
}
.article blockquote.pull::before,
.article blockquote.pull::after {
  content: "";
  display: block;
  width: 44px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 18px;
}
.article blockquote.pull::after { margin: 18px auto 0; }

.back-link { display: inline-block; margin: 34px 0 4px; font-size: 0.95rem; }

/* ---------- Forms ---------- */

form.simple {
  background: var(--paper-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(179, 137, 74, 0.3);
  border-radius: 14px;
  padding: 34px 30px;
  max-width: 560px;
  margin: 28px auto 0;
  text-align: left;
  box-shadow: var(--shadow-soft);
}
form.simple label {
  display: block;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 7px;
}
form.simple input,
form.simple textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  margin-bottom: 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
form.simple input:focus,
form.simple textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 184, 120, 0.3);
}
form.simple button {
  font: inherit;
  cursor: pointer;
  background: linear-gradient(160deg, var(--green), var(--green-deep));
  color: #fdfbf3;
  border: 1px solid var(--green-deep);
  border-radius: 999px;
  padding: 13px 30px;
  letter-spacing: 0.03em;
  box-shadow: 0 8px 20px rgba(31, 53, 39, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
form.simple button:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(31, 53, 39, 0.25); }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 70px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(217, 184, 120, 0.16), transparent 70%),
    linear-gradient(180deg, var(--paper-deep), #eee3cb);
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.footer-inner { padding: 44px 0 34px; text-align: center; }
.footer-inner .brand-line {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.footer-nav { margin: 14px 0; }
.footer-nav a { margin: 0 11px; color: var(--ink-soft); text-decoration: none; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--green-deep); text-decoration: underline; }
.footer-inner .fine { font-size: 0.82rem; color: #8f8a78; margin-top: 16px; }

/* ---------- Small screens ---------- */

@media (max-width: 560px) {
  .hero { padding: 74px 0 66px; }
  .hero .orb { width: 340px; height: 340px; margin-left: -170px; bottom: -150px; }
  .hero .rings { width: 460px; height: 460px; margin-left: -230px; bottom: -205px; }
  .page-head { padding: 60px 0 6px; }
  .header-inner { justify-content: center; text-align: center; }
  .main-nav ul { justify-content: center; }
  section { padding: 44px 0; }
}
