/* The shared system (craft pass, 2026-11-08). One file both the home (a3.html)
   and the case study's "F · System" layout load. Everything is scoped to
   .sys, so the comps' other layouts are untouched.
   Eight text styles (plus Body gray), one 800px frame, two line weights.
   Defaults are Cindy's picks of 2026-11-08 (A3 panel). */
@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400..500&display=swap");   /* (Geist from Google Fonts until it is self-hosted) */

.sys {
  /* 1b. color */
  --paper: #F3F2EE;
  --ink: #111111;
  --gray: #706E6A;          /* the lightest gray that passes for small text: 4.5:1 on paper (was #5E5C57, 6.0:1) */
  --gray-large: #8D8C87;   /* the lightest gray that passes for large text (24px and up): 3.0:1 on paper */
  --line-c: #B9B6AE;
  --accent: #E84829;       /* display sizes only (24px and up) */
  --accent-text: #C53A1C;  /* any accent text under 24px (4.7:1 on paper) */
  --fill: #EDECE7;         /* Soft surface: figures only */
  /* 1d. two line weights */
  --frame: 0.75px solid #000;             /* frame and section rules (as on A2: 0.75px, true black) */
  --hair: 0.75px solid var(--line-c);     /* full-bleed and in-table hairlines */
  --radius: 0px;
  --dot: 2.5px;            /* crossing dots (snapped to whole screen pixels by the page script) */
  /* 1c. the frame */
  --frame-w: 800px;
  --gut: 160px;          /* the left column (96px in the handoff; 128, then 160 so the portrait above it fits her centered: Cindy, 2026-11-08) */
  --measure: 62ch;
  /* padding inside the grid cells, one set for every page (smaller, Cindy 2026-11-08) */
  --pad-x: 12px;          /* (20 -> 16 -> 12, Cindy 2026-11-08) */
  --sec-gap: 96px;        /* empty space closing each section, before the next one's header (after matthewtrent.me) */
  --title-font: "Inter Tight", sans-serif;
  --text-font: "Geist", "Inter", sans-serif;   /* Subtitle, Body, Small (test alternatives: Inter, IBM Plex Sans, Asta Sans, Roboto Flex) */
  --tx-bump: 0px;          /* (was 0.5px, half a pixel up for Geist; all Geist down 0.5px, Cindy 2026-11-09) */
  --title-weight: 500;   /* (Title (03) at 500 everywhere, Cindy 2026-11-09; was 400) */
  --pad-y: 10px;          /* top and bottom inside cells (16 -> 10, Cindy 2026-11-08) */
  --pad-y-text: 16px;     /* a little more around blocks of Subtitle and Body text (project text, the intro) */
  --pad-s: 8px;
  --pad-tight: 6px;        /* cells holding Display (02) or Title (03) text: super tight, a stylistic choice (Cindy 2026-11-08) */
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text-font);
  font-size: calc(14px + var(--tx-bump, 0px));
  line-height: 1.5;
  font-weight: 400;
}
/* Surface: Soft, one radius and one fill, for figures only */
.sys.sf-soft { --radius: 4px; }

/* 1a. the eight text styles */
.sys .t-wordmark { font-family: "Inter Tight", sans-serif; font-size: 146px; line-height: 0.8; font-weight: 400; letter-spacing: -0.045em; }
.sys .t-display { font-family: "Inter Tight", sans-serif; font-size: var(--display-size, 56px); line-height: 1.02; font-weight: 400; letter-spacing: -0.02em; }
.sys .t-title { font-family: var(--title-font); font-size: 26px; line-height: 1.2; font-weight: var(--title-weight); letter-spacing: normal; text-box: trim-both cap alphabetic; }   /* (trimmed to the letters, so equal padding above and below looks equal) */
/* test: Title in a serif (panel switch) */
/* the alternatives set a hair smaller than Inter: half a pixel up to match */
.sys.tx-inter { --text-font: "Inter", sans-serif; --tx-bump: 0px; }
.sys.tx-plex { --text-font: "IBM Plex Sans", sans-serif; }
.sys.tx-asta { --text-font: "Asta Sans", sans-serif; }
.sys.tx-roboto { --text-font: "Roboto Flex", sans-serif; }
.sys.tx-geist { --text-font: "Geist", sans-serif; }
.sys.ti-serif { --title-font: "Times New Roman", Times, serif; --title-weight: 400; }
.sys .t-subtitle { font-family: var(--text-font); font-size: calc(16px + var(--tx-bump, 0px)); line-height: 1.35; font-weight: 500; letter-spacing: -0.005em; }   /* (was Inter Tight 20; Cindy 2026-11-08, after matthewtrent.me) */
.sys .t-body { font-family: var(--text-font); font-size: calc(14px + var(--tx-bump, 0px)); line-height: 1.5; font-weight: 400; color: var(--ink); }
.sys .t-body-gray { font-family: var(--text-font); font-size: calc(14px + var(--tx-bump, 0px)); line-height: 1.5; font-weight: 400; color: var(--gray); }   /* (Body in gray: project descriptions; Cindy 2026-11-08) */
.sys .t-small { font-family: var(--text-font); font-size: calc(12px + var(--tx-bump, 0px)); line-height: 1.45; font-weight: 400; color: var(--gray); }
.sys .t-label { font-family: "Inconsolata", ui-monospace, monospace; font-size: 12px; line-height: 1.45; font-weight: 400; text-transform: uppercase; letter-spacing: 0.06em; }
.sys .t-tag { font-family: "Inconsolata", ui-monospace, monospace; font-size: 12px; line-height: 1.45; font-weight: 400; text-transform: lowercase; letter-spacing: 0; color: var(--gray); }
.sys .gray { color: var(--gray); }
:where(.sys) :is(dl, dd) { margin: 0; }
.sys strong, .sys .em { font-weight: 500; }
/* footnote markers: a superscript at 0.45em of its line, in the accent
   (accent-text, since the marker itself is small) */
