/* MK Studio Lab — link-in-bio hub
   Palette: off-white page, ink text, teal #0E5A60 accent.
   Mobile-first; desktop is a centered ~520px column. */

:root {
  --teal: #0E5A60;
  --teal-hover: #0A474C;
  --teal-soft: #E7F1F2;
  --ink: #152224;
  --muted: #4A5A5C;
  --page: #F6F8F8;
  --card: #FFFFFF;
  --line: #D5E0E1;
  --focus: #0E5A60;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(14, 90, 96, 0.06), 0 8px 24px rgba(14, 90, 96, 0.06);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background:
    radial-gradient(1200px 480px at 50% -80px, rgba(14, 90, 96, 0.07), transparent 60%),
    var(--page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.header {
  text-align: center;
  margin-bottom: 2.25rem;
}

.logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.logo svg {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(14, 90, 96, 0.22);
}

h1 {
  margin: 0 0 0.4rem;
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.2;
}

.tagline {
  margin: 0;
  font-size: 0.98rem;
  color: var(--muted);
  letter-spacing: 0.01em;
  max-width: none;
  text-wrap: pretty;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.link-btn {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 64px;
  padding: 0.85rem 1.15rem;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.link-btn:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(14, 90, 96, 0.22);
  transform: translateY(-1px);
}

.link-btn:active {
  transform: translateY(0);
  background: var(--teal-hover);
  border-color: var(--teal-hover);
}

.link-btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal);
  transition: background-color 160ms ease, color 160ms ease;
}

.link-btn:hover .icon,
.link-btn:active .icon,
.link-btn:focus-visible .icon {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.icon svg {
  display: block;
}

.label {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.name {
  font-weight: 650;
  font-size: 1.02rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.handle {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.3;
  transition: color 160ms ease;
}

.link-btn:hover .handle,
.link-btn:active .handle,
.link-btn:focus-visible .handle {
  color: rgba(255, 255, 255, 0.85);
}

.footer {
  margin-top: auto;
  padding-top: 2.5rem;
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

@media (min-width: 560px) {
  .page {
    padding: 4.5rem 1.75rem 3rem;
  }

  h1 {
    font-size: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .link-btn,
  .icon,
  .handle {
    transition: none;
  }

  .link-btn:hover {
    transform: none;
  }
}
