/* GTA Hub — original theme CSS (not a competitor clone) */

:root {
  --ink: #0c1222;
  --ink-soft: #2a3448;
  --muted: #5c6b82;
  --paper: #eef2f6;
  --surface: #ffffff;
  --line: #d5dde8;
  --accent: #0a7f76;
  --accent-deep: #065f5a;
  --signal: #c45c26;
  --hero-glow-a: rgba(10, 127, 118, 0.18);
  --hero-glow-b: rgba(196, 92, 38, 0.12);
  --shadow-soft: 0 18px 40px rgba(12, 18, 34, 0.08);
  --radius: 12px;
  --font-display: "Syne", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --space: clamp(1rem, 2vw, 1.5rem);
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  background:
    radial-gradient(1200px 500px at 10% -10%, var(--hero-glow-a), transparent 60%),
    radial-gradient(900px 420px at 90% 0%, var(--hero-glow-b), transparent 55%),
    linear-gradient(180deg, #f5f7fb 0%, var(--paper) 40%, #e8edf4 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  width: auto;
  height: auto;
  clip: auto;
  padding: 0.6rem 0.9rem;
  background: var(--ink);
  color: var(--surface);
  text-decoration: none;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 400ms ease, transform 400ms ease;
}

[data-reveal].is-visible,
html:not(.js) [data-reveal] {
  opacity: 1;
  transform: none;
}

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--signal);
}

.site-shell {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ----- Header ----- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(238, 242, 246, 0.86);
  border-bottom: 1px solid rgba(213, 221, 232, 0.8);
}

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

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.brand span {
  color: var(--accent);
}

.nav-primary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-primary a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.nav-primary a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-primary a:hover::after,
.nav-primary a:focus-visible::after {
  transform: scaleX(1);
}

.lang-switch {
  display: flex;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lang-switch a {
  display: inline-block;
  min-width: 2rem;
  text-align: center;
  padding: 0.25rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.lang-switch a.is-active,
.lang-switch a:hover {
  color: var(--surface);
  background: var(--ink);
  border-color: var(--ink);
}

/* ----- Hero (one composition) ----- */

.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: grid;
  align-items: end;
  padding: clamp(3rem, 8vh, 5rem) 0 clamp(2.5rem, 6vh, 4rem);
  overflow: hidden;
}

.hero__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(120deg, rgba(12, 18, 34, 0.72) 0%, rgba(12, 18, 34, 0.35) 45%, rgba(10, 127, 118, 0.25) 100%),
    repeating-linear-gradient(
      -18deg,
      transparent 0 14px,
      rgba(255, 255, 255, 0.03) 14px 15px
    ),
    linear-gradient(160deg, #1a2740, #0c1222 55%, #134e4a);
}

.hero__visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 35%;
  background: linear-gradient(transparent, rgba(238, 242, 246, 0.95));
}

.hero__content {
  position: relative;
  z-index: 1;
  color: #f4f7fb;
  max-width: 36rem;
  animation: rise 700ms ease both;
}

.hero__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 8vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
}

.hero__brand span {
  color: #5eead4;
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  line-height: 1.25;
  margin: 0 0 0.75rem;
  max-width: 22ch;
}

.hero__lead {
  margin: 0 0 1.5rem;
  color: rgba(244, 247, 251, 0.86);
  max-width: 38ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.15rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: #5eead4;
  color: #062826;
}

.btn--primary:hover {
  background: #99f6e4;
  color: #062826;
}

.btn--ghost {
  background: transparent;
  color: #f4f7fb;
  border-color: rgba(244, 247, 251, 0.35);
}

.btn--ghost:hover {
  background: rgba(244, 247, 251, 0.08);
  color: #fff;
}

/* ----- Sections ----- */

.section {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.section__lead {
  margin: 0 0 1.75rem;
  color: var(--muted);
  max-width: 48ch;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.hub-link {
  display: block;
  padding: 1.25rem 1.2rem;
  border-top: 3px solid var(--accent);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  transition: transform 180ms ease, border-color 180ms ease;
  animation: rise 600ms ease both;
}

.hub-link:nth-child(2) { animation-delay: 60ms; }
.hub-link:nth-child(3) { animation-delay: 120ms; }
.hub-link:nth-child(4) { animation-delay: 180ms; }
.hub-link:nth-child(5) { animation-delay: 240ms; }

.hub-link:hover {
  transform: translateY(-3px);
  border-color: var(--signal);
  color: inherit;
}

.hub-link__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
}

.hub-link__blurb {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.post-list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}

.post-list a:hover {
  color: var(--accent-deep);
}

.post-list time {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

/* ----- Article ----- */

.article {
  padding: 2.5rem 0 4rem;
  max-width: 720px;
}

.article__meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.article__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 1.25rem;
}

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

.sources {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.sources h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
}

.sources ul {
  margin: 0;
  padding-left: 1.1rem;
}

/* ----- Footer ----- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer a {
  color: var(--ink-soft);
}

.disclaimer {
  max-width: 52ch;
}

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

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

  .post-list a {
    flex-direction: column;
    gap: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
