:root {
  color-scheme: dark;
  color: #F2F0E9;
  background: #090909;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #090909;
}

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

button,
input {
  font: inherit;
}

button {
  border: none;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.page-shell {
  display: grid;
  gap: 4rem;
  padding: 2rem 1.5rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

main {
  display: grid;
  gap: 4rem;
}

.site-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.eyebrow {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.85rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #F2F0E9;
}

.tagline {
  margin: 0;
  max-width: 42rem;
  font-size: 1.1rem;
  color: #dcd7cc;
}

.hero,
.preview,
.story-hook,
.final-signup {
  border-radius: 1.25rem;
}

.hero {
  display: grid;
  gap: 2rem;
}

.hero-copy {
  display: grid;
  gap: 1rem;
}

.hero-title {
  margin: 0;
  font-size: clamp(3rem, 6vw, 6rem);
  letter-spacing: -0.06em;
  line-height: 0.95;
  text-transform: uppercase;
  font-weight: 900;
  animation: flicker 1.2s ease-out 1;
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  10%, 20% { opacity: 0.92; }
  12%, 24% { opacity: 0.98; }
  18% { opacity: 0.84; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title {
    animation: none;
  }
}

.hero-subtitle,
.preview-copy p,
.story-copy p,
.final-copy h2 {
  margin: 0;
}

.hero-subtitle {
  max-width: 42rem;
  color: #dcd7cc;
}

.hero-image,
.preview-image {
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(242, 240, 233, 0.12);
}

.hero-image img,
.preview-image img {
  width: 100%;
  height: auto;
  display: block;
}

.preview {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  background: #F2F0E9;
  color: #090909;
  padding: 1.75rem;
  gap: 1.25rem;
}

.preview-copy {
  max-width: 44rem;
}

.preview-image {
  width: 100%;
  max-width: 58rem;
  margin-top: 0.25rem;
  align-self: center;
  justify-self: center;
}

.preview-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.section-label {
  margin: 0 0 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.85rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.preview-copy h2,
.final-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
}

.preview-copy p {
  margin-top: 0.75rem;
  max-width: 30rem;
  line-height: 1.45;
}

.story-hook {
  background: #090909;
  color: #F2F0E9;
  padding: 2rem;
  border: 1px solid rgba(242, 240, 233, 0.12);
}

.story-copy {
  max-width: 58rem;
}

.story-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
}

.story-copy p {
  margin: 0;
  color: #dcd7cc;
}

.final-signup {
  padding: 2rem;
  border: 1px solid rgba(242, 240, 233, 0.12);
}

.final-copy {
  display: grid;
  gap: 1rem;
}

.email-signup {
  display: grid;
  gap: 0.75rem;
  max-width: 42rem;
}

.emailoctopus-form {
  width: 100%;
  min-height: 4rem;
}

.signup-consent {
  margin: 0;
  max-width: 42rem;
  font-size: 0.9rem;
  color: #dcd7cc;
}

.signup-consent a {
  color: #F2F0E9;
}

.signup-consent a:hover {
  text-decoration: none;
}

.cta-button {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.4rem;
  border-radius: 0.9rem;
  background: #F2F0E9;
  color: #090909;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.cta-button:hover {
  background: #ffffff;
}

.cta-button:focus-visible {
  outline: 3px solid #F2F0E9;
  outline-offset: 3px;
}

#join-the-transmission {
  scroll-margin-top: 2rem;
}

.form-note {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  color: #dcd7cc;
}

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: start;
  color: #dcd7cc;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-links a,
.footer-meta a {
  color: #F2F0E9;
  text-decoration: none;
}

.social-links a:hover,
.footer-meta a:hover {
  text-decoration: underline;
}

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

.footer-meta p {
  margin: 0;
}

@media (min-width: 800px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }

  .preview {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .final-signup {
    padding: 3rem;
  }
}

@media (max-width: 500px) {
  .page-shell {
    padding: 1.5rem 1rem 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}
