:root, html.light {
  color-scheme: light;
  --bg: #f3f0e8; --bg-elevated: #faf8f2; --surface: #fffcf7;
  --fg: #1b1a16; --muted: #5f5c54; --subtle: #8a867c;
  --accent: #4f5d55; --primary: #1b1a16; --primary-fg: #f6f3eb;
  --elev-shadow: 0 0 0 1px rgba(27,26,22,.06), 0 1px 2px -1px rgba(27,26,22,.06), 0 8px 24px -12px rgba(27,26,22,.12);
  --elev-shadow-hover: 0 0 0 1px rgba(27,26,22,.1), 0 1px 2px -1px rgba(27,26,22,.08), 0 14px 28px -14px rgba(27,26,22,.18);
  --wash-top: #f7f4ec; --wash-bottom: #ebe6db; --grain-opacity: .055;
}
html.dark {
  color-scheme: dark;
  --bg: #0d0d0c; --bg-elevated: #141412; --surface: #1a1a17;
  --fg: #f3f1eb; --muted: #b0ada4; --subtle: #8a877e;
  --accent: #c5cfc8; --primary: #f3f1eb; --primary-fg: #141310;
  --elev-shadow: 0 0 0 1px rgba(255,255,255,.08);
  --elev-shadow-hover: 0 0 0 1px rgba(255,255,255,.16);
  --wash-top: #111110; --wash-bottom: #0b0b0a; --grain-opacity: .07;
}
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: Outfit, ui-sans-serif, system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
}
button:not(:disabled), [role="button"]:not(:disabled) { cursor: pointer; }
.page {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  background: linear-gradient(180deg, var(--wash-top), var(--wash-bottom));
}
.page::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.wrap {
  position: relative;
  z-index: 2;
  max-width: 28rem;
  margin: 0 auto;
  min-height: 100dvh;
  padding: 1.5rem 1.25rem 2.5rem;
  display: flex;
  flex-direction: column;
}
.head { display: flex; align-items: center; justify-content: space-between; }
.now { margin: 0; font-size: .875rem; font-weight: 500; color: var(--muted); }
.theme {
  width: 2.75rem; height: 2.75rem; border: 0; border-radius: 999px;
  background: var(--surface); color: var(--fg); box-shadow: var(--elev-shadow);
}
.theme:active { transform: scale(.96); }
.main { flex: 1; display: flex; flex-direction: column; align-items: center; padding-top: 2.5rem; }
.avatar-ring { border-radius: 999px; padding: 4px; outline: 1px solid color-mix(in oklab, var(--accent) 45%, transparent); outline-offset: 3px; }
.avatar { width: 8rem; height: 8rem; border-radius: 999px; object-fit: cover; display: block; outline: 1px solid color-mix(in oklab, var(--fg) 12%, transparent); outline-offset: -1px; }
h1 { margin: 1.5rem 0 0; font-family: Fraunces, ui-serif, Georgia, serif; font-size: 2.25rem; font-weight: 500; letter-spacing: -.03em; line-height: 1.15; }
.role { margin: .5rem 0 0; font-size: .875rem; font-weight: 500; color: var(--accent); }
.loc { margin: .25rem 0 0; font-size: .875rem; color: var(--subtle); display: flex; align-items: center; gap: .35rem; }
.bio { margin: 1.25rem 0 0; max-width: 24rem; text-align: center; font-size: 1rem; line-height: 1.6; color: var(--muted); }
.stack { width: 100%; margin-top: 2rem; display: flex; flex-direction: column; gap: .75rem; }
.card {
  display: flex; align-items: center; gap: 1rem; min-height: 4rem;
  padding: 1rem; border-radius: 1.75rem; text-decoration: none; color: inherit;
  box-shadow: var(--elev-shadow); background: var(--surface); text-align: left; border: 0; width: 100%; font: inherit;
}
.card:hover { box-shadow: var(--elev-shadow-hover); transform: translateY(-1px); }
.card:active { transform: scale(.96); }
.card.featured { background: var(--primary); color: var(--primary-fg); }
.ico { width: 2.75rem; height: 2.75rem; flex: none; display: flex; align-items: center; justify-content: center; border-radius: .75rem; background: var(--bg-elevated); }
.card.featured .ico { background: color-mix(in oklab, var(--primary-fg) 10%, transparent); }
.copy { min-width: 0; flex: 1; }
.copy strong { display: block; font-weight: 500; }
.copy span { display: block; margin-top: 2px; font-size: .875rem; color: var(--muted); }
.card.featured .copy span { color: color-mix(in oklab, var(--primary-fg) 70%, transparent); }
.arrow { width: 2.25rem; flex: none; display: flex; align-items: center; justify-content: center; color: var(--subtle); }
.card.featured .arrow { color: color-mix(in oklab, var(--primary-fg) 70%, transparent); }
.social { margin-top: 2rem; display: flex; gap: .75rem; }
.social a {
  width: 2.75rem; height: 2.75rem; display: flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--surface); color: var(--fg); box-shadow: var(--elev-shadow); text-decoration: none;
}
.social a:hover { box-shadow: var(--elev-shadow-hover); transform: translateY(-1px); }
.foot { margin-top: 2.5rem; text-align: center; font-size: .75rem; letter-spacing: .04em; color: var(--subtle); }
svg { display: block; }
@media (prefers-reduced-motion: reduce) {
  .card, .card:hover, .card:active, .social a { transition: none; transform: none; }
}
html.dark #iconMoon { display: none; }
html.light #iconSun { display: none; }

