@import url("https://fonts.googleapis.com/css2?family=Epilogue:wght@300;400;600;700&family=Share+Tech+Mono:wght@400&display=swap");

/* =============================================
   CUSTOM PROPERTIES
   ============================================= */

:root {
  --black: #1a1a18;
  --dark-grey: #3d3d3a;
  --mid-grey: #888780;
  --light-grey: #c2c0b6;
  --bone: #f1efe8;

  --signal-green: #3cf5b0;
  --freq-amber: #e8a320;
  --ice: #d6e4f0;

  --bg: #f1efe8;
  --text: #3d3d3a;

  /* dark mode: not a launch requirement — swap values here */
  /* --bg: #1A1A18; --text: #C2C0B6; */
}

/* =============================================
   RESET & BASE
   ============================================= */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: "Epilogue", sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* =============================================
   LAYOUT
   ============================================= */

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container--narrow {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* =============================================
   TYPOGRAPHY UTILITIES
   ============================================= */

.eyebrow-container {
  background: var(--dark-grey);
}

.eyebrow {
  font-family: "Epilogue", sans-serif;
  font-weight: 400;
  font-size: 11px;
  padding: 0.5rem 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid-grey);
}

.eyebrow--green {
  color: var(--signal-green);
}

.mono {
  font-family: "Share Tech Mono", monospace;
  font-weight: 400;
}

.freq-amber {
  color: var(--freq-amber);
}

.signal-green {
  color: var(--signal-green);
}

.bold-text {
  font-weight: 700;
}

/* =============================================
   UTILITIES
   ============================================= */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* =============================================
   NAVIGATION
   ============================================= */

#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(26, 26, 24, 0.95);
  transition:
    background 0.3s ease,
    backdrop-filter 0.3s ease;
}

#nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
}

#nav .nav-logo img {
  height: 60px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: "Epilogue", sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--light-grey);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--bone);
}

.nav-cta {
  font-family: "Epilogue", sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--black);
  color: var(--signal-green) !important;
  border: 1px solid var(--signal-green);
  padding: 0.4rem 0.9rem;
  transition:
    background 0.2s ease,
    color 0.2s ease !important;
}

.nav-cta:hover {
  background: var(--signal-green) !important;
  color: var(--black) !important;
}

/* Nav scrolled state */
#nav.scrolled {
  background: rgba(26, 26, 24, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#nav.scrolled .nav-links a {
  color: var(--light-grey);
}

#nav.scrolled .nav-links a:hover {
  color: var(--bone);
}

/* Mobile nav — hide text links, show only logo + CTA */
.nav-links .nav-text-link {
  display: flex;
}

/* =============================================
   EMAIL FORM (shared)
   ============================================= */

.email-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.email-form input[type="email"] {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 1px solid var(--light-grey);
  color: var(--text);
  font-family: "Epilogue", sans-serif;
  font-weight: 300;
  font-size: 15px;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s ease;
  border-radius: 0;
}

.email-form input[type="email"]::placeholder {
  color: var(--mid-grey);
}

.email-form input[type="email"]:focus {
  border-color: var(--signal-green);
}

.email-form button {
  background: var(--signal-green);
  color: var(--black);
  font-family: "Epilogue", sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s ease;
  border-radius: 0;
}

.email-form button:hover {
  opacity: 0.85;
}

.form-note {
  margin-top: 0.75rem;
  font-size: 12px;
  font-weight: 300;
  color: var(--mid-grey);
}

.signal-received {
  margin-top: 1.75rem;
  font-family: "Epilogue", sans-serif;
  font-weight: 300;
  font-size: 17px;
  color: var(--signal-green);
}

/* =============================================
   HERO
   ============================================= */

#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 2rem 5rem;
  /* Optional: background noise texture */
  /* background-image: url('/assets/noise.png'); */
  /* background-blend-mode: multiply; */
  /* opacity of texture: 0.05 — implement via pseudo-element if needed */
}

.hero-inner {
  max-width: 560px;
}

.hero-headline {
  font-family: "Epilogue", sans-serif;
  font-weight: 700;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-top: 1.25rem;
}

.hero-subhead {
  font-family: "Epilogue", sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.65;
  color: var(--dark-grey);
  max-width: 480px;
  margin-top: 1.5rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 25%;
  transform: translateX(-50%);
  color: var(--mid-grey);
  animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator svg {
  display: block;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

/* =============================================
   WHAT IS THIS
   ============================================= */

#what-is-this {
  padding: 7rem 0;
}

.section-eyebrow {
  font-family: "Epilogue", sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid-grey);
  margin-bottom: 1.25rem;
}

.section-headline {
  font-family: "Epilogue", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 2rem;
}

.body-text {
  font-family: "Epilogue", sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
}

.body-text p + p {
  margin-top: 1.25em;
}

.pull-quote {
  margin: 2.5rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--freq-amber);
  background: rgba(232, 163, 32, 0.04);
}

.pull-quote blockquote {
  font-family: "Epilogue", sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--dark-grey);
  font-style: italic;
}

.pull-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-family: "Epilogue", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 13px;
  color: var(--mid-grey);
}

/* =============================================
   HOW IT PLAYS
   ============================================= */

#how-it-plays {
  padding: 7rem 0;
  border-top: 1px solid var(--light-grey);
}

.section-intro {
  max-width: 600px;
  margin-bottom: 3rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--signal-green);
  background: transparent;
}

.card-label {
  font-family: "Share Tech Mono", monospace;
  font-size: 12px;
  padding: 0.5rem 1rem;
  color: var(--signal-green);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.card-body {
  font-family: "Epilogue", sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}

/* =============================================
   THE SIGNAL
   ============================================= */

#the-signal {
  padding: 8rem 0;
  border-top: 1px solid var(--light-grey);
}

