/* Leeway product page. Forest, ivory and copper, reordered around writing.
   Like the MetricPull pages it carries its own evans.digital band and header and loads no shared site styles. */
@font-face { font-family: Manrope; src: url('/assets/fonts/manrope-latin.woff2') format('woff2'); font-weight: 400 500; font-display: swap; }
:root {
  color-scheme: light;
  --forest: #426553; --ivory: #f7f0e1; --ivory-2: #efe6d2; --copper: #d07740; --sage: #b6baa1; --eye: #2b3d33; --text: #26342c; --text-2: #4f5d52; --rule: #e2d6bd;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', 'URW Palladio L', Georgia, serif;
  --book: Charter, 'Bitstream Charter', 'Charis SIL', Cambria, Georgia, serif;
  --label: 'Gill Sans', 'Gill Sans MT', Seravek, Calibri, 'Segoe UI', Roboto, Arial, sans-serif;
  --band: Manrope, system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 56px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; overflow-wrap: break-word; background: var(--ivory); color: var(--text); font: 400 1.0625rem/1.65 var(--book); }
img, svg { display: block; max-width: 100%; }
.skip { position: fixed; z-index: 50; top: .5rem; left: 1rem; padding: .6rem 1rem; background: #090909; color: #fff;
  font: 500 .9rem/1.2 Manrope, system-ui, sans-serif; text-decoration: none; transform: translateY(-300%); }
