:root {
  color-scheme: light dark;
  --bg: #f8f7f3;
  --text: #1b1c1a;
  --muted: #5c5f59;
  --line: #d9d7cf;
  --accent: #1f5a4f;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141614;
    --text: #ecebe6;
    --muted: #a3a69e;
    --line: #2f332f;
    --accent: #8fcdbd;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}
.wrap {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
header.wrap {
  display: flex;
  justify-content: flex-end;
  padding-top: 1.25rem;
}
.lang ul {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}
.lang a {
  display: inline-block;
  min-width: 2.75rem;
  padding: 0.625rem 0.625rem;
  border-radius: 0.375rem;
  color: var(--muted);
  text-align: center;
  text-decoration: none;
}
.lang a:hover { color: var(--text); }
.lang a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--line);
}
main.wrap {
  flex: 1;
  padding-top: clamp(3rem, 14vh, 9rem);
  padding-bottom: 4rem;
}
h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 1.3rem + 3.4vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.role {
  margin: 0.875rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  text-wrap: balance;
}
.bio {
  margin: 2rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  max-width: 34rem;
  text-wrap: pretty;
}
.links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.links a {
  display: inline-block;
  padding: 0.5rem 0;
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}
.links a:hover { text-decoration-thickness: 2px; }
.links a::after { content: "\00a0\2197"; font-weight: 400; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 0.25rem;
}
@media (prefers-reduced-motion: no-preference) {
  .lang a, .links a { transition: color 0.15s ease; }
}
abbr[title] { text-decoration: none; cursor: inherit; }
header.wrap.split { justify-content: space-between; align-items: center; }
.home {
  display: inline-block;
  padding: 0.625rem 0;
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: none;
}
.home::before { content: "\2190\00a0"; }
.home:hover { color: var(--text); }
footer.wrap {
  padding-top: 1rem;
  padding-bottom: 1.25rem;
  font-size: 0.8125rem;
}
footer a {
  display: inline-block;
  padding: 0.75rem 0;
  color: var(--muted);
  text-decoration: none;
}
footer a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 0.25em; }
footer a[aria-current="page"] { color: var(--text); }
.legal h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); }
.legal h2 {
  margin: 2.25rem 0 0.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.legal address, .legal p { margin: 0; font-style: normal; }
.legal section > h2, .legal h3 {
  margin: 2.25rem 0 0.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.legal .part {
  margin: 3.5rem 0 0;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.legal p { max-width: 34rem; }
.legal p + p { margin-top: 0.625rem; }
.legal p a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  overflow-wrap: anywhere;
}
.legal p a:hover { text-decoration-thickness: 2px; }
.legal .ref a { display: inline-block; padding: 0.5rem 0; font-weight: 500; }
.legal .ref a::after { content: "\00a0\2197"; font-weight: 400; }
.legal a[href^="mailto:"] { display: inline-block; padding: 0.5rem 0; }
