/* stillpoint — dawn palette, lowercase calm */

:root{
  --ink: #343a44;
  --ink-soft: #59617021;
  --ink-mid: #5c6472;
  --rose: #f4dfe0;
  --sky: #cfe0f0;
  --dusk: #57689a;
  --dusk-deep: #333f68;
  --ring: #414a63;
  --maxw: 62rem;
}

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

html{
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}

body{
  font-family: 'Hanken Grotesk', 'Helvetica Neue', sans-serif;
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--ink);
  /* static dawn beneath the fixed sky layers, for overscroll and stitched views */
  background: linear-gradient(180deg, #f8ebe8 0%, #e9e2ec 38%, #e2e1eb 100%);
  overflow-x: hidden;
}

.nowrap{ white-space: nowrap; }

::selection{ background: #f0cfd2; color: #3a3040; }

a{ color: inherit; }
:focus-visible{
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ---------- the breathing sky ---------- */
.sky{ position: fixed; inset: 0; z-index: -1; }
.sky-layer{ position: absolute; inset: 0; will-change: opacity; }
.sky-rose{
  background: linear-gradient(180deg, #faece9 0%, #f4dcde 46%, #dcd8ea 100%);
  opacity: 1;
}
.sky-day{
  background: linear-gradient(180deg, #edf3f9 0%, #d3e0f0 52%, #bccee7 100%);
  opacity: 0;
}
.sky-dusk{
  background: linear-gradient(180deg, #ccd3e6 0%, #93a2c8 55%, #5a6b9d 100%);
  opacity: 0;
}
.sky-deep{
  background: linear-gradient(180deg, #aeb7d3 0%, #6b7aa8 50%, #333f68 100%);
  opacity: 0;
}
@media (prefers-reduced-motion: reduce){
  .sky-layer{ transition: opacity 2.5s ease; }
}

/* ---------- type ---------- */
.disp{
  font-family: 'Asap', 'Hanken Grotesk', sans-serif;
  font-stretch: 125%;
  font-weight: 315;
  letter-spacing: 0.012em;
}

h1{ font-size: clamp(1.7rem, 1rem + 3vw, 2.9rem); line-height: 1.22; }
h2{ font-size: clamp(1.5rem, 0.95rem + 2.4vw, 2.45rem); line-height: 1.25; max-width: 24ch; }
h3{
  font-weight: 400;
  font-size: 1.0625rem;
  letter-spacing: 0.14em;
  color: var(--ink-mid);
}

.eyebrow{
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  color: var(--ink-mid);
  margin-bottom: 1.4rem;
}

.prose{
  max-width: 34rem;
  margin-top: 2.2rem;
}
.prose.small{ font-size: 0.9375rem; color: var(--ink-mid); }

.hint{
  font-size: 0.875rem;
  color: var(--ink-mid);
  letter-spacing: 0.05em;
  margin-top: 1.6rem;
}

strong{ font-weight: 500; }

/* ---------- header ---------- */
.top{
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.9rem clamp(1.4rem, 5vw, 4rem);
  z-index: 5;
}
.wordmark{
  font-family: 'Asap', sans-serif;
  font-stretch: 125%;
  font-weight: 380;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-decoration: none;
}
.top nav{ display: flex; gap: clamp(1rem, 3vw, 2.4rem); }
.top nav a{
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--ink-mid);
  border-bottom: 1px solid transparent;
  transition: color .3s ease, border-color .3s ease;
}
.top nav a:hover{ color: var(--ink); border-color: var(--ink-mid); }

/* ---------- sections ---------- */
main{ display: block; }

section{
  min-height: 88svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(5rem, 10vh, 8rem) clamp(1.4rem, 6vw, 4rem);
}

.hero{ min-height: 100svh; padding-top: 6.5rem; }

.hero h1{ margin-bottom: 1rem; }

/* ---------- pacer ---------- */
.pacer{
  position: relative;
  width: min(66vw, 26.5rem, 52svh);
  aspect-ratio: 1;
  margin: 1.2rem 0 1.8rem;
}
#breathSvg{ width: 100%; height: 100%; display: block; }

.pacer-text{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.15rem;
  pointer-events: none;
}
.phase-name{
  font-family: 'Asap', sans-serif;
  font-stretch: 118%;
  font-weight: 360;
  font-size: clamp(0.95rem, 2.4vw, 1.2rem);
  letter-spacing: 0.12em;
  color: #3d4352;
}
.phase-count{
  font-family: 'Asap', sans-serif;
  font-stretch: 125%;
  font-weight: 250;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  color: #4a5165;
  min-height: 1.2em;
  font-variant-numeric: tabular-nums;
}

#ringProg{ transition: opacity .6s ease; }

.ring-label{
  font-family: 'Asap', sans-serif;
  font-size: 19px;
  font-weight: 350;
  fill: #5c6480;
  opacity: 0.75;
}

/* ---------- page-load sequence ---------- */
@keyframes settle{
  from{ opacity: 0; transform: translateY(10px); }
  to{ opacity: 1; transform: none; }
}
.hero > *{ animation: settle 1.1s ease both; }
.hero .eyebrow{ animation-delay: 0.15s; }
.hero h1{ animation-delay: 0.3s; }
.hero .pacer{ animation-delay: 0.55s; animation-duration: 1.6s; }
.hero .begin{ animation-delay: 0.9s; }
.hero .hint{ animation-delay: 1.1s; }
@media (prefers-reduced-motion: reduce){
  .hero > *{ animation: none; }
}

/* ---------- buttons ---------- */
.begin{
  font-family: 'Asap', sans-serif;
  font-stretch: 118%;
  font-weight: 400;
  font-size: 0.9875rem;
  letter-spacing: 0.1em;
  color: var(--ink);
  background: rgba(255,255,255,0.38);
  border: 1px solid #9aa4bd;
  border-radius: 999px;
  padding: 0.9rem 2.2rem;
  cursor: pointer;
  text-decoration: none;
  transition: background .35s ease, border-color .35s ease, transform .35s ease;
}
.begin:hover{
  background: rgba(255,255,255,0.62);
  border-color: var(--ink-mid);
  transform: translateY(-1px);
}
@media (prefers-reduced-motion: reduce){
  .begin:hover{ transform: none; }
}

.after-note{
  margin-top: 1.5rem;
  font-size: 0.9875rem;
  color: var(--ink-mid);
  max-width: 30rem;
}
.after-note a{
  color: var(--ink);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* ---------- protocol stanzas ---------- */
.stanzas{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  margin-top: 3.5rem;
  max-width: var(--maxw);
  width: 100%;
}
.stanza{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.numeral{
  font-size: clamp(4.4rem, 3rem + 9vw, 9rem);
  font-weight: 210;
  line-height: 1;
  color: #46506b;
}
.stanza h3{ margin-top: 0.6rem; }
.stanza p{
  font-size: 0.9875rem;
  max-width: 24ch;
  color: var(--ink);
}

/* ---------- sittings ---------- */
.sittings-list{
  list-style: none;
  width: 100%;
  max-width: 44rem;
  margin-top: 3rem;
  text-align: left;
}
.sittings-list li{
  display: flex;
  align-items: baseline;
  gap: clamp(1rem, 4vw, 2.5rem);
  padding: 1.6rem 0.3rem;
  border-top: 1px solid #a9b1c766;
}
.sittings-list li:last-child{ border-bottom: 1px solid #a9b1c766; }
.when{
  flex: 0 0 6.2rem;
  font-size: 1.2rem;
  font-weight: 330;
  color: #46506b;
  font-variant-numeric: tabular-nums;
}
.what{ font-size: 1rem; }

/* ---------- book & footer ---------- */
.book .cta{ display: inline-block; margin-top: 2.6rem; }

.foot{
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem clamp(1.2rem, 4vw, 3rem);
  justify-content: center;
  padding: 2.6rem clamp(1.4rem, 6vw, 4rem) 3rem;
  font-size: 0.8438rem;
  letter-spacing: 0.05em;
  color: var(--ink-mid);
}
.foot a{ text-underline-offset: 4px; text-decoration-thickness: 1px; }
.foot a:hover{ color: var(--ink); }

/* ---------- mobile ---------- */
@media (max-width: 720px){
  .stanzas{ grid-template-columns: 1fr; gap: 3rem; }
  .pacer{ width: min(78vw, 46svh); }
  .top{ padding: 1.4rem 1.4rem; }
  .top nav{ gap: 1.1rem; }
  .top nav a{ font-size: 0.8125rem; }
  section{ min-height: auto; padding-top: 5.5rem; padding-bottom: 5.5rem; }
  .hero{ min-height: 100svh; padding-top: 6rem; }
  .sittings-list li{ flex-direction: column; gap: 0.35rem; }
  .when{ flex: none; }
}
