:root {
  --bg: #f6efe4;
  --bg-2: #efe4d2;
  --paper: #fffaf2;
  --ink: #2a2318;
  --muted: #6b5d4b;
  --line: #d8c8b0;
  --terra: #b85a2a;
  --terra-ink: #fff8f0;
  --sage: #3f5c3a;
  --sage-soft: #e4efe0;
  --focus: #b85a2a;
  --radius: 12px;
  --max: 68rem;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--terra); text-underline-offset: 2px; }
a:hover { color: #8a3d18; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.skip {
  position: absolute; left: 0.75rem; top: -3rem;
  background: var(--terra); color: var(--terra-ink);
  padding: 0.4rem 0.7rem; z-index: 20; font-weight: 700;
}
.skip:focus { top: 0.75rem; }
.wrap { width: min(100% - 1.5rem, var(--max)); margin-inline: auto; }

header.site {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.nav { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 0; flex-wrap: wrap; }
.brand { text-decoration: none; color: inherit; }
.brand-mark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.brand-sub { display: block; color: var(--muted); font-size: 0.75rem; }
nav.links { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-left: auto; }
nav.links a { color: var(--muted); text-decoration: none; }
nav.links a[aria-current="page"], nav.links a:hover { color: var(--ink); }

main { flex: 1; padding: 1.5rem 0 2.6rem; }
h1, h2, h3 { font-family: var(--serif); letter-spacing: -0.02em; }
h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin: 0 0 0.4rem; }
.lede { color: var(--muted); max-width: 40rem; margin: 0 0 1.2rem; }

.areas {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
  margin: 0 0 1.2rem;
}
.chip {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font: inherit;
  cursor: pointer;
}
.chip[aria-pressed="true"] {
  background: var(--terra);
  color: var(--terra-ink);
  border-color: var(--terra);
}

.routine {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1.2rem;
  margin-bottom: 1rem;
}
.routine header {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  position: static; background: none; border: 0;
}
.kicker { color: var(--sage); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.time { font-variant-numeric: tabular-nums; color: var(--muted); }

.step {
  border-top: 1px solid var(--line);
  padding: 0.85rem 0 0.3rem;
  display: grid;
  gap: 0.25rem;
}
.step h3 { margin: 0; font-size: 1.15rem; }
.step h3 a { color: inherit; text-decoration: none; }
.step h3 a:hover { color: var(--terra); }
.meta { color: var(--muted); font-size: 0.85rem; }
.steps ol { margin: 0.3rem 0 0.4rem; padding-left: 1.2rem; }
.safety {
  background: var(--sage-soft);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  font-size: 0.88rem;
  color: #2d3d2a;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 0.7rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.card:hover { border-color: #c4a57e; }
.tag {
  align-self: start;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 700;
}

.prose { max-width: 42rem; }
.prose h2 { margin-top: 1.6rem; font-size: 1.25rem; }
.prose p, .prose li { color: #3b3226; }
.disclaimer, footer.site { color: var(--muted); font-size: 0.82rem; }
.disclaimer { margin-top: 1.6rem; max-width: 44rem; }
footer.site { border-top: 1px solid var(--line); padding: 1rem 0 1.4rem; }
footer.site a { color: var(--muted); }

.figure {
  background: var(--bg-2);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  margin: 1rem 0;
  font-size: 0.92rem;
}
.two {
  display: grid;
  gap: 0.8rem;
}
@media (min-width: 720px) {
  .two { grid-template-columns: 1fr 1fr; }
}
