:root {
  color-scheme: light;
  --page: #eee9e1;
  --page-accent: #d9e3dc;
  --card: #faf8f3;
  --ink: #17231f;
  --muted: #66706b;
  --line: #d9ddd7;
  --accent: #1c5b49;
  --accent-soft: #e6eee9;
  --shadow: 0 30px 80px rgb(24 40 34 / 12%);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--page);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: clamp(1rem, 4vw, 3rem);
  display: grid;
  place-items: center;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgb(255 255 255 / 75%), transparent 34rem),
    radial-gradient(circle at 92% 90%, var(--page-accent), transparent 36rem),
    var(--page);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

.profile-card {
  width: min(100%, 920px);
  min-height: 580px;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.portrait-wrap {
  min-height: 100%;
  overflow: hidden;
  background: #52605b;
}

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

.profile {
  padding: clamp(2.5rem, 6vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 6vw, 4.25rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.94;
}

.topics {
  margin: 1.6rem 0 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.topics span {
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.links {
  border-top: 1px solid var(--line);
}

.contact-link {
  min-height: 54px;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 0.85rem;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 650;
  transition: color 160ms ease, padding 160ms ease;
}

.contact-link img {
  width: 20px;
  height: 20px;
}

.contact-link .arrow {
  color: var(--muted);
  font-size: 1.05rem;
  transition: transform 160ms ease;
}

.contact-link:hover {
  padding-inline: 0.35rem;
  color: var(--accent);
}

.contact-link:hover .arrow {
  transform: translate(2px, -2px);
}

.contact-link:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgb(28 91 73 / 28%);
  outline-offset: 3px;
}

@media (max-width: 700px) {
  body {
    align-items: start;
    padding: 0;
    background: var(--card);
  }

  .profile-card {
    min-height: 100vh;
    min-height: 100svh;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(300px, 45svh) auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .portrait-wrap {
    min-height: 0;
  }

  .portrait {
    object-position: 50% 34%;
  }

  .profile {
    padding: 2.4rem clamp(1.4rem, 7vw, 2.5rem) 3rem;
    justify-content: flex-start;
  }

  h1 {
    font-size: clamp(2.65rem, 14vw, 4rem);
  }

  .topics {
    margin-bottom: 1.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
