@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #101311;
  --surface: #191e1a;
  --lime: #c4f16b;
  --text: #f5f7f3;
  --muted: #b0bab1;
  --border: #364337;
  font-family: 'DM Sans', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.5;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 0; background: radial-gradient(ellipse at 50% 0, #243021 0, var(--bg) 440px); }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 3px solid var(--lime); outline-offset: 5px; }
img { display: block; max-width: 100%; }
p, h1, h2 { margin: 0; }
::selection { background: var(--lime); color: var(--bg); }
.skip-link { position: fixed; top: -100%; left: 16px; z-index: 2; padding: 12px 18px; background: var(--lime); color: var(--bg); }
.skip-link:focus { top: 16px; }
.bio-page { width: min(100%, 600px); margin: 0 auto; padding: 44px 24px 28px; }
.profile { text-align: center; margin-bottom: 28px; }
.portrait-wrap { width: 116px; height: 116px; position: relative; margin: 0 auto 20px; }
.portrait { width: 116px; height: 116px; border-radius: 50%; object-fit: cover; border: 1px solid #617254; padding: 4px; background: var(--bg); }
.profile-logo { position: absolute; right: -8px; bottom: -5px; width: 44px; height: 44px; border: 4px solid var(--bg); border-radius: 13px; }
h1 { font-family: 'Manrope', Arial, sans-serif; font-size: clamp(2rem, 7.5vw, 2.625rem); font-weight: 800; letter-spacing: -1.5px; line-height: 1.25; overflow-wrap: anywhere; }
.intro { max-width: 480px; margin: 12px auto 0; color: var(--muted); font-size: 1rem; line-height: 1.7; overflow-wrap: anywhere; }
.link-groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; scroll-margin-top: 20px; }
.link-group { min-width: 0; }
.link-group h2 { margin-bottom: 12px; font-family: 'Manrope', Arial, sans-serif; font-size: 1rem; font-weight: 700; color: var(--lime); }
.group-description { margin: -4px 0 16px; color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }
.bio-links { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.bio-link { display: flex; align-items: center; gap: 16px; min-width: 0; min-height: 86px; padding: 17px 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); transition: background-color .18s ease, border-color .18s ease; }
.bio-link:hover { background: #242e23; border-color: #7f9a62; }
.link-icon { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; background: #273322; color: var(--lime); }
.link-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.letter-icon { font-family: 'Manrope', Arial, sans-serif; font-size: 1.75rem; font-weight: 700; }
.link-copy { display: block; min-width: 0; overflow-wrap: anywhere; }
.link-copy strong { display: block; font-family: 'Manrope', Arial, sans-serif; font-size: 1rem; font-weight: 700; line-height: 1.45; }
.link-copy > span { display: block; margin-top: 3px; font-size: .875rem; color: var(--muted); line-height: 1.5; }
.featured { background: var(--lime); color: #172019; border-color: var(--lime); }
.featured:hover { background: #d2fa88; border-color: #d2fa88; }
.featured .link-icon { background: #203316; color: var(--lime); }
.featured .link-copy > span { color: #344c25; }
.app-icon { object-fit: cover; }
.contact-link { border-color: #5b7046; }
.bio-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 20px; padding: 24px 4px 0; font-size: .875rem; color: var(--muted); }
.bio-footer a:hover { color: var(--lime); text-decoration: underline; }

@media (max-width: 400px) {
  .bio-page { padding: 28px 16px 24px; }
  .profile { margin-bottom: 24px; }
  .bio-link { padding: 16px; gap: 12px; }
  .link-icon { flex-basis: 40px; width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .bio-link { transition: none; }
}
