:root {
  color-scheme: light dark;
  --bg: #f7f6f3;
  --text: #1e1e1e;
  --text-soft: #2b2b2b;
  --text-muted: #6b6b6b;
  --text-dim: #8a8a8a;
  --rule: #d6d3cd;
  --rule-soft: #eae8e3;
  --link-underline: #a8a8a8;
  --email-bg: #eae8e3;
  --email-text: #2b2b2b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414;
    --text: #e8e6e1;
    --text-soft: #d4d1cb;
    --text-muted: #9a9893;
    --text-dim: #7a7873;
    --rule: #2e2d2a;
    --rule-soft: #242320;
    --link-underline: #5a5955;
    --email-bg: #242320;
    --email-text: #e8e6e1;
  }
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Iowan Old Style', 'Palatino Linotype', 'Palatino', 'Book Antiqua', Georgia, 'Times New Roman', serif;
  line-height: 1.65;
  padding: 3.5rem 1.5rem;
  max-width: 680px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  font-size: 1.02rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 0.5px;
  text-decoration-color: var(--link-underline);
  transition: text-decoration-color 0.15s ease;
}

a:hover {
  text-decoration-color: var(--text);
}

header {
  display: flex;
  align-items: flex-start;
  gap: 1.75rem;
  margin-bottom: 2.25rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}

.avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--rule);
  filter: grayscale(15%);
  flex-shrink: 0;
}

.header-text h1 {
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 0.15rem;
}

.header-text .handle {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.02em;
  font-style: italic;
}

.header-text .location {
  font-size: 0.88rem;
  color: var(--text-dim);
  font-style: normal;
  letter-spacing: 0.02em;
  margin-top: 0.15rem;
}

.intro {
  margin: 2rem 0 2.5rem 0;
}

.intro p {
  font-size: 1.02rem;
  color: var(--text-soft);
  margin-bottom: 1rem;
  text-align: justify;
  hyphens: auto;
}

.intro p:last-child {
  margin-bottom: 0;
}

.intro .email {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Courier New', monospace;
  font-size: 0.88rem;
  background: var(--email-bg);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  color: var(--email-text);
}

footer {
  margin-top: 2.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 500px) {
  body {
    padding: 2rem 1rem;
    font-size: 0.98rem;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .avatar {
    width: 72px;
    height: 72px;
  }

  .header-text h1 {
    font-size: 1.6rem;
  }
}
