/* ── Design tokens ──────────────────────────────────────────────── */
:root {
  /* Colors */
  --blue-900: #1e3a8a;
  --blue-800: #1e40af;
  --blue-700: #1d4ed8;
  --blue-400: #60a5fa;
  --blue-50:  #eff6ff;

  --navy:      #0f172a;
  --grey-700:  #374151;
  --grey-600:  #4b5563;
  --grey-500:  #6b7280;
  --grey-300:  #d1d5db;
  --grey-200:  #e5e7eb;
  --grey-100:  #f3f4f6;
  --white:     #ffffff;
  --cream:     #f8fafc;

  /* Semantic */
  --text-strong:  var(--navy);
  --text-body:    var(--grey-700);
  --text-muted:   var(--grey-600);
  --text-faint:   var(--grey-500);
  --border-soft:  var(--grey-200);
  --border-strong: var(--grey-700);
  --bg-page:      var(--cream);
  --accent:       var(--blue-800);
  --accent-dark:  var(--blue-900);
  --accent-light: var(--blue-50);

  /* Typography */
  --font: 'Open Sans', system-ui, sans-serif;

  /* Spacing (4px base) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 40px;
  --sp-8: 48px;

  /* Radii */
  --r-sm:   10px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.07);
  --shadow-md: 0 6px 16px rgba(15, 23, 42, 0.09);
  --shadow-card: 0 3px 14px rgba(15, 23, 42, 0.08);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft: cubic-bezier(0.34, 1.12, 0.45, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 320ms;
}

/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { cursor: pointer; font: inherit; border: none; background: none; }

/* ── Base ───────────────────────────────────────────────────────── */
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-strong);
  background: var(--bg-page);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

/* ── Page shell ─────────────────────────────────────────────────── */
.page {
  max-width: 480px;
  margin: 0 auto;
  padding: var(--sp-6) var(--sp-5) 80px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

/* ── Eyebrow label ──────────────────────────────────────────────── */
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: var(--sp-3);
}
.eyebrow.accent { color: var(--accent); }

/* ── Profile header ─────────────────────────────────────────────── */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  padding-top: var(--sp-4);
  text-align: center;
}

.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 2.5px solid var(--navy);
  overflow: hidden;
  flex-shrink: 0;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}

.profile-name span { color: var(--accent); }

.profile-tagline {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}

.profile-handle {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.03em;
}

/* ── Instagram embed section ────────────────────────────────────── */
.embed-section .instagram-media {
  min-width: unset !important;
  width: 100% !important;
  border-radius: var(--r-xl) !important;
}

/* ── Social buttons ─────────────────────────────────────────────── */
.socials-row {
  display: flex;
  gap: var(--sp-3);
}

.social-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-2);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  text-decoration: none;
  color: var(--text-body);
  transition:
    transform var(--dur-base) var(--ease-soft),
    box-shadow var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.social-btn:active { transform: scale(0.96); }

.social-btn-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-btn-icon.ig { background: #fce4ec; }
.social-btn-icon.tt { background: #e8f5e9; }
.social-btn-icon.yt { background: #fff3e0; }

.social-btn-label {
  font-size: 12px;
  font-weight: 600;
}

/* ── Links grid ─────────────────────────────────────────────────── */
.links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  background: var(--white);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xs);
  text-decoration: none;
  color: var(--text-strong);
  min-height: 120px;
  transition:
    transform var(--dur-base) var(--ease-soft),
    box-shadow var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}

.link-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.link-card:active { transform: scale(0.97); }

.link-card.span-full {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  min-height: auto;
  gap: var(--sp-4);
}

.link-card.accent-navy {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.link-card.accent-blue {
  background: var(--blue-700);
  border-color: var(--blue-700);
  color: var(--white);
}

.link-card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.link-card-icon.bg-blue  { background: var(--blue-50); }
.link-card-icon.bg-grey  { background: var(--grey-100); }
.link-card-icon.bg-white { background: rgba(255, 255, 255, 0.18); }

.link-card-body { flex: 1; }

.link-card-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.55;
  margin-bottom: 4px;
}

.link-card-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}

.link-card-arrow {
  margin-left: auto;
  opacity: 0.4;
  flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}

.link-card:hover .link-card-arrow {
  transform: translateX(3px);
  opacity: 0.75;
}

/* ── Divider ────────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border-soft);
}

/* ── Footer ─────────────────────────────────────────────────────── */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  padding-bottom: var(--sp-4);
  text-align: center;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}
