/* tmitts.com: the one stylesheet.

   Every colour, typeface and line style comes from the tokens in themes.css, which the
   build generates from themes/themes.yaml. Nothing in this file names a look, and nothing
   here hardcodes a colour: a new look must work without touching this file.

   The page is drawn as a sheet from a drawing set: a frame, a title block in the corner,
   and the career as a revision table. */

@font-face {
  font-family: "Overpass";
  src: url("fonts/overpass-vf.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Overpass Mono";
  src: url("fonts/overpass-mono-vf.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM VGA 8x16";
  src: url("fonts/Web437_IBM_VGA_8x16.woff") format("woff");
  font-display: swap;
}
@font-face {
  font-family: "IBM MDA";
  src: url("fonts/Web437_IBM_MDA.woff") format("woff");
  font-display: swap;
}

/* ---- ground ------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Anything that carries data-theme paints itself in that look, not only the page. */
:root,
[data-theme] {
  color: var(--ink);
  background-color: var(--bg);
  font-family: var(--font-body);
  text-shadow: var(--glow);
}

body {
  margin: 0;
  font-size: var(--body-size);
  line-height: var(--leading);
  font-synthesis-weight: none;
  overflow-wrap: break-word;
}

/* A look may lay a texture over the whole page (scan lines on a tube). */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background-image: var(--scan);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  text-transform: var(--display-case);
  line-height: 1.05;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.25rem, 0.9rem + 6vw, 6rem);
  line-height: var(--display-leading);
}
h2 {
  font-size: clamp(1.75rem, 1.25rem + 2.2vw, 2.75rem);
  margin-bottom: 1.25rem;
}
h3 {
  font-size: 1.3rem;
  letter-spacing: 0;
  line-height: 1.2;
}

p {
  margin: 0 0 1em;
  max-width: 62ch;
  text-wrap: pretty;
}

a {
  color: var(--link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 0.18em;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
  text-shadow: none;
}

code {
  font-family: "Overpass Mono", ui-monospace, monospace;
  font-size: 0.92em;
}

.skip {
  position: absolute;
  left: -100rem;
  top: 0.5rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--on-accent);
}
.skip:focus {
  left: 0.5rem;
}

/* Controls that only work with the script stay out of the way without it. */
html:not(.js) .needs-js {
  display: none;
}

/* ---- the sheet ---------------------------------------------------------------------- */

.sheet {
  position: relative;
  background-image: var(--paper);
  background-size: var(--paper-size);
  --pad: clamp(1.1rem, 4.5vw, 4.5rem);
  --edge: clamp(0.4rem, 1.5vw, 1.25rem);
  --line: var(--rule-width) var(--rule-style) var(--rule);
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 2 * var(--edge));
  margin: var(--edge);
  border: var(--line);
}

.sheet-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.75rem;
  padding: 0.8rem var(--pad);
  border-bottom: var(--line);
}

.wordmark {
  margin-right: auto;
  color: inherit;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  text-transform: var(--display-case);
  text-decoration: none;
}

.sheet-nav {
  display: flex;
  gap: 1.5rem;
}
.sheet-nav a {
  padding: 0.3rem 0 0.15rem;
  color: inherit;
  text-decoration: none;
  border-bottom: 0.18em solid transparent;
}
.sheet-nav a:hover {
  border-bottom-color: var(--grid);
}
.sheet-nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
}

.look-open {
  padding: 0.4rem 0.8rem 0.3rem;
  font: inherit;
  color: inherit;
  text-shadow: inherit;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  cursor: pointer;
}
.look-open:hover {
  border-color: var(--accent);
}

main {
  flex: 1;
  padding: 0 var(--pad);
}

