:root {
    --bg: #f7f6f2;
    --fg: #1c1b19;
    --muted: #6b6862;
    --rule: #e2e0d8;
    --accent: #1c1b19;
    --maxw: 38rem;
  }
  @media (prefers-color-scheme: dark) {
    :root {
      --bg: #131211;
      --fg: #e9e7e1;
      --muted: #9a968d;
      --rule: #2a2825;
      --accent: #e9e7e1;
    }
  }

  * { box-sizing: border-box; }

  html { -webkit-text-size-adjust: 100%; }

  body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Monaco,
      Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
  }

  main {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 14vh 1.5rem 4rem;
  }

  header { margin-bottom: 3rem; }

  h1 {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin: 0 0 0.4rem;
  }

  .tagline {
    color: var(--muted);
    margin: 0;
    font-size: 0.9rem;
  }

  .byline {
    color: var(--muted);
    font-size: 0.8rem;
    margin: 0.9rem 0 0;
  }

  .topnav {
    display: flex;
    justify-content: flex-end;
    gap: 1.25rem;
    margin-bottom: 2rem;
    font-size: 0.8rem;
  }
  .topnav a { color: var(--muted); }

  .pitch {
    margin: 0 0 2.25rem;
    font-size: 0.98rem;
  }

  .pitch-note {
    color: var(--muted);
    font-size: 0.88rem;
    margin: -1.25rem 0 2.25rem;
  }

  /* signup block — sized to sit comfortably around a standard beehiiv embed */
  .signup {
    border: 1px solid var(--rule);
    border-radius: 6px;
    padding: 1.5rem 1.5rem 1.25rem;
    margin: 0 0 2.25rem;
  }

  .signup-label {
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 1rem;
  }

  /* keep beehiiv's injected iframe/form from blowing out the layout */
  .beehiiv-slot { width: 100%; }
  .beehiiv-slot iframe { width: 100% !important; max-width: 100%; border: 0; }
  .beehiiv-slot form { width: 100%; }
  .beehiiv-slot input[type="email"] {
    width: 100%;
    font: inherit;
  }

  .subscribe-link { margin: 0; font-size: 0.92rem; }

  .latest {
    margin: 0 0 1rem;
    font-size: 0.92rem;
  }

  a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
  }
  a:hover { text-decoration-thickness: 2px; }

  footer {
    margin-top: 5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rule);
    color: var(--muted);
    font-size: 0.78rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
  }
