:root {
  --primary: #E25822;
  --secondary: #8B4513;
  --bg: #1a1a1a;
  --bg-end: #2d1810;
  --text: #f5f0eb;
  --card-bg: #2a1f1a;
  --accent: #FF6B35;
  --card-border: rgba(226, 88, 34, 0.2);
  --card-hover-border: rgba(226, 88, 34, 0.6);
  --muted: rgba(245, 240, 235, 0.55);
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  background-image: linear-gradient(160deg, var(--bg) 0%, var(--bg-end) 100%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

body.bg-solid { background-image: none; }
body.bg-pattern {
  background-image:
    radial-gradient(circle at 20% 50%, rgba(226, 88, 34, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139, 69, 19, 0.06) 0%, transparent 50%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg-end) 100%);
}

/* ── Layout ────────────────────────────────────────────────────────────────── */

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* ── Header ────────────────────────────────────────────────────────────────── */

.site-header {
  text-align: center;
  padding: 48px 20px 36px;
}

.site-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  margin-bottom: 16px;
  box-shadow: 0 0 30px rgba(226, 88, 34, 0.35);
}

.site-logo-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 40px;
  box-shadow: 0 0 30px rgba(226, 88, 34, 0.35);
}

.site-title {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-tagline {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 6px;
}

/* ── Sections ──────────────────────────────────────────────────────────────── */

.section {
  margin-bottom: 36px;
}

.section-header {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(226, 88, 34, 0.25);
}

.section-title {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
}

.section-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ── Link Cards ────────────────────────────────────────────────────────────── */

.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: var(--shadow);
}

.link-card:hover {
  border-color: var(--card-hover-border);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(226, 88, 34, 0.2);
  text-decoration: none;
  color: var(--text);
}

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

.link-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.link-thumb-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(226, 88, 34, 0.2), rgba(139, 69, 19, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 24px;
  color: var(--muted);
}

.link-info {
  flex: 1;
  min-width: 0;
}

.link-title {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-desc {
  font-size: 0.8rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.link-arrow {
  color: var(--primary);
  flex-shrink: 0;
  font-size: 18px;
  transition: transform 0.2s;
}

.link-card:hover .link-arrow { transform: translateX(4px); }

/* ── Footer ────────────────────────────────────────────────────────────────── */

.site-footer {
  text-align: center;
  padding: 30px 20px;
  color: var(--muted);
  font-size: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 20px;
}

/* ── Loading skeleton ──────────────────────────────────────────────────────── */

.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  height: 92px;
  border-radius: var(--radius);
  margin-bottom: 10px;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
  .site-header { padding: 36px 16px 28px; }
  .link-thumb, .link-thumb-placeholder { width: 52px; height: 52px; }
  .site-title { font-size: 1.6rem; }
}
