/* The page around the demo's phone, 2026-11-25: the look of site.v8.css (stone, ink, a block of
   pine, Hoefler Text titles) on the demo page. Loaded after site.v7.css and demo.v5.css, which the
   demo itself still needs and which stay as they are. Everything here is for a desktop window:
   on a phone the app is the whole page and this file changes nothing.
   Colours: the tokens in the two blocks below are the only literals. */
body.demo {
  --p-page: #eeeeea;
  --p-fg: #14181a;
  --p-muted: #555b5e;
  --p-rule: rgba(20, 24, 26, 0.16);
  --p-block: #0c3a2f;
  --p-on-block: #f2f5f2;
  --p-on-block-muted: #b9cec6;
  --p-display: "Hoefler Text", ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --p-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --p-edge: clamp(1.25rem, 5vw, 4.5rem);
}
@media (prefers-color-scheme: dark) {
  body.demo {
    --p-page: #0b0e0d;
    --p-fg: #eceeec;
    --p-muted: #a0a9a5;
    --p-rule: rgba(236, 238, 236, 0.16);
    --p-block: #0f3a30;
  }
}
@media (min-width: 52.01rem) {
  /* Two halves: the words on stone, the phone on pine. */
  body.demo {
    --frame-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 50px 90px -40px rgba(0, 0, 0, 0.75);
    background: linear-gradient(to right, var(--p-page) 50%, var(--p-block) 50%);
    color: var(--p-fg);
    font-size: 1.0625rem;
    line-height: 1.55;
  }
  body.demo header.site {
    max-width: none;
    align-items: baseline;
    flex-wrap: nowrap;
    padding: 1.35rem var(--p-edge) 1.1rem;
  }
  body.demo .mark { font: 700 1.375rem/1 var(--p-display); letter-spacing: -0.02em; color: var(--p-fg); }
  body.demo header.site nav { flex-wrap: nowrap; gap: 0 clamp(0.85rem, 2.4vw, 2rem); font-size: 0.875rem; }
  body.demo header.site nav a { color: var(--p-on-block-muted); padding: 0.35rem 0; transition: color 0.18s var(--p-ease); }
  body.demo header.site nav a:hover, body.demo header.site nav a[aria-current] { color: var(--p-on-block); }
  body.demo header.site nav a[aria-current] { box-shadow: 0 1px 0 currentColor; }

  body.demo .stage {
    max-width: none;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    padding: 0 0 1.5rem;
  }
  body.demo .about { justify-self: start; width: 100%; max-width: 36rem; padding: 0 clamp(1.5rem, 4vw, 4rem) 0 var(--p-edge); }
  body.demo .phone { justify-self: center; }
  body.demo .about h1 {
    font: 600 clamp(2.25rem, 4.4vw, 3.5rem)/1.04 var(--p-display);
    letter-spacing: -0.025em;
    margin: 0 0 1rem;
    animation: none;
  }
  body.demo .about h1 .wordmark { font-family: var(--p-display); font-weight: 900; letter-spacing: -0.03em; }
  body.demo .about .lede { font-size: 1.0625rem; line-height: 1.55; color: var(--p-muted); max-width: 36ch; margin: 0 0 1.75rem; }
  body.demo .try { max-width: 26rem; margin-bottom: 1.75rem; border-top-color: var(--p-rule); }
  body.demo .try li { border-bottom-color: var(--p-rule); }
  body.demo .try a { padding: 0.75rem 0; color: var(--p-fg); transition: transform 0.2s var(--p-ease); }
  body.demo .try a::after { color: var(--p-muted); transition: transform 0.2s var(--p-ease); }
  body.demo .try a:hover { color: var(--p-fg); transform: translateX(0.25rem); }
  body.demo .try a:hover::after { color: var(--p-fg); transform: translateX(3px); }
  body.demo .fine { font-size: 0.875rem; color: var(--p-muted); max-width: 40ch; }
  body.demo .about a:focus-visible, body.demo header.site a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
}
@media (min-width: 52.01rem) and (prefers-reduced-motion: reduce) {
  body.demo .try a, body.demo .try a::after, body.demo header.site nav a { transition: none; }
}
