@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@300;400;600;700&family=DM+Serif+Display&display=swap');

:root {
  --bg: #eef2f6;
  --surface: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: rgba(15, 23, 42, 0.12);
  --btn: #0f172a;
  --btn-hover: #1e293b;
  --accent: #0ea5e9;
  --accent-soft: rgba(14, 165, 233, 0.12);
  --shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  --font-sans: 'Bricolage Grotesque', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-serif: 'DM Serif Display', 'Times New Roman', serif;
}

[data-theme="dark"] {
  --bg: #0f172a;
  --surface: #1e293b;
  --card: #1e293b;
  --text: #f8fafc;
  --muted: #94a3b8;
  --border: rgba(248, 250, 252, 0.12);
  --btn: #f8fafc;
  --btn-hover: #e2e8f0;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.15);
  --shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .btn {
  color: #0f172a;
}

[data-theme="dark"] .logo-flag {
  background: #f8fafc;
}

[data-theme="dark"] html, 
[data-theme="dark"] body {
  background:
    radial-gradient(1200px 700px at 15% 0%, rgba(56, 189, 248, 0.08), transparent 60%),
    radial-gradient(900px 600px at 95% 10%, rgba(14, 165, 233, 0.08), transparent 55%),
    var(--bg);
}

[data-theme="dark"] .header {
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.85), rgba(30, 41, 59, 0.6));
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(1200px 700px at 15% 0%, rgba(186, 230, 253, 0.35), transparent 60%),
    radial-gradient(900px 600px at 95% 10%, rgba(125, 211, 252, 0.25), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.45;
}

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

.brand {
  display: flex; /* Aligns children in a row */
  gap: 30px;    /* Optional: adds space between children */
}


.header {
  padding: 28px 0 22px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.85), rgba(240, 244, 248, 0.6));
  backdrop-filter: blur(6px);
}

.header-hero {
  padding: 40px 0 28px;
}

.title {
  margin: 8px 0 10px;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 700;
  font-family: var(--font-serif);
  letter-spacing: 0.3px;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 620px;
}

.kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;
}

.logo-flag {
  width: 140px;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--card);
}

.hero-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.footer {
  padding: 22px 0;
  color: var(--muted);
}

.card {
  margin: 18px 0;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.section-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.row-between { justify-content: space-between; }
.row-center { justify-content: center; }

.status {
  margin: 12px 0;
  min-height: 20px;
  color: var(--muted);
}

.btn {
  border: none;
  background: var(--btn);
  color: #fffaf2;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.btn:hover { background: var(--btn-hover); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dashed rgba(28, 27, 25, 0.35);
}

.link:hover { border-bottom-style: solid; }

.pill {
  font-size: 12px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: var(--accent-soft);
  font-weight: 600;
}

.feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.feed-item {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.feed-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.feed-item a {
  color: var(--text);
  text-decoration: none;
}

.feed-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
}

.feed-summary {
  margin: 0;
  color: var(--muted);
}

.summary {
  margin: 0 0 14px;
  color: var(--muted);
}

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

.content h2, .content h3 {
  margin: 18px 0 10px;
}

.content p {
  margin: 10px 0;
}

.content pre {
  background: rgba(28, 27, 25, 0.08);
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 12px;
  overflow: auto;
}

.content ul {
  margin: 10px 0;
  padding-left: 22px;
}

@media (max-width: 520px) {
  .brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo-flag {
    width: 84px;
  }
}
