:root {
  --bg: #f6f3ee;
  --text: #1d1b19;
  --muted: #6f6a63;
  --accent: #1d1b19;
  --rule: #d9d3c9;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  line-height: 1.6;
}

main {
  flex: 1;
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  padding: 18vh 1.5rem 3rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 7vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.location {
  margin: 0.5rem 0 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.bio {
  margin-top: 2.5rem;
  font-size: 1.15rem;
}

.bio p { margin: 0 0 1.1rem; }

.bio .lead {
  font-size: 1.35rem;
  line-height: 1.4;
  margin-bottom: 1.6rem;
}

.links {
  display: flex;
  gap: 1.5rem;
  margin-top: 0;
  padding-top: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem;
}

.links a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition: border-color 0.15s ease;
}

.links a:hover,
.links a:focus-visible { border-color: var(--accent); }

header {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.portrait {
  flex: none;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  object-fit: cover;
}

header .lead {
  margin: 1.1rem 0 0;
  font-size: 1.2rem;
  line-height: 1.4;
}

@media (max-width: 30rem) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .portrait { width: 7.5rem; height: 7.5rem; }
}

section {
  margin-top: 2.75rem;
  font-size: 1.05rem;
}

section p { margin: 0 0 1rem; }

h2 {
  margin: 0 0 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

ul {
  margin: 0 0 1.25rem;
  padding-left: 1.1rem;
}

li { margin-bottom: 0.4rem; }

li::marker { color: var(--muted); }

strong { font-weight: 600; }

section p a,
section li a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 0.2em;
}

section p a:hover,
section p a:focus-visible,
section li a:hover,
section li a:focus-visible { text-decoration-color: var(--text); }

section.contact h2 { margin-bottom: 0.75rem; }

.header-links {
  margin-top: 1rem;
  font-size: 0.85rem;
}

footer {
  padding: 1.5rem;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
}

footer p { margin: 0; }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151412;
    --text: #ece8e1;
    --muted: #9a948b;
    --accent: #ece8e1;
    --rule: #3a3731;
  }
}
