/* Gridiron Science — Technical Whitepaper & Article Design System */
:root {
  --bg: #080d18;
  --bg2: #0b1426;
  --panel: #0d1932;
  --ink: #eef3ff;
  --muted: #8398c4;
  --cyan: #3fe0c8;
  --magenta: #ff4d8d;
  --green: #46d17a;
  --amber: #ffd24a;
  --border: #16264a;
  --line: rgba(63, 224, 200, 0.07);
  --disp: 'Archivo', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--disp);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Atmospheric backdrop — yard-line grid + telemetry glow + grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(120% 70% at 78% -8%, rgba(63, 224, 200, 0.14), transparent 60%),
    radial-gradient(90% 60% at 8% 8%, rgba(255, 77, 141, 0.09), transparent 55%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 46px,
    var(--bg);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Fixed container width */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}

.mono { font-family: var(--mono); }
.cy { color: var(--cyan); }
.mg { color: var(--magenta); }
.gr { color: var(--green); }

/* ---------- Nav Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(8, 13, 24, 0.78);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 900;
  letter-spacing: 0.02em;
  font-size: 1.06rem;
  text-decoration: none;
}

.brand .mk {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 0 16px rgba(63, 224, 200, 0.5);
}

.brand b { color: var(--ink); }
.brand i { color: var(--cyan); font-style: normal; }

.navlinks {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.navlinks a {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 11px;
  border-radius: 7px;
  position: relative;
  transition: color 0.18s;
}

.navlinks a:hover { color: var(--ink); }
.navlinks a::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 4px;
  height: 1.5px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s;
}
.navlinks a:hover::after { transform: scaleX(1); }

.cta {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  background: var(--cyan);
  color: #04140f;
  text-decoration: none;
  padding: 9px 15px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 0 0 rgba(63, 224, 200, 0.5);
  transition: box-shadow 0.25s, transform 0.15s;
}
.cta:hover {
  box-shadow: 0 6px 26px rgba(63, 224, 200, 0.35);
  transform: translateY(-1px);
}

/* ---------- Focused Reading Container ---------- */
.article-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 0 80px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

h1.article-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  color: var(--ink);
}

.article-lead {
  font-size: 1.18rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 40px;
}

.meta-strip span { display: inline-flex; align-items: center; gap: 8px; }
.meta-strip span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
}
.meta-strip span:first-child::before { display: none; }

/* ---------- Article Body Typography ---------- */
.article-content {
  font-size: 1.08rem;
  color: #cfdaf0;
  line-height: 1.82;
}

.article-content h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--ink);
  margin: 52px 0 18px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  letter-spacing: -0.01em;
}

.article-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cyan);
  margin: 40px 0 14px;
}

.article-content h4 {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--magenta);
  margin: 28px 0 12px;
}

.article-content p {
  margin-bottom: 22px;
}

.article-content strong, .article-content b {
  color: var(--ink);
  font-weight: 600;
}

.article-content ul, .article-content ol {
  margin: 0 0 24px 28px;
}

.article-content li {
  margin-bottom: 10px;
}

.article-content blockquote {
  background: linear-gradient(120deg, rgba(255, 77, 141, 0.06), rgba(63, 224, 200, 0.05));
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: 12px;
  padding: 22px 26px;
  margin: 36px 0;
  color: var(--ink);
}

.article-content figure {
  margin: 40px 0;
  text-align: center;
}

.article-content figure img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.85);
}

.article-content figcaption {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 12px;
  letter-spacing: 0.02em;
}

.article-content pre {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  overflow-x: auto;
  margin: 32px 0;
  font-family: var(--mono);
  font-size: 0.88rem;
  line-height: 1.65;
  color: #7ee787;
  box-shadow: 0 15px 40px -15px rgba(0, 0, 0, 0.6);
}

.article-content code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: rgba(63, 224, 200, 0.1);
  color: var(--cyan);
  padding: 2px 7px;
  border-radius: 5px;
}

.article-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

/* Tables */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 36px 0;
  font-family: var(--mono);
  font-size: 0.86rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 40px -20px rgba(0, 0, 0, 0.7);
}

.article-content th, .article-content td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.article-content th {
  background: rgba(8, 13, 24, 0.9);
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.article-content tr:hover {
  background: rgba(63, 224, 200, 0.03);
}

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  margin-top: 60px;
  background: rgba(8, 13, 24, 0.95);
}

.fgrid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.fgrid .note {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  line-height: 1.7;
}

.fgrid .note b { color: var(--cyan); }
.fgrid .note a { color: var(--cyan); text-decoration: none; }

@media (max-width: 880px) {
  .navlinks { display: none; }
  .article-wrap { padding: 36px 0 60px; }
  h1.article-title { font-size: 2.2rem; }
}
