/* ===========================================================================
   Hush Hour — hush.css
   Low-contrast indigo and grey rose. No borders, no shadows, no rounded cards:
   separation comes from letter-spacing, scale and empty space. Every class in
   the public front end carries the .hh- prefix.
   =========================================================================== */

:root {
  --hush-indigo: #3b4058;
  --soothe-rose: #cfa8a3;
  --quiet-paper: #f2f0ee;
  --dim-sage: #8b9384;
  --ink-soft: #6c7284;
  --rose-deep: #b98c86;
  --paper-deep: #e8e5e1;
  --hh-title: "Literata", "Songti SC", Georgia, serif;
  --hh-text: "Mulish", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --hh-gap: clamp(1.6rem, 4vw, 3.2rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.hh-body {
  margin: 0;
  background: var(--quiet-paper);
  color: var(--hush-indigo);
  font-family: var(--hh-text);
  font-size: clamp(1rem, 0.72vw + 0.86rem, 1.12rem);
  line-height: 1.72;
  letter-spacing: 0.012em;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hh-skip { position: absolute; left: -9999px; }
.hh-skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 60;
  background: var(--quiet-paper);
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.hh-body a { color: inherit; text-decoration: none; }
.hh-body a:hover { color: var(--rose-deep); }
.hh-body :focus-visible { outline: 2px solid var(--rose-deep); outline-offset: 4px; }

/* --- header ------------------------------------------------------------- */
.hh-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 2.4vw, 1.8rem) var(--hh-gap);
}

.hh-brand { display: inline-flex; align-items: baseline; gap: 0.7rem; }
.hh-brand__word {
  font-family: var(--hh-title);
  font-size: clamp(1.05rem, 0.6vw + 0.95rem, 1.28rem);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.hh-brand__tail {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim-sage);
}

.hh-dial {
  width: 3.35rem;
  height: 3.35rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--hush-indigo);
  font-family: var(--hh-text);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  position: relative;
  transition: color 220ms ease;
}
.hh-dial::before {
  content: "";
  position: absolute;
  inset: 0.28rem;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(207, 168, 163, 0.42), rgba(59, 64, 88, 0.06));
  opacity: 0.55;
  transition: opacity 260ms ease, transform 260ms ease;
}
.hh-dial:hover::before { opacity: 0.95; transform: scale(1.06); }
.hh-dial span { position: relative; }

/* --- fullscreen menu overlay ------------------------------------------- */
.hh-overlay {
  position: fixed;
  inset: 0;
  background: var(--quiet-paper);
  z-index: 40;
  display: flex;
  flex-direction: column;
  padding: clamp(1rem, 2.4vw, 1.8rem) var(--hh-gap) var(--hh-gap);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transition: opacity 260ms ease, clip-path 420ms cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0s linear 420ms;
}
.hh-overlay.is-open {
  visibility: visible;
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transition-delay: 0s;
}
.hh-overlay__bar { display: flex; align-items: center; justify-content: space-between; }
.hh-overlay__title {
  font-size: 0.68rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--dim-sage);
}
.hh-overlay__grid {
  margin-top: clamp(1.6rem, 4vw, 3rem);
  columns: 2;
  column-gap: var(--hh-gap);
}
@media (max-width: 720px) { .hh-overlay__grid { columns: 1; } }

.hh-crew { break-inside: avoid; margin: 0 0 1.9rem; }
.hh-crew__name {
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin: 0 0 0.5rem;
}
.hh-crew__list { list-style: none; margin: 0; padding: 0; }
.hh-crew__list li { margin: 0 0 0.28rem; }
.hh-crew__list a {
  font-family: var(--hh-title);
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  color: var(--hush-indigo);
}
.hh-crew__list a:hover { letter-spacing: 0.035em; }
.hh-crew__list .hh-crew__min { color: var(--dim-sage); font-size: 0.78rem; margin-left: 0.5rem; }

.hh-overlay__foot {
  margin-top: auto;
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* --- homepage deck ------------------------------------------------------ */
.hh-deck {
  flex: 1;
  display: grid;
  align-items: center;
  padding: clamp(0.5rem, 2vw, 1.4rem) var(--hh-gap);
}

.hh-slip { display: none; margin: 0; }
.hh-slip.is-live { display: block; }

.hh-slip__trigger {
  margin: 0 0 0.9rem;
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--rose-deep);
}
.hh-slip__name {
  font-family: var(--hh-title);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.4vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0 0 1.1rem;
  max-width: 22ch;
}
.hh-slip__summary {
  max-width: 46ch;
  color: var(--ink-soft);
  margin: 0 0 clamp(1.4rem, 3vw, 2.2rem);
}

.hh-stage {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.6rem);
  flex-wrap: wrap;
}
.hh-figure {
  position: relative;
  width: clamp(170px, 26vw, 260px);
  aspect-ratio: 3 / 2;
  flex: 0 0 auto;
}
.hh-figure img { width: 100%; height: 100%; display: block; object-fit: cover; }

