/*
  OH4 Labs LLC site styles. Hand-maintained; not generated.
  Design language: notes/oh4labs.txt. Fonts are self-hosted in ../fonts/.

  Colour roles: blue = brand, links, thick rules and the Published state.
  Amber, red and green are state colours only. Everything else is paper and ink.
*/

@font-face {
  font-family: "Archivo Narrow";
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url("../fonts/archivo-narrow-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 600;
  font-display: block;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../fonts/ibm-plex-mono-400-symbols.woff2") format("woff2");
  unicode-range: U+23B8-23BD, U+2500-259F;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: block;
  src: url("../fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: block;
  src: url("../fonts/ibm-plex-mono-500-symbols.woff2") format("woff2");
  unicode-range: U+23B8-23BD, U+2500-259F;
}

:root {
  color-scheme: light;

  --paper: #ECE9DC;
  --paper-light: #F6F4EB;
  --paper-dark: #E0DCCB;
  --rule: #A9A594;
  --ink-muted: #4A483F;
  --ink: #1B1B18;
  --blue: #1A3C9E;
  --blue-dark: #0F2566;
  --blue-tint: #CFD5E6;
  --green: #1E6B3A;
  --amber: #8A5A00;
  --red: #A3231C;

  --display: "Archivo Narrow", "Arial Narrow", sans-serif;
  --body: "Archivo", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--body);
  padding-block: 48px 64px;
  padding-left: max(16px, 4%);
  padding-right: max(16px, 4%);
}

.sheet {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Running head and footer: the thick blue rules. */
.running-head,
.running-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 24px;
  font: 400 13px var(--mono);
}
.running-head { border-bottom: 6px solid var(--blue); padding-bottom: 10px; }
.running-foot { border-top: 6px solid var(--blue); padding-top: 12px; color: var(--ink-muted); }
.running-head .doc-type { font: 700 22px var(--display); letter-spacing: 0.12em; text-transform: uppercase; }

.masthead { display: flex; flex-direction: column; gap: 20px; }
.masthead .crumb { align-self: flex-start; font: 400 13px var(--mono); padding: 12px 0; }

/* Title: the big blue designator, with an optional smaller ink suffix. */
.designator {
  margin: 0;
  font: 700 clamp(60px, 11vw, 120px)/0.9 var(--display);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--blue);
}
.designator .suffix { font-size: 0.6em; letter-spacing: 0.02em; color: var(--ink); }
.doc-title {
  margin: 6px 0 0;
  font: 700 32px/1.15 var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-wrap: balance;
}

section { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

h2 {
  margin: 0;
  font: 700 16px var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
/* A heading followed by prose gets a hairline; a table brings its own rule. */
h2.ruled { border-bottom: 1px solid var(--ink); padding-bottom: 6px; }
h2 .num { margin-right: 0.6em; }

p, ul, ol { margin: 0; max-width: 65ch; }
li + li { margin-top: 4px; }

code { font: 400 0.9em var(--mono); background: var(--paper-dark); padding: 1px 4px; }

.scroll { overflow-x: auto; }

table { border-collapse: collapse; width: 100%; }
th {
  font: 700 13px var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  padding: 8px 12px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
td {
  font: 400 14px var(--mono);
  padding: 8px 12px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

/* State words carry weight as well as colour. */
.st { font-weight: 500; }
.st-draft { color: var(--ink-muted); }
.st-published { color: var(--blue); }
.st-superseded { color: var(--amber); }
.st-abandoned { color: var(--red); }

/* Figures are drawn in text. Line height matches the glyph box so rules join. */
figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
figure pre,
pre.code {
  margin: 0;
  border: 1px solid var(--ink);
  padding: 20px 24px;
  overflow-x: auto;
  font: 400 14px/1.3 var(--mono);
}
figure pre code,
pre.code code { font: inherit; background: none; padding: 0; }
figcaption { font: 400 13px var(--mono); color: var(--ink-muted); }

/* Preview builds only: marks a note that the public build leaves out. */
.unpublished {
  border: 2px solid var(--red);
  color: var(--red);
  padding: 8px 12px;
  font: 500 13px var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media print {
  body { padding: 0; }
  .scroll, figure pre { overflow: visible; }
}

/* Vertical rhythm inside the sheet. */
.stack { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
