/* lukecorden.org: the No Leaders, Please stylesheet (mockups/style.css), copied by
   mockups/tools/build_lc_live.py with its font paths made root-absolute. Edit the mock-up's copy and
   rebuild; this one is overwritten. lc.css loads after it. Its name carries a hash of this text. */

/* =================================================================
   No Leaders Please: design tokens (nlp-design-system.md, v0.2a)
   Self-hosted fonts only. No outside requests. Pages read fully
   without JavaScript; the one script is the theme memory (9.6).
   ================================================================= */

/* Source Serif 4 (Adobe), SIL OFL 1.1. Variable, weight 200-900.
   Licence: fonts/licenses/SourceSerif4-OFL.md */
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/SourceSerif4-VF.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/SourceSerif4-Italic-VF.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

/* Courier Prime, SIL OFL 1.1. Regular only: the docket and machine text.
   Licence: fonts/licenses/CourierPrime-OFL.txt */
@font-face {
  font-family: "Courier Prime";
  src: url("/fonts/CourierPrime-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Apfel Grotezk (Collletttivo, Luigi Gorlero), SIL OFL 1.1. One family, three cuts
   on the main site: Mittel 500, Fett 700, Satt 900 (v0.5a, 5.18). No italic exists.
   Licence: fonts/licenses/ApfelGrotezk-OFL.txt */
@font-face { font-family: "Apfel Grotezk"; src: url("/fonts/ApfelGrotezk-Mittel.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Apfel Grotezk"; src: url("/fonts/ApfelGrotezk-Fett.woff2")   format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Apfel Grotezk"; src: url("/fonts/ApfelGrotezk-Satt.woff2")   format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: light dark;

  /* ---- colour: Light, the default and the print palette (9.2) ---- */
  --color_paper:          #f8f5ef; /* page background; inside of form fields */
  --color_surface:        #efe9de; /* sign-up box, transcript block */
  --color_ink:            #1f1c17; /* body, headings, the sentence, site name */
  --color_ink_soft:       #4a443a; /* nav at rest, blockquotes, authors, summaries */
  --color_muted:          #6b6357; /* docket, discuss line, footer, form note */
  --color_rule:           #ddd5c7; /* decorative hairlines only, never text or controls */
  --color_control_border: #8a8070; /* email field and tick box borders (3:1) */
  --color_accent:         #24497a; /* ink blue: links, titles, button, focus, current page */
  --color_on_accent:      #f8f5ef; /* text on the accent button */
  --color_error:          #a3261b; /* invalid email field only */
  --color_highlight:      #e5ebf3; /* v0.3a: the wash behind today's sentence on home */
  /* ---- the masthead, home only (2.1, 5.17): the face is a one-line swap ---- */
  --font_masthead:      var(--font_head);   /* v0.5a: the one Apfel family (5.18) */
  --masthead_weight:    900;
  --masthead_variation: normal;   /* no variable axes in Apfel; Source Serif 4 used "opsz" 60 */
  --text_masthead:      clamp(3.25rem, 2.78rem + 2.11vw, 4.125rem);  /* 52px to 66px */
  --leading_masthead:   1;
  --tracking_masthead:  -0.01em;

  /* ---- type ---- */
  --font_text:    "Source Serif 4", "Source Serif Pro", Charter, "Bitstream Charter", Cambria, Georgia, serif; /* Luke's words; body under trial (5.18) */
  --font_head:    "Apfel Grotezk", "Helvetica Neue", Arial, sans-serif;  /* v0.5a: the site's own voice */
  --font_docket:  var(--font_head);                                      /* v0.5a: dates and labels in Apfel Mittel */
  --font_machine: "Courier Prime", "Courier New", Courier, monospace;    /* v0.5a: machine text only */

  --weight_label:   500;  /* Apfel Mittel */
  --weight_title:   700;  /* Apfel Fett */
  --weight_display: 900;  /* Apfel Satt */

  --text_sentence: clamp(1.75rem, 1.34rem + 1.81vw, 2.5rem);  /* 28px to 40px */
  --text_title:    clamp(2rem, 1.66rem + 1.51vw, 2.625rem);   /* v0.5a: 32px to 42px, room and page titles */
  --text_site_name: clamp(1.375rem, 1.17rem + 0.9vw, 1.75rem);  /* v0.5c: 22px to 28px, the name in the inner header (5.20) */
  --text_h1:       clamp(1.75rem, 1.48rem + 1.2vw, 2.25rem);  /* v0.5a: 28px to 36px, a piece's title */
  --text_h2:       1.5rem;     /* 24px */
  --text_h3:       1.25rem;    /* 20px */
  --text_body:     1.125rem;   /* 18px; 19px from 64rem */
  --text_small:    0.9375rem;  /* 15px */
  --text_docket:   0.875rem;   /* 14px */

  --leading_body:     1.6;
  --leading_sentence: 1.25;
  --leading_heading:  1.2;
  --leading_docket:   1.5;

  --weight_body:    400;
  --weight_heading: 600;
  --weight_strong:  700;

  /* ---- layout ---- */
  --measure: 36rem;   /* the one column */
  --gutter:  1.25rem; /* 2rem from 40rem */

  /* ---- space (4px base) ---- */
  --space_xs:  0.25rem; /*  4px */
  --space_sm:  0.5rem;  /*  8px */
  --space_md:  1rem;    /* 16px */
  --space_lg:  1.5rem;  /* 24px */
  --space_xl:  2.5rem;  /* 40px */
  --space_2xl: 4rem;    /* 64px */
  --space_3xl: 6rem;    /* 96px */

  /* ---- lines ---- */
  --rule_width:   1px;
  --focus_width:  2px;
  --focus_offset: 2px;
}

/* =================================================================
   Themes: Light, Dark, Solar (nlp-design-system.md 9, v0.2a)
   Light is the :root block in section 6. This replaces the retired
   v0.1a dark block.

   Every rule here is screen-only, so print always gets Light.
   Dark's values appear twice on purpose (the device setting, then an
   explicit choice), and so do Light's (the :root block, then an
   explicit choice). Change one copy, change the other.
   ================================================================= */

/* Dark by the device setting, until the reader chooses */
@media screen and (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --color_paper:          #282828; /* Gruvbox bg0 */
    --color_surface:        #32302f; /* Gruvbox bg0_s */
    --color_ink:            #ebdbb2; /* Gruvbox fg1 */
    --color_ink_soft:       #d5c4a1; /* Gruvbox fg2 */
    --color_muted:          #a89984; /* Gruvbox fg4 */
    --color_rule:           #504945; /* Gruvbox bg2 */
    --color_control_border: #928374; /* Gruvbox gray */
    --color_accent:         #83a598; /* Gruvbox bright blue */
    --color_on_accent:      #282828; /* Gruvbox bg0 */
    --color_error:          #fb6e58; /* Gruvbox bright red #fb4934, lifted for AA */
    --color_highlight:      #283638; /* v0.3a: made, a blue wash on bg0 */
  }
}

/* The reader's choice. Each rule matches two ways:
   [data-theme] is set by the script from storage (9.6);
   :has(... :checked) is the radio ticked on this page, and works with
   JavaScript off. The :is() wrapper keeps each rule alive in browsers
   without :has(), where [data-theme] still works. The radio outranks
   the stored word, so the live choice always wins. */
@media screen {
  /* Light: the house writing paper */
  :root[data-theme="light"],
  :root:is(:has(#theme-light:checked)) {
    color-scheme: light;
    --color_paper:          #f8f5ef;
    --color_surface:        #efe9de;
    --color_ink:            #1f1c17;
    --color_ink_soft:       #4a443a;
    --color_muted:          #6b6357;
    --color_rule:           #ddd5c7;
    --color_control_border: #8a8070;
    --color_accent:         #24497a;
    --color_on_accent:      #f8f5ef;
    --color_error:          #a3261b;
    --color_highlight:      #e5ebf3; /* v0.3a */
  }

  /* Dark: Gruvbox Dark */
  :root[data-theme="dark"],
  :root:is(:has(#theme-dark:checked)) {
    color-scheme: dark;
    --color_paper:          #282828; /* Gruvbox bg0 */
    --color_surface:        #32302f; /* Gruvbox bg0_s */
    --color_ink:            #ebdbb2; /* Gruvbox fg1 */
    --color_ink_soft:       #d5c4a1; /* Gruvbox fg2 */
    --color_muted:          #a89984; /* Gruvbox fg4 */
    --color_rule:           #504945; /* Gruvbox bg2 */
    --color_control_border: #928374; /* Gruvbox gray */
    --color_accent:         #83a598; /* Gruvbox bright blue */
    --color_on_accent:      #282828; /* Gruvbox bg0 */
    --color_error:          #fb6e58; /* Gruvbox bright red #fb4934, lifted for AA */
    --color_highlight:      #283638; /* v0.3a: made, a blue wash on bg0 */
  }

  /* Solar: Solarized Light, adapted for AA */
  :root[data-theme="solar"],
  :root:is(:has(#theme-solar:checked)) {
    color-scheme: light;
    --color_paper:          #fdf6e3; /* Solarized base3 */
    --color_surface:        #eee8d5; /* Solarized base2 */
    --color_ink:            #073642; /* Solarized base02 */
    --color_ink_soft:       #30525c; /* made: halfway from base02 to base01 */
    --color_muted:          #566b72; /* Solarized base01 #586e75, nudged darker for AA */
    --color_rule:           #d7d6c8; /* made: base2 with a quarter of base1 */
    --color_control_border: #657b83; /* Solarized base00 */
    --color_accent:         #1d6ba1; /* Solarized blue #268bd2, darkened for AA */
    --color_on_accent:      #fdf6e3; /* Solarized base3 */
    --color_error:          #be2b29; /* Solarized red #dc322f, darkened for AA */
    --color_highlight:      #e2eaec; /* v0.3a: made, a blue wash on base3 */
  }
}

/* bp_md: 40rem (640px) */
@media (min-width: 40rem) {
  :root { --gutter: 2rem; }
}

/* bp_lg: 64rem (1024px) */
@media (min-width: 64rem) {
  :root { --text_body: 1.1875rem; }
}

/* ---- system-level rules every page needs ---- */
html { font-size: 100%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--color_paper);
  color: var(--color_ink);
  font-family: var(--font_text);
  font-size: var(--text_body);
  font-weight: var(--weight_body);
  line-height: var(--leading_body);
}

:focus-visible {
  outline: var(--focus_width) solid var(--color_accent);
  outline-offset: var(--focus_offset);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--color_paper);
  color: var(--color_accent);
  padding: var(--space_sm) var(--space_md);
}
.skip-link:focus { top: var(--space_sm); }

.docket {
  font-family: var(--font_docket);
  font-size: var(--text_docket);
  line-height: var(--leading_docket);
  color: var(--color_muted);
  font-synthesis: none;
  margin: 0;
}

/* a dot and the item after it wrap as one piece (5.0) */
.docket__item { white-space: nowrap; }

input[type="checkbox"] { accent-color: var(--color_accent); }

/* Print is always Light: every theme rule in 9.5 is screen-only,
   so on paper only the :root values above apply. */
@media print {
  .topnav, .menu, .filter, .signup, .discuss, .skip-link, .theme { display: none; }
  body { background: #fff; color: #000; }
}


/* =================================================================
   Component layer (Charta). Built from nlp-design-system.md section 5.
   Components use tokens only. The tokens below are values Iris
   names in her section 5 tables but section 6 does not declare;
   they are declared here so no component carries a raw size.
   ================================================================= */

:root {
  --text_ui:      1rem;       /* nav, form labels, tick-box label, button (5.1, 5.7) */
  --text_field:   1.125rem;   /* email field: fixed, never under 16px (iOS zoom) (5.7) */
  --text_machine: 0.9375rem;  /* pre, samp, transcript block (2.2, 5.10) */
  --field_pad_inline:  0.75rem;  /* email field side padding (5.7) */
  --button_pad:        0.75rem 1.25rem; /* about 48px tall (5.7) */
  --bio_photo:         5rem;     /* portrait, or its mock-up frame: 80px; 120px from 40rem (5.13, 5.14) */
}


/* ---- page shell (4.2, 4.3) ---- */

.page {
  box-sizing: border-box;           /* Charta, v0.3c: 4.2's max-width includes the gutters, so the
                                       column is the 36rem measure. Built content-box since v0.1a,
                                       the desktop column had been 40rem (640px). */
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-top: var(--space_lg);
}
@media (min-width: 40rem) { .page { padding-top: var(--space_xl); } }
@media (min-width: 64rem) { .page { padding-top: var(--space_2xl); } }

.skip-link { z-index: 10; }


/* ---- links (5.0) ---- */

a {
  color: var(--color_accent);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
a:hover { text-decoration-thickness: 2px; }

.docket a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  display: inline-block;
  padding-block: var(--space_xs);
}
.docket a:hover,
.docket a:focus-visible {
  color: var(--color_accent);
  text-decoration-thickness: 1px;
}


/* ---- site header and nav (5.1) ---- */

.site-header {
  padding-bottom: var(--space_md);
  border-bottom: var(--rule_width) solid var(--color_rule);
  margin-bottom: var(--space_xl);
}

/* .site-name: see 5.20 (v0.5c), at the end of this file. It replaces the 5.1 and 5.18 rules. */

/* ---- the old nav row (5.1). Superseded on the main site by the menu and
        the filter row (v0.3a, 5.14), which carry no .site-nav. Kept only
        because the parked looks (alternates A to E, the dual pages) still
        use it; delete with them. ---- */
.site-nav ul {
  list-style: none;
  padding: 0;
  margin: var(--space_xs) 0 0;
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--space_md);
  row-gap: 0;
}

.site-nav a {
  font-family: var(--font_text);
  font-size: var(--text_ui);
  font-weight: var(--weight_body);
  line-height: var(--leading_docket);
  color: var(--color_ink_soft);
  text-decoration: none;
  display: inline-block;
  padding-block: var(--space_sm);
}
.site-nav a:hover {
  color: var(--color_ink);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
}
.site-nav a[aria-current] {
  color: var(--color_ink);
  text-decoration-line: underline;
  text-decoration-color: var(--color_accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}
.site-header .site-nav {
  flex-basis: 100%;               /* the rooms always get their own row */
}
@media print { .site-nav { display: none; } }


/* ---- page titles and room intros (5.11) ---- */

.page-title {
  font-size: var(--text_h1);
  font-weight: var(--weight_heading);
  line-height: var(--leading_heading);
  color: var(--color_ink);
  text-wrap: balance;
  margin: 0 0 var(--space_xl);
}
.page-title:has(+ .docket),
.page-title:has(+ .intro) { margin-bottom: var(--space_sm); }

.page-title + .docket { margin-bottom: var(--space_xl); }

.intro {
  margin: 0 0 var(--space_xl);
  text-wrap: pretty;
}
/* v0.5g: a room's one-liner, then its docket (Now's date, Reading's and Books' links): the docket sits
   close under the intro, and the gap comes after it, as after a docket under a title */
.intro:has(+ .docket) { margin-bottom: var(--space_sm); }
.intro + .docket { margin-bottom: var(--space_xl); }

.section-title {
  font-size: var(--text_h2);
  font-weight: var(--weight_heading);
  line-height: var(--leading_heading);
  color: var(--color_ink);
  text-wrap: balance;
  margin: 0 0 var(--space_lg);
}


/* ---- today's sentence, and a sentence's own page (5.2) ---- */

.today {
  padding-block: var(--space_2xl);
}
@media (min-width: 64rem) {
  .today { padding-block: var(--space_3xl); }
}
.today > .docket { margin-bottom: var(--space_md); }

.sentence {
  font-family: var(--font_text);
  font-size: var(--text_sentence);
  font-weight: var(--weight_body);
  font-style: normal;
  line-height: var(--leading_sentence);
  color: var(--color_ink);
  text-wrap: balance;
  margin: 0;
}

/* on a sentence's own page the block sits under the header like a
   piece, and the discuss line and sign-up follow it */
.today--page { padding-block: var(--space_xl) 0; }
@media (min-width: 64rem) {
  .today--page { padding-block: var(--space_2xl) 0; }
}



/* ---- the bio block, home page only (5.13) ---- */

.bio { margin: 0; }

.bio__photo {
  box-sizing: border-box;
  width: var(--bio_photo);
  height: var(--bio_photo);
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  margin: 0 0 var(--space_md);
}
@media (min-width: 40rem) {
  :root { --bio_photo: 7.5rem; }
}

/* mock-up only: a plain frame where the photo goes. No image, no fetch. */
.bio__photo--frame {
  background: var(--color_surface);
  border: var(--rule_width) solid var(--color_rule);
}
.bio__photo--frame .docket {
  display: block;
  padding: var(--space_xs);
}

/* Charta (25 Nov, preview): the mark, the mirror whorl (nlp-logo-brief.md 8), in place of the photo.
   One colour, the mode's ink, through currentColor. Luke: "the icon should fill the entire space
   it's in; assume its height is the height of the bio box", and, with his bio in, "a little more
   padding / white space between the right edge of the labyrinth and the left border of the bio
   box". A smaller mark was tried and reversed ("I preferred it the other way"): the mark stays at
   about its first size and fills the box's height as closely as the bio's wrapping allows.
   - From 40rem the master stands beside the bio box at the box's height. Its holder stretches with
     the row, which the box alone sets (the holder has no content in flow), and the drawing is
     pinned to the holder's top and bottom, its width following from its 95:104.5 ratio.
   - The clear space to the box is 2rem (32px), Luke's side gap (Iris's clear-space question). The
     drawing never reaches into it: it is capped at its own column.
   - The box's width must not depend on the mark's, or the two chase each other, so the column is
     a set width, --mark_col, one value per body size: the mark's width at the box's height, so the
     drawing fills the box exactly and the 2rem stays clear. Tuned 25 Nov to Luke's bio, with the
     box holding only his words (the About link went: "it's already in the menu and nav"), measured
     in Chrome: 18px: any column from 160 to 214px gives a 206.8px box, which wants a 188px mark, so
     11.75rem (188px), 26px short of the width that would wrap the bio onto another line. 19px: any
     column from 202 to 233px gives a 246.7px box, which wants 224.3px, so 14.0625rem (225px), 8px
     short of the next wrap. If the bio changes, retune: 0.909 times the box's height, and check
     the column stays inside its step. Where the box is taller than the column allows, the drawing
     keeps its ratio and sits centred against the box.
   - Below 40rem the bio stacks under the mark, which keeps a fixed 5rem (the 64px drawing):
     beside a phone-width box the mark would have to be taller than the box could ever be.
   Source: logo/source/place_mark.py. */
:root { --mark_col: 11.75rem; }                                /* 188px */
@media (min-width: 64rem) { :root { --mark_col: 14.0625rem; } } /* 225px */
.masthead__mark { grid-area: photo; position: relative; margin: 0; }
.bio__mark {
  display: block;
  height: 5rem;
  width: auto;
  aspect-ratio: 47.5 / 52.3;
  color: var(--color_ink);
}
.bio__mark--master { display: none; }
@media (min-width: 40rem) {
  .masthead__mark { align-self: stretch; }
  .bio__mark--64 { display: none; }
  .bio__mark--master {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: auto;
    aspect-ratio: 95 / 104.5;
    max-width: 100%;                         /* never into the 2rem gap */
  }
}

.bio__name {
  font-size: var(--text_h2);
  font-weight: var(--weight_heading);
  line-height: var(--leading_heading);
  color: var(--color_ink);
  margin: 0;
}

.bio__note {
  font-size: var(--text_body);
  line-height: var(--leading_body);
  color: var(--color_ink);
  text-wrap: pretty;
  margin: var(--space_sm) 0 0;
}

.bio__more { margin: var(--space_sm) 0 0; }


/* ---- the post list and sentence items (5.3, 5.4) ---- */

.stream {
  list-style: none;
  padding: 0;
  margin: 0;
}
.stream__item + .stream__item { margin-top: var(--space_xl); }

.post-title {
  font-size: var(--text_h3);
  font-weight: var(--weight_heading);
  line-height: 1.3;
  text-wrap: balance;
  margin: var(--space_sm) 0 0;
}
.post-title a {
  color: var(--color_accent);
  text-decoration: none;
}
.post-title a:hover,
.post-title a:focus-visible {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.post-summary {
  font-size: var(--text_body);
  color: var(--color_ink_soft);
  text-wrap: pretty;
  margin: var(--space_sm) 0 0;
}

.sentence-item {
  font-family: var(--font_text);
  font-size: var(--text_h3);
  font-weight: var(--weight_body);
  line-height: 1.4;
  color: var(--color_ink);
  text-wrap: pretty;
  margin: var(--space_sm) 0 0;
}


/* ---- the single letter or Stance (5.5) ---- */

.piece__head .docket { margin: 0 0 var(--space_sm); }

.piece__head h1 {
  font-size: var(--text_h1);
  font-weight: var(--weight_heading);
  line-height: var(--leading_heading);
  color: var(--color_ink);
  text-wrap: balance;
  margin: 0 0 var(--space_xl);
}

.prose {
  font-size: var(--text_body);
  line-height: var(--leading_body);
  color: var(--color_ink);
}
.prose p {
  margin: 0 0 1em;
  text-wrap: pretty;
}
.prose h2 {
  font-size: var(--text_h2);
  font-weight: var(--weight_heading);
  line-height: var(--leading_heading);
  text-wrap: balance;
  margin: 2em 0 0.5em;
}
.prose h3 {
  font-size: var(--text_h3);
  font-weight: var(--weight_heading);
  line-height: var(--leading_heading);
  margin: 1.5em 0 0.4em;
}
.prose em,
.prose cite { font-style: italic; font-weight: var(--weight_body); }
.prose strong { font-weight: var(--weight_strong); }

.prose blockquote {
  margin: 1.5em 0;
  padding-left: 1em;
  border-left: 2px solid var(--color_rule);
  color: var(--color_ink_soft);
}
.prose blockquote p:last-child { margin-bottom: 0; }

.prose ul,
.prose ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}
.prose li + li { margin-top: 0.35em; }
.prose li::marker { color: var(--color_muted); }

.prose hr {
  border: 0;
  border-top: var(--rule_width) solid var(--color_rule);
  width: 4rem;
  margin: 2.5em 0;
}

.prose img,
.prose figure img {
  max-width: 100%;
  height: auto;
  display: block;
}

.piece__foot {
  margin-top: var(--space_xl);
  padding-top: var(--space_md);
  border-top: var(--rule_width) solid var(--color_rule);
}


/* ---- machine text (5.10) ---- */

.transcript {
  background: var(--color_surface);
  padding: var(--space_md);
  margin: 1.5em 0;
}
.transcript pre {
  font-family: var(--font_machine);
  font-size: var(--text_machine);
  line-height: var(--leading_docket);
  color: var(--color_ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-synthesis: none;
  margin: 0;
}
.transcript samp { font-family: inherit; font-size: inherit; }
.transcript figcaption { margin-top: var(--space_sm); }

.prose code,
.prose kbd,
.prose samp {
  font-family: var(--font_machine);
  font-size: 0.9em;
  font-synthesis: none;
}


/* ---- the sign-up boxes (5.7) ---- */

.signup {
  background: var(--color_surface);
  padding: var(--space_lg);
  margin-block: var(--space_2xl);
}
@media (min-width: 40rem) {
  .signup { padding: var(--space_xl); }
}
/* two boxes in a row sit --space_lg apart, Human Letters first */
.signup:has(+ .signup) { margin-bottom: 0; }
.signup + .signup { margin-top: var(--space_lg); }

.signup > .docket { margin: 0 0 var(--space_sm); }

.signup__headline {
  font-size: var(--text_h2);
  font-weight: var(--weight_heading);
  line-height: var(--leading_heading);
  color: var(--color_ink);
  text-wrap: balance;
  margin: 0;
}

.signup__gift {
  font-size: var(--text_body);
  color: var(--color_ink_soft);
  margin: var(--space_sm) 0 0;
}

.signup__form {
  margin-top: var(--space_lg);
  display: grid;
  gap: var(--space_md);
  justify-items: start;
}

.field { width: 100%; }

.field label {
  display: block;
  font-family: var(--font_text);
  font-size: var(--text_ui);
  font-weight: var(--weight_body);
  line-height: var(--leading_docket);
  color: var(--color_ink);
  margin-bottom: var(--space_sm);
}

.field input,
.email-signup__field {             /* v0.5k (5.26): one field look for every sign-up */
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  font-family: var(--font_text);
  font-size: var(--text_field);
  line-height: 1.4;
  color: var(--color_ink);
  background: var(--color_paper);
  border: var(--rule_width) solid var(--color_control_border);
  border-radius: 0;
  padding: var(--space_sm) var(--field_pad_inline);
}
@media (min-width: 40rem) {
  .field input { max-width: 24rem; }
}
.field input:hover,
.email-signup__field:hover { border-color: var(--color_ink_soft); }
.field input:user-invalid,
.email-signup__field:user-invalid {
  border-color: var(--color_error);
  box-shadow: inset 0 0 0 1px var(--color_error);
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: var(--space_sm);
  align-items: start;
}
.consent input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.125rem 0 0;
  accent-color: var(--color_accent);
}
.consent label {
  font-size: var(--text_ui);
  line-height: var(--leading_docket);
  color: var(--color_ink);
  cursor: pointer;
}

.signup button,
.email-signup__button {            /* v0.5k (5.26): one button look for every sign-up */
  font-family: var(--font_text);
  font-size: var(--text_ui);
  font-weight: var(--weight_heading);
  line-height: 1.25;
  color: var(--color_on_accent);
  background: var(--color_accent);
  border: 2px solid var(--color_accent);
  border-radius: 0;
  padding: var(--button_pad);
  margin: 0;
  cursor: pointer;
}
.signup button:hover,
.email-signup__button:hover {
  background: var(--color_ink);
  border-color: var(--color_ink);
}
.signup button:focus-visible,
.email-signup__button:focus-visible { outline-offset: 3px; }

.signup__note {
  font-size: var(--text_small);
  line-height: 1.5;
  color: var(--color_muted);
  margin: 0;
}


/* ---- the plain email sign-up, from Luke's sketch (5.26, v0.5k) ----
   One component, two shapes. Square: beside a room's heading from 40rem, under its intro on
   phones. Wide (--wide): at the foot of every page of the home stream. The field and the button
   share the sign-up rules above (5.7); the type is set with the other Apfel labels (5.18). */

.email-signup {
  box-sizing: border-box;
  background: var(--color_surface);
  border: var(--rule_width) solid var(--color_control_border);
  padding: var(--space_md);
}
.email-signup__head {                              /* the mark at the left, the heading beside it */
  display: flex;
  align-items: center;                              /* the heading centres on the mark, however it wraps */
  gap: var(--space_sm);
}
.email-signup__mark {
  display: block;
  flex: none;
  height: 3rem;                                     /* the inner header's whorl size (5.20) */
  width: auto;
  aspect-ratio: 47.5 / 52.3;
  color: var(--color_ink);
}
.email-signup__heading {
  min-width: 0;
  font-size: var(--text_h3);
  line-height: 1.2;
  color: var(--color_ink);
  margin: 0;                                        /* two lines by a <br>: "Get new posts / by email" (Luke) */
}
/* the wide box (Luke: "on the horizontal version lets make the font bigger and centre it"): the
   heading at a piece title's size, and the mark and heading centred in the box as one */
.email-signup--wide .email-signup__head { justify-content: center; }
.email-signup--wide .email-signup__heading {
  font-size: var(--text_h1);                        /* 28px to 36px */
  line-height: 1.15;                                /* as a piece's title */
}
.email-signup__form {
  margin-top: var(--space_md);
  display: grid;
  gap: var(--space_sm);
}
.email-signup__button {
  justify-self: center;                             /* the sketch: a small button, centred */
  padding: var(--space_sm) var(--space_md);         /* about 40px tall: smaller than 5.7's */
}

/* a room's heading block: the title, the intro and any docket, then the square box */
.room-head {
  display: grid;
  row-gap: var(--space_lg);
  margin: 0 0 var(--space_xl);                      /* the gap the intro or docket kept before the filter row */
}
.room-head__text > :last-child { margin-bottom: 0; }
.room-head .email-signup { max-width: 24rem; }      /* phones: the column's width, never wider than 5.7's field */

@media (min-width: 40rem) {
  .room-head {
    grid-template-columns: minmax(0, 1fr) 17.5rem;  /* the box beside the title, top-aligned with it. 14rem
                                                       held "Get new posts" on one line beside the mark; 17.5rem
                                                       (v0.5m) also holds a 30-character address in the field,
                                                       below. The title keeps 272px: "independence" at 42px
                                                       is 267.5px (Chrome, 27 Nov), so no title overflows */
    column-gap: var(--space_lg);
    align-items: start;
  }
  .email-signup--wide { padding: var(--space_lg); }
  .email-signup--wide .email-signup__mark {         /* as tall as the heading's two lines, as in the sketch */
    height: calc(2 * 1.15 * var(--text_h1));
  }
  .email-signup--wide .email-signup__form {         /* the field long, the button to its right */
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: var(--space_lg);                    /* the box's own padding: air under the larger heading */
  }
  .email-signup--wide .email-signup__button { justify-self: stretch; }
}

.email-signup--wide { margin-top: var(--space_2xl); }   /* as 5.7's foot box */

/* v0.5m (5.26), Luke, 27 Nov: "because we're using a square there isn't a lot of room to type (and see) a
   longer email addy, so is there a way we can shrink the input text size?" The square box's field only; the
   wide box keeps 5.7's, which already holds a 30-character address. iOS Safari zooms the page when a field
   under 16px takes focus, so the field never goes under 16px there:
   - phones: 16px (the floor; 5.7's 18px before), at the box's full width, as it was;
   - from 40rem, where the box sits beside the title: 14px with 4px sides, in the box widened to 17.5rem
     (above), so firstname.lastname@example.com (230px at 14px) shows whole in a 236px field. 14px alone
     could not do it: the 14rem box leaves the field 176px however far its sides are trimmed;
   - iOS (iPads, and phones turned sideways past 40rem): 16px, by the one feature only iOS WebKit has. */
.room-head .email-signup__field { font-size: 1rem; }
@media (min-width: 40rem) {
  .room-head .email-signup__field { font-size: 0.875rem; padding-inline: var(--space_xs); }
}
@supports (-webkit-touch-callout: none) {
  .room-head .email-signup__field { font-size: 1rem; }
}

@media print { .email-signup { display: none; } }

/* The sign-up box with JavaScript off (Luke, 1 Dec 2026; mockups/noscript-signup v0.1a). The box keeps its
   frame, mark and heading, and Luke's three lines take the place of the field and the button. The lines
   sit in a <noscript> after the form (email_signup.py), which the browser parses as elements only when
   scripting is off, so the form hides exactly when the lines show. A browser without :has() shows both. */
.email-signup:has(.email-signup__noscript) .email-signup__form { display: none; }
.email-signup__noscript {
  margin-top: var(--space_md);
  font-family: var(--font_text);
  font-size: 1rem;
  line-height: 1.5;
}
.email-signup__noscript p { margin: 0 0 0.5rem; }
.email-signup__noscript p:last-child { margin-bottom: 0; }
.email-signup--wide .email-signup__noscript { text-align: center; font-size: 1.125rem; }
@media (min-width: 40rem) {
  .email-signup--wide .email-signup__noscript { margin-top: var(--space_lg); }
}

/* The captcha (the list switch, 1 Dec 2026; email_signup.py, ListForm). The live boxes post to listmonk, and
   ALTCHA's widget sits last in each form. It solves in the background when the reader presses Sign up
   (auto="onsubmit"), so it stays out of sight and the box looks as approved: out of the form's grid too, so it
   adds no gap. Only if the check fails does it show, under the field and the button, with its own "Verification
   failed" line and a box to tick to try again, in the field's border and error colours. A browser without :has()
   never shows it. */
.email-signup altcha-widget { display: none; }
.email-signup altcha-widget:has(.altcha[data-state="error"]) {
  display: block;
  grid-column: 1 / -1;
  --altcha-border-radius: 0;
  --altcha-color-border: var(--color_control_border);
  --altcha-color-error-text: var(--color_error);
}

/* The thanks page (Luke, 1 Dec 2026; mockups/thanks-page v0.2a): no nav, no visible heading, no pills. A
   large mark floats right beside the words from 40rem; phones carry none (Luke: "just drop the big mark on
   phones"). The mark is the site's own drawing, in the text colour (lc.css gives LC's its accent). */
.thanks-mark { display: none; }
@media (min-width: 40rem) {
  .thanks-mark { display: block; float: right; height: 10rem; width: auto; margin: 0.25rem 0 1rem 2.5rem; }
  .thanks-prose::after { content: ""; display: block; clear: both; }
}


/* ---- the reading list (5.8) ---- */

.reading-section h2 {
  font-size: var(--text_h2);
  font-weight: var(--weight_heading);
  line-height: var(--leading_heading);
  color: var(--color_ink);
  margin: var(--space_2xl) 0 var(--space_md);
}
.reading-section:first-of-type h2 { margin-top: var(--space_xl); }

.reading-section h3 {
  font-size: var(--text_h3);
  font-weight: var(--weight_heading);
  line-height: 1.3;
  color: var(--color_ink);
  margin: var(--space_xl) 0 var(--space_sm);
}

.books,
.reads,
.sites {
  list-style: none;
  padding: 0;
  margin: 0;
}

.books li {
  line-height: 1.5;
  margin-bottom: var(--space_sm);
}
.books cite {
  font-style: italic;
  color: var(--color_ink);
}
.books__author { color: var(--color_ink_soft); }

/* the trailing docket fragment (month finished, site domain) never splits:
   it wraps as one piece, with the author's or site's last word */
.books .docket,
.sites .docket { white-space: nowrap; }

.reads li + li { margin-top: var(--space_lg); }
.reads__title {
  font-size: var(--text_body);
  font-weight: var(--weight_heading);
  color: var(--color_accent);
  text-decoration: none;
}
.reads__title:hover,
.reads__title:focus-visible {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
}
.reads__note {
  font-size: var(--text_small);
  line-height: 1.5;
  color: var(--color_ink_soft);
  margin: var(--space_xs) 0 0;
}

.sites li { margin-bottom: var(--space_sm); }


/* ---- the footer (5.9) ---- */

.site-footer {
  margin-top: var(--space_3xl);
  padding-block: var(--space_lg) var(--space_2xl);
  border-top: var(--rule_width) solid var(--color_rule);
}
.site-footer .docket + .docket { margin-top: var(--space_xs); }

/* ---- the header: name and switch on one row, nav below (5.1, 9.4) ---- */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;          /* the switch sits on the name's baseline */
  column-gap: var(--space_md);
  row-gap: 0;
}
.site-header .theme {
  margin-inline-start: auto;      /* top right; stays right when it wraps under the name */
}

/* ---- the theme switch (9.4) ---- */
.theme {
  border: 0;
  padding: 0;
  min-inline-size: 0;            /* fieldsets default to min-content */
}
.theme label {
  display: inline-block;
  padding-block: var(--space_xs);
  color: inherit;                /* --color_muted, from .docket */
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.theme input:not(:checked) + label:hover { color: var(--color_accent); }
.theme input:focus-visible + label {
  outline: var(--focus_width) solid var(--color_accent);
  outline-offset: var(--focus_offset);
}
.theme input:checked + label {
  color: var(--color_ink);
  text-decoration-color: var(--color_accent);
  text-decoration-thickness: 2px;
  cursor: default;
}

/* nothing chosen yet: mark the word for what the device asked for.
   Visual only; the radio stays unchecked, which is the truth. */
@media (prefers-color-scheme: light) {
  .theme:not(:has(:checked)) label[for="theme-light"] {
    color: var(--color_ink);
    text-decoration-color: var(--color_accent);
    text-decoration-thickness: 2px;
  }
}
@media (prefers-color-scheme: dark) {
  .theme:not(:has(:checked)) label[for="theme-dark"] {
    color: var(--color_ink);
    text-decoration-color: var(--color_accent);
    text-decoration-thickness: 2px;
  }
}

@media (forced-colors: active) {
  .theme input:checked + label { text-decoration-thickness: 3px; }
}

/* ---- the bar (5.14) ---- */
.site-header .theme { text-align: right; }   /* large text: the words wrap and stay right */
.site-header--home {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: var(--space_lg);
}

/* ---- the masthead, home only (5.14) ---- */
.masthead {
  display: grid;
  grid-template-columns: var(--bio_photo) minmax(0, 1fr);
  grid-template-areas:
    "title title"
    "photo photo"
    "bio   bio";
  column-gap: var(--space_md);
  row-gap: var(--space_md);
  align-items: start;
  padding-bottom: var(--space_xl);
  border-bottom: var(--rule_width) solid var(--color_rule);   /* the divider */
}
@media (min-width: 40rem) {             /* Charta, 25 Nov: the bio sits beside the mark from 40rem (was 22.5rem, bp_sm) */
  .masthead {
    grid-template-columns: var(--mark_col) minmax(0, 1fr);
    grid-template-areas:
      "title title"
      "photo bio";
  }
}
@media (min-width: 40rem) {
  .masthead { column-gap: 2rem; }       /* Luke, 25 Nov: clear space beside the mark (was --space_lg) */
}
.masthead__title {
  grid-area: title;
  font-family: var(--font_masthead);
  font-weight: var(--masthead_weight);
  font-size: var(--text_masthead);
  font-variation-settings: var(--masthead_variation);
  line-height: var(--leading_masthead);
  letter-spacing: var(--tracking_masthead);
  color: var(--color_ink);
  text-wrap: balance;
  margin: 0;
}

.masthead__photo { grid-area: photo; margin: 0; }
.masthead__photo .bio__photo { margin: 0 0 var(--space_xs); }
.masthead__bio {
  grid-area: bio;
  border: var(--rule_width) solid var(--color_rule);
  padding: var(--space_md);
}
.masthead__bio .bio__note { margin: 0; }

/* ---- today's sentence, highlighted, home only (5.14) ---- */
.today--highlight {
  background: var(--color_highlight);
  padding: var(--space_lg);
  margin-block: var(--space_xl);
  outline: 1px solid transparent;   /* still a box in forced-colours mode */
  outline-offset: -1px;
}
@media (min-width: 40rem) {
  .today--highlight { padding: var(--space_xl); }
}
.today--highlight > .docket { color: var(--color_ink_soft); }
.today--highlight .sentence {
  quotes: "\201C" "\201D";
  text-indent: -0.42em;             /* hang the opening mark (CONFIRM by eye) */
}
.today--highlight .sentence::before { content: open-quote; }
.today--highlight .sentence::after  { content: close-quote; }

/* ---- the bar: name left, everything else right, on every line (5.15) ---- */
.site-header {
  justify-content: flex-end;
  container-type: inline-size;      /* lets the site map measure the column (100cqi) */
}
.site-header .site-name { margin-inline-end: auto; }
.site-header .theme     { margin-inline-start: 0; }   /* replaces v0.2b's auto */

/* ---- the menu button: "menu ≡" closed, "× close" open (5.15) ---- */
.menu__button {
  list-style: none;
  cursor: pointer;
  font-family: var(--font_docket);
  font-size: var(--text_docket);
  line-height: var(--leading_docket);
  font-synthesis: none;
  color: var(--color_ink_soft);
  border: var(--rule_width) solid var(--color_control_border);
  padding: var(--space_xs) var(--space_sm);
  min-inline-size: 7ch;             /* Charta: "× close" is 7ch in the monospaced docket face, "menu ≡"
                                       about 6.5ch; one width for both, so the switch never shifts */
}
.menu__button::-webkit-details-marker { display: none; }
.menu__button:hover { color: var(--color_ink); border-color: var(--color_ink_soft); }
.menu[open] > .menu__button {
  background: var(--color_accent);
  border-color: var(--color_accent);
  color: var(--color_on_accent);
}
.menu:not([open]) .menu__open,
.menu[open] .menu__closed { display: none; }

.menu__bars {                        /* unchanged from 5.14 */
  display: inline-block;
  position: relative;
  box-sizing: border-box;
  width: 1em;
  height: 0.75em;
  margin-inline-start: 0.5em;
  vertical-align: -0.05em;
  border-block: 2px solid currentColor;
}
.menu__bars::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% - 1px);
  border-top: 2px solid currentColor;
}

/* ---- the site map: full column width, opening in place (5.15) ----
   The panel stays zero-wide, so the bar never reflows; the map inside
   it is exactly the column wide and grows leftwards from the button. */
.menu__panel {
  width: 0;
  margin-left: auto;                /* physical on purpose (Charta): with direction: rtl,
                                       margin-inline-start is the right side, which parked the
                                       panel at the button's left edge and the map off-column */
  direction: rtl;
}
.sitemap {
  direction: ltr;
  width: min(var(--measure), calc(100vw - 2 * var(--gutter)));  /* fallback */
  width: 100cqi;                                                /* the column, exactly */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));  /* grows with the groups: no breakpoint */
  gap: var(--space_lg) var(--space_md);
  margin-top: var(--space_sm);
  padding-block: var(--space_lg);
  border-block: var(--rule_width) solid var(--color_ink_soft);
}
.sitemap__label {
  font-family: var(--font_text);
  font-size: var(--text_ui);
  font-weight: var(--weight_heading);
  line-height: var(--leading_docket);
  color: var(--color_ink);
  margin: 0 0 var(--space_xs);
}
.sitemap ul { list-style: none; margin: 0; padding: 0; }
.sitemap a {
  font-family: var(--font_text);
  font-size: var(--text_ui);
  line-height: var(--leading_docket);
  color: var(--color_ink_soft);
  text-decoration: none;
  display: inline-block;
  padding-block: var(--space_xs);   /* about 32px targets */
}
.sitemap a:hover {
  color: var(--color_ink);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
}
.sitemap a[aria-current] {
  color: var(--color_ink);
  font-weight: var(--weight_heading);
}
.sitemap__here {
  font-family: var(--font_docket);
  font-size: var(--text_docket);
  font-synthesis: none;
  color: var(--color_accent);
  white-space: nowrap;              /* Charta: the 5.0 rule. "· you’re here" wraps as one piece,
                                       on the space before it (kept outside the span in the markup) */
}

