/* ==========================================================================
   Clean Minimalist Mobile-First Link in Bio
   ========================================================================== */

:root {
  --bg-page: #f2f3f5;
  --surface-card: #ffffff;
  --surface-subtle: #f6f7f9;
  --border-hairline: #e6e8ec;
  --border-strong: #d4d8df;
  --ink-primary: #111315;
  --ink-secondary: #5c646c;
  --ink-muted: #868e96;
  --accent-dark: #111315;
  --accent-dark-hover: #272b30;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --shadow-card: 0 2px 10px rgba(17, 19, 21, 0.04);
  --shadow-card-hover: 0 8px 22px rgba(17, 19, 21, 0.08);

  --radius-card: 18px;
  --radius-pill: 9999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg-page);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  line-height: 1.45;
  overflow-x: hidden;
}

.app-canvas {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px calc(36px + env(safe-area-inset-bottom, 0px));
}

.mobile-shell {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ==========================================================================
   Top Profile Card
   ========================================================================== */

.profile-card {
  background-color: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.profile-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--border-hairline);
  background-color: #f3e8da;
  flex-shrink: 0;
}

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

.profile-meta {
  min-width: 0;
  flex: 1 1 auto;
}

.profile-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--ink-primary);
  line-height: 1.2;
  overflow-wrap: break-word;
}

.profile-role {
  margin: 3px 0 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-secondary);
  line-height: 1.3;
  overflow-wrap: break-word;
}

.header-pill-cta {
  flex-shrink: 0;
  min-height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background-color: var(--accent-dark);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.header-pill-cta:hover {
  background-color: var(--accent-dark-hover);
  transform: translateY(-1px);
}

.header-pill-cta:active {
  transform: scale(0.97);
}

.social-strip {
  list-style: none;
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-hairline);
  background-color: var(--surface-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.social-icon-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.social-icon-btn:hover {
  background-color: var(--surface-card);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

/* ==========================================================================
   Sections & Link Cards ("Tautan")
   ========================================================================== */

.content-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-heading {
  margin: 0;
  padding-left: 2px;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink-primary);
}

.link-stack {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 13px 16px;
  background-color: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: var(--ink-primary);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

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

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

.link-card:focus-visible,
.header-pill-cta:focus-visible,
.social-icon-btn:focus-visible {
  outline: 2.5px solid var(--ink-primary);
  outline-offset: 2px;
}

.link-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background-color: var(--surface-subtle);
  border: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.link-card-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.link-card-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.link-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-primary);
  line-height: 1.25;
  overflow-wrap: break-word;
}

.link-card-subtitle {
  margin-top: 2px;
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--ink-secondary);
  line-height: 1.35;
  overflow-wrap: break-word;
}

.link-card-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.65;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.link-card:hover .link-card-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

/* ==========================================================================
   Minimal Footer
   ========================================================================== */

.minimal-footer {
  text-align: center;
  padding: 6px 0 4px;
}

.minimal-footer p {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-muted);
}

@media (max-width: 359px) {
  .app-canvas {
    padding: 16px 12px calc(28px + env(safe-area-inset-bottom, 0px));
  }

  .profile-card {
    padding: 14px;
  }

  .profile-avatar {
    width: 50px;
    height: 50px;
  }

  .header-pill-cta {
    padding: 0 12px;
    font-size: 0.76rem;
  }
}

@media (min-width: 768px) {
  .app-canvas {
    padding-top: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .link-card,
  .header-pill-cta,
  .social-icon-btn {
    transition: none;
  }
}
