:root {
  --bg: #f7f5f1;
  --bg-raised: #fffdf9;
  --text: #191713;
  --text-muted: #5c564c;
  --accent: #8a5a17;
  --border: #e2ddd3;
  --rule: #cfc8ba;
  --max: 46rem;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12100d;
    --bg-raised: #1b1815;
    --text: #ece7dd;
    --text-muted: #a69d8d;
    --accent: #d9a84e;
    --border: #2c2820;
    --rule: #3a3428;
  }
}

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

::selection { background: var(--accent); color: var(--bg); }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.35rem; }

/* Header */
header { border-bottom: 1px solid var(--border); }
.nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 0;
  flex-wrap: wrap;
}
.brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
}
.brand:hover { text-decoration: none; color: var(--accent); }
nav ul { display: flex; gap: 1.6rem; list-style: none; }
nav a {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
nav a:hover { color: var(--text); text-decoration: none; }
nav a[aria-current="page"] { color: var(--text); border-bottom: 2px solid var(--accent); padding-bottom: 2px; }

/* Content */
main { padding: 4.5rem 0 5rem; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 6.5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 1.4rem;
  text-wrap: balance;
}

.lede { font-size: 1.2rem; line-height: 1.65; color: var(--text-muted); max-width: 40rem; }
.lede strong { color: var(--text); font-weight: 600; }

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.7rem;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}
h3 { font-size: 1.05rem; margin: 1.8rem 0 0.4rem; }
p + p { margin-top: 0.95rem; }
main ul { padding-left: 1.2rem; margin: 0.7rem 0; }
main li + li { margin-top: 0.55rem; }
main li::marker { color: var(--accent); }

section { margin-top: 4rem; }
.section-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.6rem;
  margin-bottom: 1rem;
}
.section-head .num {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.section-head h2 { margin: 0; }

.headshot {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--rule);
  margin-bottom: 1.6rem;
}

/* Principles / definition lists */
.principles { list-style: none; padding: 0; margin-top: 1.2rem; }
.principles li {
  border-left: 2px solid var(--rule);
  padding: 0.15rem 0 0.15rem 1.1rem;
}
.principles li + li { margin-top: 1.1rem; }
.principles strong { display: block; font-family: var(--serif); font-size: 1.12rem; font-weight: 600; margin-bottom: 0.15rem; }
.principles span { color: var(--text-muted); font-size: 0.98rem; }

/* Spec table (buy box) */
.spec { margin-top: 1.2rem; border-top: 1px solid var(--rule); }
.spec > div {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.spec dt {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 0.15rem;
}
.spec dd { margin: 0; }
@media (max-width: 540px) {
  .spec > div { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* Steps */
.steps { list-style: none; padding: 0; counter-reset: step; margin-top: 1.2rem; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.6rem;
}
.steps li + li { margin-top: 1.3rem; }
.steps li::before {
  content: "0" counter(step);
  grid-column: 1;
  grid-row: 1;
  font-family: var(--serif);
  color: var(--accent);
  font-size: 1.05rem;
  padding-top: 0.05rem;
}
.steps strong { grid-column: 2; grid-row: 1; display: block; margin-bottom: 0.1rem; }
.steps span { grid-column: 2; grid-row: 2; color: var(--text-muted); font-size: 0.98rem; }

.cta {
  display: inline-block;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 0.8rem 1.7rem;
  border-radius: 3px;
  margin-top: 1.8rem;
}
.cta:hover { text-decoration: none; background: var(--accent); }
.cta.quiet { background: transparent; color: var(--text); border: 1px solid var(--rule); }
.cta.quiet:hover { border-color: var(--accent); color: var(--accent); background: transparent; }

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  margin-top: 3.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.note {
  font-size: 0.88rem;
  color: var(--text-muted);
  border-left: 2px solid var(--rule);
  padding-left: 1rem;
  margin-top: 3rem;
}

/* Forms */
form { margin-top: 2rem; display: grid; gap: 1.1rem; max-width: 34rem; }
label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.35rem;
}
input, select, textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.7rem 0.85rem;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}
button[type="submit"] {
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--text);
  color: var(--bg);
  border: 0;
  border-radius: 3px;
  padding: 0.8rem 1.7rem;
  cursor: pointer;
  justify-self: start;
}
button[type="submit"]:hover { background: var(--accent); }
.form-status { font-weight: 600; }
.hp { position: absolute; left: -9999px; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 1.8rem 0 2.4rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; justify-content: space-between; }
footer nav ul { gap: 1.2rem; }
footer nav a { font-size: 0.72rem; }