.sys .fn { font-size: 0.7em; line-height: 0; vertical-align: 0.5em; margin-left: 1px; color: var(--accent-text); font-weight: 500; }   /* (0.45em was too faint to find: Cindy, 2026-11-08) */
.sys .t-display .fn { color: var(--accent); }

/* 1a. underline means a link; hover is accent-text */
.sys a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 150ms ease-out; }
.sys a.bare { text-decoration: none; }
.sys a:hover { color: var(--accent-text); }
.sys a:focus-visible, .sys button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* 1c + 1d. rows: a gray hairline across the whole window, the frame's ink
   line across the 800px, and a dot where each crosses a frame line */
.sys .s-row { position: relative; --fw: min(var(--frame-w), 100vw - 32px); }
/* the gray line runs only outside the frame, so it never sits on (and doubles) the frame's black line */
.sys .s-row:not(.no-rule)::before, .sys .s-row:not(.no-rule)::after, .sys .s-row.rule-below::before, .sys .s-row.rule-below::after { content: ""; position: absolute; top: 0; height: 0; border-top: var(--hair); pointer-events: none; }
.sys .s-row:not(.no-rule)::before, .sys .s-row.rule-below::before { left: 0; right: calc(50% + var(--fw) / 2); }
.sys .s-row:not(.no-rule)::after, .sys .s-row.rule-below::after { left: calc(50% + var(--fw) / 2); right: 0; }
.sys .s-row.rule-below::before, .sys .s-row.rule-below::after { top: auto; bottom: 0; }
.sys .s-in { position: relative; width: var(--fw, min(var(--frame-w), 100% - 32px)); margin: 0 auto; border-left: var(--frame); border-right: var(--frame); border-top: var(--frame); }
.sys .s-row.no-rule > .s-in { border-top: 0; }
.sys .s-row:not(.no-rule) > .s-in::before, .sys .s-row:not(.no-rule) > .s-in::after,
.sys .s-row:not(.no-rule) > .s-in.g > .s-gut::before { content: ""; position: absolute; top: calc(-0.375px - var(--dot) / 2); width: var(--dot); height: var(--dot); border-radius: 50%; background: #000; z-index: 1; }
.sys .s-in::before { left: calc(-0.375px - var(--dot) / 2); }
.sys .s-in::after { right: calc(-0.375px - var(--dot) / 2); }
/* the 96px column: numbers and labels in it, content in the rest */
.sys .s-in.g { display: grid; grid-template-columns: var(--gut) minmax(0, 1fr); }
.sys .s-gut { position: relative; border-right: var(--frame); padding: var(--pad-y-text) var(--pad-x); min-width: 0; }   /* (the same padding as the text cells beside it) */
.sys .s-in.g > .s-gut::before { right: calc(-0.375px - var(--dot) / 2); top: calc(-0.375px - var(--dot) / 2); }
.sys .s-main { min-width: 0; padding: var(--pad-y) var(--pad-x); }
.sys .s-head > * { padding: var(--pad-s) 16px; }
.sys .s-head > .s-main { padding: var(--pad-s) var(--pad-x); }
.sys .measure { max-width: var(--measure); }
/* the empty space that closes a section */
.sys .s-space > .s-in { height: var(--sec-gap); }
.sys .s-end { width: min(var(--frame-w), 100vw - 32px); height: var(--sec-gap); margin: 0 auto; border-top: var(--frame); border-left: var(--frame); border-right: var(--frame); }   /* (the frame's sides run on below the footer to the end of the page) */

/* Figures (frames). Firm: no fill, square. Soft: the neutral fill, 4px. */
.sys .s-fig { position: relative; display: block; border: var(--frame); border-radius: var(--radius); overflow: hidden; background: transparent; }
.sys.sf-soft .s-fig { background: var(--fill); }
.sys .s-fig > img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* in-table hairlines: a ruled row of cells (metadata, highlights) */
.sys .s-cells { display: grid; border-top: var(--hair); }
.sys .s-cells > * { padding: var(--pad-s) 16px; border-right: var(--hair); min-width: 0; }
.sys .s-cells > *:last-child { border-right: 0; }

/* lists with a "+" marker and a hanging indent (wrapped lines align with the text) */
.sys .s-plus { list-style: none; margin: 0; padding: 0; }
.sys .s-plus > li { display: grid; grid-template-columns: 16px minmax(0, 1fr); }

/* phones: one column; the 96px column becomes a row above each item */
@media (max-width: 700px) {
  .sys { --pad-x: 12px; --pad-y: 10px; --pad-y-text: 14px; --sec-gap: 48px; }
  .sys .t-display { font-size: 32px; line-height: 1.08; }
  .sys .s-in.g { grid-template-columns: minmax(0, 1fr); }
  .sys .s-gut { border-right: 0; border-bottom: var(--hair); padding: 12px 16px; }
  .sys .s-row:not(.no-rule) > .s-in.g > .s-gut::before { display: none; }
  .sys .s-main { padding: var(--pad-y) var(--pad-x); }
  .sys .s-head > .s-main { padding: 10px 16px; }
}

.sys :is(.t-title, .t-display).gray, .sys :is(.t-title, .t-display) .gray { color: var(--gray-large); }   /* (gray at 24px and up: the lightest that passes, 3:1) */

/* test: every grid line and dot at 50% opacity */
.sys.ln-half { --frame: 0.75px solid rgba(0, 0, 0, 0.5); --hair: 0.75px solid rgba(185, 182, 174, 0.5); }
.sys.ln-half .s-in::before, .sys.ln-half .s-in::after, .sys.ln-half .s-gut::before, .sys.ln-half .s-gut::after, .sys.ln-half .dt,
.sys.ln-half .id-role::before, .sys.ln-half .id-role::after, .sys.ln-half .moved::before, .sys.ln-half .moved::after { background: rgba(0, 0, 0, 0.5) !important; }

/* a second pair of gray lines, 8px outside the frame on each side, full height (after matthewtrent.me) */
body.sys:not(.lx-sys) { position: relative; --outer: 8px; }   /* (24px until 2026-11-11, then 10, then 8: Cindy) */
body.sys:not(.lx-sys)::before { content: ""; position: absolute; top: 0; bottom: 0; pointer-events: none; z-index: 25;   /* (above the sticky bar, so they reach the top of the screen) */
  left: calc(50% - min(var(--frame-w), 100vw - 32px) / 2 - var(--outer)); right: calc(50% - min(var(--frame-w), 100vw - 32px) / 2 - var(--outer));
  border-left: var(--hair); border-right: var(--hair); }
@media (max-width: 900px) { body.sys:not(.lx-sys)::before { display: none; } }
/* the same offset where sections begin and end (Cindy 2026-11-11): a gray hairline 8px inside each end of the empty
   band between two sections, across the window, and one 8px under the line that closes the page. Real elements
   with a border (i.off in each band, b.off in .s-end), so the browser draws them exactly as thick as every other
   line. Shown and hidden with the outer lines. */
.sys .s-space > .off, .sys .s-end > .off { display: none; }
@media (min-width: 901px) {
  body.sys:not(.lx-sys):not(.go-off) .s-space > .off { display: block; position: absolute; left: 0; right: 0; height: 0; border-top: var(--hair); pointer-events: none; }
  body.sys:not(.lx-sys):not(.go-off) .s-space > .off:first-of-type { top: var(--outer); }
  body.sys:not(.lx-sys):not(.go-off) .s-space > .off:last-of-type { bottom: calc(var(--outer) - 0.75px); }
  body.sys:not(.lx-sys):not(.go-off) .s-end > .off { display: block; position: absolute; left: -100vw; right: -100vw; top: calc(var(--outer) - 0.75px); height: 0; border-top: var(--hair); pointer-events: none; }
}

/* Crossing dots, one rule (Cindy 2026-11-11): a black dot wherever two black lines meet (a crossing, a T or a
   corner); a gray dot wherever two gray lines cross; no dot where a gray line meets a black one; none on the
   boxes around images. Here: the left column's line also ends in a dot where its section's last row closes. */
@media (min-width: 701px) {
  .sys .s-row:has(> .s-in.g):not(.bar):not(:has(+ .s-row > .s-in.g)) > .s-in.g > .s-gut::after { content: ""; position: absolute; right: calc(-0.375px - var(--dot) / 2); bottom: calc(-0.375px - var(--dot) / 2); width: var(--dot); height: var(--dot); border-radius: 50%; background: #000; z-index: 1; }
}
