/* The Blueprint design. Hand-written; no framework underneath.
   --fill (the accent colour) and --on-fill (text on it) are set by the page from the site settings.
   Dark is the blueprint itself, white lines on blue; light is the same drawing on drafting vellum. */

@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-display: swap; src: url(fonts/barlow-condensed-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }

:root {
  --fill: #ffa200; --on-fill: #141414;
  --blue: #0d3b66;
  --bg: #f2f5f9; --ink: #0d3b66; --muted: #4b6788; --rule: rgba(13, 59, 102, .6); --hair: rgba(13, 59, 102, .24);
  --grid1: rgba(13, 59, 102, .055); --grid2: rgba(13, 59, 102, .12); --panel: rgba(255, 255, 255, .7); --tint: rgba(13, 59, 102, .07);
  --accent: color-mix(in srgb, var(--fill) 50%, #4a1d00);      /* the accent as a line or as text on the paper */
  --good: #1f7a3d; --bad: #b3261e;
  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --w: 1160px;
}
[data-theme="dark"] {
  --bg: #0d3b66; --ink: #eaf2fb; --muted: #a9c4e1; --rule: rgba(234, 242, 251, .62); --hair: rgba(234, 242, 251, .24);
  --grid1: rgba(255, 255, 255, .045); --grid2: rgba(255, 255, 255, .1); --panel: rgba(7, 42, 76, .6); --tint: rgba(255, 255, 255, .07);
  --accent: color-mix(in srgb, var(--fill) 88%, white);
  --good: #5fe08f; --bad: #ff8a80;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; color: var(--ink); font: 15px/1.7 var(--mono); -webkit-font-smoothing: antialiased; background-color: var(--bg);
  background-image: linear-gradient(var(--grid2) 1px, transparent 1px), linear-gradient(90deg, var(--grid2) 1px, transparent 1px),
                    linear-gradient(var(--grid1) 1px, transparent 1px), linear-gradient(90deg, var(--grid1) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; }
a { color: inherit; text-decoration-color: var(--hair); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
.ic { flex: none; vertical-align: -3px; }
.wrap { width: min(var(--w), 100% - 40px); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
h3 { margin: 0 0 6px; font-size: 1.35rem; line-height: 1.2; }
p { margin: 0 0 12px; }
.small { font-size: 13px; color: var(--muted); }
.ref { margin: 0; font-size: 12.5px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.ref::before { content: "REF: "; color: var(--accent); }
.part { margin: 0; font: 500 13px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
/* Hidden until scrolled to, but only when the script that reveals them is running (html.js) */
.js [data-reveal] { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---- bar: the cells along the top edge of the sheet ---- */
.bar { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 2px solid var(--rule); }
.bar .wrap { display: flex; align-items: stretch; height: 54px; border-inline: 1px solid var(--hair); }
.brand { display: flex; align-items: center; margin-right: auto; padding: 0 16px; font: 700 1.2rem var(--display); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; overflow: hidden; }
.bar ul { display: flex; margin: 0; padding: 0; list-style: none; }
.bar li { display: flex; border-left: 1px solid var(--hair); }
.bar ul a { display: flex; align-items: center; gap: 7px; padding: 0 13px; font: 500 14.5px var(--display); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--muted); }
.bar ul a .n { font: 500 10.5px var(--mono); letter-spacing: 0; color: var(--accent); }
.bar ul a:hover { color: var(--ink); background: var(--tint); }
.bar ul a[aria-current] { background: var(--fill); color: var(--on-fill); }
.bar ul a[aria-current] .n { color: inherit; }
.cell { flex: none; display: grid; place-items: center; width: 54px; border: 0; border-left: 1px solid var(--hair); background: none; color: var(--ink); cursor: pointer; }
.cell:hover { background: var(--tint); color: var(--accent); }
[data-theme="dark"] .when-light, [data-theme="light"] .when-dark { display: none; }
.nav-toggle { display: none; }

.btn { display: inline-flex; align-items: center; gap: 9px; padding: 10px 20px; border: 1.5px solid var(--ink); background: var(--panel); color: var(--ink); font: 700 15px var(--display); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--hair); }
.btn.primary { background: var(--fill); border-color: var(--fill); color: var(--on-fill); }
.btn.primary:hover { color: var(--on-fill); box-shadow: 4px 4px 0 var(--rule); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; box-shadow: none; }

/* ---- hero: the drawing sheet, with its title block along the bottom ---- */
.hero { padding: 40px 0 10px; }
.sheet { border: 2px solid var(--rule); outline: 1px solid var(--hair); outline-offset: 6px; background: var(--panel); }
.view { display: grid; grid-template-columns: 1fr 290px; gap: 56px; align-items: center; padding: 48px 52px; }
.view.solo { grid-template-columns: 1fr; }
.hero.lost .view { padding-block: 80px; }
h1 { margin: 6px 0 0; font-size: clamp(2.9rem, 7.4vw, 5.6rem); line-height: .95; letter-spacing: .015em; }
.dim { display: flex; align-items: center; gap: 14px; max-width: 640px; margin: 18px 0 0; padding: 6px 0; border-inline: 1px solid var(--accent); }
.dim i { position: relative; flex: 1; min-width: 18px; height: 1px; background: var(--accent); }
.dim i::before { content: ""; position: absolute; top: -4px; border-block: 4px solid transparent; }
.dim i:first-child::before { left: 0; border-right: 10px solid var(--accent); }
.dim i:last-child::before { right: 0; border-left: 10px solid var(--accent); }
.role { font: 500 1.25rem/1.3 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); min-height: 1.3em; text-align: center; }
.caret { display: inline-block; width: 2px; height: 1em; margin-left: 3px; background: currentColor; vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.lead { max-width: 62ch; margin: 20px 0 0; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.detail { margin: 0; text-align: center; }
.lens { position: relative; width: 230px; height: 230px; margin: 26px auto; border: 2px solid var(--rule); border-radius: 50%; outline: 1px dashed var(--rule); outline-offset: 10px; }
.lens::before, .lens::after { content: ""; position: absolute; pointer-events: none; }
/* Centre marks: four short strokes outside the circle, none across the face */
.lens::before { left: -30px; right: -30px; top: calc(50% - .5px); height: 1px; background: linear-gradient(90deg, var(--accent) 0 22px, transparent 22px calc(100% - 22px), var(--accent) calc(100% - 22px)); }
.lens::after { top: -30px; bottom: -30px; left: calc(50% - .5px); width: 1px; background: linear-gradient(var(--accent) 0 22px, transparent 22px calc(100% - 22px), var(--accent) calc(100% - 22px)); }
.lens img, .no-photo { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.no-photo { display: grid; place-items: center; background: var(--tint); color: var(--accent); font: 700 4.4rem var(--display); text-transform: uppercase; }
.detail figcaption { margin-top: 34px; font: 700 14px var(--display); letter-spacing: .16em; text-transform: uppercase; }
.detail figcaption span { margin-left: 8px; font-weight: 500; color: var(--muted); }

/* The title block: cells with a small label in the corner. Used for the hero's numbers and rows, and a text section's facts */
.block { display: flex; flex-wrap: wrap; margin: 0; border-top: 2px solid var(--rule); }
.block div { flex: 1 1 230px; min-width: 0; padding: 9px 16px 11px; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); margin: 0 -1px -1px 0; }
.block .big { flex: 1 1 120px; }
.block dt { font: 500 11.5px var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.block dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.block .big dd { font: 700 2.1rem/1.1 var(--display); color: var(--accent); }
.sheet .block { overflow: hidden; }
.spec { margin-top: 28px; border: 1.5px solid var(--rule); background: var(--panel); overflow: hidden; }

/* ---- sections ---- */
section { padding: 60px 0 26px; }
section.tight { padding-top: 6px; }
section.is-hidden { opacity: .38; }
.sec-head { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.balloon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border: 2px solid var(--accent); border-radius: 50%; background: var(--bg); color: var(--accent); font: 700 19px var(--display); letter-spacing: .04em; }
.sec-head h2 { margin: 0; font-size: clamp(1.9rem, 4.4vw, 2.7rem); line-height: 1; }
.sec-head i { position: relative; flex: 1; min-width: 20px; height: 1px; background: var(--rule); }
.sec-head i::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--rule); }

.about { display: grid; grid-template-columns: 1.25fr .75fr; gap: 44px; align-items: start; }
.about.solo { grid-template-columns: 1fr; }
.prose { max-width: 78ch; }
.prose h3 { margin-bottom: 12px; font-size: 1.6rem; }
.fig { margin: 0; }
.crop { --c: var(--rule); padding: 11px;
  background: linear-gradient(var(--c), var(--c)) 0 0 / 22px 1px no-repeat, linear-gradient(var(--c), var(--c)) 0 0 / 1px 22px no-repeat,
              linear-gradient(var(--c), var(--c)) 100% 0 / 22px 1px no-repeat, linear-gradient(var(--c), var(--c)) 100% 0 / 1px 22px no-repeat,
              linear-gradient(var(--c), var(--c)) 0 100% / 22px 1px no-repeat, linear-gradient(var(--c), var(--c)) 0 100% / 1px 22px no-repeat,
              linear-gradient(var(--c), var(--c)) 100% 100% / 22px 1px no-repeat, linear-gradient(var(--c), var(--c)) 100% 100% / 1px 22px no-repeat; }
.crop img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.fig figcaption { margin-top: 8px; text-align: right; font: 500 13px var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* The timeline as a trace: dates on one side of the line, a square node on it, the entry on the other */
.trace { position: relative; display: grid; gap: 30px; }
.trace::before { content: ""; position: absolute; left: 199px; top: 8px; bottom: 8px; width: 2px; background: var(--rule); }
.node { position: relative; display: grid; grid-template-columns: 170px 1fr; gap: 0 62px; }
.node::before { content: ""; position: absolute; left: 193px; top: 5px; width: 14px; height: 14px; border: 2px solid var(--ink); background: var(--bg); }
.node::after { content: ""; position: absolute; left: 207px; top: 11.5px; width: 18px; height: 1px; background: var(--rule); }
.node.now::before { background: var(--fill); border-color: var(--fill); box-shadow: 0 0 0 4px color-mix(in srgb, var(--fill) 28%, transparent); }
.when { margin: 2px 0 0; text-align: right; font: 500 14.5px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.node.now .when { color: var(--accent); }
.what h3 { margin: 0; }
.org { margin: 2px 0 6px; font-weight: 500; color: var(--accent); }
.what p:last-child { margin: 0; color: var(--muted); }

/* A list group as a schedule: a header row, then numbered rows */
.cols { display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; align-items: start; }
.stack { display: grid; gap: 30px; }
.stack:empty { display: none; }
.sched { counter-reset: row; border: 1.5px solid var(--rule); background: var(--panel); }
.sched h3 { margin: 0; padding: 9px 14px; font-size: 1.2rem; letter-spacing: .08em; background: var(--tint); border-bottom: 1.5px solid var(--rule); }
.sched .part { padding: 5px 14px; border-bottom: 1px solid var(--hair); background: var(--tint); }
.rows { margin: 0; padding: 0; list-style: none; }
.rows li { counter-increment: row; display: flex; border-bottom: 1px solid var(--hair); }
.sched > :last-child li:last-child { border-bottom: 0; }
.rows li::before { content: counter(row, decimal-leading-zero); flex: none; width: 46px; padding: 7px 0; text-align: center; font-size: 12.5px; color: var(--muted); border-right: 1px solid var(--hair); }
.rows li > * { flex: 1; min-width: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 6px 14px; text-decoration: none; }
.rows a:hover { background: var(--tint); }
.rows .go { flex: none; font: 500 13px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }

/* A tag group as a component: a box with pins down both sides and a designator on its edge */
.units { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 46px; padding-inline: 10px; }
.unit { position: relative; padding: 24px 22px 20px; border: 1.5px solid var(--rule); background: var(--panel); }
.unit::before, .unit::after { content: ""; position: absolute; top: 16px; bottom: 16px; width: 10px; background: repeating-linear-gradient(var(--rule) 0 2px, transparent 2px 18px); }
.unit::before { left: -11px; } .unit::after { right: -11px; }
.des { position: absolute; top: -12px; left: 16px; padding: 0 9px; background: var(--bg); border: 1.5px solid var(--accent); color: var(--accent); font: 700 13.5px/20px var(--display); letter-spacing: .1em; }
.pins { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.pins li { padding: 2px 10px; border: 1px solid var(--hair); font-size: 13px; }

.filters { display: flex; flex-wrap: wrap; margin-bottom: 26px; }
.filters button { padding: 6px 16px; margin-right: -1.5px; border: 1.5px solid var(--rule); background: var(--panel); color: var(--muted); font: 500 14px var(--display); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { position: relative; background: var(--ink); border-color: var(--ink); color: var(--bg); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.project { display: flex; flex-direction: column; border: 1.5px solid var(--rule); background: var(--panel); transition: transform .18s, box-shadow .18s; }
.project:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--hair); }
.tab { display: flex; justify-content: space-between; gap: 10px; padding: 5px 12px; border-bottom: 1px solid var(--rule); font: 500 13px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.kind { color: var(--accent); }
/* A cyanotype of the picture until it is pointed at: the darks take the paper's blue, the lights stay white */
.shot { background: var(--blue); border-bottom: 1px solid var(--rule); overflow: hidden; }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; cursor: zoom-in; filter: grayscale(1) contrast(1.1); mix-blend-mode: screen; opacity: .92; }
.project:hover .shot img, .shot img:focus-visible { filter: none; mix-blend-mode: normal; opacity: 1; }
.project .body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.project h3 { font-size: 1.3rem; }
.project p { color: var(--muted); font-size: 13.5px; margin-bottom: 16px; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.acts form { margin: 0; }
.act { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border: 1px solid var(--rule); background: none; color: var(--ink); font: 500 13.5px var(--display); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.act:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* The API demo as a test bench: a status strip with a lamp, the input, the reading */
.bench { border: 1.5px solid var(--rule); background: var(--panel); }
.bench-top { display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: var(--tint); border-bottom: 1.5px solid var(--rule); }
.lamp { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px var(--good); }
.state { font: 500 13.5px var(--display); letter-spacing: .14em; text-transform: uppercase; }
.bench-top h3 { margin: 0 0 0 auto; font-size: 1.15rem; letter-spacing: .08em; }
.bench-body { padding: 20px 22px 22px; }
.bench-body > p { color: var(--muted); }
.bench form { display: flex; margin-top: 18px; }
.bench input, .write input, .write textarea { width: 100%; padding: 10px 14px; border: 1.5px solid var(--rule); border-radius: 0; background: var(--bg); color: var(--ink); font: 15px var(--mono); }
.bench input { flex: 1; min-width: 0; border-right: 0; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
::placeholder { color: var(--muted); opacity: .85; }
.out { margin-top: 16px; padding: 14px 16px; border: 1px dashed var(--rule); background: var(--tint); white-space: pre-wrap; overflow-wrap: anywhere; }
.out.bad { border-color: var(--bad); color: var(--bad); }
.bench .small { margin: 14px 0 0; }

.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; align-items: start; }
.reach h3 { font-size: 1.6rem; margin-bottom: 12px; }
.lines { display: grid; margin-bottom: 20px; border-top: 1.5px solid var(--rule); }
.lines a, .lines button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 4px; border: 0; border-bottom: 1px solid var(--hair); background: none; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; overflow-wrap: anywhere; }
.lines a:hover, .lines button:hover { background: var(--tint); color: var(--accent); }
.reach .part { margin-bottom: 6px; }
.aside { color: var(--muted); font-size: 13.5px; margin-bottom: 8px; }
.write { display: grid; gap: 14px; padding: 24px; border: 1.5px solid var(--rule); background: var(--panel); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.write textarea { min-height: 150px; resize: vertical; }
.form-note { margin: 0; color: var(--good); }
.form-note.bad { color: var(--bad); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- footer: one more strip of cells ---- */
footer { margin-top: 44px; padding-bottom: 34px; font-size: 13px; color: var(--muted); }
.strip { display: flex; flex-wrap: wrap; border: 2px solid var(--rule); background: var(--panel); }
.strip > span { flex: 1 1 260px; padding: 12px 16px; }
.strip nav { display: flex; flex-wrap: wrap; }
.strip nav a { display: flex; align-items: center; padding: 12px 16px; border-left: 1px solid var(--hair); font: 500 14px var(--display); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.strip nav a:hover { background: var(--tint); }
dialog { padding: 8px; border: 2px solid var(--rule); background: var(--bg); max-width: min(1100px, 94vw); }
dialog::backdrop { background: rgba(4, 22, 42, .86); }
dialog img { max-height: 86vh; cursor: zoom-out; }

@media (max-width: 1080px) {
  .bar ul a { padding: 0 10px; }
  .bar ul a .n { display: none; }
}
@media (max-width: 960px) {
  .view { grid-template-columns: 1fr; gap: 20px; padding: 34px 30px; }
  .detail { order: -1; }
  .lens { width: 170px; height: 170px; }
  .detail figcaption { margin-top: 30px; }
  .about, .cols, .contact { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: grid; }
  .bar ul { display: none; position: absolute; left: 0; right: 0; top: 54px; flex-direction: column; background: var(--bg); border-bottom: 2px solid var(--rule); }
  [data-nav-open] .bar ul { display: flex; }
  .bar li { border-left: 0; border-top: 1px solid var(--hair); }
  .bar ul a { flex: 1; padding: 12px 20px; font-size: 16px; }
  .bar ul a .n { display: inline; }
}
@media (max-width: 720px) {
  .trace::before { left: 6px; }
  .node { grid-template-columns: 1fr; padding-left: 34px; }
  .node::before { left: 0; }
  .node::after { left: 14px; width: 12px; }
  .when { text-align: left; margin-bottom: 2px; }
  .units { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 14.5px; }
  .view { padding: 26px 20px; }
  .grid, .two { grid-template-columns: 1fr; }
  .sec-head { flex-wrap: wrap; gap: 10px 14px; }
  .sec-head i { display: none; }
  .sec-head .ref { flex-basis: 100%; white-space: normal; }
  .balloon { width: 40px; height: 40px; font-size: 17px; }
  .bench form { flex-direction: column; gap: 10px; }
  .bench input { border-right: 1.5px solid var(--rule); }
  .write { padding: 18px; }
  .strip nav a:first-child { border-left: 0; }
}
@media print {
  .bar, .filters, form, .bench, dialog, .actions { display: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  body { background-image: none; }
  section { break-inside: avoid-page; }
}
