/* ════════════════════════════════════════════════════════════
   Gatsby spoke article — shared styles
   ════════════════════════════════════════════════════════════ */

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

:root {
  --white: #ffffff;
  --black: #000000;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snappy: cubic-bezier(0.19, 1, 0.22, 1);
  --page-gap: clamp(1.5rem, 4vw, 3rem);
}

::selection { background: var(--white); color: var(--black); }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--black);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body::-webkit-scrollbar { width: 0; }
body { scrollbar-width: none; }

/* ═══ NAV ═══ */
.nav {
  position: fixed; top: 1.25rem; left: 0; right: 0;
  margin: 0 auto; width: fit-content;
  z-index: 1000; cursor: pointer;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 4px;
  overflow: hidden; display: block;
  height: 36px;
  opacity: 0; animation: navIn 0.6s 0.2s var(--ease-out) forwards;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.nav:hover:not(.open) { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.09); }
.nav-header { display: flex; align-items: center; justify-content: center; gap: 0.65rem; padding: 0.55rem 1rem; height: 36px; white-space: nowrap; width: fit-content; margin: 0 auto; }
.nav-logo { font-family: 'Unbounded', sans-serif; font-size: 0.8rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); text-decoration: none; }
.nav-dots { display: flex; gap: 3.5px; }
.nav-dots span { width: 3.5px; height: 3.5px; border-radius: 50%; background: rgba(255,255,255,0.4); }
.nav-line { height: 1px; margin: 0 0.75rem; background: rgba(255,255,255,0.06); opacity: 0; transition: opacity 0.2s; }
.nav.open .nav-line { opacity: 1; transition-delay: 0.15s; }
.nav-links { display: flex; flex-direction: column; padding: 0.35rem 0.5rem 0.5rem; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.nav.open .nav-links { opacity: 1; pointer-events: all; transition-delay: 0.15s; }
.nav-links a { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 600; color: rgba(255,255,255,0.5); text-decoration: none; padding: 0.42rem 0.55rem; border-radius: 5px; display: block; white-space: nowrap; opacity: 0; transform: translateY(4px); transition: opacity 0.15s, transform 0.2s var(--ease-snappy), color 0.12s ease, background 0.12s ease; }
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.nav.open .nav-links a { opacity: 1; transform: translateY(0); }
.nav.open .nav-links a:nth-child(1) { animation: linkIn 0.25s 0.2s var(--ease-out) both; }
.nav.open .nav-links a:nth-child(2) { animation: linkIn 0.25s 0.24s var(--ease-out) both; }
.nav.open .nav-links a:nth-child(3) { animation: linkIn 0.25s 0.28s var(--ease-out) both; }
.nav.open .nav-links a:nth-child(4) { animation: linkIn 0.25s 0.32s var(--ease-out) both; }
@keyframes linkIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes navIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ═══ ARTICLE ═══ */
.article {
  max-width: 700px;
  margin: 0 auto;
  padding: 7rem var(--page-gap) 4rem;
  flex: 1;
}

.article-crumb {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: revealUp 0.8s 0.3s var(--ease-out) forwards;
}
.article-crumb a { color: rgba(255,255,255,0.3); text-decoration: none; transition: color 0.25s var(--ease-out); }
.article-crumb a:hover { color: var(--white); }
.article-crumb-sep { margin: 0 0.75rem; color: rgba(255,255,255,0.15); }

.article-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 520px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  opacity: 0;
  transform: translateY(20px);
  animation: heroIn 1.1s 0.4s var(--ease-out) forwards;
}
.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 6s var(--ease-out);
}
.article-hero.loaded img { transform: scale(1); }

.article-hero.contain { background: rgba(255,255,255,0.02); }
.article-hero.contain img {
  object-fit: contain;
  padding: 3.5rem;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.article-meta {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: revealUp 0.7s 0.7s var(--ease-out) forwards;
}
.article-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
}

.article-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.7rem, 4.2vw, 2.9rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  opacity: 0;
  animation: revealUp 1s 0.8s var(--ease-out) forwards;
}

.article-body {
  font-size: 1.1rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.78);
  font-weight: 400;
  letter-spacing: -0.005em;
  opacity: 0;
  animation: revealUp 0.9s 1s var(--ease-out) forwards;
}
.article-body p { margin-bottom: 1.5rem; }
.article-body p:last-child { margin-bottom: 0; }
.article-body strong { color: var(--white); font-weight: 600; }
.article-body em { color: rgba(255,255,255,0.9); font-style: normal; font-weight: 500; }
.article-body a { color: rgba(255,255,255,0.95); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(255,255,255,0.25); transition: text-decoration-color 0.25s var(--ease-out); }
.article-body a:hover { text-decoration-color: var(--white); }

.article-cta-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  opacity: 0;
  animation: revealUp 0.9s 1.2s var(--ease-out) forwards;
}
.article-cta-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1.25rem;
}
.article-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.3rem;
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), color 0.3s var(--ease-out), gap 0.35s var(--ease-snappy);
}
.article-cta:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.32);
  color: var(--white);
  gap: 1.05rem;
}
.article-cta-arrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  line-height: 1;
  letter-spacing: 0;
  color: rgba(255,255,255,0.55);
  transition: transform 0.35s var(--ease-snappy), color 0.3s var(--ease-out);
}
.article-cta:hover .article-cta-arrow {
  transform: translateX(3px);
  color: var(--white);
}

/* ═══ FOOTER ═══ */
.footer {
  padding: 1.75rem var(--page-gap);
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: space-between; align-items: center;
}
.footer-left { font-family: 'Space Mono', monospace; font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-family: 'Space Mono', monospace; font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.6); }

@keyframes revealUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 600px) {
  .article { padding: 5.5rem 1.25rem 3rem; }
  .article-hero { aspect-ratio: 4 / 3; margin-bottom: 1.75rem; }
  .article-hero.contain img { padding: 2rem; }
  .article-title { margin-bottom: 1.75rem; padding-bottom: 1.75rem; }
  .article-body { font-size: 1.02rem; line-height: 1.7; }
  .article-cta-section { margin-top: 3rem; padding-top: 2.25rem; }
  .footer { flex-direction: column; gap: 1rem; text-align: center; }
  .footer-links { justify-content: center; }
}