/* ---- the filter pills (5.15) ---- */
.filter {
  margin: 0 0 var(--space_xl);
  padding-bottom: var(--space_md);
  border-bottom: var(--rule_width) solid var(--color_rule);
}
.filter ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space_sm);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font_docket);
  font-size: var(--text_docket);
  line-height: var(--leading_docket);
  font-synthesis: none;
  color: var(--color_ink_soft);
  text-decoration: none;
  white-space: nowrap;
  border: var(--rule_width) solid var(--color_control_border);
  padding: var(--space_xs) var(--space_sm);   /* about 31px tall */
}
.pill:hover { color: var(--color_ink); border-color: var(--color_ink_soft); }
.pill[aria-current] {
  background: var(--color_accent);
  border-color: var(--color_accent);
  color: var(--color_on_accent);
}

.filter__rss { margin-inline-start: auto; }
.filter__rss a {
  font-family: var(--font_docket);
  font-size: var(--text_docket);
  font-synthesis: none;
  color: var(--color_muted);
  display: inline-block;
  padding-block: var(--space_xs);
}
.filter__rss a:hover { color: var(--color_accent); }

@media (forced-colors: active) {
  .pill[aria-current],
  .menu[open] > .menu__button {
    background: Highlight;
    border-color: Highlight;
    color: HighlightText;
  }
}

