:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #1c1b19;
  --muted: #5d5a54;
  --line: #e4e0d8;
  --accent: #1d4e5f;
  --accent-ink: #ffffff;
  --accent-soft: #e8f0f2;
  --radius: 10px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .button:focus-visible {
  outline: 3px solid #f2a900;
  outline-offset: 2px;
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--accent); color: var(--accent-ink);
  padding: 8px 14px; border-radius: 6px; z-index: 10;
}
.skip:focus { left: 8px; }

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap;
}
.brand {
  font-family: var(--serif);
  font-size: 1.25rem; font-weight: 700; letter-spacing: 0.01em;
  color: var(--ink); text-decoration: none;
}
nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
nav a:hover { color: var(--ink); text-decoration: underline; }

.hero { padding: 72px 0 56px; }
.hero .grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem;
  font-weight: 700; color: var(--accent); margin: 0 0 14px;
}
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 16px; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40ch; margin: 0 0 28px; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button {
  display: inline-block; padding: 13px 22px; border-radius: 8px;
  background: var(--accent); color: var(--accent-ink);
  text-decoration: none; font-weight: 600; font-size: 1rem;
  border: 2px solid var(--accent);
}
.button:hover { background: #163c4a; border-color: #163c4a; }
.button.secondary { background: transparent; color: var(--accent); }
.button.secondary:hover { background: var(--accent-soft); }

.portrait {
  width: 100%; max-width: 360px; justify-self: end;
  border-radius: var(--radius); border: 1px solid var(--line);
  height: auto; aspect-ratio: 1 / 1; object-fit: cover; background: var(--accent-soft);
}

section { padding: 56px 0; border-top: 1px solid var(--line); }
section p.intro { color: var(--muted); max-width: 62ch; margin: 0 0 32px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: 12px;
}
.steps p { margin: 0; color: var(--muted); font-size: 1rem; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; align-content: start; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 14px; height: 8px;
  border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent);
  transform: rotate(-45deg);
}
.checks strong { display: block; }
.checks span { color: var(--muted); font-size: 1rem; }

.facts { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; align-content: start; color: var(--muted); }
.facts li strong { color: var(--ink); }

.cta {
  background: var(--accent); color: var(--accent-ink);
  border-radius: var(--radius); padding: 40px; text-align: left;
}
.cta h2 { color: var(--accent-ink); }
.cta p { margin: 0 0 20px; max-width: 52ch; color: #dcebef; }
.cta a { color: var(--accent-ink); }
.cta .button { background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); }
.cta .button:hover { background: var(--accent-soft); }
.cta .button.secondary { background: transparent; color: var(--accent-ink); border-color: var(--accent-ink); }
.cta .button.secondary:hover { background: rgba(255,255,255,0.12); }

footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 0.95rem; }

@media (max-width: 800px) {
  body { font-size: 17px; }
  .hero { padding: 40px 0 32px; }
  .hero .grid, .two { grid-template-columns: 1fr; gap: 28px; }
  .portrait { justify-self: start; max-width: 240px; }
  .steps { grid-template-columns: 1fr; }
  .cta { padding: 28px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Personal site additions */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li {
  display: grid; grid-template-columns: 150px 1fr; gap: 24px;
  padding: 20px 0; border-top: 1px solid var(--line);
}
.timeline li:first-child { border-top: 0; padding-top: 0; }
.timeline .when { color: var(--muted); font-size: 0.95rem; padding-top: 3px; }
.timeline h3 { margin: 0 0 4px; font-size: 1.1rem; }
.timeline p { margin: 0; color: var(--muted); font-size: 1rem; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: 0.95rem;
}
@media (max-width: 800px) {
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
}

.faq { margin: 0; display: grid; gap: 0; max-width: 760px; }
.faq dt { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; margin-top: 22px; }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 6px 0 0; color: var(--muted); }
footer.site p { margin: 0 0 6px; }
