:root {
  --bg: #f6f3ec;
  --ink: #1f1d1a;
  --muted: #6b6660;
  --accent: #6b3e2e;
  --rule: #d9d3c4;
  --title: #5a3a26;
  --measure: 38rem;
}

[data-theme="dark"] {
  --bg: #1c1a17;
  --ink: #e8e1d2;
  --muted: #b0a89e;
  --accent: #d4a577;
  --rule: #3a3530;
  --title: #9d7d5f;
}

* { box-sizing: border-box; }
html { font-size: 18px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.card {
  width: 100%;
  max-width: var(--measure);
}

.card header h1 {
  font-size: 1.9rem;
  margin: 0;
  color: var(--title);
  letter-spacing: 0.01em;
  font-weight: 600;
}
.card header h1 a {
  color: inherit;
  text-decoration: none;
}
.card header h1 a:hover {
  text-decoration: underline;
}

.card header .role {
  color: var(--muted);
  font-style: italic;
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
}

.bio p {
  margin: 1.75rem 0 0;
  font-size: 1.05rem;
  line-height: 1.65;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin: 2.25rem 0 0;
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}

.links a, .links .soon {
  display: block;
  text-decoration: none;
  line-height: 1.35;
}
.links .title {
  display: block;
  font-size: 1.05rem;
}
.links a .title {
  color: var(--accent);
}
.links a:hover .title {
  text-decoration: underline;
}
.links .soon .title {
  color: var(--muted);
  font-style: italic;
}
.links .sub {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.15rem;
  letter-spacing: 0.01em;
}

footer {
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
  margin-top: 2.25rem;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
footer p { margin: 0; }
footer a {
  color: var(--muted);
}
footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Theme toggle: previews the destination theme (same convention as the blog). */
.theme-toggle {
  padding: 0.2rem 0.6rem;
  font-family: inherit;
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  background: #1c1a17;
  color: #b0a89e;
  border: 1px solid #3a3530;
}
.theme-toggle:hover {
  color: #d4a577;
  border-color: #d4a577;
}
[data-theme="dark"] .theme-toggle {
  background: #f6f3ec;
  color: #6b6660;
  border: 1px solid #d9d3c4;
}
[data-theme="dark"] .theme-toggle:hover {
  color: #6b3e2e;
  border-color: #6b3e2e;
}