/* the open site map draws its own rule: no second one under the bar (v0.4a) */
.site-header:has(.menu[open]) { border-bottom-color: transparent; }

/* ---- the nav row (5.16): from 40rem, on the menu's line ----
   .topnav, not .site-nav: the old .site-nav rules stay for the parked looks */
.topnav { display: none; }                   /* phones: the site map carries these words */
@media (min-width: 40rem) {
  .topnav {
    display: block;
    flex: 1 1 auto;                          /* fills line 2 and pushes the menu to the right */
  }
}
.topnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.625rem;                      /* 5.27: seven words with the menu (5.25's six took 0.75rem;
                                                before that --space_md). lukecorden.org pins its own
                                                0.75rem in lc.css, so its nav is unchanged */
  row-gap: 0;
}
.topnav a {
  font-family: var(--font_text);
  font-size: var(--text_ui);
  line-height: var(--leading_docket);
  color: var(--color_ink_soft);
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
  padding-block: var(--space_sm);
}
.topnav a:hover {
  color: var(--color_ink);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
}
.topnav a[aria-current] {
  color: var(--color_ink);
  text-decoration-line: underline;
  text-decoration-color: var(--color_accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}
@media print { .topnav { display: none; } }

/* Charta, v0.3c: on home, from 40rem, the switch takes line 1 to itself (at the right, by
   text-align), so the words always start line 2 with the menu. Without it, the switch and
   the six words come to about 576px and shared line 1 whenever they fitted. */
@media (min-width: 40rem) {
  .site-header--home .theme { flex-basis: 100%; }
}

/* the site map now opens under the words: a little more air above its rule */
.sitemap { margin-top: var(--space_md); }

/* ---- Apfel: the site's own voice (5.18) ---- */
.masthead__title,
.site-name, .page-title, .piece__head h1,
.prose h2, .prose h3, .post-title, .signup__headline, .section-title,
.reading-section h2, .reading-section h3,
.topnav a, .sitemap__label, .sitemap a, .pill, .docket, .menu__button,
.field label, .consent label, .signup button,
.email-signup__heading, .email-signup__button {
  font-family: var(--font_head);
  font-variant-ligatures: no-common-ligatures;  /* Apfel's liga turns "a/o" into ə and "e/i" into з */
  font-synthesis: none;                         /* no fake italic or bold: Apfel has no italic */
}
.masthead__title { font-family: var(--font_masthead); }   /* keeps the masthead's own swap token */

.page-title {
  font-size: var(--text_title);
  font-weight: var(--weight_display);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.piece__head h1 {
  font-size: var(--text_h1);
  font-weight: var(--weight_title);
  line-height: 1.15;
  letter-spacing: -0.005em;
}
.prose h2, .signup__headline, .section-title, .reading-section h2,
.email-signup__heading {
  font-weight: var(--weight_title);
  line-height: 1.2;
}
.prose h3, .reading-section h3, .post-title {
  font-weight: var(--weight_title);
  line-height: 1.25;
}
.sitemap__label, .signup button, .email-signup__button { font-weight: var(--weight_title); }
.topnav a, .sitemap a, .pill, .docket, .menu__button,
.field label, .consent label { font-weight: var(--weight_label); }
.topnav a[aria-current], .sitemap a[aria-current] { font-weight: var(--weight_title); }

/* the room name in a docket is the category's title; the date is its stamp.
   Two classes, so it outranks the older `.docket a { color: inherit }`;
   `.docket a:hover` still turns it to the accent. */
.docket .docket__room {
  font-weight: var(--weight_title);
  color: var(--color_ink_soft);
}

/* the machine's words stay typed */
.transcript pre,
.prose code, .prose kbd, .prose samp { font-family: var(--font_machine); }

/* Charta (v0.5a build): a docket link marked as the current page, used by the body-trial
   switcher, takes the site's current-item look: Fett, in ink. No main page has one. */
.docket a[aria-current] { font-weight: var(--weight_title); color: var(--color_ink); }
.trial-switch { margin: 0 0 var(--space_xl); }   /* body trials only: air between the switcher and the letter */

/* ---- the pager (5.19, v0.5b): the filter row's pills, under the feed ---- */
.pager {
  margin-top: var(--space_xl);
  padding-top: var(--space_md);
  border-top: var(--rule_width) solid var(--color_rule);
}
.pager ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space_sm);
}
.pill--num {
  box-sizing: border-box;     /* Charta: so the 2.25em is the whole pill. In the pills' content-box,
                                 it came out 50px wide, not the spec's "about 31px" */
  min-inline-size: 2.25em;    /* about 31px: a single digit is not a sliver */
  justify-content: center;    /* the digit sits in the middle of its box */
}
.pager__gap {
  font-family: var(--font_docket);
  font-size: var(--text_docket);
  color: var(--color_muted);
  padding-inline: var(--space_xs);
}
@media print { .pager { display: none; } }

