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

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: #0000ff;
  color: #ffffff;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  background: #0000ff;
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

a:hover, a:focus {
  color: #000000;
  background: #00ff80;
  outline: 3px solid #000000;
}

a:focus-visible {
  outline: 3px solid #00ff80;
  outline-offset: 2px;
}

ol, ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

p {
  line-height: 1.7;
  font-size: 1rem;
}

hr {
  border: none;
  border-top: 4px solid #00ff80;
  margin: 1.5rem 0;
}

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

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

.brand-row {
  border-bottom: 3px solid #0000ff;
  padding: 0.75rem 1.5rem;
  background: #000000;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  background: none;
  outline: none;
}

.brand-link:hover, .brand-link:focus {
  background: none;
  outline: none;
}

.brand-link:hover .brand-name {
  color: #00ff80;
}

.brand-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand-name {
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #00ff80;
  line-height: 1;
}

/* ===== NAV ===== */
.main-nav {
  background: #000000;
  padding: 0 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.main-nav ol {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  width: max-content;
  min-width: 100%;
}

.main-nav ol li {
  flex-shrink: 0;
}

.main-nav ol li a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
  border-right: 2px solid #0000ff;
  min-height: 44px;
  white-space: nowrap;
}

.main-nav ol li:last-child a {
  border-right: none;
}

.main-nav ol li a:hover,
.main-nav ol li a:focus {
  color: #000000;
  background: #00ff80;
  outline: none;
}

/* ===== HERO ===== */
.hero-block {
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0000ff;
  border-bottom: 6px solid #000000;
  position: relative;
  padding: 2rem 1.5rem;
}

.hero-block::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 3px solid #00ff80;
  pointer-events: none;
}

.hero-inner {
  text-align: center;
  max-width: 900px;
  width: 100%;
}

.hero-h1 {
  font-size: clamp(2.2rem, 7vw, 5.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #00ff80;
  text-shadow: 4px 4px 0 #000000;
  margin-bottom: 1rem;
  word-break: break-word;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.04em;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  background: #0000ff;
}

.content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}

/* figure/aside on right inside article */
.content-figure {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 100px;
}

.content-aside {
  background: #000000;
  border: 4px solid #00ff80;
  padding: 1.25rem;
}

.aside-tags {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
  align-items: baseline;
}

.aside-tags dt {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #00ff80;
  white-space: nowrap;
}

.aside-tags dd {
  font-size: 0.9rem;
  font-weight: 500;
  color: #ffffff;
  word-break: break-word;
}

.page-content-body {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

/* ===== PAGE CONTENT STYLES ===== */
.page-content-body article {
  scroll-margin-top: 80px;
  margin-bottom: 0;
  border-bottom: 4px solid #000000;
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
}

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

.page-content-body h2 {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #00ff80;
  margin-bottom: 0.5rem;
}

.page-content-body h2 + hr {
  border-top: 4px solid #00ff80;
  margin-bottom: 1.25rem;
}

.page-content-body h3 {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffffff;
  margin: 1.5rem 0 0.5rem;
}

.page-content-body h3 + hr {
  border-top: 3px solid #ffffff;
  margin-bottom: 1rem;
}

.page-content-body p {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.page-content-body ul,
.page-content-body ol {
  margin: 1rem 0 1rem 1.5rem;
  list-style: disc;
}

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

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

.page-content-body strong {
  color: #00ff80;
  font-weight: 700;
}

.page-content-body em {
  color: #ffffff;
  font-style: italic;
}

.page-content-body blockquote {
  border-left: 6px solid #00ff80;
  background: #000000;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  color: #ffffff;
  font-style: italic;
}

.page-content-body a {
  color: #00ff80;
  text-decoration: underline;
  font-weight: 700;
}

.page-content-body a:hover,
.page-content-body a:focus {
  color: #000000;
  background: #00ff80;
}

.page-content-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.page-content-body table th {
  background: #000000;
  color: #00ff80;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.75rem 1rem;
  border: 2px solid #00ff80;
  text-align: left;
}

.page-content-body table td {
  padding: 0.65rem 1rem;
  border: 2px solid #000000;
  color: #ffffff;
  background: rgba(0,0,0,0.3);
}

/* ===== FOOTER ===== */
.site-footer {
  background: #000000;
  border-top: 6px solid #00ff80;
  padding: 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  gap: 0;
}

.footer-col {
  flex: 1;
  border-right: 2px solid #0000ff;
  padding: 0.5rem 1.25rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.75rem;
  align-items: baseline;
}

.footer-col:first-child {
  padding-left: 0;
}

.footer-col:last-child {
  border-right: none;
}

.footer-col dt {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #00ff80;
  white-space: nowrap;
}

.footer-col dd {
  font-size: 0.85rem;
  font-weight: 400;
  color: #ffffff;
  word-break: break-word;
}

/* ===== HOVER MICRO INTERACTIONS ===== */
.main-nav ol li {
  position: relative;
}

.main-nav ol li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: #00ff80;
}

.main-nav ol li a:hover::after {
  width: 100%;
}

/* Stagger list items in content */
.page-content-body li {
  position: relative;
  padding-left: 0.25rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .content-section {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem;
  }

  .content-figure {
    grid-column: 1;
    grid-row: 2;
    position: static;
  }

  .page-content-body {
    grid-column: 1;
    grid-row: 1;
  }

  .content-aside {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .aside-tags {
    flex: 1;
    min-width: 120px;
  }
}

@media (max-width: 640px) {
  .brand-name {
    font-size: 1.2rem;
  }

  .hero-block {
    min-height: 45vh;
    padding: 1.5rem 1rem;
  }

  .hero-block::before {
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
  }

  .hero-h1 {
    font-size: clamp(1.8rem, 10vw, 3rem);
  }

  .main-nav ol li a {
    padding: 0.75rem 0.65rem;
    font-size: 0.75rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.75rem;
  }

  .footer-col {
    border-right: none;
    border-bottom: 2px solid #0000ff;
    padding: 0.5rem 0;
  }

  .footer-col:last-child {
    border-bottom: none;
  }

  .brand-row {
    padding: 0.65rem 1rem;
  }

  .site-footer {
    padding: 1rem;
  }

  .content-section {
    padding: 1.25rem 0.75rem;
  }

  .page-content-body article {
    padding-bottom: 1.75rem;
    margin-bottom: 1.75rem;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .main-nav ol li a::after {
    display: none;
  }

  * {
    animation: none !important;
    transition: none !important;
  }
}

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