:root {
  color-scheme: light;
  --cobalt: #1746c8;
  --cobalt-dark: #10369d;
  --ink: #15203b;
  --muted: #65708a;
  --line: #dce2ee;
  --surface: #ffffff;
  --canvas: #f7f8fc;
  --soft-blue: #edf2ff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--canvas); }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 50% 0%, rgba(23, 70, 200, .055), transparent 36rem),
    var(--canvas);
  color: var(--ink);
}

button, a { -webkit-tap-highlight-color: transparent; }

.page-shell {
  width: 100%;
  min-height: 100vh;
  padding: 44px 20px 72px;
}

/* Intentionally stays phone-width on large screens. */
.profile {
  position: relative;
  width: min(100%, 430px);
  margin: 0 auto;
}

.language-toggle {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(26, 42, 78, .04);
}

.language-toggle:hover { border-color: #b9c5dc; }
.language-toggle:focus-visible, .link-card:focus-visible {
  outline: 3px solid rgba(23, 70, 200, .25);
  outline-offset: 3px;
}

.flag { font-size: 15px; line-height: 1; }

.profile-mark {
  display: block;
  width: 66px;
  height: 66px;
  margin: 0 auto 14px;
  object-fit: contain;
}

h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(28px, 8vw, 34px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.tagline {
  max-width: 330px;
  margin: 10px auto 28px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
}

.link-group { margin-top: 29px; }

h2 {
  margin: 0 0 9px 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.link-list {
  display: grid;
  gap: 10px;
}

.link-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 24px;
  align-items: center;
  min-height: 68px;
  padding: 9px 13px 9px 9px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 5px 18px rgba(27, 43, 79, .045);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: #bcc8df;
  box-shadow: 0 9px 24px rgba(27, 43, 79, .08);
}

.link-card.featured {
  border-color: var(--cobalt);
  background: var(--cobalt);
  color: #fff;
}

.link-card.featured:hover {
  border-color: var(--cobalt-dark);
  background: var(--cobalt-dark);
}

.link-card.highlighted { border-color: #c7d4f7; }

.icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--soft-blue);
  color: var(--cobalt);
  font-size: 14px;
  font-weight: 850;
}

.icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.icon.photo-icon img { object-fit: cover; }

.icon.brand-dark { background: var(--cobalt-dark); }
.icon.brand-dark img { transform: scale(.82); }

.icon.logo-light {
  background:
    linear-gradient(#f7f8fb, #f7f8fb) padding-box;
}
.icon.logo-light img { transform: scale(.83); }

.linkedin {
  background: #0a66c2;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 22px;
  letter-spacing: -.08em;
}

.text-icon, .mail-icon {
  background: var(--soft-blue);
  color: var(--cobalt);
}

.mail-icon { font-size: 23px; }

.link-copy {
  min-width: 0;
  padding: 0 11px;
}

.link-copy strong,
.link-copy small {
  display: block;
}

.link-copy strong {
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 760;
}

.link-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.featured .link-copy small { color: rgba(255,255,255,.76); }

.arrow {
  justify-self: end;
  color: #8190ab;
  font-size: 18px;
  line-height: 1;
}

.featured .arrow { color: #fff; }
.download { font-size: 20px; }

footer {
  padding-top: 30px;
  color: #98a1b4;
  text-align: center;
  font-size: 11px;
  letter-spacing: .04em;
}

@media (min-width: 900px) {
  .page-shell {
    /* Desktop deliberately preserves the mobile composition with empty space around it. */
    padding-top: 72px;
    padding-bottom: 100px;
  }
}

@media (max-width: 420px) {
  .page-shell { padding: 32px 14px 56px; }
  .profile-mark { width: 60px; height: 60px; }
  .language-toggle { top: 1px; }
}

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