/* ============================================================
   syu.run - Global Stylesheet
   ============================================================ */

:root {
  --color-bg: #0d0d0d;
  --color-surface: #1a1a1a;
  --color-border: #2a2a2a;
  --color-accent: #7c6af7;
  --color-accent-hover: #9d8fff;
  --color-text: #e8e8e8;
  --color-text-muted: #888;
  --color-link: #7c6af7;
  --font-sans: 'Inter', 'Noto Sans JP', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 640px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px;
}

/* ── Layout ── */

.container {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ── Profile Section ── */

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

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid var(--color-accent);
  object-fit: cover;
  background-color: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  overflow: hidden;
}

.profile-name {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.profile-handle {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.profile-bio {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 420px;
  line-height: 1.7;
}

/* ── Links Section ── */

.section-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.links-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--color-text);
  transition: border-color 0.15s, background-color 0.15s, transform 0.1s;
}

.link-card:hover {
  border-color: var(--color-accent);
  background-color: #222;
  transform: translateY(-1px);
}

.link-card:active {
  transform: translateY(0);
}

.link-card-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

.link-card-body {
  display: flex;
  flex-direction: column;
}

.link-card-label {
  font-weight: 600;
  font-size: 0.95rem;
}

.link-card-desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* ── Footer ── */

.site-footer {
  margin-top: 16px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-footer a {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer a:hover {
  color: var(--color-accent-hover);
}

/* ── Privacy Policy Page ── */

.page-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 6px 0;
}

.back-link:hover {
  color: var(--color-accent-hover);
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-updated {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.prose {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.prose h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-accent-hover);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 8px;
}

.prose p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.prose ul {
  list-style: disc;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prose ul li {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.prose a {
  color: var(--color-link);
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--color-accent-hover);
}

/* ── Responsive ── */

@media (max-width: 480px) {
  body {
    padding: 32px 16px;
  }

  .profile-name {
    font-size: 1.5rem;
  }

  .prose {
    padding: 20px 18px;
  }
}