main > section {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
main > section + section {
  border-top: 1px solid var(--grid);
}

.preview-note {
  max-width: none;
  margin: 0;
  padding: 0.6rem var(--pad);
  font-size: var(--small-size);
  color: var(--muted);
  border-bottom: 1px dashed var(--rule);
}

.todo-tag {
  display: inline-block;
  padding: 0.05em 0.5em 0;
  font-family: var(--font-body);
  font-size: var(--small-size);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.5;
  text-transform: none;
  text-shadow: none;
  vertical-align: 0.1em;
  color: var(--on-accent);
  background: var(--accent);
  border-radius: var(--radius);
}

/* ---- look picker -------------------------------------------------------------------- */

.looks {
  position: fixed;
  inset: 4.4rem clamp(0.9rem, 3vw, 2.5rem) auto auto;
  width: min(23rem, calc(100vw - 1.8rem));
  max-height: calc(100vh - 5.5rem);
  margin: 0;
  padding: 0.4rem 1rem 1rem;
  overflow-y: auto;
  color: var(--ink);
  background: var(--surface);
  border: var(--rule-width) var(--rule-style) var(--rule);
  border-radius: var(--radius);
}

.looks-group {
  margin: 0.9rem 0 0.3rem;
  font-family: var(--font-body);
  font-size: var(--small-size);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

.look {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0 0.8rem;
  align-items: center;
  width: 100%;
  padding: 0.5rem;
  font: inherit;
  text-align: left;
  text-shadow: inherit;
  color: inherit;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
}
.look:hover {
  border-color: var(--grid);
}
.look[aria-pressed="true"] {
  border-color: var(--accent);
}
.swatch {
  grid-row: span 2;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--rule);
  border-radius: 50%;
}
.look-name {
  font-weight: 700;
  line-height: 1.3;
}
.look-blurb {
  font-size: var(--small-size);
  line-height: 1.35;
  color: var(--muted);
}
.look-house {
  display: block;
  margin-top: 0.75rem;
  border-top: 1px solid var(--grid);
  border-radius: 0;
}
.look-house span {
  display: block;
}

/* ---- overview: hero ----------------------------------------------------------------- */

main > .hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: clamp(1.5rem, 5vw, 5rem);
  padding-block: clamp(2.25rem, 7vw, 6rem) clamp(2rem, 5vw, 4rem);
}

.display {
  font-size: clamp(4.5rem, 17.5vw, 15rem);
}
.display span {
  display: block;
}

.hero-say {
  padding-bottom: 0.4rem;
}

/* The byline: portrait and title side by side. The photograph is always one ink, toned by
   the look: the image is made grey, then multiplied or screened against the look's ground. */
.byline {
  display: flex;
  align-items: flex-end;
  gap: 1.25rem;
  margin-bottom: 1.1rem;
}
.byline .role {
  margin-bottom: 0;
}
.portrait {
  flex: none;
  width: 11rem;
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--photo-ground);
  border: var(--rule-width) var(--rule-style) var(--rule);
  border-radius: var(--radius);
}
.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--photo-filter);
  mix-blend-mode: var(--photo-blend);
}

/* A plate: a photograph kept for its moment. A look with a full palette shows it in
   colour; a one-ink look tones it the way it tones the portrait. */
.why {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.why-say .big {
  margin-bottom: 0;
}
.plate {
  margin: 0;
}
.plate-img {
  overflow: hidden;
  isolation: isolate;
  background-color: var(--photo-ground);
  border: var(--rule-width) var(--rule-style) var(--rule);
  border-radius: var(--radius);
}
.plate img {
  display: block;
  width: 100%;
  height: auto;
  filter: var(--scene-filter);
  mix-blend-mode: var(--scene-blend);
}
.plate figcaption {
  margin-top: 0.5rem;
  font-size: var(--small-size);
  color: var(--muted);
}

/* The terminal looks end the title line with their cursor. */
.role::after {
  content: var(--caret);
  margin-left: 0.12em;
}

.role {
  max-width: 24ch;
  margin-bottom: 0.9rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 1rem + 1.3vw, 1.9rem);
  line-height: 1.15;
  text-transform: var(--display-case);
}

.lede {
  max-width: 48ch;
}

.big {
  font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem);
  line-height: 1.45;
  max-width: 52ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: none;
  margin: 1.5rem 0 0;
}

.btn {
  display: inline-block;
  padding: 0.7em 1.1em 0.55em;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-shadow: none;
  color: var(--on-accent);
  background: var(--accent);
  border: var(--rule-width) solid var(--accent);
  border-radius: var(--radius);
  cursor: pointer;
}
/* A button lifts off the sheet under the pointer and sits back down when pressed. */
.btn {
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
@media (hover: hover) {
  .btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--rule);
  }
}
.btn:active {
  transform: translate(1px, 1px);
  box-shadow: none;
}
.btn-quiet {
  color: var(--ink);
  text-shadow: var(--glow);
  background: transparent;
  border-color: var(--rule);
}

