:root {
  --text: #1d1d1f;
  --text-soft: #48484e;
  --link: #0062c4;
  --button: #0071e3;
  --tint: rgba(255, 255, 255, 0.38);
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-highlight: rgba(255, 255, 255, 0.95);
  --shadow: 0 30px 70px -30px rgba(20, 20, 30, 0.45);
  --font:
    -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', Roboto,
    'Helvetica Neue', sans-serif;
  color-scheme: light;
}

.dark {
  --text: #f5f5f7;
  --text-soft: #c2c2c8;
  --link: #5cacff;
  --tint: rgba(0, 0, 0, 0.5);
  --glass: rgba(30, 30, 34, 0.55);
  --glass-strong: rgba(30, 30, 34, 0.92);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-highlight: rgba(255, 255, 255, 0.22);
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

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

html,
body {
  margin: 0;
}

body {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 100dvh;
  padding: 32px 16px;
  background: #8a8378;
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

/* The portrait, scaled from a 32px thumbnail, is the color field behind the glass. */
body::before,
body::after {
  content: '';
  position: fixed;
  z-index: -1;
  pointer-events: none;
}

body::before {
  inset: -64px;
  background: url('/images/bg.jpg') center / cover;
  filter: blur(32px) saturate(1.4);
}

body::after {
  inset: 0;
  background: var(--tint);
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--button);
  outline-offset: 3px;
}

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    var(--shadow);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
}

@supports not (
  (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
) {
  .glass {
    background: var(--glass-strong);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .glass {
    background: var(--glass-strong);
  }
}

.card {
  position: relative;
  width: min(100%, 440px);
  padding: 44px 28px 28px;
  border-radius: 32px;
  text-align: center;
  animation: appear 500ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.theme-toggle {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 999px;
  color: var(--text-soft);
  cursor: pointer;
  box-shadow: inset 0 1px 0 var(--glass-highlight);
}

.theme-toggle:hover {
  color: var(--text);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
}

.icon-moon,
.dark .icon-sun {
  display: none;
}

.dark .icon-moon {
  display: block;
}

.avatar {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto;
  border: 3px solid var(--glass-highlight);
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.45);
}

h1 {
  margin: 20px 0 6px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.role {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.location {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 14px;
}

.bio {
  max-width: 34ch;
  margin: 20px auto 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.55;
}

.services {
  margin-top: 32px;
  text-align: left;
}

.services h2 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.services ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.services li {
  padding: 12px 2px;
  border-top: 1px solid var(--glass-border);
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.45;
}

.services li:last-child {
  border-bottom: 1px solid var(--glass-border);
}

.services strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
  font-weight: 600;
}

.facts {
  margin: 20px 0 0;
  font-size: 14px;
  font-weight: 500;
}

.clients {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  letter-spacing: 0.01em;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--button);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 10px 24px -10px rgba(0, 113, 227, 0.7);
  transition:
    transform 160ms ease,
    filter 160ms ease;
}

.cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.cta svg {
  width: 16px;
  height: 16px;
}

.cta-note {
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 14px;
}

.socials {
  display: inline-flex;
  gap: 4px;
  margin: 28px 0 0;
  padding: 4px;
  list-style: none;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 var(--glass-highlight);
}

.socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: var(--text-soft);
  transition:
    background 160ms ease,
    color 160ms ease;
}

.socials a:hover {
  background: var(--glass-highlight);
  color: var(--text);
}

.dark .socials a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.text-link {
  color: var(--link);
  font-weight: 500;
}

footer {
  max-width: 440px;
  color: var(--text);
  font-size: 13px;
  text-align: center;
}

footer p {
  margin: 0;
}

.colophon {
  margin-top: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.colophon span {
  display: block;
}

.nowrap {
  white-space: nowrap;
}

h1,
.role,
.bio,
.cta-note {
  text-wrap: balance;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card {
    animation: none;
  }

  .cta,
  .socials a {
    transition: none;
  }
}