.hh-count {
  font-family: var(--hh-title);
  font-size: clamp(4.4rem, 15vw, 10rem);
  line-height: 0.86;
  letter-spacing: -0.04em;
  color: var(--hush-indigo);
  margin: 0;
}
.hh-count__of {
  display: block;
  font-family: var(--hh-text);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim-sage);
  margin-top: 0.9rem;
}
.hh-first {
  max-width: 34ch;
  font-size: 1.02rem;
  margin: 0.4rem 0 0;
}
.hh-first__sec { color: var(--dim-sage); }

/* the breathing circle: three rings pulsing on a 10s cycle */
.hh-pulse {
  position: relative;
  width: clamp(96px, 13vw, 150px);
  aspect-ratio: 1;
  flex: 0 0 auto;
  margin-left: auto;
}
.hh-pulse__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(207, 168, 163, 0.5), rgba(139, 147, 132, 0.06) 68%);
  animation: hh-breathe 10s cubic-bezier(0.44, 0.05, 0.56, 0.95) infinite;
  transform-origin: 50% 50%;
}
.hh-pulse__ring:nth-child(2) { animation-delay: -2.4s; opacity: 0.7; }
.hh-pulse__ring:nth-child(3) { animation-delay: -4.8s; opacity: 0.45; }
@keyframes hh-breathe {
  0% { transform: scale(0.66); opacity: 0.28; }
  38% { transform: scale(1); opacity: 0.72; }
  62% { transform: scale(1); opacity: 0.72; }
  100% { transform: scale(0.66); opacity: 0.28; }
}

.hh-rail {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 var(--hh-gap) clamp(1rem, 2.5vw, 1.6rem);
}
.hh-rail__step {
  border: 0;
  background: transparent;
  color: var(--hush-indigo);
  font-family: var(--hh-title);
  font-size: 1.35rem;
  cursor: pointer;
  padding: 0.4rem 0.7rem;
  letter-spacing: 0.06em;
  transition: transform 200ms ease, color 200ms ease;
}
.hh-rail__step:hover { transform: translateX(-3px); color: var(--rose-deep); }
.hh-rail__step--on:hover { transform: translateX(3px); }
.hh-rail__step[disabled] { color: var(--paper-deep); cursor: default; transform: none; }
.hh-rail__tally { font-size: 0.74rem; letter-spacing: 0.22em; color: var(--dim-sage); }

.hh-more {
  padding: 0 var(--hh-gap) clamp(1.6rem, 3vw, 2.4rem);
  font-size: 0.84rem;
}
.hh-more a { border-bottom: 1px solid var(--soothe-rose); padding-bottom: 2px; }

/* --- protocol detail ---------------------------------------------------- */
.hh-sheet {
  flex: 1;
  padding: 0 var(--hh-gap) clamp(2rem, 4vw, 3.4rem);
  max-width: 68rem;
  width: 100%;
}

.hh-when {
  background: linear-gradient(90deg, rgba(207, 168, 163, 0.26), rgba(139, 147, 132, 0.08));
  padding: clamp(0.9rem, 2vw, 1.3rem) clamp(1rem, 2.4vw, 1.7rem);
  margin: 0 0 clamp(1.6rem, 3.5vw, 2.6rem);
  font-size: 0.95rem;
}
.hh-when__tag {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 0.35rem;
}

.hh-sheet h1 {
  font-family: var(--hh-title);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  line-height: 1.14;
  letter-spacing: -0.012em;
  margin: 0 0 1rem;
  max-width: 26ch;
}
.hh-lede { max-width: 60ch; color: var(--ink-soft); margin: 0 0 1rem; }
.hh-stamp {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim-sage);
  margin: 0 0 clamp(1.8rem, 4vw, 2.8rem);
}
/* The desk byline sits on the stamp line, right after the publish date. It
   drops the uppercase and the wide tracking of the metadata around it so it
   reads as a signature rather than as another field. */
.hh-byline {
  text-transform: none;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  white-space: nowrap;
}

.hh-rhythm {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  padding: clamp(1.2rem, 3vw, 2rem) 0;
  margin: 0 0 clamp(1.8rem, 4vw, 2.6rem);
  border-top: 1px solid rgba(59, 64, 88, 0.12);
  border-bottom: 1px solid rgba(59, 64, 88, 0.12);
}
.hh-rhythm__text { max-width: 48ch; margin: 0; }
.hh-rhythm__tag {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--dim-sage);
  margin-bottom: 0.4rem;
}

.hh-steps { list-style: none; margin: 0; padding: 0; }
.hh-step {
  display: grid;
  grid-template-columns: minmax(0, 5.5rem) minmax(0, 1fr);
  gap: clamp(0.8rem, 2.4vw, 2rem);
  padding: clamp(1.3rem, 3vw, 2.1rem) 0;
}
.hh-step + .hh-step { border-top: 1px solid rgba(59, 64, 88, 0.09); }
.hh-step__num {
  font-family: var(--hh-title);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--soothe-rose);
}
.hh-step__name {
  font-family: var(--hh-title);
  font-weight: 400;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  margin: 0 0 0.3rem;
}
.hh-step__clock {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim-sage);
  margin: 0 0 0.6rem;
}
.hh-step__body { margin: 0; max-width: 58ch; }

