/* Leeway product page, main stylesheet, loaded after page.css: a compact identity row, then the page's own words inside a window
   drawn in HTML and CSS, with the typing demonstration. The window is an illustration, never a screenshot: its chrome is decoration
   hidden from assistive technology and its document is real, selectable text that reflows. Its proportions and type follow a light
   screenshot of Leeway measured at 2x (an 866 × 897 pt window, a 52 pt title bar, a 37 pt footer, a 624 pt text column). */

/* The header links glide under the script's control (js/leeway.js), so the browser's own smooth scrolling is off on this page:
   a direct link, a reload or a visit without the script goes straight to the section, and two animations never compete. */
html { scroll-behavior: auto; }

/* Page appearance: the page follows the device's light or dark setting with no script, unless the footer control has set Light or
   Dark on the root (data-lw-page, set by js/leeway.js before the first paint). Only tokens change, never layout, and nothing
   transitions; dark is for the screen only, so print stays light. Dark uses Leeway's dark Ink tokens and chrome colors measured from a
   dark Ink screenshot; the theme sample in Appearance keeps its own colors, independent of the page. Images are shown as captured. */
:root { --pg-surface: #fbf8f0; --pg-chip: #fbf7ee; --pg-seg-rule: #868c7b; --pg-seg-on: #e2e6d6;
  --lw-shadow: 0 0 0 .5px rgba(0, 0, 0, .18), 0 1px 3px rgba(0, 0, 0, .06), 0 14px 36px -6px rgba(0, 0, 0, .2);
  --lw-shadow-phone: 0 0 0 .5px rgba(0, 0, 0, .18), 0 1px 3px rgba(0, 0, 0, .06), 0 10px 26px -6px rgba(0, 0, 0, .18); }
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-lw-page="light"]) { color-scheme: dark;
    --ivory: #141a16; --ivory-2: #1a211c; --text: #e7e3d7; --text-2: #b8bcaf; --eye: #f2ecdd; --forest: #9fc8ae; --sage: #66766a; --rule: #2c3830; --copper: #e3925e;
    --pg-surface: #18201b; --pg-chip: #1f2822; --pg-seg-rule: #66766a; --pg-seg-on: #26322a;
    --lw-shadow: 0 0 0 .5px rgba(0, 0, 0, .9), 0 1px 3px rgba(0, 0, 0, .3), 0 14px 36px -6px rgba(0, 0, 0, .55);
    --lw-shadow-phone: 0 0 0 .5px rgba(0, 0, 0, .9), 0 1px 3px rgba(0, 0, 0, .3), 0 10px 26px -6px rgba(0, 0, 0, .5); }
  :root:not([data-lw-page="light"]) .lw-window { --lw-page: #212421; --lw-bar: #292c29; --lw-text: #e8e9e3; --lw-muted: #a6afa5; --lw-rule: #3a403a; --lw-accent: #b1cbb6; --lw-button: #bfd4c1;
    --lw-glyph: #1e2a20; --lw-icon: #9fa09f; --lw-edge: #373a37; --lw-close: #f35e55; --lw-min: #fdc101; --lw-zoom: #34c000;
    --lw-divider: #2f332f; --lw-menu: #252825; --lw-menu-edge: #3b3f3b; --lw-menu-select: #393d39; }
  :root:not([data-lw-page="light"]) .lw-doc { --c-page: #212421; --c-text: #e8e9e3; --c-muted: #a6afa5; --c-rule: #3a403a; --c-accent: #b1cbb6; --c-head: #2b302b; --c-select: rgba(177, 203, 182, .13);
    --c-shadow: 0 calc(6 * var(--pt)) calc(18 * var(--pt)) rgba(0, 0, 0, .45), 0 calc(1 * var(--pt)) calc(3 * var(--pt)) rgba(0, 0, 0, .3); }
}
@media screen {
  :root[data-lw-page="dark"] { color-scheme: dark;
    --ivory: #141a16; --ivory-2: #1a211c; --text: #e7e3d7; --text-2: #b8bcaf; --eye: #f2ecdd; --forest: #9fc8ae; --sage: #66766a; --rule: #2c3830; --copper: #e3925e;
    --pg-surface: #18201b; --pg-chip: #1f2822; --pg-seg-rule: #66766a; --pg-seg-on: #26322a;
    --lw-shadow: 0 0 0 .5px rgba(0, 0, 0, .9), 0 1px 3px rgba(0, 0, 0, .3), 0 14px 36px -6px rgba(0, 0, 0, .55);
    --lw-shadow-phone: 0 0 0 .5px rgba(0, 0, 0, .9), 0 1px 3px rgba(0, 0, 0, .3), 0 10px 26px -6px rgba(0, 0, 0, .5); }
  :root[data-lw-page="dark"] .lw-window { --lw-page: #212421; --lw-bar: #292c29; --lw-text: #e8e9e3; --lw-muted: #a6afa5; --lw-rule: #3a403a; --lw-accent: #b1cbb6; --lw-button: #bfd4c1;
    --lw-glyph: #1e2a20; --lw-icon: #9fa09f; --lw-edge: #373a37; --lw-close: #f35e55; --lw-min: #fdc101; --lw-zoom: #34c000;
    --lw-divider: #2f332f; --lw-menu: #252825; --lw-menu-edge: #3b3f3b; --lw-menu-select: #393d39; }
  :root[data-lw-page="dark"] .lw-doc { --c-page: #212421; --c-text: #e8e9e3; --c-muted: #a6afa5; --c-rule: #3a403a; --c-accent: #b1cbb6; --c-head: #2b302b; --c-select: rgba(177, 203, 182, .13);
    --c-shadow: 0 calc(6 * var(--pt)) calc(18 * var(--pt)) rgba(0, 0, 0, .45), 0 calc(1 * var(--pt)) calc(3 * var(--pt)) rgba(0, 0, 0, .3); }
}
/* page.css's light surfaces, through the tokens above (the same values in light) */
.mast, .lw-workspace { background: var(--pg-surface); }
.picker label span { background: var(--pg-chip); }

/* The page appearance control, in the footer: System, Light, Dark as native radio buttons, hidden in the markup and shown by the
   script, so a visit without it has no control that can't work. The chosen segment is tinted and checked (state beyond color).
   From 64rem it sits at the end of the footer row; narrower, it takes its own row, and on phones the label sits above the group. */
.foot__links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }   /* Support and Privacy Policy, on the Leeway page and its two document pages */
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; }
.page-look fieldset { gap: 0; flex-wrap: nowrap; }
.page-look legend { float: left; margin: 0 .75rem 0 0; padding: 0; font: 400 .82rem/1.4 var(--label); letter-spacing: 0; text-transform: none; color: var(--text-2); }   /* floated, so it is a flex item beside the group */
.page-look label { position: relative; display: flex; }
.page-look label + label { margin-left: -1px; }   /* one shared border between segments */
.page-look input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.page-look label span { display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0 .7rem; border: 1px solid var(--pg-seg-rule); border-radius: 0;
  font: 500 .82rem/1 var(--label); color: var(--text-2); background: none; white-space: nowrap; }