.signal-headline {
  font-family: "Epilogue", sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 3rem;
}

.signal-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.signal-block {
  font-family: "Epilogue", sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
}

.signal-block--amber {
  background: var(--dark-grey);
  padding: 1rem;
  color: var(--freq-amber);
}

.stat-block {
  margin-top: 4rem;
  padding: 1rem;
  font-family: "Share Tech Mono", monospace;
  font-size: 13px;
  line-height: 2;
  color: var(--signal-green);
  white-space: pre;
  background: var(--dark-grey);
  border: none;
  overflow-x: auto;
}

/* =============================================
   THE GAME
   ============================================= */

#the-game {
  padding: 7rem 0;
  border-top: 1px solid var(--light-grey);
}

.game-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.game-specs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 2.5rem;
  margin-top: 2rem;
  font-family: "Share Tech Mono", monospace;
  font-size: 13px;
  color: var(--mid-grey);
}

.game-specs dt {
  font-weight: 400;
}

.game-specs dd {
  font-weight: 400;
}

.cta-block {
  background: transparent;
}

.cta-headline {
  font-family: "Epilogue", sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--black);
  margin-bottom: 0.5rem;
}

.cta-subtext {
  font-family: "Epilogue", sans-serif;
  font-weight: 300;
  font-size: 15px;
  color: var(--mid-grey);
  margin-bottom: 0;
}

/* =============================================
   FOOTER
   ============================================= */

#footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--light-grey);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo img {
  height: 50px;
  width: auto;
  opacity: 0.6;
}

.footer-copy {
  font-family: "Epilogue", sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: var(--mid-grey);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-family: "Epilogue", sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: var(--mid-grey);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--dark-grey);
}

.footer-status {
  width: 100%;
  padding-top: 1.5rem;
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
  color: var(--light-grey);
  letter-spacing: 0.05em;
}

/* =============================================
   INNER PAGE SHELL
   ============================================= */

.page-shell {
  padding-top: 7rem;
  padding-bottom: 7rem;
}

.page-header {
  margin-bottom: 3rem;
}

.page-header .page-title {
  font-family: "Epilogue", sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--black);
  margin-top: 1rem;
}

.page-header .page-subhead {
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-family: "Epilogue", sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--dark-grey);
  max-width: 520px;
}

.page-header .page-cta {
  display: inline-block;
  margin: 0.5rem;
  font-family: "Epilogue", sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--signal-green);
  transition: opacity 0.2s ease;
}

.page-header .page-cta:hover {
  opacity: 0.75;
}

/* =============================================
   DEV LOG PAGE
   ============================================= */

.log-entries {
  margin-top: 3rem;
}

.log-entry {
  padding: 2.5rem 0;
}

.log-entry + .log-entry {
  border-top: 1px solid var(--light-grey);
}

.log-number {
  font-family: "Share Tech Mono", monospace;
  font-size: 13px;
  color: var(--signal-green);
  margin-bottom: 0.4rem;
}

.log-date {
  font-family: "Share Tech Mono", monospace;
  font-size: 12px;
  color: var(--mid-grey);
  margin-bottom: 1rem;
}

.log-title {
  font-family: "Epilogue", sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--black);
  margin-bottom: 1rem;
}

.log-body {
  font-family: "Epilogue", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
}

.log-empty {
  padding: 4rem 0;
  font-family: "Share Tech Mono", monospace;
  font-size: 14px;
  color: var(--mid-grey);
  text-align: center;
  line-height: 2;
}

/* =============================================
   PRIVACY / CONTACT PAGES
   ============================================= */

.prose {
  font-family: "Epilogue", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}

.prose h2 {
  font-weight: 600;
  font-size: 18px;
  color: var(--black);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.prose p {
  margin-bottom: 1.25em;
}

.prose a {
  color: var(--freq-amber);
  text-decoration: underline;
  text-decoration-color: rgba(209, 137, 48, 0.4);
}

.prose a:hover {
  text-decoration-color: var(--freq-amber);
}

.prose .last-updated {
  font-family: "Share Tech Mono", monospace;
  font-size: 12px;
  color: var(--mid-grey);
  margin-bottom: 2.5rem;
}

.contact-email {
  display: inline-block;
  margin-top: 1rem;
  font-family: "Epilogue", sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: var(--freq-amber);
}

.contact-email:hover {
  opacity: 0.8;
}

/* =============================================
   MOBILE — max-width: 768px
   ============================================= */

@media (max-width: 768px) {
  /* Nav: collapse to logo + CTA only */
  .nav-links .nav-text-link {
    display: none;
  }

  /* Hero */
  #hero {
    padding: 6rem 1.5rem 4rem;
  }

  /* Sections */
  #what-is-this,
  #how-it-plays,
  #the-signal,
  #the-game {
    padding: 5rem 0;
  }

  .container,
  .container--narrow {
    padding: 0 1.5rem;
  }

  /* Cards: single column */
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .card {
    border-top: none;
    border-left: 2px solid var(--signal-green);
    padding: 1.5rem;
  }

  .card + .card {
    margin-top: 1.5rem;
  }

  /* Signal blocks: single column */
  .signal-blocks {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Game: single column */
  .game-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  /* Email form: stack */
  .email-form {
    flex-direction: column;
  }

  .email-form button {
    width: 100%;
    padding: 0.9rem 1rem;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-logo img {
    height: 30px;
  }

  /* Page shell */
  .page-shell {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 40px;
  }

  .stat-block {
    font-size: 11px;
  }
  #nav .nav-logo img {
    height: 40px;
    width: auto;
  }
}
