/* Shared TechVortexHub identity: home and primary indexes. */
:root {
  color-scheme: dark;
  --color-bg: #0a0e1a;
  --color-surface: #101626;
  --color-primary: #a193ff;
  --color-accent: #61c5ff;
  --color-text: #e2e8f0;
  --color-muted: #a6b2c7;
  --color-text-muted: var(--color-muted);
  --color-border-accent: rgba(97,197,255,.42);
  --color-accent-soft: rgba(97,197,255,.09);
  --color-primary-soft: rgba(161,147,255,.13);
  --radius-card: 12px;
  --color-border: rgba(157, 176, 216, .18);
  --font-body: "Inter", Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", Arial, sans-serif;
  --content-width: 1120px;
  --header-height: 82px;
  --header-offset: var(--header-height);
}
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(10,14,26,.94); border-bottom: 1px solid var(--color-border); backdrop-filter: blur(18px); }
.main-nav { width: min(var(--content-width), calc(100% - 48px)); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 82px; }
.brand { font: 700 1.8rem var(--font-display); letter-spacing: -.05em; text-decoration: none; }
.brand span { color: var(--color-primary); }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nav-links a { padding: 12px; font-size: .875rem; font-weight: 600; text-decoration: none; color: var(--color-muted); transition: color .2s, background .2s; border-radius: 6px; }
.nav-links a:hover, .nav-links a[aria-current="location"], .nav-links a[aria-current="page"] { color: #fff; background: rgba(161,147,255,.13); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 20px; min-height: 48px; padding: 12px 22px; border: 1px solid transparent; border-radius: 999px; text-decoration: none; font-size: .9375rem; font-weight: 600; transition: transform .2s, background .2s, border-color .2s; }
.button:focus-visible { border-radius: 999px; }
.button-icon, .external-icon { width: 20px; height: 20px; flex: 0 0 20px; }
.button-external { min-width: 200px; gap: 12px; background: rgba(20,27,45,.95); border-color: #625c86; }
.button-external .button-icon { color: var(--color-primary); }
.button-external .external-icon { color: var(--color-accent); margin-left: auto; }
.button-external:hover { background: #20263d; border-color: var(--color-accent); }
.button:hover { transform: translateY(-2px); }
.button-primary { background: #7563c9; color: #fff; border-color: #a396ed; }
.button-primary:hover { background: #6452b6; }
.button-secondary { background: rgba(12,18,33,.8); border-color: #47516b; }
.button-secondary:hover { border-color: var(--color-accent); }
.text-link { display: inline-flex; align-items: center; gap: 12px; color: var(--color-accent); font-weight: 600; font-size: .9375rem; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.text-link:hover { color: #fff; }
.site-footer { display: flex; justify-content: space-between; gap: 24px; padding: 28px 0 32px; border-top: 1px solid var(--color-border); font-size: .875rem; color: var(--color-muted); }
.site-footer p span { color: var(--color-primary); }
.skip-link { position: fixed; top: 8px; left: 12px; z-index: 10; padding: 12px 20px; background: var(--color-text); color: var(--color-bg); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
/* Shared navigation and controls. Scene scrolling stays in the home stylesheet. */
a:focus-visible, button:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 5px; }
.site-header { line-height: 1.75; }
.site-footer { position: relative; z-index: 1; width: min(var(--content-width), calc(100% - 48px)); margin: auto; line-height: 1.75; }
.site-index { background: linear-gradient(rgba(10,14,26,.92), rgba(10,14,26,.97)), url("img/DATA_8.jpg") center / cover fixed; }
.site-index .page { width: min(var(--content-width), calc(100% - 48px)); padding: 56px 0 48px; }
.site-index .hero { text-align: left; margin-bottom: 40px; }
.site-index .hero > .eyebrow { margin: 0 0 14px; max-width: none; text-align: left; color: var(--color-accent); }
.site-index .hero h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -.035em; line-height: 1.12; }
.site-index .hero > p:not(.eyebrow) { margin: 20px 0 0; max-width: 760px; font-size: 1rem; line-height: 1.75; }
.site-index .hero-actions { justify-content: flex-start; }
.site-index .button { line-height: 1.75; }
.site-index .project-card, .site-index .post-card { border-color: var(--color-border); border-radius: var(--radius-card); background: var(--color-surface); }
.site-index .project-card > p, .site-index .post-card > p { font-size: 1rem; line-height: 1.75; }
.site-index .status { color: var(--color-accent); border-color: var(--color-border-accent); background: var(--color-accent-soft); font-weight: 600; }
.site-index .tags span { background: var(--color-primary-soft); font-weight: 500; }
.site-index .project-card:hover, .site-index .post-card:hover, .site-index .project-card:focus-within, .site-index .post-card:focus-within { border-color: var(--color-border-accent); }
.site-index .eyebrow { font-size: .875rem; font-weight: 600; }
.site-index .archive-section { scroll-margin-top: 116px; }
@media (max-width: 800px) {
  :root { --header-height: 112px; }
  .main-nav { min-height: 100px; flex-direction: column; gap: 0; padding: 10px 0; }
  .nav-links { justify-content: center; gap: 2px; }
  .nav-links a { padding: 10px; }
  .site-index .page { padding-top: 36px; }
}
@media (max-width: 520px) {
  .main-nav, .site-footer, .site-index .page { width: calc(100% - 36px); }
  .nav-links { gap: 0; }
  .nav-links a { padding: 10px 7px; }
  .site-footer { flex-wrap: wrap; }
  .site-index .button { max-width: 100%; text-align: center; }
  .site-index { background-attachment: scroll; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .main-nav a, .button, .site-index * { animation: none !important; transition: none !important; }
  .button:hover { transform: none; }
}