/* The row of look chips: each chip wears the look it leads to. */
.looks-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding-block: 1.4rem 1.6rem;
  border-top: var(--line);
  border-bottom: var(--line);
}
.looks-row p {
  margin: 0;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.8rem;
}
.chip-slot {
  display: inline-block;
  padding-bottom: 0.4rem;
  border-bottom: 0.3rem solid transparent;
}
.chip-slot:has([aria-pressed="true"]) {
  border-bottom-color: var(--accent);
}
.look-chip {
  padding: 0.55em 0.8em 0.4em;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 1.15rem;
  line-height: 1;
  text-transform: var(--display-case);
  border: var(--rule-width) var(--rule-style) var(--rule);
  border-radius: var(--radius);
  cursor: pointer;
}
main > .looks-row {
  margin-top: clamp(1rem, 3vw, 2rem);
  border-bottom: 0;
}

/* ---- tables ------------------------------------------------------------------------- */

table {
  width: 100%;
  border-collapse: collapse;
}
th {
  text-align: left;
}

.spec thead th {
  padding: 0.4rem 1rem 0.4rem 0;
  font-size: var(--small-size);
  font-weight: 400;
  color: var(--muted);
  border-bottom: var(--line);
}
.spec th[scope="row"] {
  width: 32%;
  padding: 0.85rem 1.5rem 0.85rem 0;
  font-weight: 700;
  vertical-align: baseline;
  border-bottom: 1px solid var(--grid);
}
.spec td {
  padding: 0.85rem 0;
  vertical-align: baseline;
  border-bottom: 1px solid var(--grid);
}
/* A table's last line would double up with the section line under it. */
.spec tbody tr:last-child th,
.spec tbody tr:last-child td,
.plain li:last-child {
  border-bottom: 0;
}
/* Home: what I do in each area, as a short three column read with run-in heads. */
.skill-flow {
  columns: 3 19rem;
  column-gap: clamp(1.5rem, 4vw, 3.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.skill {
  margin: 0 0 1rem;
  break-inside: avoid;
}
.skill strong {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  text-transform: var(--display-case);
}

/* Resume: the same areas as keywords, two columns of them. */
.tool-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: 0 clamp(1.5rem, 4vw, 3.5rem);
  margin: 0;
}
.tool {
  padding: 0.7rem 0;
  border-top: 1px solid var(--grid);
}
.tool dt {
  font-weight: 700;
}
.tool dd {
  margin: 0.1rem 0 0;
  color: var(--muted);
}

/* The list of links at the top of a long sheet. */
.jump {
  max-width: 62ch;
  margin: 1.5rem 0 0;
  padding-left: 1.4rem;
  columns: 2 16rem;
  column-gap: 2.5rem;
}
.jump li {
  margin-bottom: 0.3rem;
  break-inside: avoid;
}

/* A skills row: what I do there, then the tools in a quieter voice. */
.skills th[scope="row"] {
  width: 24%;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 1.2rem;
  line-height: 1.25;
  text-transform: var(--display-case);
}
.skill-does,
.skill-tools {
  max-width: 70ch;
  margin: 0;
}
.skill-tools {
  margin-top: 0.2rem;
  color: var(--muted);
}
.spec-sub {
  display: block;
  font-size: var(--small-size);
  font-weight: 400;
  color: var(--muted);
}

/* ---- prose blocks ------------------------------------------------------------------- */

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 2rem clamp(1.5rem, 4vw, 3.5rem);
}
/* Five points read better three across than four and one. */
.principles-wide {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}
.principle h3 {
  margin-bottom: 0.5rem;
  padding-top: 0.9rem;
  border-top: var(--line);
}
.principle p {
  margin: 0;
}

.plain {
  max-width: 62ch;
  margin: 0;
  padding: 0;
  list-style: none;
}
.plain li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--grid);
}

.terms-line {
  margin-bottom: 1.25rem;
  font-size: 1.15rem;
}
/* The terms, as a small spec table. */
.terms {
  max-width: 44rem;
  margin-top: 1.5rem;
  border-top: var(--line);
}
.terms th[scope="row"] {
  width: 9rem;
}
.terms td {
  font-size: 1.15rem;
  font-weight: 700;
}

/* ---- the staffing schedule ----------------------------------------------------------
   The pitch, drawn: a schedule in which every position is filled by the same name. */
