/* Heaven on Earth 144, the Teachings page and its articles (article_page.py). Words live in sources/<slug>.html.
   Brand book v1.3: Cormorant for display, Nunito Sans for reading, Cinzel for numbers. */

@font-face { font-family: "Cinzel"; src: url("/assets/fonts/cinzel-var.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("/assets/fonts/nunito-sans-var.woff2") format("woff2"); font-weight: 200 1000; font-style: normal; font-display: swap; }

:root {
  --ar-ivory: #fff9ea;
  --ar-cream: #fbefd0;
  --ar-honey: #e3a53a;
  --ar-gold: #a85f00;
  --ar-ink: #1b2332;
  --ar-body: #33405a;
  --ar-soft: #6f7891;
  --ar-line: rgba(196, 146, 52, .34);
  --ar-card: rgba(255, 252, 244, .92);
  --ar-haze: 255, 249, 234;
  --ar-shadow: 0 22px 60px rgba(168, 95, 0, .12);
  --ar-read: "Nunito Sans", var(--sans, "Segoe UI", sans-serif);
  --ar-serif: var(--serif, "Cormorant Garamond", Georgia, serif);
  --ar-cinzel: "Cinzel", var(--serif, Georgia, serif);
  --ar-gutter: clamp(16px, 5vw, 40px);
}
@media screen {
  :root[data-theme="dark"] {
    --ar-ivory: #111720;
    --ar-cream: #161d29;
    --ar-honey: #dbad4f;
    --ar-gold: #dbad4f;
    --ar-ink: #f8eac0;
    --ar-body: #e9d4a1;
    --ar-soft: #c9b27a;
    --ar-line: rgba(219, 173, 79, .26);
    --ar-card: rgba(22, 29, 41, .92);
    --ar-haze: 17, 23, 32;
    --ar-shadow: 0 22px 60px rgba(0, 0, 0, .4);
  }
}

body { background: var(--ar-ivory); }
.ar { background: var(--ar-ivory); color: var(--ar-ink); overflow-x: clip; }
.ar img { height: auto; max-width: 100%; }

/* The hero: the sun shining through the clouds behind the title. */
.ar-hero { position: relative; display: grid; place-items: center; min-height: clamp(460px, 72vh, 700px); padding: 72px var(--ar-gutter) 96px; text-align: center; overflow: hidden; isolation: isolate; }
.ar-hero__sky { position: absolute; inset: 0; z-index: -2; }
.ar-hero__sky img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.ar-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 64% 58% at 50% 52%, rgba(var(--ar-haze), .9) 0, rgba(var(--ar-haze), .66) 46%, rgba(var(--ar-haze), .12) 80%),
              linear-gradient(to bottom, rgba(var(--ar-haze), 0) 62%, var(--ar-ivory) 100%); }
.ar-hero__words { max-width: 860px; }
.ar-eyebrow { margin: 0 0 18px; font: 700 11px/1.5 var(--ar-read); letter-spacing: .24em; text-transform: uppercase; color: var(--ar-gold); }
.ar-hero h1 { margin: 0 0 22px; font: 500 clamp(44px, 7vw, 92px)/1 var(--ar-serif); letter-spacing: -.03em; color: var(--ar-ink); text-wrap: balance; }
.ar-hero h1 em { font-style: italic; color: var(--ar-gold); }
.ar-line { max-width: 560px; margin: 0 auto 22px; font: italic 500 clamp(22px, 2.4vw, 28px)/1.4 var(--ar-serif); color: var(--ar-body); }
.ar-byline { margin: 0; font: 600 13px/1.6 var(--ar-read); letter-spacing: .02em; color: var(--ar-soft); }
.ar-byline a { color: inherit; text-decoration-color: var(--ar-honey); }

