/* Wren Hollis's own identity (the Brand Bible, the visual build and the press kit).
   The Bible's type rule: the name is "a sturdy gothic with a little wear on it,
   like the lettering on a feed-store sign", and everything else is "a plain
   workhorse sans". Both faces are free, under the SIL Open Font License, and
   served from fonts/ beside this file with their licences: Archivo Narrow for the
   wordmark, headings and the two canon taglines (the surname separates by
   colour, never by italic), Inter for text. No serif anywhere. Headings are set
   plain, in sentence case, and read like the title of a document. The system mono is
   for data and labels only. The studio's own documents use the studio template
   further down. */
@font-face{font-family:"Archivo Narrow";src:url("fonts/ArchivoNarrow-wght.woff2") format("woff2");font-weight:400 700;font-style:normal;font-display:swap}
@font-face{font-family:"Archivo Narrow";src:url("fonts/ArchivoNarrow-wght-Italic.woff2") format("woff2");font-weight:400 700;font-style:italic;font-display:swap}
@font-face{font-family:"Inter";src:url("fonts/Inter-wght.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:"Inter";src:url("fonts/Inter-wght-Italic.woff2") format("woff2");font-weight:100 900;font-style:italic;font-display:swap}

/* ===========================================================================
   Wren Hollis — the shared look for every example deliverable.

   Before this file, each example carried its own 12 to 20KB of inline CSS and
   its own palette: four documents, four unrelated colour systems, one of them
   a seven-colour rainbow. A buyer opening two of them could not tell they came
   from the same practice, which is the opposite of what an example is for.

   The palette is Wren's canon (Dougie, 2026-10-25; the services repo's
   docs/WREN-HOLLIS-IDENTITY.md): Ink #12100D, Bone #E8DFD1, Ember #C96E48,
   Brass #B08840 and Moss #4A5D52, with deep rust #7D2E22 as a ground and never
   text. The seven-swatch set that replaced it here from 5 Sep 2026 is retired.
   The values below are the canon's measured token sets: every text tone and
   every accent clears 4.5:1 on ink, surface and raised, on screen, on paper
   and in print. Moss is a ground or a rule; moss-light carries settled text.
   One warm note per frame: ember or brass, never both.

   Canon lives in docs/WREN-HOLLIS-IDENTITY.md next to the shared facts file
   (wren-canon.json). Change it there first.

   Legacy aliases at the bottom exist so the four original documents could drop
   their own :root blocks and inherit this one without their markup being
   rewritten. New deliverables should use the --wren- names directly.
   =========================================================================== */

:root, .wren-dark, .wren-light .wren-nav, .wren-light .wd-rail {
  /* Ground: Ink is the page; surface and raised step up from it. */
  --wren-ink: #12100D;
  --wren-surface: #1A1712;
  --wren-raised: #241F18;
  --wren-line: #342D24;
  --wren-line-soft: rgba(232, 223, 209, 0.10);

  /* Type tones, Bone and two steps down. Three tiers. On ink, surface and
     raised: bone 14.4 / 13.5 / 12.4, bone-soft 11.4 / 10.7 / 9.8,
     fog 5.3 / 4.9 / 4.5. */
  --wren-bone: #E8DFD1;
  --wren-bone-soft: #CFC8B8;
  --wren-fog: #8C867A;
  --wren-faint: #8C867A;

  /* Accents. Ember carries emphasis, the surname, section numerals and links
     (5.3 / 4.9 / 4.5); whiskey and brass carry data (brass 5.8 / 5.5 / 5.0);
     moss means settled or done and is a ground or a rule, with moss-light for
     text (5.2 / 4.9 / 4.5). Rust-deep is a ground and never text. */
  --wren-ember: #C96E48;
  --wren-ember-soft: #C47154;
  --wren-ember-glow: rgba(201, 110, 72, 0.12);
  --wren-whiskey: #B67944;
  --wren-brass: #B08840;
  --wren-moss: #4A5D52;
  --wren-moss-light: #778B7F;
  --wren-rust-deep: #7D2E22;

  /* Chip grounds, solid, so a chip reads the same on every ground. */
  --wren-tint-ember: #281B14;
  --wren-tint-moss: #1E1F1B;
  --wren-tint-brass: #2B2315;
  --wren-tint-fog: #211E1A;

  --wren-serif: "Archivo Narrow","Franklin Gothic Medium","Arial Narrow","Helvetica Neue",Arial,sans-serif;   /* display: headings, chapter titles, pull lines (the slot keeps its old name) */
  --wren-mark: "Archivo Narrow","Franklin Gothic Medium","Arial Narrow","Helvetica Neue",Arial,sans-serif; /* the wordmark: the condensed gothic, never italic, so the surname separates by colour */
  --wren-sans: "Inter","Helvetica Neue",Arial,sans-serif;                      /* text: "a plain workhorse sans", the Bible's own words */
  --wren-mono: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}

/* --------------------------------------------------------------- links

   Three documents shipped no `a` rule at all, so their upsell links rendered
   browser-default blue on near-black: 2.02:1, the least readable text on a
   page, on the one thing meant to be clicked. Low specificity on purpose, so
   any document that styles its own links still wins. */

a { color: var(--wren-ember); text-underline-offset: 2px; }

/* ---------------------------------------------------------------- print

   Every document draws its colour through these tokens, so print is fixed
   once, here, rather than thirteen times. Before this, three documents had no
   print rules and came out as bone text on white paper (1.32:1, blank), and
   the six that did set a white ground still lost the first column of every
   table, because those rules set their colour explicitly and outranked the
   body. Remapping the tokens themselves catches both cases. Everything below
   clears 6.5:1 on paper. */

@media print {
  :root {
    --wren-ink: #FFFFFF;
    --wren-surface: #FFFFFF;
    --wren-raised: #FFFFFF;
    --wren-line: #BBBBBB;
    --wren-line-soft: #DDDDDD;
    --wren-bone: #111111;
    --wren-bone-soft: #222222;
    --wren-fog: #444444;
    --wren-faint: #444444;
    --wren-ember: #8A3D1E;
    --wren-ember-soft: #8A3D1E;
    --wren-ember-glow: #F7EEE9;
    --wren-whiskey: #6E4A28;
    --wren-brass: #6A5122;
    --wren-moss: #3A4A41;
    --wren-moss-light: #46554B;
    --wren-rust-deep: #7D2E22;
    --wren-tint-ember: #F7EEE9;
    --wren-tint-moss: #EDF0EE;
    --wren-tint-brass: #F4EFE2;
    --wren-tint-fog: #F0EEEB;
  }
  body { background: #FFFFFF; color: #111111; }
  /* One dashboard clips itself to a single screenful on screen, which on
     paper means a single page and the rest simply missing. */
  html, body { overflow: visible; height: auto; }
  /* Nothing sticks to a sheet of paper. */
  nav, .nav, .side, .sidebar, .tabs, .masthead { position: static; }
}

/* ------------------------------------------------------ the demo disclosure

   Rule 4 of the canon says every Wren surface a visitor reaches carries the
   disclosure. It used to be a paragraph-high band above everything, which
   read as a tool announcing itself rather than a site making a note. It is
   now site chrome: the Well Made Plays bar first, then a one-line notice
   with the sentence that matters in full and the reasoning one tap away
   (a native <details>, so it needs no script and prints as text). Every
   word of the original paragraph is still on the page, inside the fold. */

.wren-demo {
  position: static;
  background: var(--wren-surface);
  color: var(--wren-bone-soft);
  font-family: var(--wren-sans);
  font-size: 0.92rem;
  line-height: 1.45;
  border-bottom: 1px solid var(--wren-line);
}
.wren-demo details { padding: 0 clamp(1rem, 4vw, 2.5rem); }
.wren-demo details summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 1rem;
  padding: 0.6rem 0;
  color: var(--wren-bone-soft);
}
.wren-demo details summary::-webkit-details-marker { display: none; }
.wren-demo details summary::marker { content: ""; }
.wren-demo details summary b { color: var(--wren-bone); font-weight: 700; }
.wren-demo details summary .lead { color: var(--wren-bone-soft); }
.wren-demo details summary .why {
  margin-left: auto;
  font-family: var(--wren-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wren-ember);
  white-space: nowrap;
}
.wren-demo details summary .why::after { content: " \25BE"; }
.wren-demo details[open] summary .why::after { content: " \25B4"; }
.wren-demo details summary:focus-visible { outline: 2px solid var(--wren-ember); outline-offset: 2px; }
.wren-demo details summary:hover .why { color: var(--wren-bone); }
.wren-demo details p {
  margin: 0;
  padding: 0.1rem 0 1rem;
  max-width: 72ch;
  color: var(--wren-bone-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}
.wren-demo a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

@media print {
  .wren-demo { background: transparent; color: #000; border-bottom: 1px solid #000; }
  .wren-demo details summary b, .wren-demo details summary .lead, .wren-demo details p { color: #000; }
  .wren-demo details summary .why { display: none; }
}
@media (max-width: 640px) {
  .wren-demo { font-size: 0.84rem; }
  .wren-demo details summary .why { margin-left: 0; }
}

/* -------------------------------------------------------------- paper

   Wren's own documents (the Brand Bible, the visual build, the press kit) are
   read in daylight, on a kitchen table or a phone in a van, so they sit on
   paper. One class on the body flips a page: <body class="wd-body wren-light">.

   The palette inverts rather than changes: same bone, same ink, same ember,
   opposite roles, with the accents darkened to clear 4.5:1 on paper (the
   canon's light set). The site bar and the rail of a long document stay Ink
   (the dark token set re-applies to them above), so a paper page keeps the
   dark bar the services page is built around. */

.wren-light {
  --wren-ink: #F6F1E6;
  --wren-surface: #EFE8D9;
  --wren-raised: #E7DECC;
  --wren-line: #D8CDB6;
  --wren-line-soft: rgba(33, 28, 21, 0.10);
  --wren-bone: #211C15;
  --wren-bone-soft: #4A4238;
  --wren-fog: #675E50;
  --wren-faint: #675E50;

  /* Same hues, darkened to clear 4.5:1 on paper, surface and raised:
     ember 5.4 / 5.0 / 4.5, brass 5.4 / 5.0 / 4.5, moss-light 5.4 / 5.0 / 4.5.
     Moss itself is a ground or a rule here too. Chip grounds are paper tinted
     8% toward the accent; the accent clears 4.7 on its own tint. */
  --wren-ember: #9A4D2E;
  --wren-ember-soft: #9A4D2E;
  --wren-ember-glow: rgba(154, 77, 46, 0.06);
  --wren-whiskey: #865932;
  --wren-brass: #7A5E2C;
  --wren-moss: #4A5D52;
  --wren-moss-light: #58665D;
  --wren-tint-ember: #EFE4D7;
  --wren-tint-moss: #E8E5DA;
  --wren-tint-brass: #ECE5D7;
  --wren-tint-fog: #EBE5DA;
}

/* The rail column stays Ink for the full height of a long document, not only
   as far as the rail's own content reaches; the main column paints its paper. */
.wren-light .wd-shell { background: var(--wren-swatch-ink); }
.wren-light .wd-main { background: var(--wren-ink); }
.wren-light .wd-rail { border-right: 0; }
@media (max-width: 760px) { .wren-light .wd-rail { border-bottom: 0; } }

/* ---------------------------------------------------------- shared footer

   Every document ends the same way: who made it, that the artist is invented,
   and a way back to the site for someone who opened it in a new tab. */

.wren-foot {
  background: var(--wren-surface);
  color: var(--wren-bone);
  font-family: var(--wren-sans);
  text-align: center;
  padding: 1.6rem 1.5rem;
  border-top: 1px solid var(--wren-line);
}
.wren-foot .house { font-size: 0.94rem; font-weight: 640; letter-spacing: 0.02em; margin: 0; }
.wren-foot .note { font-size: 0.82rem; color: var(--wren-fog); margin: 0.3rem auto 0; max-width: 52ch; line-height: 1.55; }
.wren-foot .back {
  display: inline-block;
  margin-top: 0.9rem;
  background: var(--wren-bone);
  color: var(--wren-ink);
  text-decoration: none;
  padding: 0.65rem 1.25rem;
  border-radius: 0;
  font-size: 0.87rem;
  font-weight: 640;
}
.wren-foot .back:hover { background: var(--wren-bone-soft); }
@media print { .wren-foot { background: transparent; color: #000; border-top: 1px solid #000; } .wren-foot .back { display: none; } }

/* ---------------------------------------------------------- legacy aliases

   The four original documents name their tokens differently for the same job.
   Mapping them here is what let each one delete its own palette in a single
   edit rather than having every rule rewritten. */

:root {
  /* Brand Bible */
  --ink: var(--wren-ink);
  --ink-2: var(--wren-surface);
  --ink-3: var(--wren-raised);
  --ink-4: var(--wren-line);
  --ink-soft: var(--wren-line);
  --slate: var(--wren-line);
  --moss: var(--wren-moss);
  --moss-light: var(--wren-moss-light);
  --fog: var(--wren-fog);
  --bone: var(--wren-bone);
  --bone-soft: var(--wren-bone-soft);
  --ember: var(--wren-ember);
  --ember-soft: var(--wren-ember-soft);
  --ember-glow: var(--wren-ember-glow);
  --bruise: var(--wren-raised);
  --leather: var(--wren-surface);
  --vellum: var(--wren-bone);
  --vellum-line: var(--wren-bone-soft);
  --whiskey: var(--wren-whiskey);

  /* Dashboard, first build */
  --coffin: var(--wren-ink);
  --pew: var(--wren-line);
  --communion: var(--wren-rust-deep);
  --bg: var(--wren-ink);
  --bg-elev: var(--wren-surface);
  --card: var(--wren-raised);
  --card-hover: var(--wren-line);
  --accent: var(--wren-whiskey);
  --accent-hover: var(--wren-brass);
  --accent-soft: var(--wren-tint-brass);
  --text: var(--wren-bone);
  --text-muted: var(--wren-fog);
  --text-faint: var(--wren-faint);
  --border: var(--wren-line);
  --border-strong: var(--wren-line);
  --success: var(--wren-moss-light);
  --warning: var(--wren-brass);
  --danger: var(--wren-rust-deep);

  /* Seven rainbow pillar colours became five Wren ones. Two pairs share a
     tone: they are labelled in the document, so hue was not carrying the
     meaning on its own. */
  --pillar-craft: var(--wren-ember);
  --pillar-output: var(--wren-whiskey);
  --pillar-money: var(--wren-moss-light);
  --pillar-presence: var(--wren-brass);
  --pillar-admin: var(--wren-rust-deep);
  --pillar-stage: var(--wren-ember-soft);
  --pillar-scene: var(--wren-fog);

  /* Dashboard, second build */
  --beige: var(--wren-bone-soft);
  --brass: var(--wren-brass);
  --red: var(--wren-rust-deep);
  --card-2: var(--wren-surface);
  --hair: var(--wren-line-soft);
  --hair-soft: rgba(232, 223, 209, 0.06);

  /* Content Bible */
  --bg-card: var(--wren-raised);
  --bg-hover: var(--wren-line);
  --bg-accent: var(--wren-surface);
  --border-light: var(--wren-line);
  --text-dim: var(--wren-fog);
  --pink: var(--wren-ember);
  --pink-dim: var(--wren-ember-soft);
  --burgundy: var(--wren-rust-deep);
  --gold: var(--wren-brass);
  --gold-dim: var(--wren-whiskey);
  --green: var(--wren-moss);
  --green-light: var(--wren-moss-light);
  --blue: var(--wren-fog);
  --blue-light: var(--wren-bone-soft);
  --silver: var(--wren-fog);
  --charcoal: var(--wren-raised);
  --tobacco: var(--wren-whiskey);
  --forest: var(--wren-moss);
  --red-soft: var(--wren-ember-soft);

  /* Type, under every name the four documents used for it. */
  --serif: var(--wren-serif);
  --sans: var(--wren-sans);
  --mono: var(--wren-mono);
  --font-display: var(--wren-serif);
  --font-body: var(--wren-sans);
}

/* Orientation bar on every example: home + a way back to the services, so a
   visitor who lands deep in a document can tell whose site this is and get out.
   Uses the tokens, so it adapts to the .wren-light press-kit scope too. */
.wren-nav{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0.7rem clamp(1rem,4vw,2.5rem);background:var(--wren-ink);border-bottom:1px solid var(--wren-line)}
.wren-nav a{text-decoration:none}
.wn-brand{display:flex;align-items:center;gap:9px;color:var(--wren-bone)}
.wn-brand span{font-family:var(--wren-mono);font-size: 0.75rem;letter-spacing:.1em;text-transform:uppercase;color:var(--wren-bone-soft);transition:color .2s}
.wn-brand:hover span{color:var(--wren-bone)}
.wn-mark{color:var(--wren-ember);flex:none}
.wn-back{font-family:var(--wren-mono);font-size: 0.75rem;letter-spacing:.08em;text-transform:uppercase;color:var(--wren-bone-soft);transition:color .2s;white-space:nowrap}
.wn-back:hover{color:var(--wren-ember)}
@media print{.wren-nav{display:none}}

/* ===========================================================================
   The document system (5 Sep 2026)

   One anatomy for every deliverable, built the way the services page is
   built and set in Wren's type: a mono label column on the left, the content
   on the right, hairline rules instead of boxes, numbers set right in tabular
   figures, one status vocabulary, square corners, one warm note per screen.
   Pages opt in with class="wd-body" on <body> and the .wd-* classes below;
   a page keeps its own <style> only for what is genuinely its own.
   =========================================================================== */

:root {
  /* The canon palette, by name, for components that need the swatch itself
     whatever the ground (Dougie, 2026-10-25). Rust-deep is a ground only. */
  --wren-swatch-ink: #12100D;
  --wren-swatch-bone: #E8DFD1;
  --wren-swatch-ember: #C96E48;
  --wren-swatch-brass: #B08840;
  --wren-swatch-moss: #4A5D52;
  --wren-swatch-rust: #7D2E22;
}

/* ---- page ---- */
body.wd-body { margin: 0; background: var(--wren-ink); color: var(--wren-bone); font-family: var(--wren-sans); font-size: 16.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.wd { max-width: 1120px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem) 4rem; }
.wd a { color: var(--wren-bone); text-decoration-color: var(--wren-fog); text-underline-offset: 3px; }
.wd a:hover { text-decoration-color: var(--wren-ember); }

/* ---- masthead: one row of facts, the title, the lede ---- */
.wd-mast { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2.25rem); border-bottom: 1px solid var(--wren-bone-soft); }
.wd-mast-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.4rem 2rem; font-family: var(--wren-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wren-fog); }
.wd-mast-row b { color: var(--wren-bone-soft); font-weight: 400; }
.wd-title { font-family: var(--wren-serif); font-weight: 400; font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.05; letter-spacing: -0.01em; max-width: 24ch; margin: 1.1rem 0 0; text-wrap: balance; }
.wd-title em { font-style: italic; color: var(--wren-ember); }
.wd-lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.5; color: var(--wren-bone-soft); max-width: 60ch; margin: 1.25rem 0 0; text-wrap: pretty; }
.wd-facts { display: flex; flex-wrap: wrap; gap: 0.6rem 2.25rem; margin: 1.6rem 0 0; padding: 0; font-size: 0.9rem; }
.wd-facts div { display: flex; gap: 0.5rem; align-items: baseline; }
.wd-facts dt { font-family: var(--wren-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wren-fog); }
.wd-facts dd { margin: 0; color: var(--wren-bone-soft); }

/* ---- sections: label column left, content right ---- */
.wd-sec { display: grid; grid-template-columns: minmax(150px, 210px) minmax(0, 1fr); gap: 1rem 3rem; padding: clamp(1.75rem, 3vw, 2.5rem) 0; border-bottom: 1px solid var(--wren-line); }
.wd-sec:last-of-type { border-bottom: 0; }
.wd-sec-label { font-family: var(--wren-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wren-bone-soft); border-top: 2px solid var(--wren-ember); padding-top: 0.65rem; align-self: start; position: sticky; top: 1rem; line-height: 1.5; }
.wd-sec-label .wd-num { color: var(--wren-ember); margin-right: 0.6rem; }
.wd-sec-body { min-width: 0; }
.wd-sec-body > h2, .wd-h2 { font-family: var(--wren-serif); font-weight: 400; font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.15; letter-spacing: -0.005em; margin: -0.15rem 0 0.9rem; max-width: 28ch; text-wrap: balance; }
.wd-sec-body h2 em, .wd-h2 em { font-style: italic; color: var(--wren-ember); }
.wd-sec-body h3, .wd-h3 { font-family: var(--wren-serif); font-weight: 500; font-size: 1.15rem; line-height: 1.25; margin: 1.75rem 0 0.5rem; }
.wd-sec-body h3:first-child { margin-top: 0; }

/* ---- prose ---- */
.wd-prose { max-width: 66ch; }
.wd-prose p, .wd-sec-body p { margin: 0 0 1rem; max-width: 66ch; }
.wd-prose p:last-child { margin-bottom: 0; }
.wd-sec-body ul, .wd-sec-body ol { max-width: 66ch; padding-left: 1.25rem; margin: 0 0 1rem; }
.wd-sec-body li { margin: 0.3rem 0; }
.wd-sec-body li::marker { color: var(--wren-fog); font-family: var(--wren-mono); font-size: 0.85em; }
.wd-sec-body .wd-ledger, .wd-sec-body .wd-bars, .wd-sec-body .wd-months, .wd-sec-body .wd-rail ol { padding-left: 0; }  /* ruled lists are not indented lists */
.wd-quiet { color: var(--wren-fog); }
.wd-small { font-size: 0.92rem; }

/* the one line a page hangs from: a verdict, a question, a date */
.wd-pull { font-family: var(--wren-serif); font-style: italic; font-weight: 400; font-size: clamp(1.4rem, 2.6vw, 1.95rem); line-height: 1.25; color: var(--wren-bone); max-width: 30ch; margin: 0 0 1.25rem; text-wrap: balance; }
.wd-pull em { font-style: normal; color: var(--wren-ember); }

/* an aside: rules above and below, a small label, no box */
.wd-note { border-top: 1px solid var(--wren-line); border-bottom: 1px solid var(--wren-line); padding: 1rem 0; margin: 1.5rem 0; max-width: 66ch; }
.wd-note-label { display: block; font-family: var(--wren-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wren-ember); margin-bottom: 0.4rem; }
.wd-note p { margin: 0 0 0.6rem; }
.wd-note p:last-child { margin-bottom: 0; }

/* ---- the ledger: item on the left, verdict on the right ---- */
.wd-ledger { list-style: none; margin: 0 0 1rem; padding: 0; border-top: 1px solid var(--wren-line); }
.wd-ledger li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.35rem 1.5rem; align-items: start; padding: 0.9rem 0; border-bottom: 1px solid var(--wren-line); margin: 0; }
.wd-ledger .wd-item b { display: block; font-weight: 600; color: var(--wren-bone); }
.wd-ledger .wd-item span { display: block; color: var(--wren-fog); font-size: 0.95rem; margin-top: 0.15rem; max-width: 62ch; }
.wd-ledger .wd-status { margin-top: 0.15rem; }

/* ---- one status vocabulary, three grounds ---- */
.wd-status { display: inline-block; font-family: var(--wren-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1; padding: 0.35rem 0.55rem; white-space: nowrap; border: 1px solid transparent; }
.wd-status.ok   { background: var(--wd-ok-bg, var(--wren-swatch-moss)); color: var(--wd-ok-fg, var(--wren-swatch-bone)); border-color: var(--wd-ok-line, transparent); }   /* Confirmed, Filed, Have, Done · 5.3:1 */
.wd-status.warn { background: var(--wd-warn-bg, var(--wren-swatch-brass)); color: var(--wd-warn-fg, var(--wren-swatch-ink)); border-color: var(--wd-warn-line, transparent); }   /* Attention, Set up wrong, Needed · 5.8:1 */
.wd-status.bad  { background: var(--wd-bad-bg, var(--wren-swatch-rust)); color: var(--wd-bad-fg, var(--wren-swatch-bone)); border-color: var(--wd-bad-line, transparent); }   /* Missing · 7.0:1 */
.wd-status.na   { background: transparent; color: var(--wren-fog); border-color: var(--wren-line); } /* Not checked, Not needed */

/* ---- tables: mono heads, hairline rows, numbers right ---- */
.wd-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 0 0 1rem; }
.wd-table th { font-family: var(--wren-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wren-fog); font-weight: 400; text-align: left; padding: 0.5rem 1rem 0.5rem 0; border-bottom: 1px solid var(--wren-bone-soft); vertical-align: bottom; }
.wd-table td { padding: 0.7rem 1rem 0.7rem 0; border-bottom: 1px solid var(--wren-line); vertical-align: top; }
.wd-table th:last-child, .wd-table td:last-child { padding-right: 0; }
.wd-table td:first-child { color: var(--wren-bone); }
.wd-table .n { text-align: right; font-family: var(--wren-mono); font-size: 0.88rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wd-table .mono { font-family: var(--wren-mono); font-size: 0.85rem; }
.wd-table .quiet { color: var(--wren-fog); }
.wd-table tr.wd-group td { padding-top: 1.4rem; font-family: var(--wren-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wren-ember); border-bottom: 1px solid var(--wren-bone-soft); }
.wd-scroll { overflow-x: auto; }
.wd-table.wide { min-width: 40rem; }   /* four columns of running text need a floor before they scroll */
.wd-table .sub { display: block; color: var(--wren-fog); font-size: 0.9rem; margin-top: 0.15rem; font-family: var(--wren-sans); }

/* ---- label / value pairs in a column ---- */
.wd-kv { display: grid; grid-template-columns: minmax(120px, 180px) minmax(0, 1fr); gap: 0.6rem 1.5rem; margin: 0 0 1rem; max-width: 66ch; }
.wd-kv dt { font-family: var(--wren-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wren-fog); padding-top: 0.25rem; }
.wd-kv dd { margin: 0; }

/* ---- the few real objects: a letter, a card, a sheet ---- */
.wd-letter { border: 1px solid var(--wren-line); padding: 1.25rem 1.5rem; margin: 0 0 1.25rem; max-width: 62ch; font-size: 0.98rem; }
.wd-letter .wd-subj { font-family: var(--wren-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wren-fog); margin: 0 0 0.9rem; }
.wd-letter p { margin: 0 0 0.75rem; }
.wd-letter p:last-child { margin-bottom: 0; }
.wd-card { border: 1px solid var(--wren-line); padding: 1rem 1.25rem; }
.wd-card .wd-card-head, .wd-letter .wd-card-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; font-family: var(--wren-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wren-fog); padding-bottom: 0.6rem; margin-bottom: 0.8rem; border-bottom: 1px solid var(--wren-line); }
.wd-sheet { background: var(--wren-surface); border: 1px solid var(--wren-line); padding: clamp(1.25rem, 3vw, 2.25rem); max-width: 720px; }
.wd-photo { display: block; width: 100%; height: auto; border: 1px solid var(--wren-line); }

/* ---- measured bars: seven pillars in one column, readable in order ---- */
.wd-bars { list-style: none; margin: 0 0 1rem; padding: 0; border-top: 1px solid var(--wren-line); }
.wd-bars li { display: grid; grid-template-columns: minmax(6rem, 9rem) minmax(0, 1fr) 3rem; gap: 0.75rem 1rem; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid var(--wren-line); margin: 0; }
.wd-bars .wd-bar { height: 6px; background: var(--wren-raised); }
.wd-bars .wd-bar i { display: block; height: 100%; background: var(--wren-ember); }
.wd-bars .n { font-family: var(--wren-mono); font-size: 0.85rem; font-variant-numeric: tabular-nums; text-align: right; color: var(--wren-bone-soft); }
.wd-bars .wd-bar-note { grid-column: 1 / -1; color: var(--wren-fog); font-size: 0.92rem; margin-top: -0.2rem; }

/* ---- buttons, only where a document links out ---- */
.wd-btn { display: inline-block; font-family: var(--wren-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.8rem 1.15rem; border: 1px solid var(--wren-bone); color: var(--wren-bone); text-decoration: none; line-height: 1; }
.wd-btn:hover { background: var(--wren-bone); color: var(--wren-ink); }
.wd-btn.solid { background: var(--wren-bone); color: var(--wren-ink); }
.wd-btn.solid:hover { background: var(--wren-bone-soft); border-color: var(--wren-bone-soft); }

/* ---- two prose columns with a hairline between: problem / outcome, in scope / out of scope ---- */
.wd-split { display: grid; grid-template-columns: 1fr; gap: 1.25rem 2.5rem; max-width: 66ch; }
.wd-split > div + div { border-top: 1px solid var(--wren-line); padding-top: 1.25rem; }
@media (min-width: 761px) { .wd-split { grid-template-columns: 1fr 1fr; max-width: none; } .wd-split > div + div { border-top: 0; border-left: 1px solid var(--wren-line); padding: 0 0 0 2.5rem; } }
.wd code { font-family: var(--wren-mono); font-size: 0.86em; color: var(--wren-bone-soft); }

/* ---- the fine print at the end of a document ---- */
.wd-fine { font-size: 0.88rem; line-height: 1.55; color: var(--wren-fog); max-width: 66ch; margin: 2.5rem 0 0; padding-top: 1rem; border-top: 1px solid var(--wren-line); }
.wd-fine a { color: var(--wren-bone-soft); }
.wd-sec-body p.wd-fine { margin: 2.5rem 0 0; max-width: 66ch; }  /* .wd-sec-body p would otherwise zero the top margin */

/* ---- long documents: a rail on the left, chapters on the right ---- */
.wd-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.wd-rail { position: sticky; top: 0; align-self: start; max-height: 100vh; overflow-y: auto; padding: 2rem 1.5rem; border-right: 1px solid var(--wren-line); background: var(--wren-ink); }
.wd-rail-mark { font-family: var(--wren-mark); font-weight: 600; font-size: 1.45rem; line-height: 1.1; color: var(--wren-bone); margin: 0; }
.wd-rail-doc { font-family: var(--wren-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wren-ember); margin: 0.35rem 0 0; }
.wd-rail ol { list-style: none; margin: 2rem 0 0; padding: 0; }
.wd-rail li { margin: 0; }
.wd-rail li a { display: grid; grid-template-columns: 1.7rem minmax(0, 1fr); gap: 0.5rem; padding: 0.42rem 0; color: var(--wren-fog); text-decoration: none; font-size: 0.92rem; line-height: 1.35; }
.wd-rail li a i { font-family: var(--wren-serif); font-style: italic; color: var(--wren-ember); font-size: 0.95rem; }
.wd-rail li a:hover, .wd-rail li a[aria-current] { color: var(--wren-bone); }
.wd-rail .wd-rail-foot { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--wren-line); font-family: var(--wren-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wren-fog); line-height: 1.7; }
.wd-main { min-width: 0; padding: 0 clamp(1.25rem, 4vw, 3rem) 4rem; }
.wd-chapter { padding: clamp(2.5rem, 5vw, 4rem) 0; border-bottom: 1px solid var(--wren-line); }
.wd-chapter-head { font-family: var(--wren-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wren-fog); margin: 0 0 1rem; }
.wd-chapter-head i { font-family: var(--wren-serif); font-style: italic; font-size: 1.1rem; color: var(--wren-ember); margin-right: 0.6rem; letter-spacing: 0; text-transform: none; }
.wd-chapter > h2 { font-family: var(--wren-serif); font-weight: 400; font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 1.25rem; max-width: 24ch; text-wrap: balance; }
.wd-chapter > h2 em { font-style: italic; color: var(--wren-ember); }
.wd-chapter > h2.wd-chapter-title i { font-style: italic; font-weight: 400; font-size: 0.6em; color: var(--wren-ember); margin-right: 0.65rem; vertical-align: 0.28em; }  /* the chapter numeral, in the heading itself */

/* ---- the calendar band: months as columns ---- */
.wd-months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--wren-line); border-bottom: 1px solid var(--wren-line); margin: 0 0 1rem; }
.wd-months > div { padding: 0.6rem 0.4rem; border-right: 1px solid var(--wren-line-soft); min-height: 5.5rem; }
.wd-months > div:last-child { border-right: 0; }
.wd-months .m { font-family: var(--wren-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wren-fog); display: block; margin-bottom: 0.4rem; }
.wd-months .ev { display: block; font-size: 0.82rem; line-height: 1.3; color: var(--wren-bone-soft); margin-top: 0.3rem; }
.wd-months .ev.hot { color: var(--wren-ember); }

/* ---- responsive ---- */
@media (max-width: 760px) {
  .wd-sec { grid-template-columns: 1fr; gap: 0.75rem; }
  .wd-sec-label { position: static; }
  .wd-ledger li { grid-template-columns: 1fr; gap: 0.4rem; }
  .wd-ledger .wd-status { justify-self: start; }
  .wd-shell { grid-template-columns: 1fr; }
  .wd-rail { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--wren-line); }
  .wd-rail ol { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin-top: 1rem; }
  .wd-months { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wd-months > div:nth-child(4n) { border-right: 0; }
  .wd-months > div { border-bottom: 1px solid var(--wren-line-soft); }
  .wd-kv { grid-template-columns: 1fr; gap: 0.15rem 0; }
  .wd-kv dd { margin-bottom: 0.6rem; }
}
@media print {
  .wd-sec-label { position: static; }
  .wd-shell { display: block; }
  .wd-rail { display: none; }
  .wd-status { border: 1px solid #444; }
}

/* ===========================================================================
   The studio's own template (6 Sep 2026)

   Reports, plans and dashboards are Well Made Plays documents, so they carry
   the studio's template, which is the services page's system: paper and ink
   and nothing else, sans headings in sentence case, the same sans for text,
   the system mono for labels, a two-pixel ink rule over each section label, square
   corners, the near-black house bar. Only the artist's own materials (the Brand
   Bible, the visual build, the press kit and the Content Bible) carry Wren's
   identity. One class on the body: <body class="wd-body wd-wmp">.

   The status chips have no second colour to lean on, so weight does the work:
   settled things sit quiet on paper-deep, attention is an outlined chip, a
   problem is solid ink. Not checked stays a muted outline.
   =========================================================================== */
.wd-wmp {
  --wren-ink: #F4EEDC; --wren-surface: #ECE4CC; --wren-raised: #E4DBC0;
  --wren-line: #CFC9B7; --wren-line-soft: rgba(20, 19, 18, 0.12);
  --wren-bone: #141312; --wren-bone-soft: #3A3836; --wren-fog: #696560; --wren-faint: #696560;
  --wren-ember: #141312; --wren-ember-soft: #3A3836; --wren-ember-glow: rgba(20, 19, 18, 0.06);
  --wren-whiskey: #3A3836; --wren-brass: #141312; --wren-moss: #696560; --wren-moss-light: #3A3836; --wren-rust-deep: #141312;
  --wren-tint-ember: #ECE4CC; --wren-tint-moss: #ECE4CC; --wren-tint-brass: #ECE4CC; --wren-tint-fog: #ECE4CC;
  --wren-serif: "Inter", Helvetica, Arial, sans-serif;
  --wren-sans: "Inter", Helvetica, Arial, sans-serif;
  --wren-mono: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --wd-ok-bg: #ECE4CC; --wd-ok-fg: #141312; --wd-ok-line: #CFC9B7;
  --wd-warn-bg: transparent; --wd-warn-fg: #141312; --wd-warn-line: #141312;
  --wd-bad-bg: #141312; --wd-bad-fg: #F4EEDC; --wd-bad-line: #141312;
  line-height: 1.55;
}
/* the house bar and the rail of a long document: the site's near-black ground with cream type */
.wd-wmp .wren-nav, .wd-wmp .wd-rail {
  --wren-ink: #0B0B0C; --wren-surface: #161514; --wren-raised: #1E1D1B; --wren-line: rgba(244, 238, 220, 0.14);
  --wren-bone: #F4EEDC; --wren-bone-soft: rgba(244, 238, 220, 0.72); --wren-fog: rgba(244, 238, 220, 0.55); --wren-ember: #F4EEDC;
}
.wd-wmp .wn-brand span { font-family: var(--wren-serif); font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em; color: var(--wren-bone); }
.wd-wmp .wd-shell { background: #0B0B0C; }
.wd-wmp .wd-main { background: var(--wren-ink); }
.wd-wmp .wd-rail { border-right: 0; }
/* The studio headings are wide: they step down a size and lose the italic accent word (the site sets em upright) */
.wd-wmp .wd-title { font-weight: 600; font-size: clamp(1.9rem, 3.3vw, 2.75rem); line-height: 1.06; letter-spacing: -0.012em; }
.wd-wmp .wd-title em, .wd-wmp h2 em, .wd-wmp h3 em, .wd-wmp .wd-pull em { font-style: normal; color: inherit; }
.wd-wmp .wd-sec-body > h2, .wd-wmp .wd-h2 { font-weight: 600; font-size: clamp(1.15rem, 1.8vw, 1.5rem); letter-spacing: -0.012em; line-height: 1.15; }
.wd-wmp .wd-sec-body h3, .wd-wmp .wd-h3 { font-family: var(--wren-sans); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.005em; }
.wd-wmp .wd-pull { font-family: var(--wren-serif); font-style: normal; font-weight: 600; font-size: clamp(1.2rem, 2vw, 1.5rem); letter-spacing: -0.012em; }
.wd-wmp .wd-lede { font-size: 1.1rem; line-height: 1.5; }
.wd-wmp .wd-rail-mark { font-family: var(--wren-serif); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.012em; }
.wd-wmp .wd-rail li a i { font-style: normal; font-family: var(--wren-mono); font-size: 0.8rem; }
.wd-wmp .wd-chapter > h2 { font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.012em; }
.wd-mark { font-family: var(--wren-mark); font-weight: 600; letter-spacing: -0.005em; }   /* the wordmark, wherever it is set as type */
.wd-mark em, .wd-rail-mark em { font-style: normal; }   /* Compact has no italic; the surname separates by colour */
.wd-wmp a { color: inherit; text-decoration-color: rgba(20, 19, 18, 0.45); }
/* The top-bar exit link sits on the dark bar, not the paper: keep it bone, not ink (it was 1.06:1). */
.wd-wmp a.wn-back { color: var(--wren-bone-soft); }
.wd-wmp a.wn-back:hover { color: var(--wren-ember); }
.wd-wmp a:hover { text-decoration-color: currentColor; }
.wd-wmp ::selection { background: #141312; color: #F4EEDC; }
