﻿
@import url("https://fonts.googleapis.com/css2?family=Exo+2:wght@400;500;600;700&family=Roboto+Condensed:wght@400;600&display=swap");
@import url("./layout.css");
@import url("./utilities.css");

:root {
  color-scheme: dark;
  --bg: #05070f;
  --bg-alt: #0b1221;
  --bg-overlay: rgba(7, 10, 18, 0.85);
  --card: rgba(16, 22, 35, 0.85);
  --card-border: rgba(74, 119, 255, 0.28);
  --ink: #f1f4ff;
  --muted: #8ea7cb;
  --accent: #4fc3ff;
  --accent-strong: #2d8dff;
  --accent-warm: #ff6b4a;
  --shadow: 0 18px 40px rgba(5, 10, 25, 0.45);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --grid-gap: clamp(16px, 2.5vw, 28px);
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "Exo 2", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(79, 195, 255, 0.25), transparent 45%),
    radial-gradient(circle at 90% 10%, rgba(255, 107, 74, 0.2), transparent 42%),
    radial-gradient(circle at 50% 90%, rgba(45, 141, 255, 0.18), transparent 48%),
    repeating-linear-gradient(
      120deg,
      transparent 0 24px,
      rgba(28, 46, 80, 0.45) 24px 48px
    );
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(160deg, rgba(5, 7, 15, 0.92) 0%, rgba(5, 7, 15, 0.35) 45%, rgba(2, 4, 10, 0.92) 100%);
  pointer-events: none;
  z-index: -1;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease, text-shadow 0.2s ease;
}

a:hover,
a:focus-visible {
  color: #9cd9ff;
  text-shadow: 0 0 12px rgba(79, 195, 255, 0.65);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

#site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.container {
  width: min(1080px, 92vw);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 32px) clamp(14px, 2.5vw, 26px);
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(6, 8, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(79, 195, 255, 0.22);
  box-shadow: 0 12px 28px rgba(2, 5, 12, 0.65);
}

.sitebrand {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
}

.sitebrand img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  box-shadow: 0 12px 18px rgba(45, 141, 255, 0.35);
}

.sitebrand strong {
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sitebrand small {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  padding-bottom: 18px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(20, 28, 45, 0.92), rgba(12, 20, 34, 0.95));
  border: 1px solid rgba(79, 195, 255, 0.22);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.nav a:hover,
.nav a:focus-visible {
  border-color: rgba(79, 195, 255, 0.48);
  transform: translateY(-1px);
}

.nav a[aria-current="page"] {
  background: linear-gradient(135deg, rgba(45, 141, 255, 0.75), rgba(77, 208, 255, 0.65));
  color: #051022;
  box-shadow: 0 10px 24px rgba(45, 141, 255, 0.35);
}

.nav-cta {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent)) !important;
  color: #051022 !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 20px rgba(79, 195, 255, 0.4) !important;
  border-color: rgba(79, 195, 255, 0.5) !important;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 28px rgba(79, 195, 255, 0.55) !important;
  background: linear-gradient(135deg, var(--accent), #5cc5ff) !important;
  text-shadow: none !important;
  color: #051022 !important;
}

#content {
  flex: 1 1 auto;
  display: flex;
}

.prose {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.prose::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(79, 195, 255, 0.08), transparent 55%);
  pointer-events: none;
}

.prose > *:first-child {
  margin-top: 0;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  font-family: "Roboto Condensed", "Exo 2", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: relative;
}

.prose h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin: 0 0 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(79, 195, 255, 0.25);
}

.prose h2 {
  font-size: clamp(1.45rem, 2.2vw, 1.7rem);
  margin-top: 2.2rem;
  margin-bottom: 0.75rem;
}

.prose h3 {
  font-size: clamp(1.2rem, 2vw, 1.35rem);
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
}

.prose p,
.prose ul,
.prose ol {
  margin: 1.1rem 0;
}

.prose li {
  margin: 0.45rem 0;
  padding-left: 0.2rem;
}

.prose strong {
  color: #c8dcff;
}

.prose em {
  color: #ffd3c7;
}

.prose blockquote {
  margin: 1.6rem 0;
  padding: 1.2rem 1.4rem;
  border-left: 4px solid var(--accent);
  background: rgba(11, 18, 33, 0.68);
  border-radius: var(--radius-md);
  color: #d8e6ff;
  box-shadow: inset 0 0 0 1px rgba(79, 195, 255, 0.12);
}

.prose code {
  font-family: "Roboto Mono", "Fira Code", monospace;
  background: rgba(7, 12, 22, 0.85);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  border: 1px solid rgba(79, 195, 255, 0.18);
  color: #8de0ff;
}

.prose pre {
  padding: 1.2rem 1.4rem;
  background: rgba(7, 12, 20, 0.92);
  border-radius: var(--radius-md);
  overflow-x: auto;
  border: 1px solid rgba(45, 141, 255, 0.26);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.45);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6rem 0;
  border: 1px solid rgba(79, 195, 255, 0.22);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.prose table th,