/* ---- the inner header: the mark and a larger name (5.20, v0.5c) ----
   One home link: the mark (aria-hidden, inlined by logo/source/place_mark.py) and then the name.
   Replaces the 5.1 and 5.18 .site-name rules. */
.site-name {
  display: inline-flex;
  align-items: center;                 /* the mark centres on the name, line for line */
  gap: 0.5em;
  font-family: var(--font_head);
  font-size: var(--text_site_name);
  font-weight: var(--weight_display);  /* Satt */
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-variant-ligatures: no-common-ligatures;
  color: var(--color_ink);
  text-decoration: none;
  padding-block: var(--space_xs);
}
.site-name:hover .site-name__text {
  text-decoration-line: underline;
  text-decoration-color: var(--color_accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.15em;
}
.site-name__mark { display: block; flex: none; width: auto; }
.site-name__mark--32 { height: 2.5rem; aspect-ratio: 24 / 28; }        /* phones: ring and dot */
.site-name__mark--64 { display: none; height: 3rem; aspect-ratio: 47.5 / 52.3; }
@media (min-width: 40rem) {
  .site-name__mark--32 { display: none; }
  .site-name__mark--64 { display: block; }
}

/* line 1: the mark has no text baseline, so the name and the switch centre on each other */
.site-header .site-name,
.site-header .theme { align-self: center; }

/* ---- Now: the stream (5.21, v0.5d) ---- */
.now-item p {
  font-size: var(--text_body);
  line-height: var(--leading_body);
  color: var(--color_ink_soft);
  text-wrap: pretty;
  margin: var(--space_sm) 0 0;
}
.now-update + .now-update {
  margin-top: var(--space_xl);
  padding-top: var(--space_xl);
  border-top: var(--rule_width) solid var(--color_rule);
}
.now-update > .docket { margin: 0 0 var(--space_sm); }

/* ---- Reading: a highlight is someone else's words (5.21, v0.5d) ---- */
.highlight {
  margin: var(--space_sm) 0 0;
  padding-left: 1em;
  border-left: 3px solid var(--color_muted);  /* firmer than the prose blockquote's hairline */
  font-family: var(--font_text);
  font-size: var(--text_body);
  line-height: var(--leading_body);
  font-style: normal;
  color: var(--color_ink_soft);
}
.highlight p { margin: 0 0 0.5em; }
.highlight p:last-child { margin-bottom: 0; }
.highlight__source {
  margin: var(--space_xs) 0 0;
  font-family: var(--font_text);
  font-size: var(--text_small);
  line-height: 1.5;
  color: var(--color_ink_soft);
}
.highlight__source cite { font-style: italic; }
/* on the item's own page, the highlight sits between the source line and Luke's prose */
.piece .highlight { margin: var(--space_lg) 0; }

/* ---- Now: the lead and the updates (5.22, v0.5e; the lead 5.22a, v0.5f) ----
   A heading (set like the other h2s), one line in ink at body size, and one link down to the
   updates. It replaces 5.22's summary bullets ("too specific", Luke). */
.now-lead .section-title { margin-bottom: var(--space_sm); }
.now-lead__line {
  font-size: var(--text_body);
  line-height: var(--leading_body);
  color: var(--color_ink);
  text-wrap: pretty;
  margin: 0;
}
.now-lead__more { margin: var(--space_sm) 0 0; }
.now-updates {
  margin-top: var(--space_2xl);
  padding-top: var(--space_xl);
  border-top: var(--rule_width) solid var(--color_rule);
}
.now-update > .discuss { margin-top: var(--space_sm); }

/* ---- the share line (5.28, v0.5o): under One True Thing's featured sentence on home and on each
   sentence's own page. A docket line like the discuss line (5.6). "copy link" and "other apps" are
   buttons, shown by the page's script only where the browser can do them; they look like the
   docket's links. Class names only NLP uses: lukecorden.org loads this file and has none of them. ---- */
.today--highlight > .share { margin-top: var(--space_md); }
.share [hidden] { display: none; }
.share__button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  margin: 0;
  padding: var(--space_xs) 0;       /* as .docket a */
  display: inline-block;
  cursor: pointer;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.share__button:hover,
.share__button:focus-visible { color: var(--color_accent); }
@media print { .share { display: none; } }