/* The reading column. */
.ar-body { max-width: 700px; margin: 0 auto; padding: 8px var(--ar-gutter) 40px; font: 400 19px/1.8 var(--ar-read); color: var(--ar-body); }
.ar-body p { margin: 0 0 1.15em; }
.ar-body a { color: var(--ar-ink); text-decoration: underline; text-decoration-color: var(--ar-honey); text-underline-offset: 5px; }
.ar-open p { font: 500 clamp(23px, 2.5vw, 27px)/1.55 var(--ar-serif); color: var(--ar-ink); }
.ar-open .ar-open__first { font-size: clamp(26px, 2.9vw, 31px); }

.ar-short { margin: 38px 0 50px; padding: 26px 30px 24px; border: 1px solid var(--ar-line); border-left: 3px solid var(--ar-honey); border-radius: 4px 18px 18px 4px; background: var(--ar-card); box-shadow: var(--ar-shadow); }
.ar-short__label { margin: 0 0 10px !important; font: 700 12px/1.4 var(--ar-cinzel); letter-spacing: .2em; text-transform: uppercase; color: var(--ar-gold); }
.ar-short p:last-child { margin: 0; font-size: 18px; line-height: 1.75; color: var(--ar-ink); }

.ar-section { padding: 26px 0 8px; }
.ar-section h2, .ar-next h2 { position: relative; margin: 0 0 24px; padding-top: 26px; font: 500 clamp(32px, 4.2vw, 46px)/1.08 var(--ar-serif); letter-spacing: -.02em; color: var(--ar-ink); text-wrap: balance; }
.ar-section h2::before { content: ""; position: absolute; top: 0; left: 0; width: 56px; height: 2px; background: linear-gradient(90deg, var(--ar-honey), rgba(227, 165, 58, 0)); }
.ar-section h3 { display: flex; align-items: baseline; gap: 14px; margin: 40px 0 16px; font: 500 clamp(26px, 3vw, 32px)/1.15 var(--ar-serif); color: var(--ar-ink); }
.ar-num { flex: none; min-width: 44px; font: 600 22px/1 var(--ar-cinzel); letter-spacing: .06em; color: var(--ar-gold); }
.ar-nowrap { white-space: nowrap; }

.ar-land { margin: 6px 0 1.2em !important; font: italic 500 clamp(24px, 2.7vw, 29px)/1.4 var(--ar-serif); color: var(--ar-gold); }
.ar-well { font-weight: 700; color: var(--ar-ink); }
.ar-peak { margin: 30px 0 !important; text-align: center; font: 500 clamp(28px, 3.4vw, 36px)/1.35 var(--ar-serif); color: var(--ar-ink); }

.ar-practice { margin: 22px 0 28px; padding: 22px 24px; text-align: center; border: 1px solid var(--ar-line); border-radius: 18px; background: linear-gradient(180deg, rgba(251, 239, 208, .7), rgba(255, 249, 234, .9)); }
[data-theme="dark"] .ar-practice { background: var(--ar-card); }
.ar-practice__label { margin: 0 0 8px !important; font: 700 11px/1.4 var(--ar-cinzel); letter-spacing: .22em; text-transform: uppercase; color: var(--ar-gold); }
.ar-practice__steps { margin: 0 !important; font: 500 clamp(21px, 2.3vw, 25px)/1.5 var(--ar-serif); color: var(--ar-ink); }
.ar-practice__steps span { color: var(--ar-gold); padding: 0 4px; }

.ar-ripple .ar-call { margin: 26px 0 0; font: italic 500 clamp(28px, 3.4vw, 38px)/1.3 var(--ar-serif); color: var(--ar-gold); }

