/* ================================
   Theme variables
================================ */
:root{
  --bg: #0b0b10;
  --card: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.12);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.68);

  --primary: #ff4fd8;
  --primary-2: #7c4dff;

  --radius: 22px;
  --shadow: 0 20px 60px rgba(0,0,0,0.45);
}

/* ================================
   Reset / base
================================ */
*{
  box-sizing:border-box;
}

html, body{
  height:100%;
}

body{
  margin:0;
  color:var(--text);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji";

  font-size: clamp(15px, 1.6vw, 16.5px);
  line-height: 1.6;

  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(255,79,216,0.25), transparent 60%),
    radial-gradient(1000px 600px at 80% 0%, rgba(124,77,255,0.22), transparent 55%),
    var(--bg);
}

/* ================================
   Page layout
================================ */
.page{
  min-height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 24px;
  padding-top: max(24px, env(safe-area-inset-top));
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}

.card{
  width: min(520px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  backdrop-filter: blur(10px);
}

/* ================================
   Header / hero
================================ */
.header{
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 12px;
}

.avatar{
  width: 140px;
  height: 140px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.title{
  margin: 6px 0 0;
  font-size: clamp(22px, 3.2vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.tagline{
  margin: 0;
  color: var(--muted);
  font-size: 0.98em;
  max-width: 42ch;
}

/* ================================
   Links / buttons
================================ */
.links{
  margin-top: 18px;
  display:flex;
  flex-direction:column;
  gap: 12px;
}

.btn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;

  text-decoration:none;
  color: var(--text);

  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);

  transition:
    transform 120ms ease,
    background 120ms ease,
    box-shadow 120ms ease;
}

.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.btn:active{
  transform: translateY(0);
}

.btn:focus-visible{
  outline: 3px solid rgba(255,79,216,0.45);
  outline-offset: 2px;
}

/* Primary CTA */
.btn.primary{
  border-color: rgba(255,79,216,0.35);
  background: linear-gradient(
    135deg,
    rgba(255,79,216,0.30),
    rgba(124,77,255,0.22)
  );
}

/* Link icon */
.btn .icon{
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 auto;
}

/* Link text */
.btn .label{
  flex:1;
  text-align:center;
}

/* Optisk centrering när ikon finns */
.btn:has(.icon) .label{
  padding-right: 28px;
}

/* ================================
   About Me (always visible)
================================ */
.bio{
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  text-align: left;
}

.bio-title{
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.bio-text{
  margin: 0;
  color: var(--text);
  opacity: 0.95;
  line-height: 1.6;
}

/* ================================
   Footer
================================ */
.footer{
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  text-align:center;
}

.muted{
  color: var(--muted);
}
