/* Saffy — saffrilege link page
   Mobile-first, single branded purple theme. HTML + CSS only. */

:root {
  --purple-top: #7b2fd6;
  --purple-bottom: #5d1eae;
  --pink-top: #f273e2;
  --pink-bottom: #de52c6;
  --ink: #2c0a2c;          /* dark text on pink buttons (AA contrast) */
  --white: #ffffff;
  --radius: 14px;
  --maxw: 580px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--purple-top) 0%, var(--purple-bottom) 100%);
  background-attachment: fixed;
  color: var(--white);
  font-family: ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.4;
}

.page {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 20px 56px;
}

/* ---- Profile ---- */
.profile {
  text-align: center;
  margin-bottom: 28px;
}

.avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.15);
}

.name {
  margin: 14px 0 4px;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.tagline {
  margin: 0;
  font-size: 1rem;
  opacity: 0.92;
}

/* ---- Link groups ---- */
.links { margin: 0; }

.group { margin-bottom: 22px; }

.group-title {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0 0 12px;
}

.group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---- Link buttons ---- */
.link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;            /* >= 44px touch target */
  padding: 10px 16px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--pink-top) 0%, var(--pink-bottom) 100%);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(46, 8, 56, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(46, 8, 56, 0.34);
}

.link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.link-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #fff;
}

.link-icon--thumb { overflow: hidden; padding: 0; }
.link-icon--thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.link-label {
  flex: 1 1 auto;
  text-align: center;
  font-size: 1rem;
}

.link-trail {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  opacity: 0.85;
}

/* When there's no icon, keep the label optically centered */
.link > .link-label:first-child { margin-left: 0; }

/* ---- Footer ---- */
.site-footer {
  margin-top: 30px;
  text-align: center;
}

.social {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: background 0.15s ease;
}

.social:hover { background: rgba(255, 255, 255, 0.15); }

.social:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* ---- Respect reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .link, .social { transition: none; }
  .link:hover { transform: none; }
}

/* ---- Narrow screens (down to 320px) ---- */
@media (max-width: 360px) {
  .page { padding: 28px 14px 44px; }
  .link { gap: 10px; padding: 10px 12px; }
  .link-label { font-size: 0.95rem; }
}
