:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #000;
  --accent: #7c302b;
}

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

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

body::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('assets/cream-paper.webp') center / cover;
  filter: grayscale(1) brightness(1.06);
  opacity: .74;
  content: '';
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-block-size: 100vh;
  min-block-size: 100svh;
  padding: clamp(36px, 8vh, 80px) 20px;
  text-align: center;
}

.portrait {
  width: clamp(148px, 26vmin, 192px);
  aspect-ratio: 1;
  overflow: hidden;
  margin: 0 0 clamp(25px, 4.2vh, 36px);
  border: 5px solid var(--paper);
  border-radius: 50%;
  background: #eee;
  box-shadow: 0 0 0 1px #51352e12, 0 12px 26px #3c24262b;
}

.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h1 {
  margin: 0;
  font-size: clamp(17.5px, 4.25vw, 38px);
  font-weight: 700;
  letter-spacing: -.048em;
  line-height: 1.06;
}

.email {
  display: inline-flex;
  min-block-size: 46px;
  align-items: center;
  gap: 12px;
  margin-top: clamp(22px, 4vh, 31px);
  padding: 8px 14px 8px 16px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: #ffffffb8;
  color: var(--accent);
  font-size: 15px;
  text-decoration: none;
  transition: background-color .16s ease, color .16s ease;
}

.email:hover {
  background: var(--accent);
  color: #fff;
}

.email:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

@media (prefers-reduced-motion: reduce) {
  .email { transition: none; }
}