.page-look label:first-of-type span { padding-left: .85rem; border-radius: 999px 0 0 999px; }
.page-look label:last-of-type span { padding-right: .85rem; border-radius: 0 999px 999px 0; }
.page-look input:checked + span { background: var(--pg-seg-on); color: var(--eye); }
.page-look input:checked + span::before { content: '✓'; content: '✓' / ''; margin-right: .3rem; font-size: .85em; }
.page-look input:focus-visible + span { position: relative; z-index: 1; outline: 2px solid var(--forest); outline-offset: 2px; }
@media (max-width: 63.99rem) { .page-look { flex-basis: 100%; padding-top: 1rem; border-top: 1px solid var(--rule); } }
@media (max-width: 39.99rem) { .page-look fieldset { flex-wrap: wrap; } .page-look legend { flex-basis: 100%; margin: 0 0 .5rem; } }   /* still floated: a full-width flex item above the group */

/* The product header, the same on the Leeway page and its two documents: on a document the Leeway link on the left (the Leeway
   page names itself in its opening, beside the App Store control, so its header holds the links alone); on the right three places,
   Support, Privacy Policy and Learn More, at every width, so Support and Privacy Policy never move between the pages. On a document
   Learn More's place is an empty slot (aria-hidden, hidden, never focusable) holding its width. Learn More is written once, last,
   and shown last, so the focus order follows the order on screen; its arrow points down the page. */
.mast__in { column-gap: clamp(.75rem, .75rem + (100vw - 320px) / 4, 1.5rem); }   /* from 368 px wide the gap is unchanged */
@media (min-width: 40rem) { .mast__nav:only-child { margin-inline-start: auto; } }   /* the links alone keep the documents' places, at the end */
.mast__slot { display: inline-flex; align-items: center; min-height: 44px; visibility: hidden; pointer-events: none; user-select: none; }
.mast__trail::after { content: '↓'; content: '↓' / ''; margin-left: .3em; }
/* The App Store control, in the opening beside the name. Until Leeway is in the store it is a native disabled button with no
   address and no action, announced as a dimmed button and never focused or pressed. The class carries the whole design, so the
   store link can take it later unchanged (an a.lw-store with the App Store address), adding a hover color, a focus ring and a 44 px
   touch target around the pill at either of its sizes. If its own line is ever too narrow, its words balance onto two lines. */
.lw-store { display: inline-flex; align-items: center; gap: .5rem; min-height: 2rem; margin: 0; padding: .3rem .85rem .3rem .7rem;
  border: 1px solid var(--sage); border-radius: 999px; background: var(--pg-chip); color: var(--eye); font: 500 .8125rem/1.2 var(--label); letter-spacing: 0;
  text-align: start; text-transform: none; text-decoration: none; text-wrap: balance; -webkit-appearance: none; appearance: none; }