.roster {
  margin-top: 1.75rem;
}
.roster thead th {
  padding: 0.4rem 1rem 0.4rem 0;
  font-size: var(--small-size);
  font-weight: 400;
  color: var(--muted);
  border-bottom: var(--line);
}
.roster tbody th,
.roster tbody td {
  padding: 0.95rem 1.25rem 0.85rem 0;
  vertical-align: baseline;
  border-bottom: 1px solid var(--grid);
}
.roster tbody th {
  width: 30%;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  letter-spacing: var(--display-tracking);
  line-height: 1.15;
  text-transform: var(--display-case);
}
.roster .by {
  width: 1%;
  padding-right: 0;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}
.roster thead .by {
  font-weight: 400;
}
.roster .is-agents th,
.roster .is-agents .by {
  color: var(--accent);
}
.roster tfoot th {
  padding: 0 1.25rem 0.5rem 0;
  font-weight: 400;
  text-align: right;
  color: var(--muted);
  vertical-align: bottom;
}
.roster tfoot .by {
  padding-top: 0.6rem;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(4rem, 2rem + 9vw, 8rem);
  line-height: 0.8;
  color: var(--accent);
}
.roster-note {
  margin: 1.25rem 0 0;
  color: var(--muted);
}

.how-lead {
  max-width: 52rem;
}
.how-lead h3 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem);
}
.how-lead .big {
  max-width: none;
}
.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.2rem;
  font-weight: 700;
}

/* ---- resume ------------------------------------------------------------------------- */

.resume-top .role,
.page-top .big {
  margin-top: 1rem;
}
.resume-where {
  color: var(--muted);
}

.job {
  display: grid;
  grid-template-columns: minmax(0, 19rem) minmax(0, 1fr);
  gap: 0.5rem clamp(1.5rem, 4vw, 3.5rem);
  padding: 1.6rem 0;
  border-top: 1px solid var(--grid);
}
.job:first-of-type {
  border-top: var(--line);
}
.job-head p {
  margin: 0.2rem 0 0;
}
.job-years,
.job-also {
  color: var(--muted);
}
.background {
  max-width: 62ch;
  margin: 2rem 0 0;
  color: var(--muted);
}
.earlier-head {
  margin: 2.5rem 0 0.25rem;
  padding-top: 0.9rem;
  border-top: var(--line);
}
.job-body p {
  margin-bottom: 0.6rem;
}
/* The one fact about a job that should be read first. */
.job-body .job-highlight {
  margin-bottom: 0.7rem;
  padding: 0.1rem 0 0 0.9rem;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem);
  letter-spacing: var(--display-tracking);
  line-height: 1.15;
  text-transform: var(--display-case);
  border-left: 0.35rem solid var(--accent);
}
.job-body ul {
  max-width: 62ch;
  margin: 0;
  padding-left: 1.2rem;
}
.job-body li {
  margin-bottom: 0.4rem;
}

/* ---- architecture drawing ----------------------------------------------------------- */

.arch-scroll {
  margin: 1.5rem 0 2rem;
  overflow-x: auto;
}
.arch {
  display: block;
  width: 100%;
  min-width: 46rem;
  height: auto;
}
.arch text {
  font-family: var(--font-body);
  font-size: 15px;
  fill: var(--muted);
}
.arch .arch-name {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 19px;
  text-transform: var(--display-case);
  fill: var(--ink);
}
.arch .arch-wg-label {
  fill: var(--accent);
  font-weight: 700;
}
.arch-box {
  fill: var(--surface);
  stroke: var(--rule);
  stroke-width: 1.5;
}
.arch-net {
  fill: none;
  stroke: var(--rule);
  stroke-width: 1.5;
  stroke-dasharray: 2 5;
}
.arch-flow {
  fill: none;
  stroke: var(--rule);
  stroke-width: 1.5;
}
.arch-tip {
  fill: var(--rule);
}
.arch-wg {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-dasharray: 9 6;
}
.arch-wg-tip {
  fill: var(--accent);
}
/* The one box a drawing wants you to look at first. */
.arch-me {
  fill: var(--accent);
  stroke: var(--accent);
  stroke-width: 1.5;
}
.arch .arch-on {
  fill: var(--on-accent);
}

.drawing-note {
  font-size: var(--small-size);
  color: var(--muted);
}

/* ---- footnotes and the notes sheet -------------------------------------------------- */

