﻿:root {
  --bg: #0f0f0f;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.75);
  --accent: #ef4444;
  --accent-hover: #dc2626;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(circle at top right, #1c1c1c 0%, var(--bg) 42%);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
}

a {
  color: #ef4444;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  color: #f87171;
}

.site-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
  padding-top: 80px;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  height: 64px;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #fff;
}

.logo-box {
  width: 32px;
  height: 32px;
  background: #dc2626;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-box svg {
  width: 20px;
  height: 20px;
  color: white;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 16px;
}

#auth-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.navlinks a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.navlinks a:hover,
.navlinks a:focus-visible {
  color: #fff;
}

.nav-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.1);
}

.cta-link {
  background: #fff !important;
  color: #000 !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  transition: background 0.15s ease, transform 0.15s ease;
}

.cta-link:hover,
.cta-link:focus-visible {
  background: #f3f4f6 !important;
  color: #000 !important;
  transform: scale(1.05);
}

.brand-text {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.hero {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.12), rgba(255, 255, 255, 0.03));
  padding: 28px;
  border-radius: 22px;
  margin-bottom: 28px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 16px;
  padding: 20px;
}

.card h2,
.card h3 {
  margin-top: 0;
  line-height: 1.25;
}

.card h2 a,
.card h3 a {
  color: var(--text);
  text-decoration: none;
}

.card h2 a:hover,
.card h2 a:focus-visible,
.card h3 a:hover,
.card h3 a:focus-visible {
  color: #f3f4f6;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.55);
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 12px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.button:hover,
.button:focus-visible {
  background: var(--accent-hover);
  color: #fff;
}

.article {
  max-width: 760px;
  margin: 0 auto;
}

.article h2 {
  margin-top: 40px;
  margin-bottom: 10px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.25;
}

.article h3 {
  margin-top: 26px;
  margin-bottom: 10px;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.article p,
.article li {
  color: #f0f0f0;
}

.article ul,
.article ol {
  padding-left: 20px;
}

.note,
.answer-box,
.cta-box {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: var(--surface);
}

.answer-box {
  border-left: 3px solid var(--accent);
}

.cta-box {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.1), rgba(255, 255, 255, 0.03));
}

small,
.byline,
.footer {
  color: var(--muted);
}

footer.footer {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 720px) {
  .site-wrap { padding: 16px; padding-top: 80px; }
  .hero { padding: 18px; }
  .card { padding: 16px; }
  .topbar-inner { padding: 0 16px; }
  .logo-box { width: 28px; height: 28px; }
  .logo-box svg { width: 16px; height: 16px; }
  .brand-text { font-size: 1.05rem; }
}
