:root {
  --bg: #ffffff;
  --text: #111111;
  --accent: #1f5fff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
}

.grid-overlay,
.scanlines,
.status-row,
.module-grid {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 5vw;
  z-index: 10;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 750;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  gap: 0.9rem;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  padding-bottom: 0.1rem;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--text);
  background: var(--bg);
  color: var(--text);
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
}

main {
  padding: 2.2rem 5vw 3.2rem;
}

.page-wrap,
.hero,
.cards,
.quote {
  max-width: 1040px;
  margin: 0 auto;
}

.hero,
.page-title,
.card,
.scroll-item,
.contact-panel,
.article-page,
.quote {
  border: 1px solid var(--text);
  border-radius: 8px;
  padding: 1.2rem;
  background: var(--bg);
}

.hero-shell {
  border: 0;
  padding: 0;
}

.eyebrow {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

h1,
h2 {
  margin: 0.4rem 0 0.65rem;
  line-height: 1.3;
  font-family: "Iowan Old Style", "Georgia", "Times New Roman", serif;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

h2 {
  font-size: 1.28rem;
}

.lead {
  max-width: 62ch;
  margin: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(250px, 1fr);
  gap: 1.2rem;
  align-items: start;
}

.hero-aside {
  border: 1px solid var(--text);
  border-radius: 8px;
  padding: 0.9rem;
}

.hero-aside h2 {
  margin-top: 0;
  font-size: 1.05rem;
}

.quick-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.quick-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  border: 1px solid var(--text);
  color: var(--text);
  padding: 0.5rem 0.8rem;
  font-size: 0.92rem;
  border-radius: 6px;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.btn.primary,
.btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(31, 95, 255, 0.06);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.card a,
.scroll-item a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
  font-weight: 600;
}

.page-title,
.contact-panel,
.article-page,
.quote,
.scroll-item {
  margin-top: 1.1rem;
}

.scroll-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.9rem;
}

.quote {
  text-align: left;
  margin-top: 1.1rem;
}

.article-page {
  max-width: 72ch;
}

.site-footer {
  padding: 1rem 5vw;
  border-top: 1px solid var(--text);
  font-size: 0.9rem;
  margin-top: 1rem;
}

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

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 58px;
    right: 5vw;
    background: var(--bg);
    border: 1px solid var(--text);
    display: none;
    flex-direction: column;
    padding: 0.65rem;
  }

  .site-nav.open {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .scroll-list {
    grid-template-columns: 1fr;
  }
}
