/* index.html — card layout, blobs, profile, link cards, footer, cookie banner.
   Tokens from /docs/DESIGN-SYSTEM.md — add new tokens to tokens.css, not here. */

html,
body {
  overflow-x: hidden;
}

/* --- Page background: blobs live on bg-inner and fill the whole page,
   at every breakpoint (matches the source Claude Design file exactly —
   there is no separate "outer" canvas behind a boxed white card). --- */

.page-bg {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--bg-inner);
}

.blob {
  position: absolute;
  border-radius: 50%;
  animation-name: csDrift;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  pointer-events: none;
}

.blob--1 { width: 340px; height: 340px; background: var(--blob-blue);      top: -100px; left: -80px;   filter: blur(60px); opacity: .9;  animation-duration: 22s; animation-delay: 0s; }
.blob--2 { width: 300px; height: 300px; background: var(--blob-pink);      top: 220px;  right: -110px; filter: blur(60px); opacity: .85; animation-duration: 28s; animation-delay: -6s; }
.blob--3 { width: 320px; height: 320px; background: var(--blob-lightblue); bottom: -120px; left: -70px; filter: blur(60px); opacity: .8;  animation-duration: 30s; animation-delay: -12s; }
.blob--4 { width: 220px; height: 220px; background: var(--blob-white);     top: 520px;  left: 110px;   filter: blur(70px); opacity: .6;  animation-duration: 24s; animation-delay: -3s; }

@keyframes csDrift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
}

/* --- Content column: transparent, sits directly over the blob
   background. Only the column narrows on desktop — the background
   itself always stays full-bleed. --- */

.content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: calc(48px + env(safe-area-inset-top)) 20px 48px;
}

@media (min-width: 601px) {
  .content {
    max-width: 480px;
    margin: 0 auto;
  }
}

/* --- Glass icon buttons (Section 5) --- */

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-circle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text-heading);
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}

.icon-btn:hover {
  background: var(--glass-bg-hover);
  transform: translateY(-1px);
}

.icon-btn:active {
  transform: scale(.94);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

/* --- Brand-colored social icon borders (Pattern B — see
   docs/CONTENT-PATTERNS.md: every social platform button gets a ring
   in that platform's own brand gradient/color, the icon glyph itself
   stays black/white). The ring is a separate ::before layer behind an
   OPAQUE white fill — not the glass/backdrop-filter treatment used
   elsewhere — so the brand color can never bleed into the fill or the
   icon on any browser (a translucent glass fill over a colored ::before
   would tint the whole circle, not just the edge). --- */

.icon-btn--instagram {
  position: relative;
  background: #FFFFFF;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: #000000;
}

.icon-btn--instagram::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-circle);
  background: linear-gradient(45deg, #FEDA75, #FA7E1E, #D62976, #962FBF, #4F5BD5);
  z-index: -1;
}

.icon-btn--instagram:hover {
  background: #FFFFFF;
}

/* --- Profile --- */

.profile {
  text-align: center;
  padding-bottom: 24px;
}

.avatar {
  width: 104px;
  height: 104px;
  padding: 5px;
  margin: 0 auto 14px;
  border-radius: var(--radius-circle);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-avatar);
}

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-circle);
  object-fit: cover;
}

/* --- Profile photo copy deterrent (standing rule since 2026-08-31): a small
   hurdle only, not real protection — CSS/JS can't stop a screenshot or
   devtools. Right-click "save image", drag-out, and iOS long-press "Save
   to Photos" are all blocked; see js/app.js for the contextmenu handler
   this pairs with. The real protection is the watermark burned into the
   pixels of avatar.webp itself. --- */

.avatar__img {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 25px;
  letter-spacing: -0.02em;
  color: var(--text-heading);
  margin: 0 0 4px;
}

.handle {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.bio {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-body);
  max-width: 300px;
  margin: 0 auto 18px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* --- Link list (Section 7) --- */

.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.link-card {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, var(--link-gradient-start), var(--link-gradient-end));
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: var(--shadow-card);
  color: #FFFFFF;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: var(--shadow-card-hover);
  color: #FFFFFF;
}

.link-card__icon {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-circle);
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-card__icon svg {
  width: 20px;
  height: 20px;
}

.link-card__text {
  min-width: 0;
}

.link-card__title {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-card__subtitle {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.85);
}

.link-card__trailing {
  display: flex;
  align-items: center;
}

.link-card__arrow {
  width: 18px;
  height: 18px;
}

.badge-new {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #FFFFFF;
  color: var(--link-gradient-end);
  border-radius: 999px;
  padding: 2px 6px;
  line-height: 1.4;
  box-shadow: 0 2px 6px rgba(30, 42, 74, 0.3);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.links-empty {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  padding: 16px;
  border: 1px dashed var(--glass-border);
  border-radius: var(--radius-card);
}

/* --- Footer --- */

.site-footer {
  text-align: center;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(30, 42, 74, 0.1);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  color: var(--text-muted);
}

.legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 14px;
}

.legal-links .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}

.site-footer p {
  margin: 0 0 6px;
}

.legal-links a {
  color: var(--text-muted);
  text-decoration: underline;
}

/* --- Desktop notice (standing rule since 2026-08-31): this is a mobile
   link-in-bio page, not meant to be browsed as a wide desktop window.
   Pure CSS, no JS — a media-query gate, not a device check, so shrinking
   the browser window (or opening the page on an actual phone, which is
   already narrower than the breakpoint) reveals the real content
   immediately. This is a UX nudge, not access control. --- */

.desktop-notice {
  display: none;
}

@media (min-width: 900px) {
  .desktop-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    z-index: 50;
    padding: 24px;
    background: var(--bg-inner);
  }

  /* Real content still exists in the DOM underneath (no content-behind-JS
     dependency, no SEO/no-JS regression) — it's just visually covered. */
  .page-bg {
    display: none;
  }
}

.desktop-notice__card {
  max-width: 340px;
  text-align: center;
  padding: 32px 28px;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, var(--link-gradient-start), var(--link-gradient-end));
  color: #FFFFFF;
  box-shadow: var(--shadow-card);
}

.desktop-notice__icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 16px;
}

.desktop-notice__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.desktop-notice__text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* --- Cookie banner placeholder (non-blocking; see SECURITY.md Domain H) --- */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: var(--glass-bg-hover);
  border-top: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-body);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__dismiss {
  flex-shrink: 0;
  background: var(--text-heading);
  color: #FFFFFF;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
