:root {
  color-scheme: light;
  --navy: #071b3b;
  --navy-deep: #04142d;
  --paper: #f7f9fc;
  --white: #ffffff;
  --ink: #07152e;
  --muted: #53627a;
  --focus: #ffb635;
  color: var(--ink);
  background: #e9f1f7;
  font-family: Inter, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: #e9f1f7; }
body { min-width: 320px; margin: 0; background: #e9f1f7; line-height: 1.5; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
::selection { color: var(--navy-deep); background: #b9e6ff; }

.skip-link { position: fixed; top: 8px; left: 8px; z-index: 10; padding: 10px 14px; color: var(--navy); background: var(--white); border-radius: 10px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.bio-page { width: min(100%, 520px); min-height: 100vh; margin: 0 auto; overflow: hidden; background: var(--white); box-shadow: 0 18px 50px rgba(4, 20, 45, .14); }
.cover { aspect-ratio: 1080 / 465; overflow: hidden; background: var(--navy); }
.cover picture, .cover img { display: block; width: 100%; height: 100%; }
.cover img { object-fit: cover; }

.brand-intro { position: relative; z-index: 2; display: grid; justify-items: center; padding: 0 20px 22px; text-align: center; }
.profile-logo { width: clamp(126px, 36vw, 168px); height: clamp(126px, 36vw, 168px); margin-top: clamp(-70px, -15vw, -56px); object-fit: cover; border: 5px solid var(--white); border-radius: 50%; background: var(--white); box-shadow: 0 14px 32px rgba(4, 20, 45, .24); }
.brand-intro h1, .social-section h2, .contact h2 { font-family: "Space Grotesk", Inter, sans-serif; }
.brand-intro h1 { width: 100%; max-width: 340px; margin: 12px 0 2px; font-size: clamp(1.45rem, 6vw, 1.9rem); line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
.brand-intro p { margin: 0; color: var(--muted); font-size: .95rem; }

.visual-links { display: grid; gap: 5px; padding: 6px 10px 30px; }
.visual-card { position: relative; display: block; min-height: 104px; border-radius: 16px; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.visual-card picture, .visual-card img { display: block; width: 100%; height: auto; }
.visual-card img { object-fit: contain; }
.visual-card:focus-visible { outline-offset: -2px; }
.visual-card:active { filter: brightness(.96); }

.social-section { padding: 32px 20px 26px; text-align: center; background: linear-gradient(180deg, #f7fbff, var(--white)); }
.social-section h2, .contact h2 { margin: 0; color: var(--navy-deep); font-size: clamp(1.45rem, 6vw, 1.85rem); line-height: 1.1; letter-spacing: -.025em; }
.social-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; gap: 5px; max-width: 360px; margin: 18px auto 0; }
.social-grid a, .social-grid span { display: grid; place-items: center; min-width: 58px; min-height: 58px; border-radius: 14px; -webkit-tap-highlight-color: transparent; }
.social-grid img { display: block; width: 100%; height: auto; object-fit: contain; }
.social-grid a:active { filter: brightness(.94); }

.contact { padding: 22px 20px 34px; text-align: center; }
.contact h2 { font-size: 1.25rem; }
.contact a { display: inline-block; margin-top: 10px; color: var(--navy); font-weight: 700; text-underline-offset: 4px; overflow-wrap: anywhere; }

.footer { display: grid; justify-items: center; gap: 12px; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); color: #c8d9ea; background: var(--navy-deep); text-align: center; font-size: .78rem; }
.footer p { margin: 0; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; }
.footer a { color: var(--white); text-underline-offset: 4px; }

@media (max-width: 359px) { .visual-links { padding-inline: 6px; } .social-grid { gap: 0; } }
@media (min-width: 521px) { body { padding: 24px 0; } .bio-page { border-radius: 22px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
