@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

/* ==============================
   RESET & BASE
============================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: #000;
  color: #fff;
}

body.brutalist-body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

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

a {
  color: #00ff80;
  text-decoration: none;
  font-weight: 700;
}

a:hover,
a:focus {
  color: #000;
  background: #00ff80;
  outline: none;
}

ul, ol { list-style: none; }
dl { margin: 0; }

/* ==============================
   SITE WRAPPER
============================== */
.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==============================
   HEADER / NAV
============================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #000;
  border-bottom: 3px solid #00ff80;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.top-nav {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 56px;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex: 1;
}

.nav-right {
  justify-content: flex-end;
}

.nav-left dt,
.nav-left dd,
.nav-right dt,
.nav-right dd {
  display: flex;
  align-items: stretch;
}

.nav-left a,
.nav-right a {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  min-height: 56px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
  text-transform: none;
  border-right: 2px solid #222;
  white-space: nowrap;
}

.nav-right a {
  border-right: none;
  border-left: 2px solid #222;
}

.nav-left a:hover,
.nav-right a:hover,
.nav-left a:focus,
.nav-right a:focus {
  color: #000;
  background: #00ff80;
}

.brand-center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  background: #00ff80;
  color: #000;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  border: none;
  flex-shrink: 0;
}

.brand-center:hover,
.brand-center:focus {
  background: #0000ff;
  color: #fff;
}

.brand-text {
  font-size: 1.1rem;
  font-weight: 700;
}

.site-logo-img {
  height: 36px;
  width: auto;
}

/* ==============================
   HERO
============================== */
.hero-section {
  min-height: 70vh;
  background: #000;
  border-bottom: 4px solid #0000ff;
  display: flex;
  align-items: stretch;
}

.hero-inner {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-text {
  flex: 0 0 55%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3rem 4rem 2rem;
  border-right: 4px solid #00ff80;
}

.hero-badge {
  display: inline-block;
  background: #0000ff;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.75rem;
  margin-bottom: 1.5rem;
  width: fit-content;
}

.hero-h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  color: #00ff80;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
  word-break: break-all;
}

.hero-lead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #ccc;
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-cta {
  display: inline-block;
  background: #00ff80;
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.875rem 2rem;
  border: 3px solid #00ff80;
  letter-spacing: 0.02em;
  width: fit-content;
  min-height: 48px;
}

.hero-cta:hover,
.hero-cta:focus {
  background: #000;
  color: #00ff80;
}

.hero-media {
  flex: 0 0 45%;
  overflow: hidden;
  position: relative;
  background: #111;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-media--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0000ff;
}

.hero-decor {
  font-size: 10rem;
  font-weight: 700;
  color: #00ff80;
  line-height: 1;
  user-select: none;
  opacity: 0.6;
}

/* ==============================
   MAIN LAYOUT
============================== */
.site-main {
  flex: 1;
  background: #000;
}

.main-layout {
  display: flex;
  align-items: flex-start;
  max-width: 1400px;
  margin: 0 auto;
  gap: 0;
}

/* ==============================
   ASIDE (left)
============================== */
.content-aside {
  flex: 0 0 220px;
  position: sticky;
  top: 59px;
  max-height: calc(100vh - 59px);
  overflow-y: auto;
  border-right: 3px solid #00ff80;
  background: #000;
  padding: 2rem 1.25rem;
}

.aside-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #555;
  margin-bottom: 1rem;
  text-transform: uppercase;
  border-bottom: 2px solid #222;
  padding-bottom: 0.5rem;
}

.aside-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 2rem;
}

.aside-nav li {
  border-bottom: 1px solid #1a1a1a;
}

.aside-nav a {
  display: block;
  padding: 0.6rem 0.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #aaa;
  line-height: 1.4;
}

.aside-nav a:hover,
.aside-nav a:focus {
  color: #000;
  background: #00ff80;
  padding-left: 0.5rem;
}

.aside-tag {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.aside-tag span {
  display: block;
  background: #111;
  border: 2px solid #222;
  color: #00ff80;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  letter-spacing: 0.05em;
}

/* ==============================
   ARTICLE / CONTENT
============================== */
.content-article {
  flex: 1;
  min-width: 0;
}

.content-body {
  padding: 3rem 2.5rem;
}

/* Content sections from page.content */
.content-body section {
  scroll-margin-top: 80px;
  border-bottom: 3px solid #111;
  padding-bottom: 3rem;
  margin-bottom: 3rem;
}

.content-body section:last-child {
  border-bottom: none;
}

.content-body h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #00ff80;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  border-left: 6px solid #0000ff;
  padding-left: 1rem;
}

.content-body h2 + .subtitle,
.content-body h2 + .subhead,
.content-body h2 + .desc,
.content-body h2 + .lead,
.content-body h2 + p {
  color: #888;
  font-size: 1rem;
  margin-bottom: 1.25rem;
  padding-left: 1.375rem;
}

.content-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 1.75rem 0 0.75rem;
  letter-spacing: -0.01em;
}

.content-body p {
  font-size: 1rem;
  line-height: 1.7;
  color: #ccc;
  margin-bottom: 1rem;
}

