/* 3 Patti Union - Mobile-First, Fast, SEO-Friendly */
:root {
  --bg: #0d1117;
  --surface: #161b22;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #58a6ff;
  --accent2: #3fb950;
  --gold: #d4a853;
  --border: #30363d;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--gold);
}

.logo a {
  color: inherit;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.nav a {
  color: var(--muted);
  font-size: 0.9rem;
}

.nav a:hover {
  color: var(--text);
}

/* Hero / CTA */
.hero {
  padding: 1.5rem 0;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.5rem, 5vw, 2rem);
  margin-bottom: 0.5rem;
  color: var(--text);
}

.hero p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.btn-download {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent2), #2ea043);
  color: #fff !important;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none !important;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(63, 185, 80, 0.4);
  text-decoration: none;
}

/* Content */
main {
  padding: 1rem 0 2rem;
}

.content-area h1 {
  font-size: 1.75rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--text);
}

.content-area h2 {
  font-size: 1.35rem;
  margin: 1.25rem 0 0.5rem;
  color: var(--text);
}

.content-area h3 {
  font-size: 1.15rem;
  margin: 1rem 0 0.5rem;
}

.content-area p {
  margin-bottom: 1rem;
}

.content-area ul, .content-area ol {
  margin: 0 0 1rem 1.25rem;
}

.content-area li {
  margin-bottom: 0.35rem;
}

.figure-wrap {
  margin: 1.25rem 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.figure-wrap img {
  width: 100%;
}

.figcaption {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--surface);
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  margin-top: 2rem;
}

.site-footer .container {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
}

.site-footer nav {
  margin-top: 0.5rem;
}

.site-footer nav a {
  margin: 0 0.5rem;
}

/* Article list / cards */
.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-list li {
  margin: 0 0 0.75rem;
  padding: 0;
}

.article-list a {
  display: block;
  padding: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
}

.article-list a:hover {
  border-color: var(--accent);
  text-decoration: none;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--muted);
}

/* Skip link for a11y/SEO */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0.5rem;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem;
  z-index: 999;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0.5rem;
}

/* Print */
@media print {
  .site-header, .btn-download, .site-footer nav { display: none; }
  body { background: #fff; color: #111; }
  a { color: #00f; }
}

@media (min-width: 640px) {
  .container { padding: 0 1.25rem; }
  .hero { padding: 2rem 0; }
  .content-area h1 { font-size: 2rem; }
  .content-area h2 { font-size: 1.5rem; }
}
