@font-face {
  font-family: "Founders Grotesk";
  src: url("../fonts/FoundersGrotesk-Light.otf") format("opentype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Founders Grotesk";
  src: url("../fonts/FoundersGrotesk-Medium.otf") format("opentype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Founders Grotesk";
  src: url("../fonts/FoundersGrotesk-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #0f0e0d;
  --bg-soft: #141210;
  --surface: #1a1714;
  --surface-2: #1f1a16;

  --text: #f2ead8;
  --text-dim: #d6ccb8;

  --crimson: #8d2b37;
  --crimson-deep: #6f2029;
  --amber: #c8963e;

  --line-soft: rgba(242, 234, 216, 0.2);
  --line-strong: rgba(200, 150, 62, 0.42);
  --line-red: rgba(141, 43, 55, 0.65);
  --section-space: clamp(1.9rem, 4.6vw, 3.7rem);
  --stamp-size: 0.74rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Space Mono", "IBM Plex Mono", "Founders Grotesk", monospace;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(circle at 10% 10%, rgba(200, 150, 62, 0.08), transparent 50%),
    radial-gradient(circle at 80% 0%, rgba(141, 43, 55, 0.08), transparent 50%),
    linear-gradient(180deg, #12100f 0%, #0f0e0d 100%);
}

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

a {
  color: var(--text);
  text-decoration-color: var(--amber);
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--amber);
}

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.95;
  font-family: "Cairo", "Founders Grotesk", sans-serif;
  color: var(--text);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 10vw, 7rem);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.7rem, 5.4vw, 3.8rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.2rem, 3.2vw, 2.05rem);
}

.container {
  width: min(1320px, 94vw);
  margin: 0 auto;
}

.texture {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: repeating-linear-gradient(
      90deg,
      transparent,
      transparent 95px,
      rgba(200, 150, 62, 0.08) 95px,
      rgba(200, 150, 62, 0.08) 96px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 95px,
      rgba(141, 43, 55, 0.07) 95px,
      rgba(141, 43, 55, 0.07) 96px
    ),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23noise)' opacity='0.2'/%3E%3C/svg%3E");
  background-size: auto, auto, 220px 220px;
  opacity: 0.35;
  mix-blend-mode: screen;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 30;
  background: var(--text);
  border: 1px solid var(--amber);
  color: #14120f;
  padding: 0.7rem 0.95rem;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.top-rail {
  padding: 1rem 0 0.85rem;
  border-bottom: 2px solid var(--line-red);
  background: rgba(15, 14, 13, 0.82);
  backdrop-filter: blur(2px);
}

.top-rail-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.top-rail-home {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  border: 1px solid var(--line-red);
  color: var(--amber);
  padding: 0.48rem 0.72rem;
  min-height: 2.5rem;
}

.top-rail-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-rail-nav a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.74rem;
  border: 1px solid var(--line-soft);
  color: var(--text-dim);
  padding: 0.45rem 0.68rem;
  min-height: 2.5rem;
}

main > section {
  position: relative;
}

main > section:not(.hero)::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(200, 150, 62, 0.28), rgba(141, 43, 55, 0.6) 52%, rgba(200, 150, 62, 0.28));
}

.hero {
  width: min(1520px, 98vw);
  padding: clamp(1.7rem, 3.8vw, 2.9rem) 0 calc(var(--section-space) - 0.3rem);
  border-top: 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 60%;
  z-index: 0;
  border-left: 1px solid rgba(200, 150, 62, 0.22);
  background-image: radial-gradient(circle at 20% 12%, rgba(200, 150, 62, 0.16), transparent 55%),
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(242, 234, 216, 0.05) 30px 31px),
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(141, 43, 55, 0.08) 42px 43px);
  opacity: 0.45;
}

