:root {
  --ink: #292d33;
  --muted: #686d75;
  --accent: #335bc9;
  --paper: #fdfdfc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #dae4ff;
  color: #202a43;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 2px;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  max-width: 600px;
  margin: 0 auto;
  padding: 64px 0 28px;
}

.greeting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

h1 {
  margin: 0;
  font: 50px/1.15 Georgia, "Times New Roman", serif;
  letter-spacing: -2px;
  font-weight: 400;
}

.portrait {
  flex: 0 0 auto;
  width: 77px;
  height: 87px;
  padding: 4px;
  background: white;
  border: 1px solid #e4e4e1;
  border-radius: 3px;
  box-shadow: 0 3px 7px #20252b0b;
  transform: rotate(5deg);
  transition: transform 200ms ease;
}

.portrait:hover {
  transform: rotate(0);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1px;
}

.intro p {
  margin: 0 0 14px;
  max-width: 540px;
}

.intro p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.inline-link {
  text-decoration-color: #a8adb5;
}

.section-label {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  font-size: 14px;
}

.socials a {
  text-decoration-color: #bec3cb;
}

footer {
  margin-top: auto;
  padding-top: 35px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}

.footer-icon {
  flex-shrink: 0;
  display: block;
  width: 26px;
  height: 26px;
  margin: 0;
  object-fit: contain;
}

@media (max-width: 700px) {
  .page {
    padding: 32px 26px 22px;
  }
  h1 {
    font-size: 43px;
    letter-spacing: -1.8px;
  }
  .greeting {
    gap: 12px;
  }
  .portrait {
    width: 62px;
    height: 73px;
  }
  footer {
    gap: 24px;
  }
}

@media (max-width: 350px) {
  .page {
    padding-inline: 20px;
  }
  h1 {
    font-size: 37px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
  }
}
