@layer layout {
  .topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem clamp(1rem, 4vw, 2.5rem);
    background: color-mix(in oklch, var(--color-canvas) 72%, transparent);
    backdrop-filter: blur(18px) saturate(1.4);
    border-bottom: 1px solid var(--color-line);
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 650;
    text-decoration: none;
  }

  .topbar__nav {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 2.5vw, 1.75rem);
    font-size: 0.95rem;

    a:not(.button) {
      color: var(--color-ink-muted);
      text-decoration: none;
      transition: color 0.2s;
    }

    a:not(.button):hover {
      color: var(--color-ink);
    }
  }

  .section {
    max-width: var(--width);
    margin: 0 auto;
    padding: clamp(4rem, 10vw, 7.5rem) clamp(1rem, 4vw, 2rem) 0;
  }


  .section__title {
    max-width: 18ch;
    margin: 0 auto 3rem;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    text-align: center;
  }


  /* Edge to edge (the marquee), with the title still centred above. */
  .section--bleed {
    max-width: none;
    padding-inline: 0;
  }

  .footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: clamp(4rem, 10vw, 7rem);
    padding: 2rem 1rem 3rem;
    border-top: 1px solid var(--color-line);
    color: var(--color-ink-muted);
    font-size: 0.9rem;

    a {
      text-decoration: none;
    }

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

  @media (max-width: 640px) {
    .topbar__nav a:not(.button) {
      display: none;
    }
  }
}