.skip:focus { transform: none; outline: 2px solid #53c3cb; outline-offset: 2px; }
a { color: var(--forest); text-underline-offset: .18em; }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; border-radius: 2px; }
.measure { max-width: calc(64rem + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.kicker { margin: 0 0 .6rem; font: 600 .8rem/1.3 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--forest); }
h2 { margin: 0; font: 400 clamp(1.75rem, 3.4vw, 2.5rem)/1.12 var(--serif); letter-spacing: -.01em; color: var(--eye); text-wrap: balance; }
figure { margin: 0; }
figcaption { margin-top: .7rem; font: 400 .8rem/1.5 var(--label); color: var(--text-2); }

/* evans.digital family band (as on the MetricPull pages) */
.ed-strip { position: relative; z-index: 3; background: #090909; color: #f3f3f3; font: 400 .8125rem/1.4 var(--band); }
.ed-strip .ed-wrap { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; min-height: 40px;
  max-width: calc(64rem + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.ed-strip a { display: inline-flex; align-items: center; min-height: 40px; color: inherit; text-decoration: none; }
.ed-strip a:hover { color: #53c3cb; }
.ed-strip :focus-visible { outline: 2px solid #53c3cb; outline-offset: 2px; }
.ed-trail { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .55rem; min-width: 0; }
.ed-brand { gap: 0; font-weight: 500; letter-spacing: -.065em; font-size: .95rem; }
.ed-brand svg { flex: none; width: 26px; height: 23px; }
.ed-brand span { margin-left: -.117em; transform: translateY(.075em); }
.ed-dim { color: #a3a3a3; }
.ed-all { font-size: .72rem; color: #a3a3a3; }
.ed-all::after { content: '→'; content: '→' / ''; margin-left: .4em; }   /* decoration beside the words, not part of the link's name */
@media (max-width: 560px) { .ed-strip .ed-all { display: none; } }
@media (max-width: 360px) { .ed-trail > .ed-crumb { display: none; } }

/* Product header: name and local navigation */
.mast { border-bottom: 1px solid var(--rule); background: #fbf8f0; }
.mast__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1.5rem; min-height: 44px; }
.mast__nav { display: flex; flex-wrap: wrap; gap: 0 clamp(.5rem, .5rem + (100vw - 320px) * .2, 1.25rem); font: 600 .82rem/1 var(--label);
  letter-spacing: clamp(.03em, .03em + (100vw - 320px) / 110, .08em); text-transform: uppercase; }   /* closer between 392 and 320 px wide, so the header keeps one row, in fallback fonts too */
.mast__nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); text-decoration: none; }
.mast__nav a:hover { color: var(--forest); }
img { height: auto; }

/* Opening: the space above the opening and the headline's size ease with the window's height as well as its width, so short
   windows reach the headline sooner (no breakpoint, no animation); from 800 px tall nothing changes. Under 400 px tall the
   headline eases from 2.1rem down to at least 1.3rem, so it fits a 640 × 320 or 568 × 320 window on one line. Between 360 and
   320 px wide the top space eases from 2.25rem to 1.75rem. */
.opening { padding-block: clamp(.5rem, min(max(clamp(1.75rem, 1.75rem + (100vw - 320px) / 5, 2.25rem), 6vw), 13vh - 2rem), 3.5rem) clamp(2.5rem, 6vw, 4.5rem); }
.status { display: inline-flex; align-items: center; gap: .55rem; margin: clamp(.4rem, 1.6vh + .2rem, 1rem) 0 0; padding: .35rem .8rem .35rem .65rem; border: 1px solid var(--sage);
  border-radius: 999px; background: #fbf7ee; font: 500 .95rem/1.2 var(--label); color: var(--eye); }
.status span { width: .55rem; height: .55rem; border-radius: 50%; background: var(--copper); }
h1 { margin: clamp(.8rem, 2.8vh + .1rem, 1.5rem) 0 0; font: italic 400 min(clamp(1.5rem, 2.8vw, 2.1rem), max(1.3rem, 2.1rem + (100vh - 400px) / 4))/1.22 var(--serif); color: var(--eye); text-wrap: balance; }
.opening .kicker { margin-bottom: clamp(.2rem, 1.2vh, .6rem); }
.opening { overflow-x: clip; }   /* on phones the shadow can reach past the screen edge: clipped there, never scrolled */

/* Quick formatting */
.format { padding-block: clamp(3rem, 7vw, 5rem); background: #fbf8f0; border-block: 1px solid var(--rule); }
kbd { padding: .1em .4em; border: 1px solid var(--sage); border-bottom-width: 2px; border-radius: 4px; background: #fffdf7; color: var(--eye);
  font: 500 .85em/1 ui-monospace, Menlo, Consolas, 'Liberation Mono', monospace; white-space: nowrap; }

/* Open Files and Copy */
.workflow { padding-block: clamp(3rem, 7vw, 5rem); }

/* Appearance: smaller, last */
.themes { padding-block: clamp(2.5rem, 6vw, 4rem); background: var(--ivory-2); border-top: 1px solid var(--rule); }
.themes__in { display: flex; flex-wrap: wrap; gap: 1.5rem clamp(2rem, 5vw, 4rem); align-items: flex-start; }
.themes__in > div:first-child { flex: 1 1 16rem; max-width: 24rem; }
.themes__lead { margin: 0; color: var(--text-2); font-size: .98rem; }
.themes__lead + .themes__lead { margin-top: .8rem; }
.picker { flex: 1 1 22rem; max-width: 32rem; display: grid; gap: .6rem; }
fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; min-width: 0; }
legend { padding: 0; margin-bottom: .3rem; font: 600 .7rem/1.2 var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.picker label { position: relative; }
.picker input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.picker label span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .85rem; border: 1px solid var(--sage); border-radius: 999px;
  font: 500 .92rem/1 var(--label); color: var(--eye); background: #fbf7ee; }
.picker input:checked + span { background: var(--eye); border-color: var(--eye); color: var(--ivory); }
.picker input:checked + span::before { content: '✓'; margin-right: .35rem; font-size: .85em; }
.picker input:focus-visible + span { outline: 2px solid var(--forest); outline-offset: 3px; }
.specimen { margin-top: .4rem; }
.specimen__page { padding: 1.1rem 1.25rem !important; }
.specimen__title { font-size: clamp(1.3rem, 2.4vw, 1.6rem) !important; margin-bottom: .5em !important; }
.specimen__quote { font-size: 1.02rem !important; }

.foot { padding-block: 1.5rem 2.5rem; font: 400 .82rem/1.4 var(--label); color: var(--text-2); border-top: 1px solid var(--rule); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem; }
.foot p { margin: 0; }
.foot a { color: var(--forest); }
.back-to-projects { display: inline-flex; align-items: center; min-height: 44px; font: 600 .9rem/1.2 var(--band); color: inherit; text-decoration: none; }   /* underline the words, not the arrow */
.back-to-projects span { text-decoration: underline; text-underline-offset: .2em; }
.back-to-projects::before { content: '←'; content: '←' / ''; margin-right: .45em; }
/* The header links glide to their sections; the browser's own fragment navigation keeps the hash, Back/Forward, deep links and
   focus (each target section takes focus via tabindex="-1", so the next Tab starts inside it, without a new tab stop). With
   reduced motion the rule below keeps the jump instant. */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
section[id][tabindex="-1"]:focus { outline: none; }   /* a section reached from the header is a reading position, not a control */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Leeway's theme specimen: the page colours and type stacks from Leeway's own
   theme tokens, switched by native radio buttons inside a .picker (pure CSS, :has). Each page styles its own
   radio chips. Token keys vs display names: paper = Ink, ink = Dusk. Illustration only: it is not a screenshot of the app. */
.specimen__page { --p-page: #fcfaf6; --p-text: #303933; --p-accent: #426553; --p-border: #e7e5df;
  --p-title: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  --p-quote: 'Iowan Old Style', Georgia, serif;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 5vw, 3.5rem); border-radius: 12px; border: 1px solid var(--p-border);
  background: var(--p-page); color: var(--p-text); font: 400 1rem/1.65 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease; }
.specimen__page p { margin: 0 0 1em; }
.specimen__title { font: 400 clamp(1.6rem, 3.2vw, 2.3rem)/1.15 var(--p-title) !important; letter-spacing: -.01em; margin-bottom: .7em !important; }
.specimen__quote { margin-bottom: 0 !important; padding-left: 1rem; border-left: 1.5px solid var(--p-accent); font: 400 1.125rem/1.5 var(--p-quote) !important;
  transition: border-color 220ms ease; }

.picker:has([value='ink']:checked):has([value='dark']:checked) .specimen__page { --p-page: #212421; --p-text: #e8e9e3; --p-accent: #b1cbb6; --p-border: #3a403a; }
.picker:has([value='studio']:checked) .specimen__page { --p-page: #fbfcfd; --p-text: #2c3340; --p-accent: #49617d; --p-border: #dfe4eb;
  --p-title: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; --p-quote: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.picker:has([value='studio']:checked):has([value='dark']:checked) .specimen__page { --p-page: #24272d; --p-text: #e9edf4; --p-accent: #b1c6e0; --p-border: #3c424d; }
.picker:has([value='sage']:checked) .specimen__page { --p-page: #f4f7f0; --p-text: #303e34; --p-accent: #45613e; --p-border: #dce5d6; }
.picker:has([value='sage']:checked):has([value='dark']:checked) .specimen__page { --p-page: #222b26; --p-text: #e5ede3; --p-accent: #bad0ac; --p-border: #3d4a40; }
.picker:has([value='dusk']:checked) .specimen__page { --p-page: #f5f3f8; --p-text: #3a3543; --p-accent: #68547e; --p-border: #e1dce8; }
.picker:has([value='dusk']:checked):has([value='dark']:checked) .specimen__page { --p-page: #23212b; --p-text: #ece8f2; --p-accent: #cfbce1; --p-border: #423b4c; }
