:root {
  --ink: #1a1a18;
  --paper: #faf8f4;
  --paper-deep: #f3eee6;
  --cream: #fffdf8;
  --rule: #e5e0d6;
  --rule-strong: #d9d2c4;
  --accent: #8a5a2b;
  --accent-dark: #6d4520;
  --muted: #6b675f;
  --shadow: rgba(26, 26, 24, 0.08);
  color-scheme: light;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: Georgia, 'Times New Roman', serif;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 90% 50% at 50% -8%, #fffef9 0%, transparent 58%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.65;
  min-height: 100%;
}
/* Quiet ink-on-paper grain. Multiply so it sits in the stock, not on top of it. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  opacity: 0.055;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 220px 220px;
}
.wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Focus: visible, warm, never a browser default blob. */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Tiny top nav ---------- */
.topnav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px 28px;
  flex-wrap: wrap;
  padding: 22px 0 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.topnav a {
  color: var(--muted);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.topnav a:hover {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
}
.topnav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* ---------- Header / hero ---------- */
header {
  padding: 56px 0 68px;
  text-align: center;
}
.logo {
  width: 228px;
  height: auto;
  display: block;
  margin: 0 auto 28px;
  mix-blend-mode: multiply;
}
.dawn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 18px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
}
.dawn-rule {
  display: block;
  width: 36px;
  height: 1px;
  background: var(--accent);
  opacity: 0.45;
  transform-origin: center;
  animation: draw-rule 0.9s ease 0.35s both;
}
.eyebrow {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
h1 {
  font-size: clamp(1.75rem, 1.15rem + 2.6vw, 2.55rem);
  font-weight: normal;
  line-height: 1.22;
  letter-spacing: -0.018em;
  margin-bottom: 20px;
}
.sub {
  font-size: 19px;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.55;
}
header .sub { font-size: 18px; }

/* Staggered entrance — CSS only, respects reduced motion via .reduce-motion */
.page-home .logo,
.page-home .dawn,
.page-home .eyebrow,
.page-home header h1,
.page-home header .sub {
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.page-home .logo { animation-delay: 0.04s; }
.page-home .dawn { animation-delay: 0.16s; }
.page-home .eyebrow { animation-delay: 0.30s; }
.page-home header h1 { animation-delay: 0.46s; }
.page-home header .sub { animation-delay: 0.64s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes draw-rule {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 0.45; }
}

/* ---------- Inner pages (sample, privacy, 404) ---------- */
.page-inner header {
  padding: 40px 0 48px;
}
.page-inner .logo {
  width: 148px;
  margin-bottom: 22px;
}
.page-inner .logo,
.page-inner .dawn,
.page-inner .eyebrow,
.page-inner header h1,
.page-inner header .sub {
  animation: rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.page-inner .logo { animation-delay: 0.04s; }
.page-inner .dawn { animation-delay: 0.12s; }
.page-inner .eyebrow { animation-delay: 0.22s; }
.page-inner header h1 { animation-delay: 0.34s; }
.page-inner header .sub { animation-delay: 0.48s; }

.updated {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin-top: -8px;
}

/* ---------- Sections ---------- */
section {
  padding: 56px 0;
  position: relative;
}
section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--rule) 10%, var(--rule) 90%, transparent 100%);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
section.in::before,
.reduce-motion section::before,
html:not(.js) section::before {
  transform: scaleX(1);
}
h2 {
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.65rem);
  font-weight: normal;
  margin-bottom: 16px;
  letter-spacing: -0.012em;
}
p { margin-bottom: 16px; }

