:root {
  --paper: #f4efe4;
  --paper-deep: #e9e1cf;
  --ink: #241f1a;
  --ink-soft: #5a5148;
  --rust: #8b2e1f;
  --rule: #c9bda4;
  --measure: 38rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1c1915;
    --paper-deep: #26221d;
    --ink: #ece4d3;
    --ink-soft: #b3a894;
    --rust: #d26a52;
    --rule: #4a4238;
  }
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--rust); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.masthead {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.5rem 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.mark { font-variant: small-caps; letter-spacing: 0.08em; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.masthead nav a { margin-left: 1.25rem; font-size: 0.95rem; color: var(--ink-soft); text-decoration: none; }
.masthead nav a:hover { color: var(--rust); }

main { max-width: var(--measure); margin: 0 auto; padding: 0 1rem 4rem; }

.hero { padding: 4rem 0 2.5rem; }
.kicker { margin: 0 0 1rem; font-variant: small-caps; letter-spacing: 0.12em; color: var(--rust); font-size: 1rem; }
h1 { font-weight: 400; font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.2; margin: 0 0 1.25rem; letter-spacing: -0.01em; }
.lede { font-size: 1.2rem; color: var(--ink-soft); margin: 0 0 2rem; }
.actions { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; margin: 0; }

.button {
  display: inline-block;
  background: var(--rust);
  color: var(--paper);
  padding: 0.7rem 1.3rem;
  border: 0;
  border-radius: 2px;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { filter: brightness(1.08); }
.quiet { color: var(--ink-soft); }

.rule { border: 0; height: 1px; background: var(--rule); margin: 2.5rem 0; }

.prose { padding: 1.5rem 0; }
h2 { font-weight: 400; font-size: 1.55rem; line-height: 1.3; margin: 0 0 1rem; }
p { margin: 0 0 1.1rem; }

.plain { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.plain li { padding: 0.9rem 0; border-top: 1px solid var(--rule); }
.plain li:last-child { border-bottom: 1px solid var(--rule); }
.steps { padding-left: 1.3rem; margin: 1rem 0 1.5rem; }
.steps li { margin: 0 0 0.75rem; }
.price { background: var(--paper-deep); padding: 1rem 1.2rem; border-left: 3px solid var(--rust); }

.join { margin-top: 2rem; padding: 2rem 1.2rem; background: var(--paper-deep); border-radius: 3px; }
.join h2 { margin-bottom: 0.4rem; }
.join form { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 1rem 0 0.6rem; }
.join input[type=email] {
  flex: 1 1 14rem;
  min-width: 0;
  font: inherit;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
}
.join input[type=email]:focus { outline: 2px solid var(--rust); outline-offset: 1px; }
.note { color: var(--ink-soft); font-size: 0.95rem; margin: 0.4rem 0 0; }
.alt { margin: 1rem 0 0; color: var(--ink-soft); font-size: 0.95rem; }

footer { max-width: var(--measure); margin: 0 auto; padding: 1.5rem 1rem 3rem; color: var(--ink-soft); border-top: 1px solid var(--rule); }
footer p { margin: 0 0 0.4rem; }
.small { font-size: 0.85rem; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ornament */
.fleuron { color: var(--rust); text-align: center; margin: 2.75rem 0; opacity: 0.85; }
.fleuron svg { display: inline-block; }

/* masthead glyph */
.mark { display: inline-flex; align-items: center; gap: 0.45rem; }
.mark .glyph { color: var(--rust); position: relative; top: -1px; }

/* drop caps */
.dropcap::first-letter {
  float: left;
  font-size: 3.6em;
  line-height: 0.82;
  padding: 0.08em 0.12em 0 0;
  color: var(--rust);
  font-weight: 400;
}
.lede.dropcap::first-letter { font-size: 3.2em; }

/* rubric numbers on the steps */
.rubric { list-style: none; padding: 0; counter-reset: step; }
.rubric li { position: relative; padding-left: 4.2rem; margin-bottom: 1rem; }
.rubric li::before {
  content: attr(data-n);
  position: absolute; left: 0; top: 0.1em;
  color: var(--rust);
  font-variant: small-caps;
  letter-spacing: 0.08em;
  font-size: 0.95em;
}
@media (max-width: 480px) {
  .rubric li { padding-left: 0; padding-top: 1.4rem; }
  .rubric li::before { top: 0; }
}

/* headings as rubrics: a short rust bar above each h2 */
.prose h2::before, .join h2::before {
  content: "";
  display: block;
  width: 2.2rem; height: 2px;
  background: var(--rust);
  margin: 0 0 0.9rem;
}