.hero-ghost-logo {
  position: absolute;
  top: -10%;
  right: -7%;
  width: 45%;
  height: 118%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.hero-ghost-logo-svg {
  width: 100%;
  height: 100%;
}

.hero-ghost-logo-svg path,
.hero-ghost-logo-svg rect,
.hero-ghost-logo-svg circle,
.hero-ghost-logo-svg polygon {
  fill: none !important;
  stroke: rgba(200, 150, 62, 0.18) !important;
  vector-effect: non-scaling-stroke;
}

.hero-sticker {
  display: block;
  width: min(980px, 92vw);
  margin: 0 0 1.2rem;
  position: relative;
  z-index: 1;
}

.hero-copy-wrap {
  max-width: 72ch;
  margin: 0;
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-label,
.updates-note {
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  font-family: "Space Mono", "IBM Plex Mono", monospace;
  letter-spacing: 0.12em;
  font-size: var(--stamp-size);
  line-height: 1;
  font-weight: 700;
  border: 1px dashed var(--line-strong);
  background: transparent;
  color: var(--amber);
  padding: 0.28rem 0.62rem;
  border-radius: 0;
}

.eyebrow {
  transform: rotate(-1deg);
  margin-bottom: 0.38rem;
}

.section-label {
  transform: rotate(0.7deg);
  margin-bottom: 0.5rem;
}

.hero h1 {
  margin-top: 0.6rem;
  max-width: 13ch;
  font-size: clamp(3.3rem, 12vw, 13rem);
  letter-spacing: -0.045em;
  line-height: 0.88;
  text-wrap: pretty;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  font-family: "Space Mono", "IBM Plex Mono", monospace;
  letter-spacing: 0.09em;
  font-weight: 700;
  padding: 0.28rem 0.62rem;
  margin-top: 0.9rem;
  font-size: clamp(1rem, 2.1vw, 1.34rem);
  color: var(--text);
  border-style: solid;
  border-color: var(--line-red);
  transform: rotate(-0.7deg);
}

.newsday-word {
  color: var(--amber);
}

.hero-subhead {
  margin-top: 1rem;
  max-width: 58ch;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-dim);
}

.proof-cues {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.52rem;
}

.proof-cues li {
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  font-family: "Space Mono", "IBM Plex Mono", monospace;
  letter-spacing: 0.09em;
  font-size: var(--stamp-size);
  line-height: 1;
  font-weight: 700;
  border: 1px dashed var(--line-soft);
  padding: 0.28rem 0.62rem;
  width: auto;
  color: var(--text);
  background: rgba(20, 18, 16, 0.65);
}

.proof-cues li:nth-child(2n) {
  transform: rotate(-0.8deg);
}

.proof-cues li:nth-child(3n) {
  transform: rotate(1.2deg);
}

.opening-guess {
  margin-top: 1.15rem;
  max-width: 65ch;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  padding: 0.95rem 1rem;
}

.opening-kicker {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--amber);
}

.opening-date {
  margin-top: 0.35rem;
  font-size: clamp(1rem, 2.2vw, 1.34rem);
  font-weight: 700;
}

.opening-inline-meta {
  font-size: 0.9rem;
  color: var(--text-dim);
}

.opening-meta {
  margin-top: 0.42rem;
  font-size: 0.95rem;
  color: var(--text-dim);
}

.hero-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-latest-update {
  margin-top: 0.95rem;
  font-size: 0.92rem;
  color: var(--text-dim);
}

.hero-latest-update a,
.hero-ig-note a {
  font-weight: 700;
}

.hero-ig-note {
  margin-top: 0.45rem;
  font-size: 0.92rem;
  color: var(--text-dim);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.83rem;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: 0;
  padding: 0.9rem 1.25rem;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--crimson);
  border-color: var(--crimson);
  color: var(--text);
  min-width: min(360px, 100%);
  text-align: center;
}

.btn-primary:hover {
  background: transparent;
  border-color: var(--text);
  color: var(--text);
}

.btn-secondary {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--amber);
}

.btn-secondary:hover {
  background: var(--crimson);
  border-color: var(--crimson);
  color: var(--text);
}

.signup,
.latest-update,
.what-is,
.placeholder,
.updates-hero,
.updates-list,
.update-article {
  padding: var(--section-space) 0;
}

.signup-panel,
.latest-update-card,
.update-card,
.what-is-grid,
.placeholder-card,
.update-content,
.update-signup-cta {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 0;
  box-shadow: none;
}