.prose table td {
  padding: 0.75rem 1rem;
  text-align: left;
}

.prose table thead {
  background: rgba(45, 141, 255, 0.24);
  color: #051022;
}

.prose table tbody tr:nth-child(odd) {
  background: rgba(14, 20, 34, 0.72);
}

.hero {
  background: linear-gradient(140deg, rgba(27, 38, 64, 0.88), rgba(10, 16, 28, 0.95));
  border-radius: var(--radius-lg);
  padding: clamp(12px, 2vw, 18px);
  margin: clamp(22px, 3vw, 36px) 0;
  border: 1px solid rgba(45, 141, 255, 0.26);
  box-shadow: 0 16px 30px rgba(7, 11, 22, 0.55);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(77, 208, 255, 0.35), transparent 55%);
  pointer-events: none;
}

.hero img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 6px);
  display: block;
  border: 1px solid rgba(79, 195, 255, 0.22);
}

.hero figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.notice {
  background: linear-gradient(120deg, rgba(12, 20, 34, 0.85), rgba(71, 104, 188, 0.35));
  border: 1px solid rgba(79, 195, 255, 0.38);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 24px auto;
  box-shadow: 0 12px 26px rgba(5, 8, 16, 0.45);
}

.notice strong {
  color: #b9ecff;
}

.notice--redirect {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 120px;
  padding: 28px 24px;
}

.notice--redirect p {
  margin: 1rem 0 1.5rem;
  color: var(--muted);
  max-width: 600px;
}

.notice-title {
  margin: 0;
  font-family: "Roboto Condensed", "Exo 2", sans-serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #051022;
  font-weight: 600;
  font-family: "Roboto Condensed", "Exo 2", sans-serif;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 8px 20px rgba(79, 195, 255, 0.35);
  transition: all 0.3s ease;
  border: 1px solid rgba(79, 195, 255, 0.4);
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(79, 195, 255, 0.5);
  background: linear-gradient(135deg, var(--accent), #5cc5ff);
  text-shadow: none;
  color: #051022;
}

.cta-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.notice--cta {
  background: linear-gradient(140deg, rgba(45, 141, 255, 0.18), rgba(79, 195, 255, 0.12));
  border: 1px solid rgba(79, 195, 255, 0.45);
  text-align: center;
  margin: 2.5rem 0;
}

.notice--cta h2 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
}

.notice--cta p {
  margin: 0.8rem 0 1.5rem;
  color: var(--muted);
}

.cta-button--small {
  padding: 10px 24px;
  font-size: 0.9rem;
}

.article-sidebar {
  margin: 2rem 0;
}

.sidebar-card {
  background: linear-gradient(140deg, rgba(45, 141, 255, 0.15), rgba(79, 195, 255, 0.1));
  border: 1px solid rgba(79, 195, 255, 0.35);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  box-shadow: 0 12px 26px rgba(5, 8, 16, 0.35);
}

.sidebar-card h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  color: #c8dcff;
}

.sidebar-card p {
  margin: 0.8rem 0 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.article-banner {
  background: linear-gradient(140deg, rgba(45, 141, 255, 0.2), rgba(79, 195, 255, 0.15));
  border: 1px solid rgba(79, 195, 255, 0.45);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  margin: 3rem 0 2rem;
  box-shadow: 0 16px 32px rgba(5, 8, 16, 0.45);
}

.article-banner__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.article-banner__content h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  color: #c8dcff;
}

.article-banner__content p {
  margin: 0;
  color: var(--muted);
  max-width: 600px;
}

@media (min-width: 768px) {
  .article-banner__content {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }
  
  .article-banner__content > div {
    flex: 1;
  }
  
  .article-banner__content .cta-button {
    flex-shrink: 0;
    margin-left: 2rem;
  }
}

.grid {
  display: grid;
  gap: var(--grid-gap);
}

.grid[data-cols="2"] {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid rgba(79, 195, 255, 0.22);
  border-radius: var(--radius-md);
  padding: clamp(18px, 2.5vw, 26px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: -45% -45% auto auto;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(79, 195, 255, 0.18), transparent 70%);
  transform: rotate(25deg);
  pointer-events: none;
}

.tagline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(45, 141, 255, 0.18);
  border: 1px solid rgba(79, 195, 255, 0.35);
  color: #bde6ff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
}

footer {
  margin-top: auto;
  background: rgba(4, 6, 12, 0.9);
  border-top: 1px solid rgba(79, 195, 255, 0.18);
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

footer a {
  color: #9bbcf5;
}

footer a:hover {
  color: #d2e3ff;
}

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

@media (max-width: 720px) {
  .sitebrand {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .sitebrand img {
    width: 54px;
    height: 54px;
  }

  .nav {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .prose {
    padding: clamp(20px, 6vw, 28px);
  }

  .hero {
    margin: 18px 0;
  }
}



