:root {
  --ink: #1c1a17;
  --ink-soft: #4a453e;
  --ink-faint: #857e73;
  --paper: #f7f4ef;
  --paper-warm: #efe9e0;
  --line: #ddd5c9;
  --accent: #8a3324;
  --accent-soft: #b8593f;
  --max: 68rem;
  --measure: 34rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--accent-soft); }

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

/* ---------- header ---------- */

.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-head .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  flex-wrap: wrap;
}
.brand {
  font-size: 1.0625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.site-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.9375rem;
}
.site-nav a { color: var(--ink-soft); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }

/* ---------- typography ---------- */

h1, h2, h3 { line-height: 1.15; font-weight: 600; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.15em; max-width: var(--measure); }
.lead { font-size: clamp(1.15rem, 2.2vw, 1.4rem); color: var(--ink-soft); line-height: 1.5; }

.eyebrow {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.2rem;
}

.big-statement {
  font-size: clamp(1.5rem, 3.6vw, 2.35rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 30ch;
  margin: 0 0 1rem;
}

/* ---------- sections ---------- */

section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
section + section { border-top: 1px solid var(--line); }
.tinted { background: var(--paper-warm); }

.hero { padding-top: clamp(3rem, 7vw, 5rem); padding-bottom: 0; border: 0; }
.hero h1 { margin-bottom: 0.35em; }
.hero .lead { max-width: 40rem; }

.cta {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.9375rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  margin-top: 0.5rem;
}
.cta:hover { border-color: var(--accent-soft); }

/* ---------- photo placeholders ---------- */

.photo {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: var(--ink-faint);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 2.5rem 0 0;
}
.photo.tall { aspect-ratio: 4 / 3; }

.figure { margin: 2.5rem 0 0; }
.figure img { border: 1px solid var(--line); width: 100%; height: auto; }
.figure figcaption {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.8125rem;
  color: var(--ink-faint);
  margin-top: 0.7rem;
  max-width: 40rem;
}

/* ---------- project list ---------- */

.projects { list-style: none; padding: 0; margin: 2.5rem 0 0; border-top: 1px solid var(--line); }
.projects li { border-bottom: 1px solid var(--line); }
.projects a {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: 0.4rem 2.5rem;
  padding: 1.5rem 0;
  text-decoration: none;
  color: inherit;
  align-items: baseline;
}
.projects a:hover .p-name { color: var(--accent); }
.p-name { font-size: 1.2rem; font-weight: 600; }
.p-claim { color: var(--ink-soft); max-width: 40ch; }

/* ---------- pillars ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}
.pillar h3 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.pillar ul { list-style: none; padding: 0; margin: 0; color: var(--ink-soft); }
.pillar li { padding: 0.2rem 0; }

/* ---------- beliefs ---------- */

.beliefs { margin: 2.5rem 0 0; padding: 0; list-style: none; counter-reset: b; }
.beliefs > li {
  counter-increment: b;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1.5rem;
}
.beliefs > li::before {
  content: counter(b);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.8125rem;
  color: var(--ink-faint);
  padding-top: 0.45rem;
}
.beliefs h3 { margin-bottom: 0.5rem; }
.beliefs p:last-child { margin-bottom: 0; }

/* ---------- questions (candidacy page) ---------- */

.questions { counter-reset: q; margin-top: 3rem; }
.question {
  counter-increment: q;
  border-top: 1px solid var(--line);
  padding: 2.2rem 0;
}
.question h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: baseline;
}
.question h2::before {
  content: counter(q, decimal-leading-zero);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.8125rem;
  color: var(--ink-faint);
  font-weight: 400;
}
.question .answer { padding-left: 4.5rem; }
.pending {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.9375rem;
  color: var(--ink-faint);
  background: var(--paper-warm);
  border-left: 2px solid var(--line);
  padding: 0.9rem 1.2rem;
  max-width: var(--measure);
}

/* ---------- quiet candidacy block ---------- */

.quiet-note {
  border-left: 2px solid var(--line);
  padding-left: 1.5rem;
  max-width: var(--measure);
}

/* ---------- CV ---------- */

.cv { list-style: none; padding: 0; margin: 1.5rem 0 0; column-count: 2; column-gap: 2.5rem; max-width: 40rem; }
.cv li { padding: 0.3rem 0; color: var(--ink-soft); break-inside: avoid; }

/* ---------- text list ---------- */

.texts { list-style: none; padding: 0; margin: 2.5rem 0 0; border-top: 1px solid var(--line); }
.texts li { border-bottom: 1px solid var(--line); padding: 1.3rem 0; color: var(--ink-soft); max-width: 44rem; }

/* ---------- closing ---------- */

.closing { background: var(--ink); color: var(--paper); border: 0; }
.closing .big-statement { color: var(--paper); max-width: 24ch; }
.closing p { color: #cfc7ba; }
.closing a { color: var(--paper); }
.closing-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.9375rem;
}

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.875rem;
  color: var(--ink-faint);
}
.site-foot .wrap { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.site-foot a { color: var(--ink-soft); text-decoration: none; }
.site-foot a:hover { color: var(--accent); }

@media (max-width: 40rem) {
  .projects a { grid-template-columns: 1fr; gap: 0.3rem; }
  .question h2, .beliefs > li { grid-template-columns: 1fr; gap: 0.5rem; }
  .question h2::before, .beliefs > li::before { padding-top: 0; }
  .question .answer { padding-left: 0; }
  .cv { column-count: 1; }
}
