:root {
  --bg:   #f6f2e9;
  --text: #1a1918;
  --dim:  #7a7570;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #141210; --text: #cdc9bb; --dim: #706c60; }
}
[data-theme="light"] { --bg: #f6f2e9; --text: #1a1918; --dim: #7a7570; }
[data-theme="dark"]  { --bg: #141210; --text: #cdc9bb; --dim: #706c60; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  min-height: 100dvh;
}

.page {
  max-width: 50ch;
  padding: 5rem 2rem 6rem;
  margin-inline: auto;
  text-align: center;
}

h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 2rem;
}

p {
  color: var(--dim);
  margin-bottom: 1.4em;
}

p:first-of-type {
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  opacity: 0.6;
}

.contact a {
  font-family: 'Courier New', monospace;
  font-size: 0.85em;
}

.portrait {
  float: right;
  margin: 0 0 1rem 2rem;
  width: 42%;
}
.portrait img {
  width: 100%;
  display: block;
}

#theme-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--dim);
  font-size: 1rem;
  cursor: pointer;
  opacity: 0.45;
  padding: 0.25rem;
  line-height: 1;
}
#theme-toggle:hover { opacity: 1; }
