@font-face {
  font-family: "Big Shoulders Display";
  src: url("/fonts/big-shoulders-display-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/* Sampled from the ABFactory37 logo on GitHub: charcoal, copper and circuit blue. */
:root {
  --bg: #15161a;
  --bg-2: #1d1e23;
  --ink: #f4efe9;
  --ink-2: #b3b1ad;
  --line: #2e2f35;
  --copper: #d39977;
  --blue: #7fc0d5;
  --display: "Big Shoulders Display", Impact, "Arial Narrow", sans-serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  overflow-x: hidden;
}
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
h1, h2, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -60px;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--bg);
  z-index: 2;
}
.skip:focus { top: 8px; }

/* Header */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px var(--gutter);
  position: relative;
  z-index: 1;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 400 .875rem var(--mono);
  text-decoration: none;
}
.mark { width: 34px; height: 34px; flex: none; }
.top nav { display: flex; gap: clamp(14px, 2.4vw, 32px); font-size: .9375rem; }
.top nav a { color: var(--ink-2); text-decoration: none; }
.top nav a:hover { color: var(--ink); }

/* Hero: the wordmark is the plant's foundation, with the factory standing on it. */
.hero { padding: 0 var(--gutter); position: relative; container-type: inline-size; }
.plant {
  position: relative;
  height: clamp(130px, 18vw, 270px);
  pointer-events: none;
}
#smoke { position: absolute; inset: 0; width: 100%; height: 100%; }
.skyline {
  position: absolute;
  right: 0;
  bottom: -1px;
  width: clamp(170px, 30vw, 430px);
  height: auto;
  fill: var(--copper);
}
.wordmark {
  /* Sized to the container so the name always spans the full measure. */
  font: 800 21.8cqw/.8 var(--display);
  letter-spacing: -.012em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  padding-bottom: .05em;
  border-top: clamp(4px, .6vw, 9px) solid var(--copper);
  padding-top: .07em;
}
.wordmark em { font-style: normal; color: var(--copper); }

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(20px, 5vw, 80px);
  padding: clamp(36px, 6vw, 80px) 0 clamp(56px, 8vw, 110px);
}
.lede {
  font: 600 clamp(1.9rem, 3.7vw, 3.25rem)/1.08 var(--display);
  max-width: 21ch;
}
.intro p:not(.lede) { color: var(--ink-2); max-width: 54ch; align-self: end; }

/* Sections */
.section { padding: 0 var(--gutter) clamp(60px, 8vw, 110px); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--copper);
}
.section-head h2, .foot h2 {
  font: 700 clamp(2rem, 4vw, 3.25rem)/1 var(--display);
  text-transform: uppercase;
}
.section-head p { color: var(--ink-2); font-size: .9375rem; }

.rows li { border-bottom: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) 6rem minmax(0, 15.5rem);
  gap: 8px 20px;
  align-items: baseline;
  padding: 22px 0;
  text-decoration: none;
  transition: background-color .15s, padding .2s;
}
.row:hover, .row:focus-visible { background: var(--bg-2); padding-inline: 14px; }
.num { font: 400 .875rem var(--mono); color: var(--copper); }
.what strong {
  display: block;
  font: 700 clamp(1.6rem, 2.6vw, 2.25rem)/1.1 var(--display);
  margin-bottom: 4px;
}
.what span { color: var(--ink-2); display: block; max-width: 62ch; }
.tech { font: 400 .8125rem var(--mono); color: var(--ink-2); }
.go { font: 400 .8125rem var(--mono); color: var(--blue); text-align: right; overflow-wrap: anywhere; }
.go i { font-style: normal; }

.bench {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.bench li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px clamp(14px, 2vw, 28px) 22px 0;
  border-bottom: 1px solid var(--line);
}
.bench li + li { padding-left: clamp(14px, 2vw, 28px); border-left: 1px solid var(--line); }
.bench strong { font: 700 clamp(1.5rem, 2.2vw, 2rem)/1.1 var(--display); }
.bench span { color: var(--ink-2); }
.bench .tech { margin-top: auto; padding-top: 8px; }

/* Footer */
.foot {
  background: var(--copper);
  color: var(--bg);
  padding: clamp(36px, 5vw, 64px) var(--gutter) 28px;
}
.mail {
  display: inline-block;
  margin-top: 10px;
  font: 600 clamp(1.5rem, 5.6vw, 5.25rem)/1.05 var(--display);
  overflow-wrap: anywhere;
  text-underline-offset: .12em;
  text-decoration-thickness: .05em;
}
.foot a:focus-visible { outline-color: var(--bg); }
.links { display: flex; gap: 20px; margin-top: 22px; font-weight: 500; }
.links a { text-underline-offset: .2em; }
.fine { margin-top: 32px; font: 400 .8125rem/1.5 var(--mono); }

/* 404 */
.lost { min-height: 62vh; padding: clamp(40px, 8vw, 100px) var(--gutter); }
.lost h1 { font: 800 clamp(5rem, 20vw, 16rem)/.85 var(--display); color: var(--copper); }
.lost p { margin: 18px 0; font-size: 1.25rem; }
.lost a { color: var(--blue); }

@media (max-width: 860px) {
  .intro { grid-template-columns: minmax(0, 1fr); }
  .row { grid-template-columns: 2.4rem minmax(0, 1fr); }
  .row .tech, .row .go { grid-column: 2; text-align: left; }
  .row:hover, .row:focus-visible { padding-inline: 0; }
  .bench { grid-template-columns: minmax(0, 1fr); }
  .bench li, .bench li + li { padding-inline: 0; border-left: 0; }
}
@media (max-width: 480px) {
  .brand span { display: none; }
  .top nav { font-size: .875rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .row { transition: none; }
}
