body.page {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
  }

  body.page > main {
    flex: 1 0 auto;
    width: 100%;
  }

  .page-main {
    padding-bottom: clamp(5rem, 10vw, 8rem);
  }

  .page-hero {
    padding-block: clamp(4rem, 9vw, 8rem);
  }

  .page-hero--prop,
  .terminal-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(140px, 260px);
    align-items: center;
    gap: clamp(2rem, 7vw, 6rem);
  }

  .page-hero h1,
  .terminal-hero h1,
  .auth__title {
    margin: 0;
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: .96;
    text-wrap: balance;
  }

  .page-hero h1,
  .terminal-hero h1 {
    max-width: 13ch;
    font-size: clamp(2.8rem, 7vw, 5.75rem);
  }

  .page-intro,
  .term__intro {
    max-width: 62ch;
    margin: 1.4rem 0 0;
    color: var(--ink-soft);
    text-wrap: pretty;
  }

  .page-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
    margin-top: 2rem;
  }

  /* Same little world as the home hero: a soft blob of sky, chunky props that
     drift with the pointer, and the bot standing in front of them. The home
     names its pieces .world__*; these pages carry more than one scene shape, so
     the sizes live on the modifier and the placement on the piece. */
  .page-scene {
    --drift-x: 0px;
    --drift-y: 0px;
    position: relative;
    aspect-ratio: 1;
    border-radius: 44% 56% 58% 42% / 46% 38% 62% 54%;
    background: var(--sky);
    animation: world-pop .62s both var(--ease-out);
  }

  .scene__prop,
  .scene__ground,
  .page-scene > .mascot {
    position: absolute;
    animation: world-pop .62s both var(--ease-out);
  }

  .scene__prop {
    transition: translate .35s var(--ease-out);
  }

  .scene__ground {
    left: 17%;
    bottom: 12%;
    z-index: 1;
    width: 66%;
    animation-delay: .06s;
  }

  /* Depth: the far pieces follow the pointer, the near one leans against it. */
  .scene__prop--far,
  .scene__prop--far-ground,
  .scene__prop--arch {
    animation-delay: .12s;
    translate: var(--drift-x) var(--drift-y);
  }

  /* The home hangs its planet in this corner, so the slot is for things that
     fly. Anything with legs or a base takes the grounded one below. */
  .scene__prop--far {
    top: 3%;
    right: 1%;
    z-index: 1;
    width: 22%;
  }

  .scene__prop--far-ground {
    right: 4%;
    bottom: 20%;
    z-index: 1;
    width: 22%;
  }

  .scene__prop--near {
    left: 3%;
    bottom: 23%;
    z-index: 3;
    width: 25%;
    transform: rotate(-6deg);
    animation-delay: .18s;
    translate: calc(0px - var(--drift-x)) calc(0px - var(--drift-y));
  }

  /* Sign in is the one page whose prop is the destination, so the door stands
     behind the bot instead of off to one side. */
  .scene__prop--arch {
    left: 26%;
    bottom: 24%;
    z-index: 0;
    width: 50%;
  }

  .page-scene > .mascot {
    left: 33%;
    bottom: 19%;
    z-index: 2;
    width: 38%;
    animation-delay: .26s;
  }

  .faq-section {
    max-width: 980px;
  }

  .qa-list {
    border-top: 1px solid var(--line);
  }

  .qa {
    padding-block: clamp(1.7rem, 4vw, 2.6rem);
    border-bottom: 1px solid var(--line);
    scroll-margin-top: calc(var(--nav-height) + 1rem);
  }

  .qa h2 {
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    line-height: 1.1;
  }

  .qa p {
    max-width: 68ch;
    margin: .8rem 0 0;
    color: var(--ink-soft);
    text-wrap: pretty;
  }

  .qa a,
  .auth a:not(.install-button),
  .terminal-page a:not(.install-button) {
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: .25em;
  }

  .page-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: 980px;
    margin-top: clamp(3rem, 7vw, 5rem);
    padding-block: 1.5rem;
    border-bottom: 1px solid var(--line);
  }

  .page-cta p {
    margin: 0;
    font: 700 clamp(1.5rem, 3vw, 2.4rem)/1 var(--display);
  }

  .auth {
    max-width: 560px;
    margin-inline: auto;
    padding: clamp(3rem, 7vw, 6rem) var(--pad);
    text-align: center;
  }

  .auth .page-scene {
    width: 216px;
    margin: 0 auto 1.7rem;
  }

  .seg {
    position: relative;
    display: inline-grid;
    grid-auto-flow: column;
    gap: 2px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: var(--pill);
    background: var(--sky);
  }

  .seg__btn {
    position: relative;
    z-index: 1;
    min-width: 116px;
    min-height: 42px;
    padding-inline: 1rem;
    border-radius: var(--pill);
    background: transparent;
    color: var(--ink-soft);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
  }

  .seg__btn.is-on {
    color: var(--ink);
  }

  .seg__thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 5px);
    height: calc(100% - 8px);
    border: 1px solid var(--line);
    border-radius: var(--pill);
    background: var(--paper);
    transition: transform .28s var(--ease-out);
  }

  .is-signup .seg__thumb {
    transform: translateX(calc(100% + 2px));
  }

  .auth__title {
    margin-top: 1.8rem;
    font-size: clamp(2.2rem, 6vw, 3.4rem);
  }

  .auth__sub,
  .auth__note,
  .card__soon,
  .auth__foot {
    color: var(--ink-soft);
  }

  .auth__sub {
    margin: .7rem 0 0;
  }

  .auth__note {
    margin: 1rem 0 0;
    font-size: .9rem;
  }

  .card {
    display: grid;
    gap: 1rem;
    margin-top: 1.4rem;
    padding: clamp(1.2rem, 4vw, 1.7rem);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: color-mix(in oklch, var(--sky) 52%, var(--paper));
    text-align: left;
  }

  .field__label {
    display: block;
    margin-bottom: .45rem;
    color: var(--ink-soft);
    font-size: .85rem;
    font-weight: 600;
  }

  .field__wrap {
    position: relative;
  }

  .field__input {
    width: 100%;
    min-height: 48px;
    padding-inline: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--pill);
    background: var(--paper);
    color: var(--ink);
    font: 400 1rem var(--body);
  }

  .field__input::placeholder,
  .term__input::placeholder {
    color: var(--ink-soft);
    opacity: 1;
  }

  .field__input:focus-visible,
  .term__input:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 3px;
  }

  .field__wrap .field__input {
    padding-right: 3.2rem;
  }

  .field__eye {
    position: absolute;
    top: 50%;
    right: .25rem;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    color: var(--ink-soft);
    transform: translateY(-50%);
    cursor: pointer;
  }

  .field__eye svg {
    width: 20px;
    height: 20px;
  }

  .field__error {
    margin: .55rem 0 0;
    color: var(--ink);
    font-size: .85rem;
    font-weight: 600;
  }

  .auth__forgot {
    justify-self: end;
    font-size: .85rem;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding-inline: 1.3rem;
    border: 1px solid var(--line);
    border-radius: var(--pill);
    background: var(--paper);
    color: var(--ink);
    font: 700 .95rem/1 var(--display);
    cursor: pointer;
  }

  .btn--solid {
    border-color: transparent;
    background: var(--accent);
    color: #261c17;
  }

  .btn[disabled] {
    cursor: not-allowed;
    opacity: .55;
  }

  .card__submit,
  .card__google {
    width: 100%;
    gap: .5rem;
  }

  .card__submit svg,
  .card__google svg {
    width: 18px;
    height: 18px;
  }

  .card__soon,
  .auth__foot,
  .auth__ok {
    margin: .6rem 0 0;
    font-size: .85rem;
  }

  .auth__foot,
  .auth__ok {
    margin-top: 1.5rem;
  }

  .rule {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: .8rem;
    margin: 0;
  }

  .rule::before,
  .rule::after {
    height: 1px;
    background: var(--line);
    content: "";
  }

  .rule span {
    color: var(--ink-soft);
    font-size: .85rem;
  }

  .verify {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .8rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--pill);
    background: var(--paper);
    color: var(--ink-soft);
    font-size: .85rem;
  }

  .verify__by {
    margin-left: auto;
  }

  .terminal-page {
    max-width: 1040px;
    padding-block: clamp(3.5rem, 8vw, 7rem);
  }

  .terminal-hero {
    margin-bottom: clamp(2.5rem, 6vw, 5rem);
  }

  .terminal-hero .page-scene {
    width: min(100%, 240px);
    justify-self: end;
  }

  .quick {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1rem;
  }

  .quick__label {
    width: 100%;
    margin: 0;
    color: var(--ink-soft);
    font-size: .9rem;
    font-weight: 600;
  }

  .quick a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: .55rem .9rem;
    border: 1px solid var(--line);
    border-radius: var(--pill);
    background: var(--paper);
    color: var(--ink);
    font-size: .9rem;
    font-weight: 600;
  }

  .term {
    display: flex;
    flex-direction: column;
    height: clamp(500px, 70svh, 640px);
    padding: clamp(1rem, 3vw, 1.6rem);
    border-radius: 24px;
    background: var(--sky);
  }

  .term__transcript {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
  }

  .transcript__entry {
    padding: .8rem 0;
    border-bottom: 1px solid var(--line);
    animation: page-rise .2s var(--ease-out);
  }

  .transcript__text {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  .transcript__entry--echo {
    color: var(--ink-soft);
  }

  .transcript__marker {
    margin-right: .4rem;
    color: var(--accent);
    font-weight: 700;
  }

  .transcript__entry--error {
    margin-top: .6rem;
    padding: .8rem 1rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    font-weight: 600;
  }

  .term__turnstile {
    padding-block: .7rem;
  }

  .term__form {
    padding-top: .9rem;
    border-top: 1px solid var(--line);
  }

  .term__inputline {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .55rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--pill);
    background: var(--paper);
  }

  .term__inputline:focus-within {
    border-color: var(--ink);
  }

  .term__input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 36px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    caret-color: var(--accent);
    font: 500 1rem var(--body);
  }

  .tfoot {
    padding-top: 1rem;
    color: var(--ink-soft);
    font-size: .85rem;
  }

  .tfoot p {
    margin: 0;
  }

  .blog-main {
    max-width: 900px;
    padding-block: clamp(3.5rem, 8vw, 7rem);
  }

  .blog-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
    align-items: center;
    gap: clamp(2rem, 7vw, 5rem);
    padding-bottom: clamp(3rem, 7vw, 5rem);
    border-bottom: 1px solid var(--line);
  }

  .blog-hero h1,
  .article-header h1 {
    margin: 0;
    font: 700 clamp(2.8rem, 7vw, 5.8rem)/.98 var(--display);
    letter-spacing: -.035em;
    text-wrap: balance;
  }

  .blog-hero .meta,
  .article-header .meta {
    margin: 1.2rem 0 0;
    color: var(--ink-soft);
  }

  .blog-hero .page-scene {
    justify-self: end;
    width: min(100%, 320px);
  }

  /* An article header is a reading surface, so its scene sits beside the title
     at a size that never competes with it. */
  .article-header .page-scene {
    width: min(38vw, 168px);
    justify-self: end;
  }

  .index-list {
    display: grid;
    gap: 1rem;
    margin: clamp(2rem, 5vw, 4rem) 0 0;
    padding: 0;
    list-style: none;
  }

  .index-list li {
    margin: 0;
  }

  .index-list a {
    display: block;
    padding: clamp(1.4rem, 4vw, 2.4rem);
    border-radius: 38px 22px 34px 26px;
    background: color-mix(in oklch, var(--sky) 58%, var(--paper));
    transition: transform .18s var(--ease-out), background-color .18s ease;
  }

  .index-list a:hover {
    background: var(--sky);
    transform: translateY(-3px);
  }

  .index-list a:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
  }

  .index-list h2 {
    margin: 0;
    font: 700 clamp(1.35rem, 3vw, 2rem)/1.1 var(--display);
    letter-spacing: -.02em;
  }

  .index-list p {
    max-width: 68ch;
    margin: .65rem 0 0;
    color: var(--ink-soft);
  }

  .article-header,
  .blog-post article,
  .post-history,
  .endcta {
    max-width: 760px;
    margin-inline: auto;
  }

  .article-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: clamp(1.5rem, 4vw, 3rem);
    padding-bottom: clamp(2rem, 5vw, 3.5rem);
  }

  .article-header h1 {
    font-size: clamp(2.6rem, 6vw, 4.8rem);
  }

  .post-history {
    margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
    padding-block: 1rem;
    border-block: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: .95rem;
  }

  .blog-post article {
    font-size: clamp(1.05rem, 1.3vw, 1.18rem);
    line-height: 1.72;
  }

  .blog-post article p {
    margin: 0 0 1.35rem;
  }

  .blog-post article h2,
  .blog-post article h3 {
    max-width: 28ch;
    padding-top: clamp(1.5rem, 5vw, 3rem);
    font-family: var(--display);
    line-height: 1.12;
    letter-spacing: -.02em;
    text-wrap: balance;
  }

  .blog-post article h2 {
    font-size: clamp(1.8rem, 4vw, 2.7rem);
  }

  .blog-post article h3 {
    font-size: clamp(1.35rem, 3vw, 1.8rem);
  }

  .blog-post article h2 + *,
  .blog-post article h3 + * {
    margin-top: 1rem;
  }

  .blog-post article ul,
  .blog-post article ol {
    margin: 0 0 1.5rem;
    padding-left: 1.35rem;
  }

  .blog-post article li + li {
    margin-top: .65rem;
  }

  .blog-post article a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: .08em;
    text-underline-offset: .18em;
  }

  .blog-post article blockquote {
    margin: 2rem 0;
    padding-block: 1.25rem;
    border-block: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 1.08em;
  }

  .blog-post article blockquote p:last-child {
    margin-bottom: 0;
  }

  .endcta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: clamp(3rem, 7vw, 5rem);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 44px 26px 40px 30px;
    background: var(--sky);
  }

  .endcta p {
    margin: 0;
    font: 700 clamp(1.25rem, 3vw, 1.7rem)/1.1 var(--display);
  }

  .endcta .btn {
    flex: 0 0 auto;
    min-height: 48px;
    padding: .75rem 1.25rem;
    border-radius: var(--pill);
    background: var(--accent);
    color: #261c17;
    font-weight: 700;
  }

  @keyframes page-rise {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @media (max-width: 700px) {
    .page-hero--prop,
    .terminal-hero {
      grid-template-columns: minmax(0, 1fr);
      gap: 2rem;
    }

    .page-scene,
    .terminal-hero .page-scene {
      width: 176px;
      justify-self: start;
    }

    .article-header {
      grid-template-columns: minmax(0, 1fr);
      gap: 1.5rem;
    }

    .article-header .page-scene {
      width: 132px;
      justify-self: start;
    }

    .page-actions,
    .page-cta {
      align-items: stretch;
      flex-direction: column;
    }

    .page-actions .text-link {
      text-align: center;
    }

    .auth {
      padding-block: 3rem;
    }

    .card {
      padding: 1rem;
    }

    .terminal-page {
      padding-block: 3rem;
    }

    .blog-main {
      padding-block: 3rem 4.5rem;
    }

    .blog-hero {
      grid-template-columns: minmax(0, 1fr);
      gap: 2rem;
    }

    .blog-hero .page-scene {
      justify-self: start;
      width: min(58vw, 210px);
    }

    .index-list a {
      border-radius: 28px 18px 26px 20px;
    }

    .endcta {
      align-items: stretch;
      flex-direction: column;
    }

    .endcta .btn {
      text-align: center;
    }

  }
