/* Menuchas Hanefesh
   Palette and type per Brand Guidelines v1.0, September 2026.
   Ink and paper do the work. Cyan appears once per composition. */

@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/manrope-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('/assets/fonts/sourceserif4-roman.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('/assets/fonts/sourceserif4-italic.woff2') format('woff2');
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #201e1d;
  --paper: #f3f2f2;
  --cyan: #0088b0;
  --surface: #eae9e9;
  --ink-70: #4a4745;

  /* per-section ground, overridden by .on-ink and .on-surface */
  --bg: var(--paper);
  --fg: var(--ink);
  --fg-muted: var(--ink-70);
  --rule: rgba(32, 30, 29, 0.13);

  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;

  --measure: 36rem;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --section: clamp(4rem, 11vw, 7.5rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 48rem) { body { font-size: 1.125rem; } }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.wrap {
  width: 100%;
  max-width: 58rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.on-ink {
  --bg: var(--ink);
  --fg: var(--paper);
  --fg-muted: rgba(243, 242, 242, 0.72);
  --rule: rgba(243, 242, 242, 0.18);
  background: var(--bg);
  color: var(--fg);
}
.on-surface {
  --bg: var(--surface);
  background: var(--bg);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: .9375rem;
  padding: .75rem 1.25rem;
  z-index: 20;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- wordmark ---------- */

.wordmark, .hero-mark {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.045em;
  text-transform: lowercase;
}
.stop { color: var(--cyan); }

.wordmark-link { text-decoration: none; color: inherit; }
.wordmark { font-size: clamp(1.0625rem, 4vw, 1.3rem); white-space: nowrap; }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  background: rgba(243, 242, 242, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(32, 30, 29, 0.13);
}
.site-header.is-visible {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  transform: none;
  transition: opacity .25s ease, transform .25s ease, visibility 0s;
}
.bar {
  width: 100%;
  padding: .7rem clamp(1.25rem, 3vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  border-radius: 999px;
  transition: filter .18s ease, transform .18s ease;
  will-change: transform;
}
.btn:hover { filter: brightness(1.14); }
.btn:active { transform: translateY(1px); }

.btn-cyan { background: var(--cyan); color: var(--paper); }

.btn-sm {
  font-size: 1.0625rem;
  padding: .5rem 1.1rem;
  white-space: nowrap;
}
.btn-lg {
  font-size: 1.1875rem;
  padding: 1rem 1.6rem;
  width: 100%;
  text-align: center;
  text-wrap: balance;
}
@media (min-width: 34rem) {
  .btn-lg { width: auto; }
}
.wa { width: 1.2em; height: 1.2em; flex: none; }

.btn-short { display: inline; }
.btn-long { display: none; }
@media (min-width: 34rem) {
  .btn-short { display: none; }
  .btn-long { display: inline; }
}

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(4.5rem, 15vw, 8.5rem) clamp(3.5rem, 10vw, 6.5rem);
}
.hero-mark {
  margin: 0;
  font-size: clamp(2.9rem, 13.5vw, 5.25rem);
  line-height: .93;
}
.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 5.2vw, 1.9rem);
  line-height: 1.3;
  margin: .85rem 0 0;
}
.hero .lede {
  max-width: var(--measure);
  font-size: clamp(1.15rem, 4.2vw, 1.375rem);
  line-height: 1.55;
  margin: 1.9rem 0 0;
}
.hero .btn-lg { margin-top: 2.25rem; }

/* ---------- prose sections ---------- */

.prose { padding-block: var(--section); }
.prose .wrap > * { max-width: var(--measure); }
.prose .h-sans { margin-bottom: 1.5rem; }
.prose .lead {
  font-size: clamp(1.15rem, 4.2vw, 1.375rem);
  line-height: 1.55;
}
.prose-tight { padding-block: var(--section); }

/* ---------- the daily habit ---------- */

.habit {
  padding-block: var(--section);
}
.habit .wrap > p { max-width: var(--measure); }

.h-sans {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.045em;
  font-size: clamp(1.65rem, 6vw, 2.25rem);
  line-height: 1.12;
  margin: 0 0 1rem;
}

.habit-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  max-width: var(--measure);
}
.habit-list li {
  padding: .95rem 0;
  border-top: 1px solid var(--rule);
}
.habit-list li:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 48rem) {
  .habit-list {
    max-width: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2.5rem;
  }
  .habit-list li:last-child { border-bottom: 0; }
  .habit-list li:nth-last-child(-n+2) { border-bottom: 1px solid var(--rule); }
}
.h-sub {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.035em;
  font-size: clamp(1.2rem, 4.4vw, 1.45rem);
  line-height: 1.3;
  margin: 2.25rem 0 .9rem;
}
.prose .lead.h-sub { margin-top: 0; }
.list-sans li {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.prose .habit-list { margin-bottom: 0; }
@media (min-width: 48rem) {
  .habit-list-single { display: block; max-width: var(--measure); }
  .habit-list-single li:nth-last-child(2) { border-bottom: 0; }
  .habit-list-single li:last-child { border-bottom: 1px solid var(--rule); }
}
.coda {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.0625rem;
  margin: 1.6rem 0 0;
}

/* ---------- what you'll get ---------- */

.get { padding-block: var(--section); }
.grid {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  gap: clamp(1.75rem, 5vw, 2.75rem);
}
@media (min-width: 40rem) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .grid { gap: 2.75rem 3.5rem; } }

.grid li { max-width: 26rem; }
.ico {
  width: 26px;
  height: 26px;
  display: block;
  margin-bottom: .85rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.grid h3 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.035em;
  font-size: 1.0625rem;
  line-height: 1.25;
  margin: 0 0 .4rem;
}
.grid p { color: var(--fg-muted); }

/* ---------- from the community ---------- */

.voices { padding-block: var(--section); }
.quote {
  margin: 2rem 0 0;
  max-width: 40rem;
  border-top: 1px solid var(--rule);
  padding-top: 2rem;
}
.quote blockquote {
  margin: 0;
  font-style: italic;
  font-size: clamp(1.25rem, 4.6vw, 1.6rem);
  line-height: 1.45;
  text-indent: -.4em;
}
.quote figcaption {
  margin-top: 1.1rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .9375rem;
  letter-spacing: -0.02em;
  color: var(--fg-muted);
}
.note {
  margin-top: 1.5rem;
  font-size: .9375rem;
  color: var(--fg-muted);
}

/* ---------- closing cta ---------- */

.close {
  padding-block: clamp(4.5rem, 12vw, 8rem);
}
.close h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.65rem, 5.6vw, 2.4rem);
  line-height: 1.24;
  margin: 0;
  max-width: 20ch;
  text-wrap: balance;
}
.close .btn { margin-top: 2.25rem; }
.close-lead {
  max-width: 30rem;
  font-size: clamp(1.15rem, 4.2vw, 1.375rem);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  color: var(--fg-muted);
}

/* ---------- footer ---------- */

.site-footer {
  padding-block: clamp(2rem, 6vw, 3rem) clamp(3rem, 8vw, 4.5rem);
  border-top: 1px solid var(--rule);
}
.wordmark-rev { display: block; font-size: 1.0625rem; }
.site-footer p {
  margin: .9rem 0 0;
  font-size: .9375rem;
  color: var(--fg-muted);
  max-width: 34ch;
}
