:root {
  color-scheme: light;
  --paper: #f5f3ec;
  --ink: #22251f;
  --olive: #69764d;
  --muted: #72766a;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--paper); }

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection { color: var(--paper); background: var(--olive); }

.page {
  min-height: 100svh;
  padding: 30px clamp(24px, 5vw, 80px);
  display: grid;
  grid-template-rows: auto 1fr;
}

header { display: flex; align-items: center; }

.avatar-frame {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 0 8px #f2a4cb55;
}

.avatar {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.avatar-decoration {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  pointer-events: none;
}

main { display: grid; place-items: center; padding: 65px 0 85px; }
.greeting { position: relative; width: min(780px, 100%); }
h1 { margin: 0; font-weight: 400; }

.intro {
  display: block;
  margin: 0 0 8px 7px;
  font-size: clamp(25px, 3.5vw, 38px);
  letter-spacing: -.055em;
  line-height: 1.25;
}

.name {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(78px, 15.6vw, 185px);
  letter-spacing: -.075em;
  line-height: 1.05;
}

.period { color: var(--olive); }

.smile {
  position: absolute;
  top: -38px;
  right: 16px;
  width: 68px;
  color: var(--olive);
  transform: rotate(-7deg);
  transition: transform 350ms ease;
}

.smile path { fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.greeting:hover .smile { transform: rotate(12deg); }

@media (max-width: 560px) {
  .page { padding-top: 23px; padding-bottom: 23px; }
  .avatar-frame, .avatar { width: 40px; height: 40px; }
  main { padding: 70px 0; }
  .intro { margin-left: 3px; }
  .name { font-size: clamp(72px, 18vw, 100px); }
  .smile { top: -78px; right: 6px; width: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .avatar-decoration { display: none; }
  .smile { transition: none; }
}
