:root {
  --bg: #fdfcfa;
  --text: #1f1d1a;
  --muted: #6b6660;
  --accent: #9a4f1c;
  --line: #e7e3dc;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171614;
    --text: #ece8e2;
    --muted: #a39d95;
    --accent: #e3a368;
    --line: #2e2b27;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.page {
  max-width: 64rem;
  min-height: 100vh;
  margin: 0 auto;
  padding: 3rem 1.25rem;
  display: grid;
  gap: 3rem;
  align-content: center;
}

.photo { margin: 0; }

.photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 40%;
  border-radius: 2px;
}

.content { max-width: 34rem; }

.eyebrow {
  margin: 0 0 .75rem;
  color: var(--accent);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 2rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.about p { margin: 0 0 1.25rem; }

.contact {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0 0 1rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

dl {
  margin: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .5rem 2rem;
}

dt { color: var(--muted); }
dd { margin: 0; }

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

a:hover, a:focus-visible { border-bottom-width: 2px; }

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

footer {
  margin-top: 3rem;
  color: var(--muted);
  font-size: .875rem;
}

footer p { margin: 0; }

@media (min-width: 52rem) {
  .page {
    grid-template-columns: 5fr 7fr;
    gap: 5rem;
    align-items: center;
    padding: 5rem 2rem;
  }

  .photo img {
    aspect-ratio: auto;
    max-height: 80vh;
  }
}
