:root {
  color-scheme: light dark;
  --background: #f2f0e9;
  --surface: rgba(242, 240, 233, 0.76);
  --text: #171717;
  --muted: #626262;
  --line: rgba(23, 23, 23, 0.2);
  --accent: #6d6d6d;
  --accent-soft: rgba(109, 109, 109, 0.12);
  --accent-ring: rgba(109, 109, 109, 0.14);
  --focus: #525252;
  --selection: #d7d7d7;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #111111;
    --surface: rgba(17, 17, 17, 0.78);
    --text: #f0f0f0;
    --muted: #a5a5a5;
    --line: rgba(240, 240, 240, 0.18);
    --accent: #b5b5b5;
    --accent-soft: rgba(181, 181, 181, 0.13);
    --accent-ring: rgba(181, 181, 181, 0.16);
    --focus: #d1d1d1;
    --selection: #464646;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--background);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--background);
  color: var(--text);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--selection);
}

a {
  color: inherit;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.65rem 0.9rem;
  transform: translateY(calc(-100% - 2rem));
  border-radius: 0.25rem;
  background: var(--text);
  color: var(--background);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.profile {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(6.5rem, 12vh, 9rem) 1.5rem;
  place-items: center;
  text-align: center;
}

.profile__content {
  width: min(100%, 68rem);
}

.profile__location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0 0 clamp(1.25rem, 3vh, 2rem);
  color: var(--muted);
  font-size: clamp(0.68rem, 1vw, 0.78rem);
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0.27rem var(--accent-ring);
}

h1 {
  max-width: 15ch;
  margin: 0 auto;
  font-size: clamp(2.75rem, 7.4vw, 7rem);
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 0.93;
  text-wrap: balance;
}

.profile__roles {
  max-width: 62rem;
  margin: clamp(1.5rem, 3.5vh, 2.4rem) auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.42rem);
  font-weight: 430;
  letter-spacing: -0.018em;
  line-height: 1.35;
  text-wrap: balance;
}

.profile__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.65rem, 1.2vw, 0.9rem);
  margin-top: clamp(2.1rem, 5vh, 3.2rem);
}

.profile__links a {
  position: relative;
  display: grid;
  width: clamp(3.25rem, 5vw, 3.75rem);
  height: clamp(3.25rem, 5vw, 3.75rem);
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition:
    color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease,
    background-color 160ms ease;
}

.profile__links a:hover,
.profile__links a:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  transform: translateY(-3px);
}

.profile__links svg {
  width: 1.48rem;
  height: 1.48rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.profile__links a:first-child svg path:nth-child(2),
.profile__links a:first-child svg circle {
  fill: currentColor;
  stroke: none;
}

.profile__links a > span {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 50%;
  width: max-content;
  max-width: 9rem;
  padding: 0.3rem 0.48rem;
  transform: translate(-50%, -0.2rem);
  border-radius: 0.2rem;
  background: var(--text);
  color: var(--background);
  font-size: 0.64rem;
  font-weight: 680;
  letter-spacing: 0.03em;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.profile__links a:hover > span,
.profile__links a:focus-visible > span {
  transform: translate(-50%, 0);
  opacity: 1;
}

.site-footer {
  position: fixed;
  z-index: 10;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  min-height: clamp(4rem, 8vw, 5.5rem);
  padding-inline: clamp(1.25rem, 3.2vw, 3.5rem);
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: clamp(0.56rem, 0.8vw, 0.67rem);
  letter-spacing: 0.08em;
}

@media (max-width: 640px) {
  .profile {
    padding-inline: 1.15rem;
  }

  .profile__roles {
    max-width: 22rem;
  }

  .profile__links {
    margin-bottom: 1.35rem;
  }

  .profile__links a > span {
    top: calc(100% + 0.42rem);
    display: block;
    padding: 0;
    transform: translate(-50%, 0);
    background: transparent;
    color: var(--muted);
    font-size: 0.56rem;
    opacity: 1;
    transition: none;
  }
}

@media (hover: none) {
  .profile__links {
    margin-bottom: 1.35rem;
  }

  .profile__links a > span {
    top: calc(100% + 0.42rem);
    display: block;
    padding: 0;
    transform: translate(-50%, 0);
    background: transparent;
    color: var(--muted);
    font-size: 0.56rem;
    opacity: 1;
    transition: none;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .site-footer {
    display: none;
  }

  .profile {
    padding-block: 4.25rem 1.5rem;
  }

  .profile__location {
    margin-bottom: 0.75rem;
  }

  h1 {
    font-size: clamp(2.2rem, 9vh, 4rem);
  }

  .profile__roles {
    max-width: none;
    margin-top: 1rem;
    font-size: 0.8rem;
  }

  .profile__links {
    margin-top: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
