/* Neven — Russian language learning | Design system */
:root {
  --ink: #0d1b2a;
  --ink-soft: #1b2838;
  --slate: #415a77;
  --gold: #d4a03c;
  --gold-hover: #e8b84d;
  --cream: #f8f6f2;
  --cream-dark: #ebe6dc;
  --accent: #9e2a2b;
  --accent-soft: #c44545;
  --text: #1a1a1a;
  --muted: #5c6570;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 12px 40px rgba(13, 27, 42, 0.08);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 9999;
  width: auto;
  height: auto;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 246, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(65, 90, 119, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo span { color: var(--gold); }

.nav-main {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}
.nav-main a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-main a:hover { color: var(--accent); }

.lang-switch {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}
.lang-switch a {
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--muted);
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
}
.lang-switch a:hover { color: var(--ink); background: var(--cream-dark); }
.lang-switch a.is-active {
  background: var(--ink);
  color: var(--cream);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, color 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent-soft); color: var(--white); }
.btn-secondary {
  background: var(--ink);
  color: var(--cream);
}
.btn-secondary:hover { background: var(--ink-soft); color: var(--cream); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--cream); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0 1.5rem;
  border-top: 1px solid rgba(65, 90, 119, 0.15);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

@media (max-width: 900px) {
  .nav-main, .header-inner .btn { display: none; }
  .hamburger { display: flex; }
}

/* Hero */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0;
  background: linear-gradient(145deg, var(--ink) 0%, var(--ink-soft) 55%, var(--slate) 100%);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Cpath d='M30 5v50M5 30h50' stroke='%23ffffff' stroke-opacity='.04'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  font-weight: 600;
}
.hero-lead {
  font-size: 1.15rem;
  opacity: 0.88;
  max-width: 32rem;
  margin-bottom: 2rem;
  font-weight: 400;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 160, 60, 0.25);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(8px);
}
.hero-card h3 {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}
.hero-card ul { list-style: none; }
.hero-card li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
  opacity: 0.9;
}
.hero-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* Sections */
.section { padding: clamp(3.5rem, 6vw, 5rem) 0; }
.section-alt { background: var(--white); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.section-lead {
  color: var(--muted);
  max-width: 36rem;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid rgba(65, 90, 119, 0.12);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(13, 27, 42, 0.12);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), #b8892a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.card p { color: var(--muted); font-size: 0.98rem; }

@media (max-width: 800px) {
  .cards-3 { grid-template-columns: 1fr; }
}

/* Split CTA */
.split-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.split-box {
  background: var(--ink);
  color: var(--cream);
  padding: 2.5rem;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.split-box:nth-child(2) {
  background: linear-gradient(135deg, var(--slate), var(--ink-soft));
}
.split-box h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}
.split-box p { opacity: 0.85; margin-bottom: 1.5rem; font-size: 0.98rem; }
.split-box .btn { margin-top: 0.25rem; }

@media (max-width: 700px) {
  .split-cta { grid-template-columns: 1fr; }
}

/* Blog grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.blog-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(65, 90, 119, 0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.blog-card-thumb {
  height: 140px;
  background: linear-gradient(120deg, var(--cream-dark), var(--slate));
  opacity: 0.85;
}
.blog-card-body { padding: 1.25rem 1.5rem 1.5rem; }
.blog-card .tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
}
.blog-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0.5rem 0;
  line-height: 1.35;
}
.blog-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Article */
.article-page { padding: 3rem 0 5rem; }
.article-header { max-width: 720px; margin-bottom: 2rem; }
.article-header .tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 700;
}
.article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  color: var(--ink);
  line-height: 1.2;
  margin: 0.75rem 0 1rem;
}
.article-meta {
  font-size: 0.9rem;
  color: var(--muted);
}
.prose {
  max-width: 720px;
}
.prose h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--ink);
  margin: 2.25rem 0 0.75rem;
}
.prose h3 {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 1.5rem 0 0.5rem;
}
.prose p { margin-bottom: 1.1rem; color: var(--text); }
.prose ul, .prose ol { margin: 0 0 1.25rem 1.5rem; }
.prose li { margin-bottom: 0.5rem; }
.prose strong { color: var(--ink); }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(248, 246, 242, 0.65);
  padding: 3rem 0 2rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer a { color: rgba(248, 246, 242, 0.8); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .logo { color: var(--cream); }
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Gateway (root) */
.gateway {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(160deg, var(--ink) 0%, var(--slate) 100%);
  color: var(--cream);
  text-align: center;
}
.gateway h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.5rem;
}
.gateway > p { opacity: 0.85; margin-bottom: 2.5rem; max-width: 28rem; }
.gateway-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}
.gateway-card {
  display: block;
  width: min(260px, 100%);
  padding: 2rem 1.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 160, 60, 0.3);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--cream);
  transition: transform 0.2s, background 0.2s;
}
.gateway-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
}
.gateway-card .lang-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.gateway-card .lang-sub { font-size: 0.9rem; opacity: 0.75; }