.lw-store::before { content: ''; flex: none; width: .45rem; height: .45rem; border-radius: 50%; background: var(--copper); }
.lw-store:disabled { cursor: default; }
a.lw-store { position: relative; }
a.lw-store::after { content: ''; position: absolute; inset: min(0px, 50% - 22px) 0; }   /* 44 px tall, centred on the pill */
a.lw-store:hover { border-color: var(--forest); color: var(--forest); }
.lw-store:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
/* Phones: on all three pages the header is one 44 px row of navigation in sentence case, across the full measure, so Support and
   Privacy Policy keep the same places and the header the same height. A document leaves out its Leeway link here (doc.css): the
   band's Leeway crumb, shown at every width, still leads to the Leeway page. Support and Privacy Policy lead from the content's edge; on the Leeway page Learn More follows at
   the far end, quieter, its arrow pointing down the page. On a document that end is empty: its slot, out of the flow so it can never
   add a row, is there only so that Learn More can fade out where it stood. The labels keep their size; below 376 px only the space
   between them narrows, to 1rem at 320 px. The current page keeps its weight (so nothing beside it moves) and is marked in doc.css. */
@media (max-width: 39.99rem) {
  .mast__in { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(44px, auto); justify-items: start; align-items: center; }   /* taller only for enlarged text */
  .mast__nav { position: relative; justify-self: stretch; align-items: center; gap: 0 clamp(1rem, 1rem + (100vw - 320px) / 7, 1.5rem);
    font: 500 .9375rem/1.2 var(--label); letter-spacing: normal; text-transform: none; }
  .mast__nav a { color: var(--text); }
  .mast__nav .mast__trail { margin-inline-start: auto; font-weight: 400; color: var(--text-2); }
  .mast__nav .mast__slot.mast__trail { position: absolute; top: 0; right: 0; }
}
/* Arriving: as on the rest of evans.digital, the content under the header fades in over 500 ms and the header stays still. Moving
   between the Leeway page and a document, Learn More fades out of, or back into, its own place; leeway.js marks that one load
   (lw-nav-leave or lw-nav-return) and clears the mark when the fade ends or the page is left. Reduced motion, ?motion=reduce, no
   animation support or no script: everything is simply there, at rest. */
@media screen and (prefers-reduced-motion: no-preference) {
  :root:not(.reduce-motion) .lw #page-content { animation: lw-arrive 500ms ease-in-out; }
  :root.lw-nav-return:not(.reduce-motion) .mast__nav a[href="#formatting"] { animation: lw-arrive 500ms ease-in-out; }
  :root.lw-nav-leave:not(.reduce-motion) .mast__slot { animation: lw-depart 500ms ease-in-out; }
}
@keyframes lw-arrive { from { opacity: 0; } to { opacity: 1; } }
@keyframes lw-depart { from { opacity: 1; visibility: visible; } to { opacity: 0; visibility: hidden; } }

/* Opening: the identity, then the window, both on the window's width. The identity is one unit: the robin, then the name, then the
   tagline on its own line under it. The robin is as tall as that text, top to top and bottom to bottom. The name and the tagline grow
   with the window's width from phones to wide desktops and ease with short windows, so the headline inside the window stays in view.
   On phones, where the window's width would put the tagline on two short lines, the robin, the name and the tagline scale down
   together from the opening's own width (3.8 % of it for the tagline, twice that for the name), so the tagline keeps one line to
   320 px. The App Store control shares the name's line, centred on it and no taller than it, so the robin still spans the name and
   the tagline; on phones it is the compact pill, which fits beside the name from 360 px. Where the two can't share the line (the
   narrowest phones, larger text) the control takes its own line under the name, from the name's edge, and the tagline stays whole
   on its own line below; the robin then keeps its size at the top. */
.hero__in { container: opening / inline-size; }
.hero__top { max-width: 54rem; margin: 0 auto; }
.lockup { --lockup-name: min(clamp(1.5rem, min(1.45rem + 1.5vw, 1rem + 6vh), 4rem), 7.6cqi); --lockup-tag: min(clamp(.875rem, min(.8rem + .45vw, .5rem + 2vh), 1.5rem), 3.8cqi);
  --lockup-gap: .3rem; display: flex; align-items: flex-start; gap: min(.9rem, .55 * var(--lockup-name)); }
.lockup__robin { flex: none; width: calc(var(--lockup-name) + var(--lockup-gap) + 1.35 * var(--lockup-tag)); height: auto; }
.lockup__text { flex: 1; min-width: 0; }
.lockup__row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem min(.9rem, .4 * var(--lockup-name)); }
.lockup__row .lw-store { flex: 0 1 auto; }   /* its own width beside the name, or its own line when that is too narrow */
.lockup__name { margin: 0; font: 400 var(--lockup-name)/1 var(--serif); letter-spacing: -.015em; color: var(--eye); }
.lockup .kicker { margin: var(--lockup-gap) 0 0; font: 500 var(--lockup-tag)/1.35 var(--label); letter-spacing: 0; text-transform: none;
  color: var(--text-2); text-wrap: balance; }
@media (max-width: 39.99rem) {
  .lockup__row .lw-store { gap: .4em; min-height: 2em; padding: .15em .65em .15em .5em; font-size: clamp(.6875rem, .47 * var(--lockup-name), .75rem); }
  .lockup__row .lw-store::before { width: .5em; height: .5em; }
}
.lw-preview { width: min(100%, 54rem); margin: clamp(1rem, min(3.5vw, 4.5vh), 2rem) auto 0; }