.fn {
  font-size: 0.7em;
  font-weight: 400;
  line-height: 0;
  letter-spacing: 0;
}
.fn a {
  padding: 0 0.05em 0 0.1em;
  text-decoration: none;
}
.fn a:hover {
  text-decoration: underline;
}
.note-label {
  margin: 0 0 0.3rem;
  font-size: var(--small-size);
  color: var(--muted);
}
.note h2 {
  margin-bottom: 1rem;
}
.note h3 {
  margin: 1.4rem 0 0.4rem;
  font-family: var(--font-body);
  font-size: var(--small-size);
  font-weight: 700;
  text-transform: none;
  color: var(--muted);
}
.note p,
.note-list {
  max-width: 68ch;
  margin: 0 0 0.6rem;
}
.note-list {
  padding-left: 1.2rem;
}
.note-list li {
  margin-bottom: 0.5rem;
}
/* The note a footnote brought you to. */
.note:target .note-label {
  font-weight: 700;
  color: var(--accent);
}
.more {
  margin: 1.75rem 0 0;
}

/* ---- a runbook ---------------------------------------------------------------------- */

.runbook {
  max-width: 46rem;
  margin-top: 1.5rem;
  padding: 1.4rem clamp(1rem, 3vw, 2rem) 1.2rem;
  background-color: var(--surface);
  border: var(--line);
  border-radius: var(--radius);
}
.runbook-name {
  margin-bottom: 0.75rem;
}
.runbook p {
  margin-bottom: 0.6rem;
}
.runbook code {
  padding: 0.05em 0.45em;
  white-space: nowrap;
  border: 1px solid var(--grid);
  border-radius: var(--radius);
}
.steps {
  margin: 1rem 0 1.25rem;
  padding-left: 1.7rem;
}
.steps li {
  padding: 0.7rem 0 0.5rem 0.3rem;
  border-top: 1px solid var(--grid);
}
.steps li::marker {
  font-weight: 700;
}
.steps p {
  margin: 0;
}
.step-do {
  font-weight: 700;
}
.step-do code {
  margin-left: 0.4rem;
  font-weight: 400;
}
.runbook-notes {
  margin: 0;
  padding-left: 1.2rem;
}
.runbook-notes li {
  margin-bottom: 0.3rem;
}

/* ---- the title block ---------------------------------------------------------------- */

.sheet-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: clamp(2rem, 6vw, 5rem);
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  max-width: none;
  margin: 0;
  padding: 0 var(--pad) 1rem;
  font-size: var(--small-size);
}
.foot-links a {
  color: var(--muted);
}

.titleblock {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  width: min(100%, 31rem);
  margin: 0 0 0 auto;
  border-top: var(--line);
  border-left: var(--line);
}
.titleblock div {
  padding: 0.5rem 0.9rem 0.45rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.titleblock div:nth-child(2n) {
  border-right: 0;
}
.titleblock div:nth-last-child(-n + 2) {
  border-bottom: 0;
}
.titleblock dt {
  font-size: var(--small-size);
  line-height: 1.3;
  color: var(--muted);
}
.titleblock dd {
  margin: 0;
  font-weight: 700;
  line-height: 1.3;
}
.rev-sha {
  font-weight: 400;
  color: var(--muted);
}
/* "today", "3 days ago": filled in by the script, so it is empty without one. */
.rev-age:not(:empty)::before {
  content: ", ";
}

/* ---- details: the stamp, the bracket, the portrait ---------------------------------- */

/* A drawing is issued with a status. This one is issued for review. The stamp sits at the top
   of the hero's text column, so the type of any look has room under it. */
.hero-say {
  display: flex;
  flex-direction: column;
}
.stamp {
  --tilt: -7deg;
  align-self: flex-end;
  max-width: none;
  margin: 0 0.4rem 1.6rem 0;
  padding: 0.55rem 0.95rem 0.4rem;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 1.05rem;
  letter-spacing: 0.07em;
  line-height: 1.15;
  text-align: center;
  text-shadow: none;
  text-transform: uppercase;
  color: var(--accent);
  border: 3px double var(--accent);
  border-radius: calc(var(--radius) + 2px);
  transform: rotate(var(--tilt));
  pointer-events: none;
}
.stamp span {
  display: block;
}
.stamp .stamp-rev {
  font-size: 0.78em;
  font-weight: 400;
  letter-spacing: 0.05em;
}

/* The dimension bracket on the staffing schedule: six rows, one person. */
.roster .span,
.roster .span-pad {
  width: 3.6rem;
  padding: 0;
  border-bottom: 0;
}
.roster .span {
  position: relative;
}
.roster .span::before {
  content: "";
  position: absolute;
  top: 1.15rem;
  bottom: 1.05rem;
  left: 0.95rem;
  width: 0.6rem;
  border: 2px solid var(--accent);
  border-left: 0;
}
.roster .span span {
  position: absolute;
  top: 50%;
  left: 2.05rem;
  font-size: var(--small-size);
  font-weight: 700;
  white-space: nowrap;
  color: var(--accent);
  writing-mode: vertical-rl;
  transform: translateY(-50%);
}

/* The portrait is one ink until you point at it; a look with a full palette then shows the
   photograph as it was taken. */
.portrait img {
  transition: filter 0.45s ease;
}
@media (hover: hover) {
  .portrait:hover img {
    filter: var(--scene-filter);
    mix-blend-mode: var(--scene-blend);
  }
}

.sheet-nav a {
  transition: border-color 0.15s ease;
}
.arch {
  cursor: crosshair;
}

@media (max-width: 54rem) {
  .stamp {
    --tilt: -3deg;
    order: 9;
    align-self: flex-start;
    margin: 1.75rem 0 0 0.3rem;
  }
}
@media (max-width: 40rem) {
  .roster .span,
  .roster .span-pad {
    display: none;
  }
}

/* ---- the foot of a sheet: where to go next, and a button that copies ------------------ */

.next-sheet {
  padding: clamp(2.5rem, 6vw, 5rem) var(--pad) 0;
}
.next-sheet a {
  display: inline-flex;
  flex-direction: column;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem);
  letter-spacing: var(--display-tracking);
  line-height: 1;
  text-decoration: none;
  text-transform: var(--display-case);
  color: var(--ink);
}
.next-sheet a:hover {
  color: var(--link);
}
.next-sheet span {
  font-family: var(--font-body);
  font-size: var(--small-size);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}
