:root {
  --paper: #f7f3ed;
  --ink: #1e1c1a;
  --muted: #6a625b;
  --line: #d8d0c5;
  --rust: #9f3d2f;
  --rust-dark: #812e23;
  --white: #fffdfa;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.profile {
  width: min(100% - 3rem, 71rem);
  margin: 0 auto;
  padding: clamp(3rem, 9vw, 8rem) 0 clamp(4rem, 10vw, 8rem);
}

.introduction {
  display: grid;
  grid-template-columns: minmax(15rem, 22rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
}

.portrait-frame {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 49% 51% 47% 53% / 55% 46% 54% 45%;
  background: var(--rust);
  box-shadow: 0 1.5rem 3.5rem rgba(75, 35, 28, 0.15);
}

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

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--rust);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }

h1 {
  max-width: 10ch;
  margin-bottom: 1.1rem;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.97;
}

.lead {
  max-width: 33rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.45;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

.icon-button, .coffee-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.icon-button {
  width: 2.9rem;
  padding: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.icon-button svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.coffee-button {
  padding: 0.7rem 1.15rem;
  border-color: var(--rust);
  background: var(--rust);
  color: var(--white);
}

.coffee-button span { margin-left: 0.35rem; }

.icon-button:hover { border-color: var(--ink); background: #ece6dd; }
.coffee-button:hover { border-color: var(--rust-dark); background: var(--rust-dark); transform: translateY(-1px); }

.icon-button:focus-visible, .coffee-button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.copy-status {
  min-height: 1.5rem;
  margin: 0.7rem 0 0;
  color: var(--rust-dark);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
}

.about {
  max-width: 43rem;
  margin: clamp(4.5rem, 12vw, 9rem) 0 0 auto;
  padding-top: clamp(2.5rem, 7vw, 4rem);
  border-top: 1px solid var(--line);
}

h2 {
  margin-bottom: 1.7rem;
  color: var(--rust);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.bio { font-size: clamp(1.08rem, 1.65vw, 1.22rem); }
.bio p { margin-bottom: 1.35rem; }
.bio p:last-child { margin-bottom: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 42rem) {
  .profile { width: min(100% - 2.5rem, 34rem); }
  .introduction { grid-template-columns: 1fr; gap: 2.5rem; }
  .portrait-frame { width: min(72vw, 19rem); }
  h1 { max-width: none; }
  .about { margin-top: 4rem; }
}

@media (max-width: 25rem) {
  .profile { width: min(100% - 2rem, 34rem); }
  .coffee-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .icon-button, .coffee-button { transition: none; }
}
