:root {
  --ink: #111111;
  --muted: #6b6b6b;
  --paper: #ffffff;
  --rule: #e6e6e6;
}

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

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page {
  width: 100%;
  max-width: 38rem;
  padding: 4rem 1.5rem;
  text-align: center;
  animation: rise 0.9s ease-out both;
}

/* Masthead -------------------------------------------------- */
.masthead {
  margin-bottom: 3rem;
}

.name {
  font-weight: 500;
  font-size: clamp(2.8rem, 9vw, 4.5rem);
  letter-spacing: 0.01em;
  line-height: 1.05;
}

.role {
  margin-top: 0.85rem;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Intro ----------------------------------------------------- */
.intro {
  max-width: 30rem;
  margin: 0 auto 3rem;
}

.intro p {
  font-size: clamp(1.25rem, 3.5vw, 1.6rem);
  font-style: italic;
  color: #2a2a2a;
}

/* Contact --------------------------------------------------- */
.contact {
  padding-top: 2.25rem;
  border-top: 1px solid var(--rule);
}

.email {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
  transition: opacity 0.2s ease;
}

.email:hover {
  opacity: 0.55;
}

/* Mobile ---------------------------------------------------- */
@media (max-width: 30rem) {
  .page {
    padding: 2.5rem 1.25rem;
  }

  .masthead {
    margin-bottom: 2.25rem;
  }

  .role {
    margin-top: 0.7rem;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
  }

  .intro {
    margin-bottom: 2.25rem;
  }

  .contact {
    padding-top: 1.75rem;
  }

  /* roomier tap target on touch screens */
  .email {
    display: inline-block;
    padding: 0.4rem 0;
  }
}

/* Motion ---------------------------------------------------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page {
    animation: none;
  }
}