.signup {
  padding-top: calc(var(--section-space) + 0.4rem);
  padding-bottom: calc(var(--section-space) + 0.5rem);
}

.signup-panel {
  padding: clamp(1.2rem, 3.8vw, 2rem);
  display: grid;
  gap: 1.15rem;
  border: 1px solid rgba(200, 150, 62, 0.34);
  background: linear-gradient(165deg, rgba(31, 27, 23, 0.94), rgba(18, 16, 14, 0.98));
}

.signup-panel h2 {
  margin-top: 0.45rem;
  max-width: 14ch;
  font-size: clamp(2.05rem, 6.2vw, 4.6rem);
  letter-spacing: -0.03em;
}

.signup-panel p {
  margin-top: 0.6rem;
  max-width: 56ch;
  color: var(--text-dim);
  font-size: clamp(0.98rem, 1.5vw, 1.12rem);
}

.signup-form-wrap {
  border: 1px solid rgba(200, 150, 62, 0.45);
  background: rgba(11, 10, 9, 0.95);
  padding: clamp(0.95rem, 2.4vw, 1.45rem);
}

.latest-update {
  display: grid;
  gap: 1rem;
}

.latest-update-header {
  margin-bottom: 0.2rem;
}

.latest-update-card,
.update-card {
  padding: 1rem;
}

.update-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.latest-update-card h3,
.update-card h2 {
  margin-top: 0.25rem;
}

.latest-update-card p,
.update-card p {
  margin-top: 0.2rem;
  max-width: 68ch;
  color: var(--text-dim);
}

.text-link {
  display: inline-block;
  margin-top: 0.7rem;
  font-weight: 700;
}

.update-date {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--amber);
}

.what-is-grid {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
}

.what-is-grid p {
  margin-top: 0.5rem;
  color: var(--text-dim);
}

.placeholder-card {
  padding: 1rem;
  border-left: 4px solid var(--crimson);
}

.placeholder-card h2 {
  margin-top: 0.35rem;
}

.placeholder-card p:last-child {
  margin-top: 0.55rem;
  color: var(--text-dim);
}

.updates-hero p {
  margin-top: 0.55rem;
  max-width: 62ch;
  color: var(--text-dim);
}

.updates-note {
  margin-top: 0.35rem;
}

.updates-hero .btn {
  margin-top: 0.95rem;
}

.updates-list {
  display: grid;
  gap: 0.85rem;
}

.update-read-link {
  margin-top: auto;
}

.update-main {
  padding: 0.7rem 0 1.2rem;
}

.update-article {
  max-width: 980px;
}

.update-back-link a {
  text-decoration: none;
  border: 1px dashed var(--line-strong);
  color: var(--amber);
  padding: 0.28rem 0.46rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.74rem;
  font-weight: 700;
}

.update-article h1 {
  margin-top: 0.78rem;
}

.update-excerpt {
  margin-top: 0.65rem;
  padding: 0.75rem;
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--amber);
  color: var(--text);
  background: var(--surface-2);
}

.update-content {
  margin-top: 1rem;
  padding: 1rem;
}

.update-content > * + * {
  margin-top: 0.75rem;
}

.update-content ul,
.update-content ol {
  padding-left: 1.25rem;
}

.update-signup-cta {
  margin-top: 1rem;
  padding: 0.95rem;
}

.update-signup-cta p {
  margin-top: 0.45rem;
  color: var(--text-dim);
}

.update-signup-cta .btn {
  margin-top: 0.7rem;
}

.site-footer {
  margin-top: 1.5rem;
  padding: 1.4rem 0 1.2rem;
  border-top: 3px solid var(--line-red);
  background: #120f0e;
  color: var(--text);
}

.footer-grid {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.footer-logo {
  width: min(320px, 78vw);
  height: auto;
  background: transparent;
  display: block;
  opacity: 0.88;
}

.footer-legal {
  margin-top: 0.55rem;
  font-size: 0.84rem;
  color: var(--text-dim);
}

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

.footer-links a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border: 1px solid var(--line-soft);
  color: var(--text-dim);
  padding: 0.44rem 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 700;
  min-height: 2.5rem;
}

