@font-face {
  font-family: Gaegu;
  src: url('assets/gaegu-latin.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

* { box-sizing: border-box; }
:root { color-scheme: light; --paper: #f9f9f8; --ink: #21201c; color: var(--ink); background: var(--paper); }
body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 64px 24px;
  font-family: Gaegu, 'Segoe Print', cursive;
  letter-spacing: -0.9px;
  -webkit-font-smoothing: antialiased;
}
.note { width: 720px; max-width: 100%; }
header { text-align: center; }
h1, p { margin: 0; font-weight: 400; }
h1 { font-size: 54px; line-height: 1.1; letter-spacing: -0.9px; }
.intro { margin-top: 48px; font-size: 40px; line-height: 1; }
.stack { margin-top: 20px; font-size: 28px; line-height: 1.25; }
.stack-dot { font-family: sans-serif; font-size: 0.7em; vertical-align: 0.08em; }
.meanwhile { margin-top: 60px; font-size: 40px; line-height: 1; }
svg { display: block; overflow: visible; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.arrows { width: 100%; height: auto; margin-top: 18px; }
.destinations { display: grid; grid-template-columns: 220px 220px 280px; align-items: start; }
.destination {
  color: inherit;
  text-decoration: none;
  font: inherit;
  border: 0;
  background: none;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
a.destination { transition: color 160ms ease; }
a.destination:active { color: #2856a1; }
.destination:focus-visible { outline: 2px dashed #2856a1; outline-offset: 8px; border-radius: 3px; color: #2856a1; }
.cv { justify-self: center; margin-top: 0; width: 110px; transform: rotate(-1deg); opacity: 1; }
.cv:disabled { color: inherit; cursor: default; }
.cv-title { font-family: Gaegu, cursive; font-size: 40px; fill: currentColor; stroke: none; }
.email { display: flex; flex-direction: column; align-items: center; justify-self: center; gap: 8px; margin-top: -12px; font-size: 40px; line-height: 1; }
.email svg { width: 96px; height: 65px; }
.socials { display: grid; gap: 17px; padding-left: 47px; }
.social { display: flex; align-items: center; gap: 19px; width: fit-content; min-height: 60px; font-size: 38px; line-height: 1; white-space: nowrap; }
.social svg { flex: 0 0 62px; width: 62px; height: 62px; }
.github svg { width: 76px; flex-basis: 76px; margin-left: -7px; margin-right: -7px; }
.social span { position: relative; }
.social span::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 4px;
  background: currentColor;
  clip-path: polygon(0 45%, 17% 5%, 35% 47%, 55% 18%, 77% 48%, 100% 0, 100% 45%, 78% 92%, 55% 64%, 35% 95%, 17% 51%, 0 90%);
  opacity: 0;
  transform: scaleX(0.72);
  transform-origin: left center;
  transition: opacity 180ms ease;
}
.social:focus-visible span::after { opacity: 1; transform: none; }
/* Keep hit areas and labels still; only the drawings move. */
@media (hover: hover) and (pointer: fine) {
  a.destination:hover { color: #2856a1; }
  .social:hover span::after { opacity: 1; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  a.destination svg {
    transform-origin: 50% 65%;
    transition: transform 180ms ease;
  }
  .email:hover svg { transform: translateY(-3px) rotate(-2deg); }
  .github:hover svg { transform: translateY(-2px) rotate(-5deg); }
  .substack:hover svg { transform: translateY(-3px) rotate(2deg); }
  .linkedin:hover svg { transform: translateY(-2px) rotate(2deg); }
  .social span::after { transition: opacity 180ms ease, transform 180ms ease; }
  .social:hover span::after { transform: scaleX(1); }
  a.destination:active svg {
    transform: scale(0.96);
    transition-duration: 120ms;
  }
}
@media (max-width: 760px) {
  body { padding: 56px 24px; }
  .note { width: 520px; }
  h1 { font-size: 44px; }
  .intro, .meanwhile { font-size: 30px; }
  .intro { margin-top: 40px; }
  .stack { font-size: 22px; }
  .meanwhile { margin-top: 50px; }
  .destinations { grid-template-columns: 30% 30% 40%; }
  .cv { width: 78px; }
  .email { font-size: 30px; gap: 6px; margin-top: -9px; }
  .email svg { width: 70px; height: 48px; }
  .socials { padding-left: 18px; gap: 14px; }
  .social { gap: 10px; font-size: 28px; min-height: 44px; }
  .social svg { width: 44px; height: 44px; flex-basis: 44px; }
  .github svg { width: 54px; flex-basis: 54px; margin-left: -5px; margin-right: -5px; }
}
@media (max-width: 420px) {
  body { padding: 44px 18px; }
  h1 { font-size: 40px; }
  .intro, .meanwhile { font-size: 27px; }
  .stack { font-size: 20px; }
  .arrows { margin-top: 24px; }
  .cv { width: 65px; }
  .email { font-size: 26px; }
  .email svg { width: 60px; height: 42px; }
  .socials { padding-left: 9px; gap: 15px; }
  .social { font-size: 24px; gap: 7px; min-height: 37px; }
  .social svg { width: 35px; height: 37px; flex-basis: 35px; }
  .github svg { width: 45px; flex-basis: 45px; }
}
@media (max-width: 360px) {
  .intro, .meanwhile { font-size: 25px; }
  .socials { padding-left: 4px; }
  .social { font-size: 22px; gap: 5px; }
}