.next-sheet + .sheet-foot {
  margin-top: clamp(1.5rem, 4vw, 3rem);
}

.copy {
  margin-left: 0.6rem;
  padding: 0.15em 0.6em 0.05em;
  font: inherit;
  font-size: var(--small-size);
  font-weight: 400;
  vertical-align: 0.08em;
  color: var(--muted);
  text-shadow: inherit;
  background: transparent;
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  cursor: pointer;
}
.copy:hover {
  color: var(--ink);
  border-color: var(--rule);
}

/* ---- small screens ------------------------------------------------------------------ */

@media (max-width: 54rem) {
  main > .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .why {
    grid-template-columns: minmax(0, 1fr);
  }
  .job {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 40rem) {
  .roster thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .roster tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: 0.15rem 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--grid);
  }
  .roster tbody th,
  .roster tbody td {
    width: auto;
    padding: 0;
    border: 0;
  }
  .roster .covers {
    grid-column: 1 / -1;
    order: 3;
  }
  .roster .is-agents .by {
    white-space: normal;
  }
  .portrait {
    width: 7rem;
  }
  .byline {
    gap: 1rem;
  }
  .sheet-nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    gap: 0.2rem 1.1rem;
  }

  .spec tr {
    display: block;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--grid);
  }
  .spec thead {
    display: none;
  }
  .spec th[scope="row"],
  .spec td {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
  }

  .titleblock {
    width: 100%;
    border-left: 0;
  }
}

/* ---- the look change ---------------------------------------------------------------- */

@keyframes tm-flood {
  from {
    clip-path: circle(0 at var(--flood-x, 50%) var(--flood-y, 50%));
  }
  to {
    clip-path: circle(150vmax at var(--flood-x, 50%) var(--flood-y, 50%));
  }
}

@media screen and (prefers-reduced-motion: no-preference) {
  /* A look change floods out of the control that was pressed. */
  html.flooding::view-transition-old(root) {
    animation: none;
  }
  html.flooding::view-transition-new(root) {
    animation: tm-flood 0.6s cubic-bezier(0.3, 0.7, 0.2, 1) both;
  }

  /* Turning to another sheet: the content cross-fades, while the header and the title block
     stay where they are. (A browser without this simply loads the page.) */
  @view-transition {
    navigation: auto;
  }
  html:not(.flooding) .sheet-head {
    view-transition-name: sheet-head;
  }
  html:not(.flooding) .titleblock {
    view-transition-name: titleblock;
  }
}