/* Scroll-reveal uses `translate` so it never fights card tilt `transform`. */
.js .reveal {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              translate 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.js .reveal.in { opacity: 1; translate: 0 0; }
.js .samples .sample:nth-child(1) { transition-delay: 0.04s; }
.js .samples .sample:nth-child(2) { transition-delay: 0.14s; }
.js .samples .sample:nth-child(3) { transition-delay: 0.24s; }

/* ---------- Pillars ---------- */
ul.pillars { list-style: none; margin: 4px 0 20px; }
ul.pillars li {
  padding: 12px 0 12px 28px;
  position: relative;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease;
}
ul.pillars li:last-child { border-bottom: none; }
ul.pillars li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
ul.pillars li:hover::before,
ul.pillars li:focus-within::before {
  transform: translateX(4px);
}

/* ---------- Sample morning letters ---------- */
.samples { margin-top: 8px; }
.sample {
  background: var(--cream);
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  padding: 26px 30px 28px;
  margin: 22px 0;
  position: relative;
  box-shadow:
    0 1px 0 rgba(26, 26, 24, 0.03),
    0 10px 28px -18px rgba(26, 26, 24, 0.28);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.sample:nth-child(2) {
  transform: rotate(-0.45deg) translateX(10px);
}
.sample:hover,
.sample:focus-within {
  transform: translateY(-4px);
  box-shadow:
    0 1px 0 rgba(26, 26, 24, 0.04),
    0 18px 36px -20px rgba(26, 26, 24, 0.38);
}
.sample:nth-child(2):hover,
.sample:nth-child(2):focus-within {
  transform: rotate(-0.45deg) translateX(10px) translateY(-4px);
}
.dateline {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px solid #efe9dc;
  padding-bottom: 10px;
  margin-bottom: 16px;
}
.dateline .stamp {
  color: var(--accent);
  letter-spacing: 0.18em;
}
.sample .pillar {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.sample .scripture {
  font-style: italic;
  color: var(--muted);
  margin-bottom: 12px;
}
.micro {
  background: #f4efe6;
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  border-radius: 0 4px 4px 0;
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.55;
  transition: background-color 0.3s ease, border-left-color 0.3s ease;
}
.sample:hover .micro,
.sample:focus-within .micro {
  background: #efe8d9;
  border-left-color: var(--accent-dark);
}
.micro strong {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
  color: var(--accent-dark);
}

/* ---------- Legal (privacy) ---------- */
.legal section { padding: 32px 0; }
.legal ul {
  margin: 0 0 14px 22px;
}
.legal li { margin-bottom: 6px; }
.legal a {
  color: var(--accent-dark);
  text-underline-offset: 3px;
}

/* ---------- 404 ---------- */
.notfound {
  text-align: center;
  padding: 24px 0 72px;
}
.notfound .links {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  margin-top: 28px;
}
.notfound .links a {
  color: var(--accent-dark);
  margin: 0 12px;
  text-underline-offset: 3px;
}

/* ---------- CTA ---------- */
.cta-box { text-align: center; padding: 64px 0 72px; }
.price { font-size: 36px; margin: 16px 0 4px; letter-spacing: -0.02em; }
.price span { font-size: 16px; color: var(--muted); letter-spacing: 0; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 15px 42px;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 24px;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.06),
    0 5px 14px -6px rgba(109, 69, 32, 0.55);
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.06),
    0 10px 20px -8px rgba(109, 69, 32, 0.55);
}
.btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.trial {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin-top: 14px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Footer ---------- */
footer {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding: 40px 0 56px;
  border-top: 1px solid var(--rule);
  line-height: 1.7;
}
footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #cfc8ba;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
footer a:hover {
  color: var(--accent-dark);
  text-decoration-color: var(--accent);
}
footer .foot-meta {
  display: block;
  margin-top: 6px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .logo, .dawn, .eyebrow, header h1, header .sub, .dawn-rule {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
  .js .reveal {
    opacity: 1;
    translate: 0 0;
    transition: none;
  }
  .sample,
  .sample:nth-child(2),
  .btn,
  ul.pillars li::before,
  .micro {
    transition: none;
  }
  .sample:hover,
  .sample:nth-child(2):hover,
  .btn:hover,
  .btn:active {
    transform: none;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  header { padding: 40px 0 48px; }
  .page-inner header { padding: 28px 0 36px; }
  .logo { width: 200px; height: auto; margin-bottom: 22px; }
  .page-inner .logo { width: 128px; }
  .sub, header .sub { font-size: 17px; }
  .sample {
    padding: 22px 18px 24px;
    margin: 18px 0;
  }
  .sample:nth-child(2),
  .sample:nth-child(2):hover,
  .sample:nth-child(2):focus-within {
    transform: none;
  }
  .btn {
    display: block;
    text-align: center;
    padding: 16px 24px;
  }
  section { padding: 44px 0; }
  .legal section { padding: 28px 0; }
  .cta-box { padding: 52px 0 60px; }
  .price { font-size: 32px; }
  .dawn-rule { width: 24px; }
  .topnav { gap: 8px 20px; padding-top: 16px; }
}