.footer-links a:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.footer-note {
  margin-top: 0.78rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* MailerLite embed cleanup */
.signup-form-wrap .ml-form-embedWrapper,
.signup-form-wrap .ml-form-embedBody,
.signup-form-wrap .ml-form-embedContent,
.signup-form-wrap .ml-form-formContent,
.signup-form-wrap .ml-form-successBody,
.signup-form-wrap .ml-form-align-center {
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
  text-align: left !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.signup-form-wrap .ml-form-embedBody {
  padding: 0 !important;
}

.signup-form-wrap .ml-form-embedContent {
  display: none !important;
}

.signup-form-wrap .ml-form-embedContainer,
.signup-form-wrap .ml-form-horizontalRow,
.signup-form-wrap .ml-form-formContent {
  max-width: 100% !important;
  width: 100% !important;
}

.signup-form-wrap .ml-form-fieldRow,
.signup-form-wrap .ml-form-checkboxRow,
.signup-form-wrap .ml-form-recaptcha {
  margin-bottom: 0.78rem !important;
}

.signup-form-wrap input[type="email"],
.signup-form-wrap input[type="text"],
.signup-form-wrap input[type="tel"] {
  width: 100%;
  min-height: 62px;
  border: 1px solid rgba(200, 150, 62, 0.34) !important;
  border-radius: 0;
  background: #0f0e0d !important;
  color: var(--text) !important;
  padding: 1rem 1rem;
  font-family: "Space Mono", "IBM Plex Mono", monospace;
  font-size: 1.08rem;
  box-shadow: none !important;
}

.signup-form-wrap input::placeholder {
  color: rgba(214, 204, 184, 0.72) !important;
  opacity: 1;
}

.signup-form-wrap .ml-form-embedSubmit {
  margin-top: 0.22rem !important;
  margin-bottom: 0 !important;
}

.signup-form-wrap .ml-form-embedSubmit button,
.signup-form-wrap input[type="submit"] {
  width: 100% !important;
  min-height: 64px;
  border: 1px solid rgba(141, 43, 55, 0.9) !important;
  background: linear-gradient(90deg, #74232d 0%, #8d2b37 100%) !important;
  color: var(--text) !important;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.98rem;
  font-family: "Space Mono", "IBM Plex Mono", monospace;
  font-weight: 700;
  box-shadow: none !important;
}

.signup-form-wrap .ml-form-embedSubmit button:hover,
.signup-form-wrap input[type="submit"]:hover {
  background: rgba(200, 150, 62, 0.14) !important;
  color: var(--text) !important;
  border-color: rgba(200, 150, 62, 0.75) !important;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 980px) {
  .hero::before,
  .hero-ghost-logo {
    display: none;
  }

  .hero-copy-wrap {
    max-width: 100%;
  }
}

@media (max-width: 740px) {
  .hero {
    width: min(1500px, 95vw);
    padding-top: 1.5rem;
  }

  .hero-sticker {
    width: min(860px, 95vw);
    margin-bottom: 1rem;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 14.5vw, 5rem);
    max-width: 11.2ch;
    letter-spacing: -0.032em;
    line-height: 0.9;
    overflow-wrap: anywhere;
  }

  .signup-panel h2 {
    max-width: 100%;
    font-size: clamp(1.9rem, 10vw, 3rem);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .hero-actions .btn,
  .update-read-link {
    width: 100%;
  }

  .btn-primary {
    min-width: 0;
  }
}

@media (min-width: 860px) {
  .hero-copy-wrap {
    margin-left: clamp(0.3rem, 2vw, 1.1rem);
  }

  .signup-panel {
    grid-template-columns: minmax(270px, 1fr) minmax(350px, 1.15fr);
    gap: 1.2rem;
    align-items: start;
  }

  .latest-update {
    grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.2fr);
    gap: 1.1rem;
    align-items: start;
  }

  .latest-update-header {
    margin: 0;
  }

  .what-is-grid {
    grid-template-columns: minmax(270px, 0.85fr) minmax(0, 1.15fr);
    gap: 1.05rem;
    align-items: start;
  }

  .updates-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: minmax(260px, 1fr) minmax(0, 1.15fr);
    gap: 1.2rem;
  }
}
