:root {
  --bg: #000000;
  --bg-card: #1a1a1c;
  --bg-card-hover: #242428;
  --fg: #f6f6f6;
  --fg-dim: #b8b8b8;
  --fg-muted: #8a8a8a;
  --fg-faint: #5a5a5a;
  --accent: #e53935;
  --border: #2a2a2e;
  --border-subtle: #1a1a1c;
  --container: 680px;
  --ff-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ff-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { min-height: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

main { flex: 1; padding: 2.5rem 1rem 2rem; }
.wrap { max-width: var(--container); margin: 0 auto; }

/* -------- Profile header -------- */
.profile { text-align: center; margin-bottom: 1.75rem; }
.profile-avatar { width: 112px; height: 112px; border-radius: 50%; overflow: hidden; margin: 0 auto 1rem; background: #111; border: 1px solid var(--border); }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-name { font-size: 1.5rem; font-weight: 700; margin: 0 0 .5rem; letter-spacing: -.01em; }
.profile-bio { font-size: .95rem; color: var(--fg-dim); max-width: 480px; margin: 0 auto 1rem; padding: 0 .5rem; }

/* Top icon row (socials) */
.icon-row { display: flex; justify-content: center; align-items: center; gap: 1.1rem; margin: 1rem 0 .25rem; flex-wrap: wrap; }
.icon-row a { display: inline-flex; width: 26px; height: 26px; color: var(--fg); opacity: .9; transition: opacity .15s ease, transform .15s ease; }
.icon-row a:hover { opacity: 1; transform: translateY(-1px); }
.icon-row svg { width: 100%; height: 100%; fill: currentColor; }

/* -------- Link cards -------- */
.cards { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.5rem; }
.card {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: .6rem 1rem .6rem .6rem;
  min-height: 62px;
  text-align: center;
  transition: background .15s ease, transform .1s ease, border-color .15s ease;
  position: relative;
}
.card:hover { background: var(--bg-card-hover); border-color: var(--border); transform: translateY(-1px); }
.card:active { transform: translateY(0); }
.card-icon { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: #111; display: flex; align-items: center; justify-content: center; }
.card-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-title { flex: 1; text-align: center; font-size: 1rem; font-weight: 600; padding: 0 2rem 0 .5rem; color: var(--fg); }

/* Featured card with embedded media-style image */
.card-featured { border-radius: 20px; padding: 0; overflow: hidden; flex-direction: column; align-items: stretch; min-height: 0; }
.card-featured .featured-art { display: block; width: 100%; height: auto; aspect-ratio: 800 / 512; object-fit: cover; background: #111; }
.card-featured .featured-label { padding: 1rem 1rem; text-align: center; font-size: 1rem; font-weight: 600; color: var(--fg); }
.card-featured:hover { background: var(--bg-card); }
.card-featured:hover .featured-label { background: var(--bg-card-hover); }

/* -------- Legal page layout -------- */
.legal h1 { font-size: 1.85rem; font-weight: 700; margin: 0 0 .5rem; letter-spacing: -.01em; }
.legal .subtitle { color: var(--fg-muted); font-size: .9rem; margin-bottom: 2rem; }
.legal h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--fg-dim); font-weight: 600; margin: 2rem 0 .6rem; }
.legal h3 { font-size: 1rem; font-weight: 600; margin: 1.5rem 0 .5rem; color: var(--fg); }
.legal p { margin: 0 0 .9rem; color: var(--fg-dim); font-size: .96rem; }
.legal ul { margin: .25rem 0 1rem; padding-left: 1.25rem; color: var(--fg-dim); font-size: .96rem; }
.legal ul li { margin-bottom: .35rem; }
.legal strong { color: var(--fg); font-weight: 600; }
.legal a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--fg-faint); }
.legal a:hover { text-decoration-color: var(--fg); }
.legal .notice { padding: .85rem 1rem; border-left: 2px solid var(--accent); background: rgba(229, 57, 53, .06); font-size: .9rem; color: var(--fg-dim); margin: 1.25rem 0; border-radius: 4px; }
.legal .back { display: inline-block; color: var(--fg-muted); font-family: var(--ff-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); padding-bottom: 2px; }
.legal .back:hover { color: var(--fg); border-bottom-color: var(--fg); }
.legal .meta { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border-subtle); font-family: var(--ff-mono); font-size: .78rem; color: var(--fg-faint); }

/* -------- Footer -------- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg);
  padding: 1.75rem 1rem 1.5rem;
  color: var(--fg-muted);
  font-size: .78rem;
  font-family: var(--ff-mono);
}
.site-footer .footer-inner { max-width: var(--container); margin: 0 auto; display: flex; flex-direction: column; gap: .6rem; align-items: center; text-align: center; }
.site-footer .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1rem; }
.site-footer a { color: var(--fg-muted); text-decoration: none; }
.site-footer a:hover { color: var(--fg); }
.site-footer .footer-copyright { color: var(--fg-faint); }
.site-footer .sep { color: var(--fg-faint); opacity: .7; }

@media (max-width: 480px) {
  main { padding: 2rem .75rem 1.5rem; }
  .profile-avatar { width: 96px; height: 96px; }
  .profile-name { font-size: 1.3rem; }
  .card-title { font-size: .95rem; }
}
