@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

/* ─── Reset & Base ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0d0d0d;
  --bg-card: #141414;
  --bg-card-hover: #1a1a1a;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --text-primary: #ffffff;
  --text-secondary: #aaaaaa;
  --text-muted: #666666;
  --accent-red: #e60000;
  --accent-blue: #0077cc;
  --accent-gold: #cc8800;
  --accent-green: #00cc88;
  --accent-purple: #8844cc;

  /* category colors */
  --cat-competition-results: var(--accent-red);
  --cat-technique: var(--accent-blue);
  --cat-community: var(--accent-gold);
  --cat-gym-culture: var(--accent-green);
  --cat-athlete-news: var(--accent-purple);
  --cat-rule-changes: #cc4400;
  --cat-event-preview: #0099aa;

  --font-headline: 'Oswald', Impact, 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 4px;
  --radius-lg: 8px;
  --max-content: 1200px;
  --max-article: 700px;
}

html {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* ─── Layout Utilities ─── */
.container {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── Article Body ─── */
.article-body {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-primary);
  max-width: var(--max-article);
}

.article-body p {
  margin-bottom: 1.4em;
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

.article-body em {
  color: var(--text-secondary);
  font-style: italic;
}

.article-body a {
  color: var(--accent-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body a:hover {
  color: #ff3333;
}

.article-body blockquote {
  border-left: 3px solid var(--accent-red);
  padding: 0.5em 1em;
  margin: 1.5em 0;
  color: var(--text-secondary);
  font-style: italic;
}

/* ─── Smooth transitions ─── */
a, button {
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* ─── Selection ─── */
::selection {
  background: var(--accent-red);
  color: #fff;
}

/* ─── Mobile ─── */
@media (max-width: 768px) {
  :root {
    font-size: 15px;
  }

  .container {
    padding: 0 16px;
  }

  .article-body {
    font-size: 17px;
  }
}