/* The window component: the light Ink page colors and type stacks from Leeway's design tokens, as in the theme sample */
.lw-window { --lw-page: #fcfaf6; --lw-bar: #f3f0eb; --lw-text: #303933; --lw-muted: #626c64; --lw-rule: #e7e5df; --lw-accent: #426553; --lw-button: #385746;
  --lw-glyph: #fcfaf6; --lw-icon: #797875; --lw-edge: transparent; --lw-close: #fd6f65; --lw-min: #fec837; --lw-zoom: #82d659;
  --lw-divider: #e3e0da; --lw-menu: #faf8f4; --lw-menu-edge: #dedbd4; --lw-menu-select: #e4e8e1;
  --lw-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --lw-serif: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  position: relative; overflow: hidden; overflow: clip; border-radius: 16px; background: var(--lw-page); color: var(--lw-text); box-shadow: var(--lw-shadow);
  font: 400 1rem/1.625 var(--lw-sans); }   /* 26 px lines, as in the screenshot */
.lw-window::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--lw-edge); pointer-events: none; }   /* the dark window's light inner edge, as captured; none in light */
.lw-window__bar { display: flex; align-items: center; min-height: clamp(2.5rem, 8vh, 3.25rem); padding: 0 1.1rem 0 1.125rem; background: var(--lw-page); color: var(--lw-muted);
  box-shadow: inset 0 -1px 0 var(--lw-divider); }   /* Open Files hidden: the title bar is the editor surface, with a fine rule below (as in the app) */
.lw-window__lights { display: flex; flex: none; gap: 9px; }
.lw-window__lights span { width: 14px; height: 14px; border-radius: 50%; background: var(--lw-close); box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .14); }
.lw-window__lights span:nth-child(2) { background: var(--lw-min); }
.lw-window__lights span:nth-child(3) { background: var(--lw-zoom); }
.lw-window__sidebar { flex: none; margin-left: 1.75rem; color: var(--lw-icon); }
.lw-window__name { flex: 0 1 auto; min-width: 0; margin-left: 1.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 600 .84rem/1.2 var(--lw-sans); color: var(--lw-text); }
.lw-window__tools { display: flex; flex: none; align-items: center; gap: 1.2rem; margin-left: auto; padding-left: 1.5rem; }
.lw-window__aa { font: 400 .95rem/1 var(--lw-sans); }
.lw-window__copy { display: flex; align-items: center; height: 30px; padding: 0 8px 0 9px; border-radius: 8px; background: var(--lw-button); color: var(--lw-glyph); }   /* filled, as in the app; decoration, not a button */
.lw-window__split { width: 1px; height: 16px; margin: 0 7px 0 8px; background: currentColor; opacity: .35; }   /* Copy and its arrow, one control */
.lw-window__more { width: 10px; height: 6px; }
.lw-window__page { position: relative; padding: clamp(1.25rem, min(1rem + 3.5vw, 7vh - .25rem), 3.75rem) max(clamp(1.25rem, 5vw, 3rem), (100% - 39rem) / 2) clamp(1.75rem, 1rem + 3vw, 3.5rem);
  overflow-wrap: anywhere; }
.lw-window h1 { margin: 0; font: 400 min(clamp(1.65rem, 1.1rem + 2.6vw, 2.375rem), max(1.35rem, 2.375rem + (100vh - 400px) / 4))/1.16 var(--lw-serif);
  letter-spacing: -.012em; color: var(--lw-text); text-wrap: balance; }   /* the document title, as in the screenshot; eases on short screens */
.lw-window__page p { margin: 1.1rem 0 0; }
.lw-window h1 + p { margin-top: 1.3rem; }
.lw-window h2 { margin: clamp(1.6rem, 1rem + 2.5vw, 2.7rem) 0 0; font: 600 1.25rem/1.3 var(--lw-sans); letter-spacing: -.005em; color: var(--lw-text); text-wrap: balance; }
.lw-window h2 + p { margin-top: .9rem; }
.lw-window__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.35rem; padding: 0 1.15rem 0 1rem;
  border-top: 1px solid var(--lw-rule); font: 400 .72rem/1.2 var(--lw-sans); color: var(--lw-muted); }
.lw-window__theme { display: flex; align-items: center; gap: 1.1rem; }
.lw-window__theme span { display: flex; align-items: center; gap: .35rem; }

/* Typing: the untyped part of the passage is drawn transparent through a CSS highlight, so the text itself, its selection and
   the window's layout never change. Until the script takes over the passage is held back by a class, with a failsafe that shows
   it after 5 s if the script stops early. The cursor is decorative and as thin as the app's: steady while typing, then at rest
   after the last letter, blinking at about the macOS rate only while the script marks it (window in view, page visible). With
   reduced motion there is no cursor, and none in print. */