.content-body ul,
.content-body ol {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.content-body ol {
  list-style: decimal;
}

.content-body li {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.content-body strong {
  color: #fff;
  font-weight: 700;
}

.content-body em {
  color: #00ff80;
  font-style: normal;
  font-weight: 700;
}

.content-body a {
  color: #00ff80;
  border-bottom: 2px solid #00ff80;
}

.content-body a:hover {
  background: #00ff80;
  color: #000;
  border-bottom-color: transparent;
}

.content-body blockquote {
  border-left: 4px solid #0000ff;
  background: #0a0a0a;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  color: #aaa;
}

.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.content-body th {
  background: #0000ff;
  color: #fff;
  padding: 0.6rem 0.75rem;
  font-weight: 700;
  text-align: left;
  border: 2px solid #000;
}

.content-body td {
  padding: 0.5rem 0.75rem;
  border: 2px solid #1a1a1a;
  color: #ccc;
  vertical-align: top;
}

.content-body tr:nth-child(even) td {
  background: #0a0a0a;
}

/* scroll-margin for all sections */
section {
  scroll-margin-top: 80px;
}

/* ==============================
   FOOTER
============================== */
.site-footer {
  background: #000;
  border-top: 4px solid #0000ff;
}

.footer-top {
  display: flex;
  gap: 0;
  max-width: 1400px;
  margin: 0 auto;
  border-bottom: 2px solid #111;
}

.footer-brand-block {
  flex: 0 0 55%;
  padding: 3rem 2.5rem;
  border-right: 3px solid #111;
}

.footer-brand-big {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  color: #00ff80;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  word-break: break-all;
}

.footer-brand-desc {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 360px;
}

.footer-links-block {
  flex: 1;
  padding: 3rem 2rem;
}

.footer-nav {
  height: 100%;
}

.footer-dl {
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
}

.footer-dl dd {
  border-bottom: 1px solid #111;
}

.footer-dl a {
  display: block;
  padding: 0.6rem 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: #777;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.footer-dl a:hover,
.footer-dl a:focus {
  color: #000;
  background: #00ff80;
  padding-left: 0.5rem;
}

.footer-bar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  text-align: center;
}

.footer-copy {
  font-size: 0.8rem;
  color: #444;
  font-weight: 400;
}

/* ==============================
   SCROLL REVEAL ANIMATION
============================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.45s ease, transform 0.45s ease;
  }

  .reveal.visible {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 1024px) {
  .content-aside {
    flex: 0 0 180px;
  }

  .hero-text {
    padding: 3rem 2rem 3rem 1.5rem;
  }
}

@media (max-width: 768px) {
  /* Header nav collapses */
  .top-nav {
    flex-wrap: wrap;
    min-height: auto;
  }

  .nav-left,
  .nav-right {
    flex: 0 0 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    border-top: 1px solid #1a1a1a;
    order: 2;
  }

  .nav-right {
    order: 3;
  }

  .brand-center {
    flex: 0 0 100%;
    order: 1;
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    justify-content: flex-start;
    border-bottom: 2px solid #00ff80;
  }

  .nav-left a,
  .nav-right a {
    font-size: 0.78rem;
    padding: 0 0.6rem;
    min-height: 44px;
    border-right: 1px solid #222;
    border-left: none;
  }

  /* Hero */
  .hero-inner {
    flex-direction: column;
  }

  .hero-text {
    flex: none;
    width: 100%;
    padding: 2.5rem 1.25rem;
    border-right: none;
    border-bottom: 4px solid #00ff80;
  }

  .hero-media {
    flex: none;
    width: 100%;
    min-height: 240px;
  }

  .hero-section {
    min-height: auto;
  }

  /* Main layout */
  .main-layout {
    flex-direction: column;
  }

  .content-aside {
    position: static;
    flex: none;
    width: 100%;
    max-height: none;
    border-right: none;
    border-bottom: 3px solid #00ff80;
    padding: 1.25rem 1rem;
  }

  .aside-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 1rem;
  }

  .aside-nav li {
    border-bottom: none;
  }

  .aside-nav a {
    background: #111;
    border: 2px solid #222;
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
  }

  .aside-tag {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .content-body {
    padding: 2rem 1.25rem;
  }

  /* Footer */
  .footer-top {
    flex-direction: column;
  }

  .footer-brand-block {
    flex: none;
    width: 100%;
    padding: 2rem 1.25rem;
    border-right: none;
    border-bottom: 2px solid #111;
  }

  .footer-brand-big {
    font-size: clamp(2.5rem, 15vw, 4rem);
  }

  .footer-links-block {
    padding: 1.5rem 1.25rem;
  }

  .footer-dl {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
  }

  .footer-dl dd {
    flex: 0 0 50%;
    border-bottom: 1px solid #111;
    border-right: 1px solid #111;
  }

  .footer-dl a {
    min-height: 44px;
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  .hero-h1 {
    font-size: 2.25rem;
  }

  .content-body h2 {
    font-size: 1.35rem;
  }

  .footer-brand-big {
    font-size: 2.5rem;
  }
}

button[aria-expanded]{min-width:44px;min-height:44px}
