:root {
  color-scheme: light;
  --ink: #172b35;
  --paper: #f8f7f2;
  --yellow: #f6d75c;
  --muted: #646e71;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--yellow); color: var(--ink); }
a:focus-visible { outline: 3px solid #267bb0; outline-offset: 5px; }
.intro-panel a:focus-visible { outline-color: var(--yellow); }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 16px;
  background: var(--yellow);
}
.intro-panel { background: var(--ink); color: var(--paper); }
.intro-inner { padding: 24px 24px 28px; }
.intro-header { display: flex; align-items: center; justify-content: space-between; }
.monogram { display: inline-flex; align-items: center; min-height: 44px; font-size: 30px; font-weight: 750; letter-spacing: -2px; }
.monogram span { color: var(--yellow); }
.location { display: flex; align-items: center; gap: 9px; font-size: 12px; color: #c6cfd1; }
.location-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }
.introduction { margin-top: 30px; }
.identity { display: flex; align-items: center; gap: 23px; }
.portrait-wrap { position: relative; flex: 0 0 88px; width: 88px; }
.portrait { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.portrait-spark { position: absolute; right: -9px; bottom: -6px; font-size: 37px; line-height: 1; color: var(--yellow); text-shadow: 0 2px var(--ink); }
h1 { margin: 0; font-size: clamp(43px, 12vw, 62px); line-height: .94; font-weight: 600; letter-spacing: -.055em; }
.name-dot { color: var(--yellow); }
.personal-line { margin: 21px 0 13px; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 31px; letter-spacing: -.035em; color: var(--yellow); }
.intro-copy { margin: 0; max-width: 390px; font-size: 15px; line-height: 1.65; color: #e0e5e4; }
.background { display: none; }
.about-link { display: inline-flex; min-height: 44px; align-items: center; gap: 20px; margin-top: 9px; font-size: 13px; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #718088; }
.about-link i { font-size: 19px; transition: transform .2s ease; }
.about-link:hover i { transform: translateX(4px); }
.intro-footer { display: none; }
.eyebrow { font-size: 10px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; line-height: 1.5; }
.links-inner { padding: 32px 24px 20px; max-width: 650px; margin-inline: auto; }
.links-header .eyebrow { color: var(--muted); }
h2 { margin: 11px 0 10px; font-size: clamp(27px, 7vw, 36px); font-weight: 500; letter-spacing: -.055em; line-height: 1.12; }
h2 span { color: #a88b23; }
.links-header p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.featured-link { display: block; position: relative; margin-top: 25px; padding: 20px; border: 1px solid #e5c550; border-radius: 4px; background: var(--yellow); transition: background .2s ease, transform .2s ease; }
.featured-link:hover { background: #f9df7b; transform: translateY(-2px); }
.featured-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.link-arrow { flex: 0 0 auto; font-size: 22px; transition: transform .2s ease; }
.featured-title { display: block; margin-top: 16px; font-size: 24px; line-height: 1.2; font-weight: 500; letter-spacing: -.04em; }
.featured-description { display: block; max-width: 350px; margin-top: 8px; font-size: 13px; line-height: 1.5; }
.featured-domain { display: flex; align-items: center; gap: 12px; margin-top: 21px; font-size: 11px; font-weight: 600; }
.social-links { list-style: none; margin: 18px 0 0; padding: 0; }
.social-links li { border-bottom: 1px solid #dcded8; }
.social-link { display: flex; align-items: center; gap: 14px; padding: 19px 2px; min-height: 83px; border-radius: 3px; transition: background .2s ease; }
.social-link:hover { background: #eeeee6; }
.social-link:hover .link-arrow, .featured-link:hover .link-arrow { transform: translate(3px, -3px); }
.social-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 11px; font-size: 24px; }
.social-icon--linkedin { background: #e4edf1; color: #22648a; }
.social-icon--github { background: #e8e8e2; color: #263137; }
.social-icon--bluesky { background: #e4edf7; color: #2674ce; }
.social-icon--instagram { background: #f2e7e5; color: #a15567; }
.social-icon--stackoverflow { background: #f4eadd; color: #a26527; }
.link-copy { flex: 1; min-width: 0; }
.link-title { display: block; font-size: 16px; font-weight: 550; letter-spacing: -.025em; }
.link-description { display: block; margin-top: 5px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.social-link > .link-arrow { color: #74807f; font-size: 20px; }
.links-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 19px; color: var(--muted); font-size: 11px; }
.links-footer a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.links-footer a:hover { color: var(--ink); text-decoration: underline; }

@media (min-width: 600px) and (max-width: 999px) {
  .intro-inner { max-width: 650px; margin-inline: auto; padding: 30px 40px 35px; }
  .links-inner { padding-inline: 40px; }
  .intro-copy { max-width: 480px; }
}

@media (min-width: 1000px) {
  .profile-page { display: grid; grid-template-columns: 46% 54%; align-items: start; }
  .intro-panel { position: sticky; top: 0; min-height: 100svh; }
  .intro-inner { display: flex; flex-direction: column; min-height: 100svh; max-width: 690px; margin-left: auto; padding: 34px clamp(40px, 5vw, 88px) 32px; }
  .introduction { margin-block: auto; padding-block: 44px; }
  .identity { display: block; }
  .portrait-wrap { width: 106px; margin-bottom: 29px; }
  .portrait-spark { right: -15px; bottom: -7px; font-size: 46px; }
  h1 { font-size: clamp(76px, 7.2vw, 112px); }
  .personal-line { font-size: clamp(32px, 3vw, 44px); margin-top: 23px; margin-bottom: 18px; }
  .intro-copy { font-size: 16px; line-height: 1.7; }
  .background { display: block; max-width: 390px; margin-top: 20px; color: #adbcc0; font-size: 13px; line-height: 1.75; }
  .background p { margin: 0; }
  .about-link { margin-top: 15px; }
  .intro-footer { display: block; position: relative; padding-top: 23px; padding-right: 34px; border-top: 1px solid #3c4c52; }
  .intro-footer .eyebrow { color: #aebec2; font-size: 9px; }
  .intro-footer p { margin: 9px 0 0; color: #dce1df; font-family: Georgia, "Times New Roman", serif; font-size: 16px; font-style: italic; }
  .intro-footer i { position: absolute; right: 0; bottom: 0; font-size: 23px; color: var(--yellow); }
  .links-panel { display: flex; align-items: center; min-height: 100svh; }
  .links-inner { width: 100%; max-width: 760px; padding: 60px clamp(40px, 5vw, 88px) 25px; margin-left: 0; }
  .links-header .eyebrow { font-size: 10px; }
  h2 { font-size: clamp(34px, 3.2vw, 48px); margin-top: 16px; }
  .links-header p { font-size: 14px; }
  .featured-link { margin-top: 31px; padding: 23px 26px; }
  .featured-title { font-size: 29px; }
  .social-link { padding: 21px 4px; gap: 17px; min-height: 88px; }
  .link-title { font-size: 17px; }
  .link-description { font-size: 12px; }
  .links-footer { padding-top: 22px; }
}

/* A short desktop viewport should scroll naturally instead of hiding the bio. */
@media (min-width: 1000px) and (max-height: 850px) {
  .intro-panel { position: static; align-self: stretch; }
  .intro-inner { min-height: max(100svh, 900px); }
}

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