/* The foot of every page on subinternal.com, the main pages and the research posts alike. Self-contained, as nav.css is:
   its own colours, sizes and type, so it looks the same over either stylesheet. Ink on the site's paper, in four tiers:
   the lab's line beside its latest research, a readout of mttr's own counts, the directory, and under it our own
   engraving (art/scene-*.jpg, made for subinternal, its paper tinted to this ground): a glass hall of machine cabinets
   in a river valley, cable lines running to it, a train on a viaduct. The directory sits in its sky. */
.site-foot {
  --f-bg: #e9e7e2;
  --f-ink: #141518;
  --f-ink-2: #44464d;
  --f-ink-3: #5f6168;
  --f-line: rgb(20 21 24 / 0.12);
  --f-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  margin-top: 96px;
  border-top: 1px solid var(--f-line);
  background: var(--f-bg);
  color: var(--f-ink);
  font: 400 14px/20px var(--f-sans);
  -webkit-font-smoothing: antialiased;
}
.site-foot a { color: inherit; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.site-foot :focus-visible { outline: 2px solid var(--f-ink); outline-offset: 2px; }
.sf-in { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sf-label { margin: 0; color: var(--f-ink-3); font: 500 12px/16px var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }

/* Tier one: the lab's line on the left, its three latest papers on the right, each dated. */
.sf-lab { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; padding: 80px 0 64px; border-bottom: 1px solid var(--f-line); }
.sf-say { display: grid; align-content: start; justify-items: start; gap: 16px; }
.sf-say h2 { margin: 0; font-size: 32px; line-height: 40px; font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; background: linear-gradient(90deg, #000000, #6b6b6e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sf-say p { margin: 0; color: var(--f-ink-2); font-size: 15px; line-height: 24px; text-wrap: pretty; }
.sf-say .sf-more { margin-top: 8px; font-weight: 600; white-space: nowrap; }
.sf-papers { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--f-line); }
.sf-papers li { border-bottom: 1px solid var(--f-line); }
.sf-papers a { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: baseline; gap: 24px; padding: 20px 0; }
.sf-papers a:hover { text-decoration: none; }
.sf-papers a:hover b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.sf-papers time { color: var(--f-ink-3); font: 400 12px/20px var(--f-mono); white-space: nowrap; }
.sf-papers b { font-size: 17px; line-height: 24px; font-weight: 500; letter-spacing: -0.01em; text-wrap: balance; }
.sf-papers em { color: var(--f-ink-3); font: 400 12px/20px var(--f-mono); font-style: normal; white-space: nowrap; }

/* Tier two: figures from mttr's catalog, set like an instrument's readout, with the day they were counted. */
.sf-figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--f-line); }
.sf-figures li { display: grid; align-content: start; gap: 4px; padding: 32px 24px 32px 0; }
.sf-figures li + li { padding-left: 24px; border-left: 1px solid var(--f-line); }
.sf-figures b { font-size: 32px; line-height: 40px; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sf-figures span { color: var(--f-ink-2); font-size: 13px; line-height: 18px; white-space: nowrap; }

/* Tier three: the directory, five columns. */
.sf-dir { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; padding: 56px 0 0; }

/* The engraving, full width, its sky drawn up behind the directory and faded at the top so the links stay clear. */
.sf-scene { position: relative; margin: -12vw 0 0; }
.sf-scene img { display: block; width: 100%; height: auto; }
.sf-scene::before { content: ""; position: absolute; inset: 0 0 auto; height: 40%; background: linear-gradient(var(--f-bg), rgb(233 231 226 / 0)); pointer-events: none; }

.sf-dir div { display: grid; align-content: start; gap: 12px; }
.sf-dir .sf-label { margin-bottom: 4px; }
.sf-dir a { color: var(--f-ink); white-space: nowrap; }
.sf-dir a.sf-also { display: grid; gap: 0; white-space: normal; }
.sf-dir a.sf-also small { color: var(--f-ink-3); font-size: 12px; line-height: 16px; white-space: nowrap; }
.sf-dir a.sf-also:hover { text-decoration: none; }
.sf-dir a.sf-also:hover span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* Tier four: the base. */
.sf-base { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0 32px; border-top: 1px solid var(--f-line); color: var(--f-ink-2); font: 400 12px/16px var(--f-mono); }
.sf-mark { display: inline-flex; align-items: center; gap: 10px; color: var(--f-ink); font: 500 15px/20px var(--f-mono); white-space: nowrap; }
.sf-mark svg { width: 24px; height: 24px; flex: none; }
.sf-mark rect { fill: var(--f-ink); }
.sf-mark path { fill: var(--f-bg); }
.sf-base nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.sf-base nav a, .sf-base span { white-space: nowrap; }

@media (max-width: 960px) {
  .sf-lab { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 64px 0 48px; }
  .sf-dir { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .sf-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-figures li:nth-child(3) { padding-left: 0; border-left: 0; }
  .sf-figures li:nth-child(n + 3) { border-top: 1px solid var(--f-line); }
}
@media (max-width: 600px) {
  .site-foot { margin-top: 64px; }
  .sf-in { padding: 0 16px; }
  .sf-say h2 { font-size: 28px; line-height: 36px; }
  .sf-papers a { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 16px 0; }
  .sf-papers em { display: none; }
  .sf-figures li { padding: 24px 16px 24px 0; }
  .sf-figures li + li { padding-left: 16px; }
  .sf-figures li:nth-child(3) { padding-left: 0; }
  .sf-figures b { font-size: 24px; line-height: 32px; }
  .sf-dir { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-base { flex-direction: column; align-items: flex-start; }
  .sf-dir { padding: 40px 0 24px; }
  .sf-scene { margin-top: 0; }
  /* On a phone the plate is cropped to the glass hall and its cable lines, tall enough to read. */
  .sf-scene img { height: 260px; object-fit: cover; object-position: 30% 100%; }
}