.hh-notes { margin: clamp(2.2rem, 5vw, 3.4rem) 0 0; }
.hh-notes h2, .hh-block__head {
  font-family: var(--hh-title);
  font-weight: 400;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  letter-spacing: -0.005em;
  margin: 0 0 0.6rem;
}
.hh-notes p { max-width: 66ch; margin: 0 0 1.5rem; }

.hh-block { margin: clamp(1.8rem, 4vw, 2.6rem) 0 0; }
.hh-twigs { list-style: none; margin: 0; padding: 0; }
.hh-twigs li {
  padding-left: 1.5rem;
  position: relative;
  margin: 0 0 0.42rem;
  max-width: 62ch;
}
.hh-twigs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--soothe-rose);
  opacity: 0.55;
}

.hh-qa { margin: 0; }
.hh-qa__q {
  font-family: var(--hh-title);
  font-weight: 400;
  font-size: 1.02rem;
  margin: 1.2rem 0 0.3rem;
}
.hh-qa__a { margin: 0; max-width: 66ch; color: var(--ink-soft); }

.hh-halt {
  margin: clamp(1.8rem, 4vw, 2.6rem) 0 0;
  padding: clamp(1rem, 2.6vw, 1.6rem) clamp(1.1rem, 2.6vw, 1.8rem);
  background: rgba(59, 64, 88, 0.06);
}
.hh-halt__head {
  font-family: var(--hh-title);
  font-weight: 400;
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  letter-spacing: 0.01em;
}
.hh-halt p { margin: 0; max-width: 62ch; }

.hh-fineprint {
  margin: clamp(1.6rem, 3.5vw, 2.4rem) 0 0;
  font-size: 0.8rem;
  color: var(--dim-sage);
  max-width: 70ch;
}

.hh-adslot {
  margin: clamp(2.2rem, 5vw, 3.2rem) 0 0;
  min-height: 4.5rem;
  display: grid;
  place-items: center;
  background: rgba(232, 229, 225, 0.7);
}
.hh-adslot__note {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim-sage);
}

/* --- index list --------------------------------------------------------- */
.hh-roll { flex: 1; padding: 0 var(--hh-gap) clamp(2rem, 4vw, 3rem); max-width: 62rem; }
.hh-roll h1 {
  font-family: var(--hh-title);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  margin: 0 0 0.6rem;
}
.hh-roll__lede { color: var(--ink-soft); max-width: 56ch; margin: 0 0 clamp(1.6rem, 4vw, 2.6rem); }
.hh-roll__crew {
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin: 2.2rem 0 0.7rem;
}
.hh-roll__list { list-style: none; margin: 0; padding: 0; }
.hh-roll__list li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.55rem 0;
  flex-wrap: wrap;
}
.hh-roll__list li + li { border-top: 1px solid rgba(59, 64, 88, 0.08); }
.hh-roll__list a { font-family: var(--hh-title); font-size: 1.04rem; }
.hh-roll__list a:hover { letter-spacing: 0.03em; }
.hh-roll__why { color: var(--ink-soft); font-size: 0.9rem; flex: 1 1 18rem; }
.hh-roll__min { color: var(--dim-sage); font-size: 0.78rem; letter-spacing: 0.14em; }

/* --- prose pages -------------------------------------------------------- */
.hh-prose { flex: 1; padding: 0 var(--hh-gap) clamp(2rem, 4vw, 3rem); max-width: 60rem; }
.hh-prose h1 {
  font-family: var(--hh-title);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  margin: 0 0 0.4rem;
}
.hh-prose h2 {
  font-family: var(--hh-title);
  font-weight: 400;
  font-size: 1.16rem;
  margin: 2rem 0 0.5rem;
}
.hh-prose p, .hh-prose li { max-width: 68ch; }
.hh-prose ul { padding-left: 1.2rem; }
.hh-prose li { margin-bottom: 0.4rem; }
.hh-prose__stamp {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim-sage);
  margin: 0 0 1.6rem;
}

/* --- footer ------------------------------------------------------------- */
.hh-foot {
  padding: clamp(1.4rem, 3vw, 2.2rem) var(--hh-gap);
  font-size: 0.8rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  align-items: baseline;
}
.hh-foot__link { border-bottom: 1px solid rgba(207, 168, 163, 0.6); }
.hh-foot__note { margin-left: auto; color: var(--dim-sage); }
/* The editorial disclaimer takes a line of its own under the footer links. */
.hh-foot__fine {
  flex-basis: 100%;
  max-width: 78ch;
  margin: 0.5rem 0 0;
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--dim-sage);
}

@media (prefers-reduced-motion: reduce) {
  .hh-pulse__ring { animation: none; transform: scale(0.86); opacity: 0.5; }
  .hh-overlay, .hh-dial::before, .hh-rail__step { transition: none; }
}