/* ---- motion ------------------------------------------------------------------------
   The sheet is drawn in front of you. Three things move, and nothing else:
     1. the opening sequence, once per visit (html.intro);
     2. a schedule or a drawing building itself when it scrolls into view ([data-reveal]);
     3. the dashed lines of a private network, which flow while they are on screen.
   theme.js sets `fx` and `intro` before first paint, and only for a visitor who has not
   asked for reduced motion. Every rule that moves or hides something is for the screen only,
   so a page printed in the middle of the opening sequence still prints whole. Nothing here is needed to read the page: with no script, or
   with motion turned down, every part is simply there. */

.s1 { --s: 1; }
.s2 { --s: 2; }
.s3 { --s: 3; }
.s4 { --s: 4; }
.s5 { --s: 5; }
.s6 { --s: 6; }
.s7 { --s: 7; }
.s8 { --s: 8; }
.s9 { --s: 9; }
.s10 { --s: 10; }
.s11 { --s: 11; }
.s12 { --s: 12; }
.s13 { --s: 13; }
.s14 { --s: 14; }
.s15 { --s: 15; }
.s16 { --s: 16; }
.s17 { --s: 17; }
.s18 { --s: 18; }
.s19 { --s: 19; }
.s20 { --s: 20; }

@keyframes tm-show {
  to {
    opacity: 1;
  }
}
@keyframes tm-hide {
  to {
    opacity: 0;
  }
}
@keyframes tm-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes tm-rise {
  from {
    opacity: 0;
    transform: translateY(0.4rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes tm-plot {
  from {
    opacity: 1;
    stroke-dashoffset: 1;
  }
  to {
    opacity: 1;
    stroke-dashoffset: 0;
  }
}
@keyframes tm-march {
  to {
    stroke-dashoffset: -15;
  }
}
@keyframes tm-stamp {
  0% {
    opacity: 0;
    transform: rotate(var(--tilt, 0deg)) scale(1.9);
  }
  60% {
    opacity: 1;
    transform: rotate(var(--tilt, 0deg)) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: rotate(var(--tilt, 0deg)) scale(1);
  }
}
@keyframes tm-wipe {
  from {
    clip-path: inset(-10% 100% -10% 0);
  }
  to {
    clip-path: inset(-10% -10% -10% 0);
  }
}
@keyframes tm-ink {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: 0 0;
  }
}
@keyframes tm-frame-plot {
  from {
    clip-path: inset(0 100% 100% 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
@keyframes tm-frame-on {
  from {
    border-color: transparent;
  }
  to {
    border-color: var(--rule);
  }
}
@keyframes tm-blink {
  50% {
    opacity: 0;
  }
}

@media screen and (prefers-reduced-motion: no-preference) {
  .role::after {
    animation: tm-blink 1.1s steps(1) infinite;
  }

  /* 2. A block builds itself, a step at a time, when it scrolls into view. Until then its
     parts are held back; if the script never arrives, four seconds later they show anyway. */
  html.fx [data-reveal]:not(.is-drawn) .s {
    opacity: 0;
    animation: tm-show 0.01s linear 4s forwards;
  }
  html.fx [data-reveal].is-drawn .s {
    animation: tm-rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: calc(var(--s, 0) * 130ms);
  }
  /* A connector is plotted like a pen line (its path length is set to 1 in the drawing). */
  html.fx [data-reveal] .plot {
    stroke-dasharray: 1;
  }
  html.fx [data-reveal].is-drawn .plot {
    animation-name: tm-plot;
    animation-duration: 0.6s;
    animation-timing-function: cubic-bezier(0.6, 0, 0.3, 1);
  }
  /* The headcount lands like a stamp. */
  html.fx [data-reveal].is-drawn .total {
    animation-name: tm-stamp;
    animation-duration: 0.45s;
    animation-timing-function: cubic-bezier(0.3, 1.5, 0.5, 1);
  }

  /* 3. A private network carries traffic: its dashed lines flow, while on screen. */
  html.fx [data-reveal].is-drawn.in-view .arch-wg {
    animation: tm-march 1.6s linear infinite;
  }

  /* 1. The opening sequence. The frame is plotted from its top left corner, the headline is
     outlined and then inked, the words arrive, the stamp lands. */
  html.intro .sheet {
    animation: tm-frame-on 1s step-end both;
  }
  html.intro .sheet::before {
    content: "";
    position: absolute;
    z-index: 2;
    inset: calc(-1 * var(--rule-width));
    border: var(--line);
    pointer-events: none;
    animation: tm-frame-plot 0.9s cubic-bezier(0.6, 0, 0.2, 1) both, tm-hide 0.01s linear 1s forwards;
  }
  html.intro .sheet-head,
  html.intro .preview-note {
    animation: tm-fade 0.5s ease 0.45s both;
  }
  html.intro main h1 > span,
  html.intro main h1:not(.display) {
    color: transparent;
    -webkit-text-stroke: max(1px, 0.006em) var(--ink);
    background: linear-gradient(to right, var(--ink) 0 50%, transparent 50% 100%) 100% 0 / 200% 100% no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    animation: tm-wipe 0.55s cubic-bezier(0.6, 0, 0.2, 1) 0.15s both,
      tm-ink 0.6s cubic-bezier(0.6, 0, 0.2, 1) 0.6s both;
  }
  html.intro main h1 > span:nth-child(2) {
    animation-delay: 0.3s, 0.75s;
  }
  html.intro .byline {
    animation: tm-rise 0.5s ease 0.85s both;
  }
  html.intro .lede {
    animation: tm-rise 0.5s ease 1s both;
  }
  html.intro .actions {
    animation: tm-rise 0.5s ease 1.15s both;
  }
  html.intro .stamp {
    animation: tm-stamp 0.45s cubic-bezier(0.3, 1.5, 0.5, 1) 1.55s both;
  }
  html.intro main > section:not(:first-child),
  html.intro main > .looks-row,
  html.intro main > section:first-child > :not(h1):not(.hero-say):not(.stamp) {
    animation: tm-fade 0.6s ease 1.1s both;
  }
  html.intro .sheet-foot {
    animation: tm-fade 0.6s ease 1.2s both;
  }
}

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

@media print {
  @page {
    margin: 0.5in 0.62in;
  }
  body {
    font-size: 9.2pt;
    line-height: 1.33;
  }
  body::after,
  .skip,
  .sheet-nav,
  .look-open,
  .looks,
  .preview-note,
  .looks-row,
  .foot-links,
  .fn,
  .background,
  .titleblock,
  .no-print {
    display: none;
  }
  .sheet {
    min-height: 0;
    margin: 0;
    border: 0;
  }
  .sheet-head {
    display: none;
  }
  main {
    padding: 0;
  }
  main > section {
    padding-block: 0.4rem;
  }
  main > section + section {
    border-top: 0;
  }
  h1 {
    font-size: 22pt;
  }
  h2 {
    font-size: 11.5pt;
    margin-bottom: 0.2rem;
    padding-bottom: 0.15rem;
    border-bottom: 1.5pt solid var(--rule);
  }
  h3 {
    font-size: 10.5pt;
  }
  p {
    max-width: none;
  }
  .big {
    font-size: 9.2pt;
    line-height: 1.33;
    max-width: none;
  }
  .role {
    margin: 0.2rem 0;
    font-size: 12pt;
  }
  .resume-top .role,
  .page-top .big {
    margin-top: 0.2rem;
  }
  .resume-where {
    margin-bottom: 0;
  }
  .job {
    grid-template-columns: 9rem minmax(0, 1fr);
    gap: 0 0.9rem;
    padding: 0.3rem 0;
    break-inside: avoid;
  }
  h2,
  h3 {
    break-after: avoid;
  }
  .job-body ul {
    padding-left: 1rem;
  }
  .job:first-of-type {
    border-top: 0;
  }
  .job-body p,
  .job-body li {
    margin-bottom: 0.15rem;
  }
  .job-body ul {
    max-width: none;
  }
  .job-body .job-highlight {
    margin-bottom: 0.2rem;
    font-size: 11pt;
  }
  .earlier-head {
    margin-top: 0.5rem;
    padding-top: 0.3rem;
  }
  .spec th[scope="row"],
  .spec td {
    padding-block: 0.15rem;
  }
  .background {
    margin-top: 0.4rem;
  }
  .tool-list {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0 1.2rem;
  }
  .tool {
    padding: 0.1rem 0;
    break-inside: avoid;
  }
  .tool dd {
    margin-top: 0;
    font-size: 8.5pt;
    line-height: 1.28;
  }
  .spec-sub {
    display: inline;
  }
  .spec-sub::before {
    content: ", ";
  }
  a {
    color: inherit;
    text-decoration: none;
  }
  .sheet-foot {
    margin-top: 0.5rem;
  }
  .titleblock {
    break-inside: avoid;
  }
  /* Paper shows every part, drawn or not. */
  .stamp,
  .next-sheet,
  .copy {
    display: none;
  }
  .s {
    opacity: 1 !important;
    animation: none !important;
  }
}
