/* routines.life */

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

:root {
  --bg:     #1a1612;
  --fg:     #e8dfd0;
  --coral:  #c4784a;
  --emb:    #8a4f2e;
  --dim:    rgba(232,223,208,0.42);
  --rule:   rgba(196,120,74,0.2);
  --faint:  rgba(196,120,74,0.06);
}
[data-theme="light"] {
  --bg:     #e8dfd0;
  --fg:     #1a1612;
  --coral:  #a05828;
  --emb:    #6a3a1a;
  --dim:    rgba(26,22,18,0.42);
  --rule:   rgba(160,88,40,0.2);
  --faint:  rgba(160,88,40,0.06);
}

html { font-size: 16px; }
body {
  background-color: var(--bg);
  background-image: url('parchment-speckle-dark.jpg');
  background-repeat: repeat; background-size: 512px 512px;
  color: var(--fg); font-family: 'Zilla Slab', Georgia, serif;
  min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
}
[data-theme="light"] body { background-image: url('parchment-speckle-light.jpg'); }

/* HEADER */
header { padding: 2rem 2.5rem; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: center; }
.header-inner { display: flex; align-items: baseline; gap: 0.9rem; flex-wrap: wrap; }
.wordmark { font-family: 'Jost', sans-serif; font-size: 0.88rem; font-weight: 400; letter-spacing: 0.1em; color: var(--fg); opacity: 0.85; }
.header-sep { color: var(--coral); opacity: 0.4; }
.sub-mark { font-family: 'Zilla Slab', serif; font-size: 0.78rem; font-style: italic; font-weight: 300; color: var(--dim); }
.toggle-btn {
  background: none; border: 1px solid var(--rule); color: var(--coral);
  font-family: 'Zilla Slab', serif; font-size: 0.6rem; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 0.3rem 0.7rem; cursor: pointer; opacity: 0.55;
}
.toggle-btn:hover { opacity: 1; border-color: var(--coral); }

/* HERO */
.hero { padding: 6.5rem 2.5rem 5rem; border-bottom: 1px solid var(--rule); }
.hero-inner { max-width: 680px; }
h1 { font-family: 'Zilla Slab', serif; font-weight: 300; font-size: clamp(2.6rem, 6.5vw, 5rem); line-height: 1.1; color: var(--fg); margin-bottom: 2rem; letter-spacing: -0.01em; }
h1 em { font-style: italic; color: var(--coral); font-weight: 300; }
.hero-sub { font-size: 1.12rem; line-height: 1.9; color: var(--dim); font-weight: 300; }

/* BODY COPY */
.body-copy { padding: 5rem 2.5rem 6rem; flex: 1; }
.content-col { max-width: 620px; }
.drop-cap { font-size: 2.3rem; line-height: 1.75; color: var(--fg); opacity: 0.88; margin-bottom: 1.8rem; font-weight: 400; }
.body-copy p { font-size: 2.1rem; line-height: 1.9; color: var(--fg); opacity: 0.55; margin-bottom: 1.6rem; font-weight: 300; }
.body-copy p em { font-style: italic; opacity: 1; color: var(--fg); }
blockquote {
  margin: 3rem 0; padding: 1.5rem 1.8rem; background: var(--faint);
  border-left: 3px solid var(--coral); font-size: 1.1rem; font-style: italic;
  font-weight: 300; line-height: 1.85; color: var(--fg); opacity: 0.7;
}
blockquote em { font-weight: 500; font-style: italic; color: var(--coral); }

/* RITUALS */
.rituals { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 2.5rem 0; }
.ritual { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 1.1rem; border: 1px solid var(--rule); background: var(--faint); }
.ricon { font-size: 0.9rem; }
.rname { font-family: 'Jost', sans-serif; font-size: 0.75rem; font-weight: 300; letter-spacing: 0.08em; color: var(--fg); opacity: 0.6; }

/* FEATURES */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin: 0 0 2.5rem; }
@media (max-width: 540px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--bg); padding: 1.2rem 1.4rem; display: flex; flex-direction: column; gap: 0.35rem; }
.feat-label { font-family: 'Jost', sans-serif; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--coral); opacity: 0.8; }
.feat-desc { font-size: 0.84rem; font-weight: 300; color: var(--fg); opacity: 0.42; line-height: 1.5; }

.divider { display: flex; align-items: center; gap: 0.8rem; margin: 0.5rem 0 2.5rem; }
.rule-line { height: 1px; width: 2.5rem; background: var(--rule); }
.glyph { font-size: 0.4rem; color: var(--coral); opacity: 0.45; }

/* CTA */
.cta-block { display: flex; flex-direction: column; gap: 1.2rem; }
.cta-label { font-family: 'Fira Code', monospace; font-size: 0.6rem; font-weight: 300; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg); opacity: 0.28; margin-bottom: 0 !important; }
.cta-btn {
  display: inline-block; padding: 0.9rem 2rem; background: transparent;
  border: 1px solid rgba(196,120,74,0.4); color: var(--coral);
  font-family: 'Jost', sans-serif; font-size: 0.78rem; font-weight: 400;
  letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; align-self: flex-start;
}
.cta-btn:hover { background: var(--faint); border-color: var(--coral); color: var(--fg); }
.cta-sub { font-size: 0.75rem !important; color: var(--fg) !important; opacity: 0.2; margin-bottom: 0 !important; }
.cta-sub a { color: var(--fg); opacity: 0.4; text-decoration: none; }
.cta-sub a:hover { opacity: 0.7; }

/* FOOTER */
footer { padding: 1.8rem 2.5rem; border-top: 1px solid var(--rule); }
.copy { font-size: 0.65rem; letter-spacing: 0.08em; opacity: 0.2; font-family: 'Fira Code', monospace; font-weight: 300; }

/* ANIMATION */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.content-col { animation: fadeUp 0.85s 0.1s ease both; }
