/* Newsletter-specific edits layered over the copied homepage hero. */
body {
  --paper: #000;
  --paper-alt: #000;
  --paper-deep: #000;
  --ink: #f7f7f5;
  --ink-soft: #bfc0c5;
  --muted: #a0a1a6;
  --line: rgba(255, 255, 255, .16);
  background: #000;
  color: var(--ink);
}
.quote-section, .founder-section, .faq-section { background: #000; }
.quote-signal { color: #a0a1a6; }
.quote-main blockquote, .quote-author strong, .faq-heading h2, .faq-list summary { color: #f7f7f5; }
.quote-author span, .faq-heading p, .faq-list details p { color: #bfc0c5; }
.quote-author, .faq-list, .faq-list details { border-color: rgba(255,255,255,.16); }
.faq-section .section-kicker { color: #a0a1a6; }
.founder-card { background: #000; border-radius: 0; }
.founder-image::after { background: linear-gradient(90deg, transparent 72%, #000 100%); }
.founder-image img { object-position: 50% 30%; filter: none; }
.founder-copy .section-kicker, .founder-meta span { color: #a0a1a6; }
.founder-copy p { color: #bfc0c5; }
.fiftyone-fold .nav-inner { justify-content: flex-start; }
.fiftyone-fold .nav-logo { min-width: 0; }
.posts-status { margin-top: 16px; color: #a0a1a6; font-size: 13px; line-height: 1.5; }
.posts-status:empty { display: none; }
.issue-more-button[hidden] { display: none; }
.issue-number { font-size: 11px; white-space: nowrap; }
/* Give metadata its own row, with room for full edition names and dates. */
.issue-grid { grid-auto-rows: minmax(90px, auto); }
.issue-link {
  grid-template-columns: minmax(0, 1fr) max-content;
  grid-template-rows: auto 1fr;
  gap: 8px 16px;
  align-items: start;
  min-height: 90px;
  padding: 16px;
}
.issue-number { grid-column: 1; min-width: 0; white-space: normal; overflow-wrap: anywhere; line-height: 1.5; }
.issue-date { display: block; grid-column: 2; white-space: nowrap; line-height: 1.5; color: #a0a1a6; }
.issue-title { grid-column: 1 / -1; white-space: normal; overflow: visible; overflow-wrap: anywhere; line-height: 1.5; }
.home-hero-signup.is-error { outline: 2px solid #ff8585; outline-offset: 4px; }
.home-hero-signup-status.is-error { color: #ff8585 !important; }
.final-cta .signup-form input[type='text'][hidden] { display: none; }
@media (max-width: 620px) {
  .founder-image::after { background: linear-gradient(180deg, transparent 78%, #000 100%); }
  .founder-image { min-height: 0; height: auto; aspect-ratio: 3 / 4; }
  .founder-image img { display: block; }
}

/* Match the main site's editorial section labels. */
html:not(#legacy-typeface) .fiftyone-fold.master-home .newsletter-hero-label {
  display: block;
  margin: 0 0 24px;
  color: #91d5ff;
  font-family: 'Nova Mono', monospace !important;
  font-size: 18px !important;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
}
@media (max-width: 620px) {
  html:not(#legacy-typeface) .fiftyone-fold.master-home .newsletter-hero-label { font-size: 16px !important; }
}

/* Keep the newsletter signup and reader proof together on the first screen. */
html[data-theme] .fiftyone-fold.master-home.home-refined.home-openai-clean #top {
  min-height: 0 !important;
  padding: 112px 0 80px !important;
}
.fiftyone-fold.master-home #top > .container {
  min-height: 0 !important;
  align-items: flex-start;
}
.fiftyone-fold.master-home #top .idx-hero-content { padding-top: 0 !important; }
.fiftyone-fold #top .master-reader-trust { margin-top: 48px; padding-top: 0; }

@media (max-width: 700px) {
  .fiftyone-fold #top .master-star-mark { opacity: .3; }
  html[data-theme] .fiftyone-fold.master-home.home-refined.home-openai-clean #top {
    padding: 96px 0 60px !important;
  }
  html:not(#legacy-typeface) .fiftyone-fold.master-home #top .newsletter-hero-label {
    margin-bottom: 16px;
    font-size: 16px !important;
  }
  .fiftyone-fold.master-home #top .idx-hero-content h1 {
    font-size: clamp(38px, 10vw, 64px) !important;
    line-height: 1.04 !important;
  }
  html:not(#legacy-typeface) .fiftyone-fold.master-home #top .idx-hero-sub {
    margin-top: 18px;
    font-size: 17px !important;
    line-height: 1.45 !important;
  }
  .fiftyone-fold.master-home #top .idx-hero-conversion { margin-top: 20px; }
  .fiftyone-fold #top .master-reader-trust { margin-top: 40px; }
  .fiftyone-fold #top .master-reader-trust > p { margin-bottom: 12px; }
  .fiftyone-fold #top .master-reader-logos { gap: 16px 24px; }
}

/* Short viewports need less display space, while form controls stay full-sized. */
@media (max-width: 700px) and (max-height: 700px) {
  html[data-theme] .fiftyone-fold.master-home.home-refined.home-openai-clean #top {
    padding-top: 84px !important;
  }
  html:not(#legacy-typeface) .fiftyone-fold.master-home #top .newsletter-hero-label { margin-bottom: 12px; }
  .fiftyone-fold.master-home #top .idx-hero-content h1 { font-size: clamp(32px, 9.6vw, 56px) !important; }
  html:not(#legacy-typeface) .fiftyone-fold.master-home #top .idx-hero-sub {
    margin-top: 14px;
    font-size: 16px !important;
    line-height: 1.4 !important;
  }
  .fiftyone-fold.master-home #top .idx-hero-conversion { margin-top: 16px; }
  .fiftyone-fold #top .master-reader-trust { margin-top: 30px; }
  .fiftyone-fold #top .master-reader-logos { row-gap: 12px; }
}
@media (max-width: 360px) and (max-height: 640px) {
  html:not(#legacy-typeface) .fiftyone-fold.master-home #top .newsletter-hero-label { margin-bottom: 8px; }
  html:not(#legacy-typeface) .fiftyone-fold.master-home #top .idx-hero-sub { margin-top: 12px; }
  .fiftyone-fold.master-home #top .idx-hero-conversion { margin-top: 12px; }
  .fiftyone-fold #top .master-reader-trust { margin-top: 22px; }
  .fiftyone-fold #top .master-reader-logos { row-gap: 8px; }
}

/* A celebratory layer that never intercepts the form or page controls. */
.signup-constellation {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  pointer-events: none;
}
[data-newsletter-subscribe] button {
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
[data-newsletter-subscribe]:has(input[type='email']:valid:not(:placeholder-shown)) button:not(:disabled) {
  box-shadow: 0 0 0 2px #91d5ff, 0 0 22px #91d5ff38;
}
[data-newsletter-subscribe] button:not(:disabled):hover { transform: translateY(-1px); }
[data-newsletter-subscribe] button:not(:disabled):active { transform: scale(.97); }
[data-newsletter-subscribe].is-loading button { cursor: progress; }
@media (prefers-reduced-motion: reduce) {
  [data-newsletter-subscribe] button { transition: none; }
  [data-newsletter-subscribe] button:not(:disabled):is(:hover, :active) { transform: none; }
  .signup-constellation { display: none; }
}
