/* Colors come from "theme" in site.config.json (injected as CSS variables). */

@font-face { font-family: "Outfit"; font-weight: 400; font-display: swap; src: url("/fonts/outfit-400.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 500; font-display: swap; src: url("/fonts/outfit-500.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 600; font-display: swap; src: url("/fonts/outfit-600.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 700; font-display: swap; src: url("/fonts/outfit-700.woff2") format("woff2"); }

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(48px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
}
.page--center { justify-content: center; }

/* ---------- layout: one column on phones, two on wide screens ---------- */

.layout {
  width: 100%;
  max-width: 440px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

@media (min-width: 900px) {
  .page { padding-top: 72px; }
  .layout {
    max-width: 960px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 64px;
  }
  .profile { flex: 1 1 320px; }
  .links { flex: 1 1 420px; max-width: 480px; }
  .profile__photo { width: 200px; height: 200px; border-width: 3px; }
  .profile__name { font-size: 44px; }
  .profile__bio { font-size: 17px; }
}

/* ---------- profile ---------- */

.profile { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }

.profile__photo {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  background: var(--surface);
}

.profile__name { margin: 4px 0 0; font-size: 28px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; }
.profile__bio { margin: 0; max-width: 320px; font-size: 15px; color: var(--muted); }

.socials { list-style: none; margin: 4px 0 0; padding: 0; display: flex; gap: 10px; }
.social {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, transform 0.15s;
}
.social:hover { border-color: var(--accent); transform: translateY(-1px); }

/* ---------- links ---------- */

.links { width: 100%; display: flex; flex-direction: column; gap: 12px; }

.link {
  min-height: 56px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  font-size: 16px;
  font-weight: 500;
  transition: border-color 0.15s, transform 0.15s;
}
.link:hover { border-color: var(--accent); transform: translateY(-1px); }
.link__text { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.link__sub { font-size: 13px; opacity: 0.8; }
.link__end { color: var(--muted); display: flex; }

.link--featured {
  min-height: 72px;
  border: 0;
  border-radius: 18px;
  background: var(--accent);
  color: var(--accent-text);
}
.link--featured:hover { filter: brightness(1.05); }
.link--featured .link__label { font-size: 17px; font-weight: 600; }
.link__icon { display: flex; }

.badge {
  font-size: 12px;
  font-weight: 700;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  padding: 2px 8px;
}

/* ---------- footer ---------- */

.footer { margin-top: 40px; text-align: center; font-size: 13px; color: var(--muted); }
.footer__note { margin: 0 auto 16px; max-width: 320px; }
.footer__meta { margin: 0; display: flex; gap: 12px; justify-content: center; font-size: 12px; }
.footer a { color: var(--muted); }

/* ---------- age check ---------- */

.gate {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  max-width: 100vw;
  width: 100%;
  margin: auto auto 0; /* phone: bottom sheet */
}
.gate::backdrop { background: rgba(10, 8, 12, 0.8); }

.gate__panel {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-radius: 24px 24px 0 0;
  padding: 28px 24px max(32px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.gate__panel h1, .gate__panel h2 { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.25; }
.gate__panel p { margin: 0; font-size: 15px; color: #C9C1CB; }

.gate__panel--page {
  width: 100%;
  max-width: 440px;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
}

.gate__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gate__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }

.btn {
  min-height: 50px;
  border-radius: 14px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  cursor: pointer;
}
.btn--primary { background: var(--accent); color: var(--accent-text); border: 0; }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--border); font-weight: 500; }
.btn--ghost:hover { border-color: var(--muted); }

@media (min-width: 600px) {
  .gate { width: calc(100% - 48px); max-width: 440px; margin: auto; }
  .gate__panel { border: 1px solid var(--border); border-radius: 24px; padding: 32px; }
}

/* ---------- privacy page ---------- */

.prose { width: 100%; max-width: 640px; flex: 1; font-size: 16px; }
.prose h1 { font-size: 32px; margin: 16px 0; }
.prose p { color: #D9D2DB; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
