/* awækening.com (2026-11-06). The page is read against a live sky; ink follows the light via --day (0 night → 1 day). */
@font-face { font-family: 'Cormorant'; src: url(fonts/cormorant-light.woff2) format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url(fonts/cormorant-regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url(fonts/cormorant-medium.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url(fonts/cormorant-semibold.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url(fonts/cormorant-lightitalic.woff2) format('woff2'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url(fonts/cormorant-italic.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Jost'; src: url(fonts/jost.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --day: 0;
  --ink: rgb(calc(244 - 222 * var(--day)) calc(239 - 215 * var(--day)) calc(230 - 190 * var(--day)));
  --ink-soft: rgb(calc(214 - 170 * var(--day)) calc(212 - 166 * var(--day)) calc(212 - 140 * var(--day)));
  --gold: rgb(calc(232 - 60 * var(--day)) calc(190 - 82 * var(--day)) calc(122 - 70 * var(--day)));
  --shade: rgba(calc(10 + 235 * var(--day)), calc(12 + 230 * var(--day)), calc(30 + 210 * var(--day)), calc(.55 - .2 * var(--day)));
  --serif: 'Cormorant', 'Cormorant Garamond', Garamond, 'Times New Roman', serif;
  --sans: 'Jost', 'Futura', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gut: clamp(20px, 7vw, 120px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: #05070f; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; color: var(--ink); background: #05070f; font: 500 20px/1.65 var(--serif); overflow-x: hidden; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }

/* the sky behind everything */
#sky, #stars { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; display: block; z-index: 0; }
#sky { image-rendering: auto; }
#stars { pointer-events: none; transition: opacity .25s linear; }
.no-webgl body, .no-webgl #sky { background: linear-gradient(#070b1d 0%, #1b2547 46%, #6d4a6a 62%, #d9875a 66%, #0c1222 67%, #04060d 100%); }

/* header */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gut); color: var(--ink);
}
.brand { font: 400 24px/1 var(--serif); letter-spacing: .01em; text-decoration: none; }
.brand .ae, .word .l-ae { color: var(--gold); }
.top nav { display: flex; gap: clamp(14px, 2.6vw, 34px); }
.top nav a { font: 500 12px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; text-decoration: none; opacity: .92; }
.top nav a:hover { opacity: 1; }
@media (max-width: 520px) { .top nav a:not(:last-child) { display: none; } .brand { font-size: 21px; } }

/* sections: text lives in the sky, above the horizon line (66 % down) */
main { position: relative; z-index: 2; }
.s { min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-start; padding: 22vh var(--gut) 0; }
.s-hero { padding-top: 24vh; }
.col {
  position: relative; max-width: 640px; padding: clamp(22px, 3vw, 40px) clamp(22px, 3vw, 44px); margin-left: calc(-1 * clamp(22px, 3vw, 44px));
  border-radius: 22px; text-shadow: none;
  background: rgba(calc(6 + 244 * var(--day)), calc(9 + 238 * var(--day)), calc(22 + 222 * var(--day)), calc(.50 + .18 * var(--day)));
  box-shadow: 0 10px 40px rgba(0, 0, 0, calc(.18 - .1 * var(--day)));
  -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1);
}
.s-hero .col { background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; text-shadow: 0 2px 24px rgba(0, 0, 0, .6); }
.kicker { margin: 0 0 18px; font: 500 13px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
h1, h2 { font-family: var(--serif); font-weight: 300; margin: 0; letter-spacing: -.005em; }
h2 { font-size: clamp(36px, 5vw, 62px); font-weight: 400; line-height: 1.06; margin-bottom: 20px; }
.col p { margin: 0 0 14px; font-size: clamp(21px, 1.75vw, 24px); font-weight: 500; line-height: 1.6; color: var(--ink); max-width: 32em; }
.col em { font-style: italic; color: var(--ink); }

.word { font-size: clamp(64px, 12.5vw, 176px); line-height: .95; letter-spacing: -.012em; white-space: nowrap; }
.lig { position: relative; display: inline-block; vertical-align: baseline; white-space: nowrap; }
.lig .l-a, .lig .l-e { display: inline-block; }
.lig .l-ae { position: absolute; left: 50%; top: 0; transform: translateX(-50%); opacity: 0; }
.lig.is-one .l-a, .lig.is-one .l-e { display: none; }
.lig.is-one .l-ae { position: static; transform: none; opacity: 1; filter: none; }
.lead { margin-top: 26px !important; font-size: clamp(22px, 2.1vw, 28px) !important; font-style: italic; font-weight: 400 !important; color: var(--ink) !important; }
.cue { margin-top: 9vh !important; display: inline-flex; flex-direction: column; gap: 14px; font: 400 12px/1 var(--sans) !important; letter-spacing: .3em; text-transform: uppercase; opacity: .78; }
.cue i { width: 1px; height: 46px; background: linear-gradient(currentColor, transparent); animation: cue 2.6s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0%, 100% { transform: scaleY(.35); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cue i { animation: none; } }

.glyph { float: right; font: 300 clamp(96px, 11vw, 150px)/.8 var(--serif) !important; color: var(--gold) !important; margin: -8px 0 0 24px !important; }

.practices { list-style: none; counter-reset: p; margin: 8px 0 0; padding: 0; max-width: 34em; }
.practices li { counter-increment: p; position: relative; padding: 14px 0 14px 50px; font-weight: 500; border-top: 1px solid rgba(calc(244 - 222 * var(--day)), calc(239 - 215 * var(--day)), calc(230 - 190 * var(--day)), .22); font-size: clamp(21px, 1.75vw, 24px); color: var(--ink); }
.practices li::before { content: counter(p, upper-roman); position: absolute; left: 0; top: 17px; font: 400 12px/1.6 var(--sans); letter-spacing: .2em; color: var(--gold); }
.practices b { font-weight: 600; color: var(--ink); }

/* breath pacer */
.pacer { --breath: 0; display: flex; align-items: center; gap: 24px; margin-top: 30px; }
.pacer-btn { position: relative; display: grid; place-items: center; width: 168px; height: 168px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; border-radius: 50%; }
.pacer-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(232, 190, 122, .55); display: grid; place-items: center; }
.pacer-core {
  width: 100%; height: 100%; border-radius: 50%; transform: scale(.42); transition: transform .9s ease;
  background: radial-gradient(circle at 50% 45%, rgba(255, 228, 180, .55), rgba(232, 160, 90, .18) 55%, rgba(232, 160, 90, 0) 72%);
  box-shadow: 0 0 calc(30px + 50px * var(--breath)) rgba(255, 200, 140, calc(.12 + .25 * var(--breath)));
}
.pacer.is-on .pacer-core { transition: none; }
.pacer-label { position: relative; font: 400 12px/1.3 var(--sans); letter-spacing: .26em; text-transform: uppercase; text-align: center; max-width: 9em; }
.pacer-count { margin: 0 !important; font: 400 12px/1 var(--sans) !important; letter-spacing: .26em; text-transform: uppercase; opacity: .75; }

.mail { font: 400 clamp(26px, 3.2vw, 40px)/1.2 var(--serif); text-decoration: none; border-bottom: 1px solid var(--gold); color: var(--ink); }
.mail:hover { color: var(--gold); }
.s-write { min-height: 92vh; }

/* footer */
.foot {
  position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  padding: 26px var(--gut) 30px; font: 400 11px/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft);
}
.readout { position: fixed; left: var(--gut); bottom: 18px; z-index: 3; opacity: .7; font-variant-numeric: tabular-nums; }
.foot .readout { position: fixed; }
@media (max-width: 520px) { .readout { left: 20px; bottom: 12px; font-size: 10px; } .s { padding-top: 18vh; } }

/* readability (2026-11-06, owner: "make it easier to read"): panels full width on phones */
@media (max-width: 600px) {
  .s { padding-left: 14px; padding-right: 14px; }
  .col { margin-left: 0; padding: 22px 20px; border-radius: 18px; }
  .s-hero .col { padding: 0 6px; }
}
.readout, .foot { text-shadow: 0 1px 8px rgba(calc(255 * var(--day)), calc(255 * var(--day)), calc(255 * var(--day)), .6); }
/* header bar and sun readout get the same adaptive backing as the reading panels */
.top, .readout {
  background: rgba(calc(6 + 244 * var(--day)), calc(9 + 238 * var(--day)), calc(22 + 222 * var(--day)), calc(.42 + .2 * var(--day)));
  -webkit-backdrop-filter: blur(12px) saturate(1.1); backdrop-filter: blur(12px) saturate(1.1);
}
.top { padding-top: 14px; padding-bottom: 14px; }
.readout { padding: 7px 12px; border-radius: 999px; text-shadow: none; opacity: .95; color: var(--ink); }
.foot { text-shadow: none; }
