:root {
  --background: #ffffff;
  --foreground: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --card: #f8fafc;
  --secondary: #f3f4f6;
  --primary: #2563eb;
  --primary-foreground: #ffffff;
  --max-width: 1120px;
  --article-width: 840px;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
}

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

.container {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.article-container {
  width: min(calc(100% - 32px), var(--article-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dbeafe;
  color: var(--primary);
  font-size: 18px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover,
.footer-nav a:hover,
.contact a:hover,
.back-link:hover,
.inline-link:hover {
  color: var(--foreground);
}

.hero,
.section,
.article-page {
  padding: 72px 0;
}

.hero {
  padding-top: 88px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.cta h2,
.article h1 {
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero h1 {
  font-size: clamp(40px, 8vw, 76px);
  max-width: 900px;
}

.hero .accent,
.cta .accent {
  color: var(--primary);
}

.hero p,
.section-intro,
.cta p {
  max-width: 720px;
  color: var(--muted);
  font-size: 20px;
  margin: 24px 0 0;
}

.surface {
  background: var(--card);
}

.section h2,
.cta h2 {
  font-size: clamp(32px, 5vw, 52px);
}

.feature-grid,
.genre-grid {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.genre-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.card,
.genre-pill {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.75);
}

.card {
  padding: 24px;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dbeafe;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 16px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.genre-pill {
  padding: 18px 20px;
  text-align: center;
  font-weight: 600;
}

.cta {
  text-align: center;
}

.cta p {
  margin-left: auto;
  margin-right: auto;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.footer-nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  color: var(--muted);
  font-size: 14px;
}

.back-link,
.footer-link {
  color: var(--muted);
  font-size: 14px;
}

.article-page {
  min-height: 100vh;
}

.article {
  max-width: none;
}

.article h1 {
  font-size: 48px;
  margin-bottom: 8px;
}

.article h2 {
  margin: 0 0 16px;
  font-size: 26px;
  line-height: 1.25;
}

.article h3 {
  margin: 20px 0 12px;
  font-size: 21px;
}

.article p,
.article li {
  color: rgba(17, 24, 39, 0.9);
}

.article section {
  margin-top: 40px;
}

.article ul {
  padding-left: 24px;
}

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

.article-footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.inline-link {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .genre-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0;
  }

  .contact {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hero,
  .section,
  .article-page {
    padding: 56px 0;
  }

  .feature-grid,
  .genre-grid {
    grid-template-columns: 1fr;
  }

  .hero p,
  .section-intro,
  .cta p {
    font-size: 18px;
  }

  .nav,
  .footer-nav {
    flex-wrap: wrap;
    gap: 12px 16px;
  }
}