::highlight(lw-untyped) { color: transparent; }
.lw-type-pending [data-lw-type] { color: transparent; animation: lw-type-failsafe 0s 5s forwards; }
@keyframes lw-type-failsafe { to { color: var(--lw-text); } }
.lw-caret { position: absolute; top: 0; left: 0; width: max(1px, .0625rem); background: var(--lw-text); pointer-events: none; }
.lw-caret.is-blinking { animation: lw-caret-blink 1.06s steps(1, end) infinite; }
@keyframes lw-caret-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .lw-caret { display: none; } }
@media print {
  ::highlight(lw-untyped) { color: #303933; }
  .lw-type-pending [data-lw-type] { color: #303933; animation: none; }
  .lw-caret { display: none !important; }
}

/* Quick formatting and Keep your files open, composed as one band: the formatting example on the left, the files explanation with
   its illustrated Open Files window on the right, read in that order; one column on narrower screens, in the same order. Each keeps
   its own section, heading and focus target for the header links. These rules override page.css's separate full-width bands for
   this page. */
.lw-workspace { padding-block: clamp(3rem, 7vw, 5rem); border-block: 1px solid var(--rule); }   /* its background: --pg-surface, above */
.lw-workspace__in { display: grid; align-items: start; gap: clamp(2.75rem, 7vw, 3.5rem) clamp(2rem, 5vw, 4rem); }
@media (min-width: 52rem) { .lw-workspace__in { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.lw-workspace .format, .lw-workspace .workflow { padding-block: 0; background: none; border: 0; }
/* Both sections open with the same heading, a serif title at one size and spacing; at 24 px both fit one line in the two columns
   on wide windows (from about 1030 px). The paragraph rules take only the section's own paragraphs, not the window's. Nothing is
   stretched or clipped to match the example, which keeps its full height for the chooser. */
.lw-workspace .format > h2, .lw-workspace .workflow > h2 { margin: 0 0 1rem; font-size: 1.5rem; }
.lw-workspace .workflow > p { max-width: 34rem; margin: .9rem 0 0; color: var(--text-2); }
.lw-workspace .workflow h2 + p { margin-top: 0; }
@media (min-width: 52rem) { .lw-workspace .workflow > p { margin-top: .7rem; line-height: 1.55; } }   /* tighter leading in two columns */
/* Stacked (below 52rem): each section is centered at the width of its own visual, the formatting example's 40rem and the Open
   Files window's 500px, with its headings and paragraphs left-aligned; on phones, narrower than both, they fill the column. */
@media (max-width: 51.99rem) {
  .lw-workspace .format { width: 100%; max-width: 40rem; justify-self: center; }
  .lw-workspace .workflow { width: 100%; max-width: 500px; justify-self: center; }
}

/* The Open Files window: one illustrated Leeway window showing the list, the open document and the title bar's file icon and Copy
   together; it takes the window above's tokens, with nothing live or moving. Its list follows the app's Open Files sidebar in
   points; the window is drawn 500 pt wide and scaled as a whole by --fp, so phones see the same window smaller, never a fragment. */
.lw-files-view { container-type: inline-size; max-width: 500px; margin-top: 1.5rem; }
.lw-window.lw-files { --fp: min(1px, 100cqw / 500); --side: calc(210 * var(--fp)); border-radius: calc(16 * var(--fp)); font: 400 calc(16 * var(--fp))/calc(26 * var(--fp)) var(--lw-sans); }
.lw-files p { margin: 0; }
.lw-files svg { flex: none; }
.lw-files__bar { display: flex; align-items: center; height: calc(50 * var(--fp)); padding: 0 calc(19 * var(--fp)) 0 calc(18 * var(--fp)); color: var(--lw-muted);
  background: linear-gradient(var(--lw-divider), var(--lw-divider)) right bottom / calc(100% - var(--side)) 1px no-repeat, linear-gradient(to right, var(--lw-bar) var(--side), var(--lw-page) var(--side)); }
.lw-files::before { content: ''; position: absolute; top: 0; bottom: 0; left: var(--side); width: 1px; background: var(--lw-divider); pointer-events: none; }
.lw-files__lights { display: flex; flex: none; gap: calc(9 * var(--fp)); }
.lw-files__lights span { width: calc(14 * var(--fp)); height: calc(14 * var(--fp)); border-radius: 50%; background: var(--lw-close); box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .14); }
.lw-files__lights span:nth-child(2) { background: var(--lw-min); }
.lw-files__lights span:nth-child(3) { background: var(--lw-zoom); }
.lw-files__toggle { width: calc(18 * var(--fp)); height: calc(14 * var(--fp)); margin-left: calc(28 * var(--fp)); color: var(--lw-icon); }
.lw-files__name { flex: 0 1 auto; min-width: 0; margin-left: calc(var(--side) - 124 * var(--fp) + 14 * var(--fp)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 600 calc(13.44 * var(--fp))/1.2 var(--lw-sans); color: var(--lw-text); }
.lw-files__tools { display: flex; flex: none; align-items: center; gap: calc(13 * var(--fp)); margin-left: auto; padding-left: calc(8 * var(--fp)); }
.lw-files__aa { font: 400 calc(15.2 * var(--fp))/1 var(--lw-sans); }
.lw-files__source { width: calc(20 * var(--fp)); height: calc(14 * var(--fp)); }
.lw-files__file { width: calc(14 * var(--fp)); height: calc(17 * var(--fp)); }
.lw-files__copy { display: flex; align-items: center; height: calc(28 * var(--fp)); padding: 0 calc(7 * var(--fp)) 0 calc(8 * var(--fp)); border-radius: calc(7.5 * var(--fp)); background: var(--lw-button); color: var(--lw-glyph); }
.lw-files__copy svg:first-child { width: calc(15 * var(--fp)); height: calc(16.875 * var(--fp)); }
.lw-files__split { width: 1px; height: calc(15 * var(--fp)); margin: 0 calc(6 * var(--fp)) 0 calc(7 * var(--fp)); background: currentColor; opacity: .35; }
.lw-files__more { width: calc(9 * var(--fp)); height: calc(5.4 * var(--fp)); }
.lw-files__main { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); }
.lw-files__list { padding: calc(5.5 * var(--fp)) calc(9 * var(--fp)) 0 calc(4 * var(--fp)); background: var(--lw-bar); }
.lw-files__head { display: flex; align-items: center; height: calc(24 * var(--fp)); margin-bottom: calc(5 * var(--fp)); padding: 0 0 calc(5 * var(--fp)) calc(11.1 * var(--fp)); border-bottom: 1px solid var(--lw-divider);   /* a quiet rule below the heading */
 
  font: 600 calc(11 * var(--fp))/1 var(--lw-sans); letter-spacing: .04em; text-transform: uppercase; color: var(--lw-muted); }
.lw-files__head span { flex: 1; }
.lw-files__add { width: calc(9.4 * var(--fp)); height: calc(9.4 * var(--fp)); }
.lw-files__folder { width: calc(13.8 * var(--fp)); height: calc(10.5 * var(--fp)); margin: 0 calc(7.3 * var(--fp)) 0 calc(15.5 * var(--fp)); }
.lw-files__item { display: flex; align-items: center; height: calc(26 * var(--fp)); margin-top: calc(2.7 * var(--fp)); padding: 0 calc(9.5 * var(--fp)) 0 calc(13 * var(--fp));
  border-radius: calc(6 * var(--fp)); font: 400 calc(13 * var(--fp))/1 var(--lw-sans); color: var(--lw-text); white-space: nowrap; }
.lw-files__item--open { background: var(--lw-rule); background: color-mix(in srgb, var(--lw-text) 11%, var(--lw-bar)); }
.lw-files__item svg { width: calc(8.8 * var(--fp)); height: calc(8.8 * var(--fp)); margin-left: auto; color: var(--lw-muted); }
.lw-files__doc { padding: calc(34 * var(--fp)) calc(24 * var(--fp)) calc(24 * var(--fp)) calc(36 * var(--fp)); background: var(--lw-page); }
.lw-files__title { font: 400 calc(38 * var(--fp))/1.16 var(--lw-serif); letter-spacing: -.012em; color: var(--lw-text); text-wrap: balance; }
.lw-files__text { max-height: calc(5 * 26 * var(--fp)); margin-top: calc(20.8 * var(--fp)); overflow: hidden; }
.lw-files__menu { position: absolute; top: calc(46 * var(--fp)); right: calc(19 * var(--fp)); width: calc(196 * var(--fp)); padding: calc(6 * var(--fp)) calc(6 * var(--fp)) calc(7 * var(--fp));
  border-radius: calc(10 * var(--fp)); background: var(--lw-menu); box-shadow: 0 0 0 1px var(--lw-menu-edge), 0 calc(8 * var(--fp)) calc(22 * var(--fp)) rgba(0, 0, 0, .16); }
.lw-files__menu-head, .lw-files__menu-row { display: grid; grid-template-columns: calc(56 * var(--fp)) minmax(0, 1fr); align-items: center; }
.lw-files__menu-head { height: calc(22 * var(--fp)); font: 600 calc(9.5 * var(--fp))/1 var(--lw-sans); letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; color: var(--lw-muted); }
.lw-files__menu-head span:first-child { justify-self: center; }
.lw-files__menu-head span + span { padding-left: calc(10 * var(--fp)); }
.lw-files__menu-row { height: calc(27 * var(--fp)); font: 400 calc(13 * var(--fp))/1 var(--lw-sans); color: var(--lw-text); }
.lw-files__check { display: grid; place-items: center; justify-self: center; width: calc(15 * var(--fp)); height: calc(15 * var(--fp)); border-radius: 50%; box-shadow: inset 0 0 0 1px var(--lw-muted); }
.lw-files__check svg { width: calc(10 * var(--fp)); height: calc(10 * var(--fp)); }
.lw-files__menu-row--default .lw-files__check { background: var(--lw-button); box-shadow: none; color: var(--lw-glyph); }
.lw-files__format { display: flex; align-items: center; height: 100%; padding-left: calc(10 * var(--fp)); border-radius: calc(6 * var(--fp)); white-space: nowrap; }
.lw-files__menu-row--default .lw-files__format { background: var(--lw-menu-select); color: var(--lw-accent); }

/* Quick formatting: the format chooser, shown rather than told, on an excerpt of a sample document. Its geometry follows the app's
   chooser in native points (a 304 pt panel, 29 pt rows, the selection at 13% accent); --pt is 1 px wherever the excerpt is at least
   336 px wide, proportionally less on narrower phones. The chooser is the query line's sibling, 8 pt below the caret, so no source
   whitespace can push it down, and a line keeps its 26 pt height as text and as a heading, so nothing moves. Without the script, or
   with reduced motion, the markup is one still frame: /h, the headings, Heading 2 selected. */
.lw-chooser-demo { container-type: inline-size; max-width: 40rem; }   /* the section's single visual */
.lw-doc__line [data-lw-typed] { transition: opacity .4s ease; }
.lw-doc__line.is-clearing [data-lw-typed] { opacity: 0; }   /* the loop's quiet reset: the heading fades, then the empty line rests */
.lw-doc { --pt: min(1px, 100cqw / 336); --c-page: #fcfaf6; --c-text: #303933; --c-muted: #626c64; --c-rule: #e7e5df; --c-accent: #426553;
  --c-head: #f0efe9; --c-select: rgba(66, 101, 83, .13);
  --c-shadow: 0 calc(6 * var(--pt)) calc(18 * var(--pt)) rgba(0, 0, 0, .14), 0 calc(1 * var(--pt)) calc(3 * var(--pt)) rgba(0, 0, 0, .06);
  --c-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  position: relative; min-height: calc(524 * var(--pt)); padding: calc(24 * var(--pt)); border: 1px solid var(--c-rule); border-radius: 8px;
  background: var(--c-page); color: var(--c-text); font: 400 calc(16 * var(--pt))/calc(26 * var(--pt)) var(--c-sans); }
.lw-doc p { margin: 0; }
/* Room for the full ten-row panel below the line: the line sits under the first paragraph, which wraps to two or three lines in a
   narrow excerpt (24 + up to 78 + 26 to the line, + 29.75 + 355 + 8 = 521 pt) and to one or two at the full 40rem (up to 495). */
@container (min-width: 40rem) { .lw-doc { min-height: calc(500 * var(--pt)); } }
.lw-doc__active { position: relative; margin-top: calc(26 * var(--pt)); }
.lw-doc__line { display: flex; align-items: center; height: calc(26 * var(--pt)); white-space: nowrap; }
.lw-doc__line.is-heading { font: 600 calc(20 * var(--pt))/calc(26 * var(--pt)) var(--c-sans); letter-spacing: -.005em; }   /* the heading look from the light screenshot */
.lw-doc__caret { flex: none; width: max(1px, calc(1 * var(--pt))); height: calc(17.5 * var(--pt)); margin-left: 1px; background: var(--c-text); }   /* the screenshot's cursor height */
.lw-doc__line.is-heading .lw-doc__caret { height: calc(22 * var(--pt)); }
.lw-doc__caret.is-blinking { animation: lw-caret-blink 1.06s steps(1, end) infinite; }
.lw-doc__table { width: 100%; margin-top: calc(16 * var(--pt)); border-collapse: collapse; font-size: inherit; }
.lw-doc__table th, .lw-doc__table td { height: calc(38 * var(--pt)); padding: 0 calc(10 * var(--pt)); border-bottom: 1px solid var(--c-rule); text-align: left; }
.lw-doc__table th { background: var(--c-head); font-weight: 600; }
.lw-doc__quote { margin-top: calc(26 * var(--pt)) !important; padding-left: calc(16 * var(--pt)); border-left: max(1px, calc(1.5 * var(--pt))) solid var(--c-accent);
  font: 400 calc(18 * var(--pt))/calc(28 * var(--pt)) 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, serif; }
.lw-doc__quote + .lw-doc__text { margin-top: calc(16 * var(--pt)); }
.lw-chooser { position: absolute; z-index: 2; left: 0; top: calc(29.75 * var(--pt)); width: calc(304 * var(--pt)); height: calc((31 * var(--rows, 10) + 45) * var(--pt));
  border: 1px solid var(--c-rule); border-radius: calc(10 * var(--pt)); background: var(--c-page); white-space: normal;
  box-shadow: var(--c-shadow);
  opacity: 0; transition: opacity 160ms cubic-bezier(.55, .085, .68, .53); }   /* closing: 160 ms ease-in (quadratic) */
.lw-chooser.is-open { opacity: 1; transition: opacity 120ms cubic-bezier(.25, .46, .45, .94); }   /* opening: 120 ms ease-out (quadratic) */
.lw-chooser__head { position: absolute; left: calc(16 * var(--pt)); top: calc(10 * var(--pt)); width: calc(272 * var(--pt)); height: calc(20 * var(--pt)); margin: 0;
  overflow: hidden; white-space: nowrap; font: 500 calc(12 * var(--pt))/calc(20 * var(--pt)) var(--c-sans); color: var(--c-muted); }
.lw-chooser__scroll { position: absolute; left: calc(8 * var(--pt)); top: calc(34 * var(--pt)); width: calc(288 * var(--pt)); height: calc(100% - 42 * var(--pt)); overflow: hidden; }
.lw-chooser__rows { display: grid; gap: calc(2 * var(--pt)); margin: 0; padding: 0; list-style: none; }
.lw-chooser__row { position: relative; height: calc(29 * var(--pt)); }
.lw-chooser__row[hidden] { display: none; }
.lw-chooser__row.is-selected::before { content: ''; position: absolute; inset: calc(1 * var(--pt)); border-radius: calc(7 * var(--pt)); background: var(--c-select); }
.lw-chooser__row > span { position: absolute; top: calc(5.5 * var(--pt)); height: calc(18 * var(--pt)); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; line-height: calc(18 * var(--pt)); }
.lw-chooser__status { left: calc(5 * var(--pt)); width: calc(16 * var(--pt)); }   /* no current-format checkmark on an empty line */
.lw-chooser__cue { left: calc(25 * var(--pt)); width: calc(49 * var(--pt)); font: 500 calc(11 * var(--pt))/calc(18 * var(--pt)) ui-monospace, Menlo, Consolas, monospace; color: var(--c-accent); }
.lw-chooser__title { left: calc(82 * var(--pt)); width: calc(140 * var(--pt)); font: 400 calc(13 * var(--pt))/calc(18 * var(--pt)) var(--c-sans); color: var(--c-text); }
.lw-chooser__alias { left: calc(222 * var(--pt)); width: calc(58 * var(--pt)); text-align: right; font: 400 calc(11 * var(--pt))/calc(18 * var(--pt)) var(--c-sans); color: var(--c-muted); }
.lw-chooser__row.is-selected .lw-chooser__title { color: var(--c-accent); }
@media (prefers-reduced-motion: reduce) { .lw-chooser, .lw-chooser.is-open, .lw-doc__line [data-lw-typed] { transition: none; } .lw-doc__caret.is-blinking { animation: none; } }
@media print { .lw-doc__caret { visibility: hidden; } .lw-chooser:not(.is-open) { display: none; } }   /* a closed chooser never prints mid-fade */

/* Phones: the opening window is drawn on one smaller scale for its chrome and its document (--wu: 1 px at a 489 px window, easing
   to .82 px at 288 px), so the title bar keeps all its parts in one row and the document keeps the desktop window's proportions. */
@media (max-width: 33.99rem) {
  .lw-window { border-radius: 11px; box-shadow: var(--lw-shadow-phone); }
  .lw-preview { container-type: inline-size; }
  .lw-preview .lw-window { --wu: min(clamp(.82px, .562px + .0896cqw, 1px), 100cqw / 364); border-radius: calc(13 * var(--wu));
    font-size: calc(16 * var(--wu)); line-height: calc(26 * var(--wu)); }
  .lw-window__bar { min-height: calc(44 * var(--wu)); padding: 0 calc(12 * var(--wu)); }
  .lw-window__lights { gap: calc(7 * var(--wu)); }
  .lw-window__lights span { width: calc(12 * var(--wu)); height: calc(12 * var(--wu)); }
  .lw-window__sidebar { width: calc(18 * var(--wu)); height: calc(14 * var(--wu)); margin-left: calc(14 * var(--wu)); }
  .lw-window__name { margin-left: calc(9 * var(--wu)); font-size: calc(13 * var(--wu)); }
  .lw-window__tools { gap: calc(9 * var(--wu)); padding-left: calc(6 * var(--wu)); }   /* room for the filename beside the wider Copy control */
  .lw-window__aa { font-size: calc(15 * var(--wu)); }
  .lw-window__tools > svg:first-of-type { width: calc(20 * var(--wu)); height: calc(14 * var(--wu)); }
  .lw-window__tools > svg:last-of-type { width: calc(14 * var(--wu)); height: calc(17 * var(--wu)); }
  .lw-window__copy { height: calc(28 * var(--wu)); padding: 0 calc(5.5 * var(--wu)) 0 calc(6.5 * var(--wu)); border-radius: calc(7.5 * var(--wu)); }
  .lw-window__copy svg:first-child { width: calc(15 * var(--wu)); height: calc(16.875 * var(--wu)); }
  .lw-window__split { height: calc(15 * var(--wu)); margin: 0 calc(4.5 * var(--wu)) 0 calc(5.5 * var(--wu)); }
  .lw-window__more { width: calc(9 * var(--wu)); height: calc(5.4 * var(--wu)); }
  .lw-window__page { padding: calc(26 * var(--wu)) calc(22 * var(--wu)) calc(28 * var(--wu)); }
  .lw-window h1 { font-size: calc(28 * var(--wu)); }
  .lw-window__page p { margin-top: calc(16 * var(--wu)); }
  .lw-window h1 + p { margin-top: calc(18 * var(--wu)); }
  .lw-window h2 { margin-top: calc(26 * var(--wu)); font-size: calc(18 * var(--wu)); }
  .lw-window h2 + p { margin-top: calc(12 * var(--wu)); }
  .lw-window__foot { gap: calc(16 * var(--wu)); min-height: calc(34 * var(--wu)); padding: 0 calc(14 * var(--wu)); font-size: calc(12 * var(--wu)); }
  .lw-window__theme { gap: calc(17.6 * var(--wu)); }
  .lw-window__theme span { gap: calc(5.6 * var(--wu)); }
  .lw-window__theme svg { width: calc(14 * var(--wu)); height: calc(14 * var(--wu)); }
}
