@layer page {
  /* ── Page reset for scrollable layout ── */
  html,
  body {
    block-size: auto;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    cursor: default;
  }

  /* ── Ambient canvas — decorative, non-interactive ── */
  #ambientCanvas {
    position: fixed;
    inset-block-start: 0;
    inset-inline-start: 0;
    z-index: 0;
    inline-size: 100%;
    block-size: 100%;
    pointer-events: none;
  }

  /* ══════════════════════════════════════
   HERO — compact masthead layout
   Desktop: 2-col grid (brand left, aside right)
   Mobile: stacked, centered
══════════════════════════════════════ */
  .site-hero {
    position: relative;
    z-index: 1;
    padding: 5rem 2rem 4.5rem;
    background: linear-gradient(to bottom, rgba(8, 9, 12, 0) 0%, rgba(8, 9, 12, 0.55) 65%, rgba(8, 9, 12, 1) 100%);
    border-block-end: 1px solid rgba(196, 200, 212, 0.06);
  }

  .hero-inner {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 5rem;
    align-items: end;
    max-inline-size: 1100px;
    margin: 0 auto;
  }

  .hero-brand {
    opacity: 0;
    animation: fadeUp 1s 0.2s forwards;
  }

  .hero-aside {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-block-end: 0.25rem;
    opacity: 0;
    animation: fadeUp 1s 0.45s forwards;
  }

  .hero-wordmark {
    font-family: var(--display);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1;
    color: var(--text-bright);
    letter-spacing: -0.02em;
  }

  .hero-tagline {
    max-inline-size: 520px;
    margin-block-start: 1rem;
    font-family: var(--body);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.7;
    color: var(--text);
  }

  .hero-domains {
    font-family: var(--mono);
    font-size: 0.55rem;
    line-height: 1.8;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.18em;
  }

  .hero-byline {
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.18em;
  }

  .hero-byline a {
    color: var(--text);
    border-block-end-color: rgba(196, 200, 212, 0.2);
    transition:
      color 0.3s,
      border-color 0.3s;
  }

  .hero-byline a:hover {
    color: var(--gold);
    border-block-end-color: var(--gold);
  }

  /* ── Subscribe ── */
  .hero-subscribe {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .subscribe-label-text {
    font-family: var(--mono);
    font-size: 0.55rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.15em;
  }

  .subscribe-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
  }

  .subscribe-row input[type="email"] {
    inline-size: 220px;
    padding: 0.55rem 1.2rem;
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--text-bright);
    letter-spacing: 0.08em;
    outline: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 168, 83, 0.15);
    border-radius: 100px;
    transition:
      border-color 0.3s,
      background 0.3s;
  }

  .subscribe-row input[type="email"]::placeholder {
    color: rgba(154, 122, 61, 0.4);
  }

  .subscribe-row input[type="email"]:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(212, 168, 83, 0.4);
  }

  .subscribe-row button[type="submit"] {
    padding: 0.55rem 1.2rem;
    font-family: var(--mono);
    font-size: 0.62rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    white-space: nowrap;
    cursor: pointer;
    background: rgba(212, 168, 83, 0.08);
    border: 1px solid rgba(212, 168, 83, 0.25);
    border-radius: 100px;
    transition:
      background 0.3s,
      border-color 0.3s,
      box-shadow 0.3s;
  }

  .subscribe-row button[type="submit"]:hover {
    background: rgba(212, 168, 83, 0.15);
    border-color: rgba(212, 168, 83, 0.5);
    box-shadow: 0 0 20px rgba(212, 168, 83, 0.1);
  }

  .subscribe-msg {
    min-block-size: 1rem;
    font-family: var(--mono);
    font-size: 0.58rem;
    letter-spacing: 0.1em;
  }

  .subscribe-msg.success {
    color: var(--cyan);
  }
  .subscribe-msg.error {
    color: var(--red);
  }

  /* Disclaimer line below subscribe form */
  .subscribe-disclaimer {
    margin-block-start: 0.2rem;
    font-family: var(--mono);
    font-size: 0.48rem;
    color: rgba(196, 200, 212, 0.3);
    letter-spacing: 0.1em;
  }

  @media (max-width: 860px) {
    .site-hero {
      padding: 4rem 2rem 3.5rem;
    }
    .hero-inner {
      grid-template-columns: 1fr;
      gap: 2.5rem;
      text-align: center;
    }
    .hero-tagline {
      margin: 1.25rem auto 0;
    }
    .hero-aside {
      align-items: center;
    }
  }

  @media (max-width: 560px) {
    .subscribe-row {
      flex-direction: column;
    }
    .subscribe-row input[type="email"] {
      inline-size: 260px;
    }
  }

  /* ══════════════════════════════════════
   POSTS SECTION
══════════════════════════════════════ */
  .posts-section {
    position: relative;
    z-index: 1;
    padding-block-end: 8rem;
    background: var(--bg);
  }

  .posts-inner {
    max-inline-size: 1100px;
    padding: 0 2rem;
    margin: 0 auto;
  }
}