/* The next step: the Light Activation. */
.ar-next { margin: 56px 0 30px; padding: 34px clamp(22px, 4vw, 40px) 36px; text-align: center; border: 1px solid var(--ar-line); border-radius: 26px; background: var(--ar-card); box-shadow: var(--ar-shadow); }
.ar-next h2 { padding-top: 0; }
.ar-next p { text-align: left; }
.ar-next .ar-eyebrow, .ar-next .ar-next__action { text-align: center; }
.ar-next__action { margin: 26px 0 0 !important; }
.ar-btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 15px 32px; border-radius: 999px; font: 800 15px/1.3 var(--ar-read); letter-spacing: .03em; color: #2b1a04 !important; text-decoration: none !important; background: linear-gradient(135deg, #f8dc8c 0%, #eab353 48%, #cf8a24 100%); box-shadow: 0 10px 28px rgba(214, 150, 40, .32), inset 0 1px 0 rgba(255, 255, 255, .65); transition: transform .2s ease, box-shadow .2s ease; }
.ar-btn span { font-size: 18px; }
.ar-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(214, 150, 40, .45), 0 0 0 6px rgba(248, 220, 140, .25), inset 0 1px 0 rgba(255, 255, 255, .65); }
.ar-btn::after { content: ""; position: absolute; inset: -2px auto -2px -40%; width: 34%; z-index: -1; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent); transform: skewX(-18deg); animation: ar-sheen 5.5s ease-in-out infinite; }
@keyframes ar-sheen { 0%, 62% { left: -40%; } 100% { left: 130%; } }

.ar-close { margin: 44px 0 12px; text-align: center; }
.ar-close p { margin: 0 0 10px; font: 500 clamp(23px, 2.5vw, 27px)/1.5 var(--ar-serif); color: var(--ar-ink); }
.ar-close .ar-blessing { color: var(--ar-gold); font-style: italic; }
.ar-close .ar-sign { margin-top: 18px; font: italic 500 40px/1 var(--ar-serif); color: var(--ar-ink); }

/* the breadcrumb back to the Teachings page, above an article's eyebrow */
.ar-crumbs { margin: 0 0 16px; }
.ar-crumbs a { display: inline-block; padding: 5px 15px; border: 1px solid var(--ar-line); border-radius: 999px; background: var(--ar-card); font: 700 11px/1.4 var(--ar-read); letter-spacing: .2em; text-transform: uppercase; color: var(--ar-gold); text-decoration: none; transition: border-color .2s ease; }
.ar-crumbs a:hover { border-color: var(--ar-honey); }

/* the Teachings page: one card per article, newest first */
.tc .ar-hero { min-height: clamp(380px, 56vh, 560px); }
.tc-intro { margin: 8px 0 36px !important; text-align: center; font: 500 clamp(21px, 2.3vw, 25px)/1.55 var(--ar-serif); color: var(--ar-ink); }
.tc-list { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 18px; }
.tc-card a { display: block; padding: 26px 28px 24px; border: 1px solid var(--ar-line); border-left: 3px solid var(--ar-honey); border-radius: 4px 18px 18px 4px; background: var(--ar-card); box-shadow: var(--ar-shadow); color: inherit; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.tc-card a:hover { transform: translateY(-2px); box-shadow: 0 26px 70px rgba(168, 95, 0, .18); }
.tc-card .tc-date { margin: 0 0 10px; font: 700 11px/1.4 var(--ar-cinzel); letter-spacing: .2em; text-transform: uppercase; color: var(--ar-gold); }
.tc-card h2 { margin: 0 0 10px; font: 500 clamp(28px, 3.4vw, 38px)/1.12 var(--ar-serif); letter-spacing: -.01em; color: var(--ar-ink); text-wrap: balance; }
.tc-card p { margin: 0 0 14px; font: italic 500 clamp(20px, 2.2vw, 24px)/1.45 var(--ar-serif); color: var(--ar-body); }
.tc-read { font: 800 14px/1.4 var(--ar-read); letter-spacing: .03em; color: var(--ar-gold); }

@media (max-width: 640px) {
  .ar-hero { min-height: 420px; padding: 54px 16px 74px; }
  .ar-body { font-size: 18px; padding: 4px 16px 32px; }
  .ar-short { padding: 22px 20px 20px; }
  .ar-practice { padding: 18px 16px; }
  .ar-next { padding: 28px 18px 30px; }
  .tc .ar-hero { min-height: 360px; }
  .tc-card a { padding: 22px 20px 20px; }
  .site-footer { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .ar-btn::after { animation: none; display: none; }
  .ar-btn, .ar-btn:hover { transition: none; transform: none; }
  .tc-card a, .tc-card a:hover { transition: none; transform: none; }
}
