/* Essential Preflight defaults adapted from Tailwind CSS 4.2.2 (MIT).
   Attribution and license: THIRD-PARTY-NOTICES.txt. No build step is required. */
@layer base {
  *,
  ::before,
  ::after,
  ::backdrop,
  ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }

  html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-feature-settings: normal;
    font-variation-settings: normal;
    -webkit-tap-highlight-color: transparent;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }

  a {
    color: inherit;
    text-decoration: inherit;
  }

  b, strong {
    font-weight: bolder;
  }

  small {
    font-size: 80%;
  }

  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }

  img {
    display: block;
    vertical-align: middle;
    max-width: 100%;
    height: auto;
  }

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}

@font-face {
  font-family: "DM Sans:Bold";
  src: url("fonts/DM-Sans-Variable-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
}

@font-face {
  font-family: "DM Sans:Light";
  src: url("fonts/DM-Sans-Variable-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
}

@font-face {
  font-family: "DM Sans:Regular";
  src: url("fonts/DM-Sans-Variable-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "IBM Plex Mono:Bold";
  src: url("fonts/IBM-Plex-Mono-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
}

@font-face {
  font-family: "IBM Plex Mono:Medium";
  src: url("fonts/IBM-Plex-Mono-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
}

@font-face {
  font-family: "IBM Plex Mono:Regular";
  src: url("fonts/IBM-Plex-Mono-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
}

:root {
  --header-safe-top: max(env(safe-area-inset-top, 0px), 44px);
  color: #161a17;
  background: #fdfdfa;
  font-synthesis: none;
}

@layer base {
  html {
    background: #fdfdfa;
  }

  body {
    min-width: 320px;
    min-height: 100vh;
    background: #fdfdfa;
  }

  button,
  a {
    color: inherit;
  }

  a:focus-visible,
  button:focus-visible,
  [tabindex]:focus-visible {
    outline: 1px solid #1a4c5f;
    outline-offset: 4px;
  }
}

.works-page,
.index-page,
.about-page,
.not-found-page {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  background: #fdfdfa;
}

.site-header {
  position: relative;
  z-index: 10;
  height: calc(var(--header-safe-top) + 106px);
}

.site-nav {
  position: absolute;
  top: calc(var(--header-safe-top) + 8px);
  left: 50%;
  display: flex;
  width: max-content;
  transform: translateX(-50%);
  gap: 45px;
  font:
    12px/14.4px "IBM Plex Mono:Regular",
    monospace;
  color: #6f736f;
  white-space: nowrap;
}

.site-nav a {
  display: block;
  text-decoration: none;
}

.site-nav a.is-active {
  color: #161a17;
  font-family: "IBM Plex Mono:Medium", monospace;
}

/* The production baseline uses normal variation settings on font shorthands.
   Preserve that effective typography rather than the pre-build declaration order. */
.wordmark {
  position: absolute;
  top: calc(var(--header-safe-top) + 34px);
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  background: transparent;
  border: 0;
  font:
    700 20px/47.3px "DM Sans:Bold",
    sans-serif;
  font-variation-settings: normal;
  letter-spacing: 3px;
  text-align: center;
}

.site-nav--footer {
  top: auto;
  bottom: 26px;
  z-index: 10;
}

/* Missing pages: the same quiet typography and navigation as the exhibition. */
.not-found-content {
  width: min(780px, calc(100% - 48px));
  margin: clamp(80px, 12vw, 160px) auto 140px;
  font: 400 18px/1.5 "DM Sans:Regular", sans-serif;
}

.not-found-code {
  color: #6f736f;
  font: 11px/1.4 "IBM Plex Mono:Regular", monospace;
}

.not-found-content h1 {
  margin: 16px 0;
  font: 300 clamp(34px, 6vw, 52px)/1.2 "DM Sans:Light", sans-serif;
  letter-spacing: -1px;
}

.not-found-return {
  display: inline-block;
  margin-top: 28px;
  color: #1a4c5f;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Works: asymmetric exhibition composition. */
.works-page {
  height: 3400px;
}

.works-field {
  position: relative;
  width: min(100%, 1440px);
  height: 2840px;
  margin: 0 auto;
}

.work {
  position: absolute;
}

.work h1,
.work h2 {
  margin: 0;
  font-family: "DM Sans:Regular", sans-serif;
  font-weight: 400;
  font-variation-settings: "opsz" 14;
}

.work img {
  display: block;
  width: 100%;
  height: 100%;
}

.work--colman {
  top: 114px;
  left: 9.55%;
  width: 83.75%;
}

.work--colman h1 {
  margin-bottom: 27px;
  font-family: "DM Sans:Light", sans-serif;
  font-size: 52px;
  line-height: 1.2;
  letter-spacing: -1.2px;
}

.work--colman img {
  width: 82.9%;
  height: 799px;
  margin-left: 5.85%;
  object-fit: contain;
}

.work--flow {
  top: 1259px;
  left: 35.72%;
  width: 57.4%;
}

.work--flow h2 {
  font-size: 33.167px;
  line-height: 1.25;
  margin-bottom: 21px;
}

.work--flow img {
  width: 96.8%;
  height: 460px;
  margin-left: 3.2%;
  object-fit: cover;
}

.work--machine {
  top: 2068px;
  left: 23.14%;
  width: 61.1%;
}

.work--machine h2 {
  margin-left: 34.3%;
  margin-bottom: 20px;
  font-size: 25.14px;
  line-height: 1.25;
}

.work--machine a {
  display: block;
  width: 68.9%;
}

.work--machine img {
  height: 349px;
  object-fit: cover;
}

/* Index: project catalog. */
.index-page {
  min-height: 1800px;
}

.index-intro {
  width: 780px;
  max-width: calc(100% - 48px);
  margin: 119px auto 0;
  font:
    400 21px/1.5 "DM Sans:Regular",
    sans-serif;
  font-variation-settings: normal;
}

.index-intro p + p {
  margin-top: 38px;
  margin-left: 172px;
}

.catalog {
  width: 912px;
  max-width: calc(100% - 48px);
  margin: 303px auto 0;
}

.catalog-entry {
  display: grid;
  /* Allow the copy column to shrink before the 700px mobile breakpoint.
     Retain the original 610px/250px tracks whenever there is room. */
  grid-template-columns: minmax(0, 610px) 250px;
  gap: 34px;
  min-height: 255px;
}

.catalog-entry + .catalog-entry {
  margin-top: 47px;
}

.catalog-copy {
  min-width: 0;
}

.catalog-copy h1 {
  margin: 0 0 4px;
  font:
    300 45px/1.15 "DM Sans:Light",
    sans-serif;
  font-variation-settings: normal;
}

.catalog-copy p {
  margin: 0 0 9px;
  font:
    400 18px/1.45 "DM Sans:Regular",
    sans-serif;
  font-variation-settings: normal;
}

.catalog small {
  color: #6f736f;
  font:
    11px/15.4px "IBM Plex Mono:Regular",
    monospace;
}

.catalog-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.catalog-media img {
  display: block;
  width: 250px;
  height: 170px;
  object-fit: cover;
}

.catalog-entry:first-child .catalog-media img {
  object-fit: contain;
}

/* About: fixed-width technical datasheet. */
.about-page {
  min-height: 3900px;
}

.plate-scroll {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.technical-plate {
  box-sizing: border-box;
  width: 1334px;
  min-height: 3580px;
  margin: 26px auto 140px;
  padding: 19px 24px 24px;
  color: #1f2824;
  font-family: "IBM Plex Mono:Regular", monospace;
  font-size: 9.1px;
  line-height: 1.25;
}

.plate-kicker {
  display: flex;
  justify-content: space-between;
  padding: 0 1px 18px;
  border-bottom: 1px solid #a7ada3;
  color: #2d413d;
  font-family: "IBM Plex Mono:Medium", monospace;
  font-size: 11px;
  letter-spacing: 0.25px;
}

.plate-kicker span:last-child {
  color: #1a4c5f;
}

.plate-title {
  display: grid;
  grid-template-columns: 1fr 354px;
  gap: 60px;
  min-height: 177px;
  padding: 10px 5px 0;
  border-bottom: 3px solid #2d413d;
}

.plate-title h1 {
  margin: 0;
  font:
    300 66px/1.1 "DM Sans:Light",
    sans-serif;
  font-variation-settings: normal;
  letter-spacing: -2.8px;
}

.plate-title h2 {
  margin: 8px 0 6px 5px;
  font:
    700 17px/1.25 "IBM Plex Mono:Bold",
    monospace;
  letter-spacing: 0.5px;
}

.plate-title p {
  margin-left: 5px;
  font:
    400 13px/1.25 "DM Sans:Regular",
    sans-serif;
}

.plate-title table {
  width: 100%;
  margin-top: 3px;
  border-collapse: collapse;
  align-self: start;
}

.plate-title th,
.plate-title td {
  height: 30px;
  padding: 3px 6px;
  border-bottom: 1px solid #a7ada3;
  text-align: left;
}

.plate-title th {
  width: 107px;
  color: #606861;
  font-family: "IBM Plex Mono:Medium", monospace;
  font-weight: 500;
}

.plate-index {
  padding: 13px 5px 18px;
  color: #1a4c5f;
  font-family: "IBM Plex Mono:Medium", monospace;
  font-size: 10.1px;
  letter-spacing: 0.25px;
}

.plate-grid {
  display: grid;
  grid-template-columns: 633px 634px;
  gap: 20px 19px;
}

.tech-section {
  min-width: 0;
}

.tech-wide {
  grid-column: 1 / -1;
}

.tech-section > header {
  display: grid;
  grid-template-columns: 41px 1fr auto;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
}

.tech-section > header b {
  color: #1a4c5f;
  font:
    500 11px "IBM Plex Mono:Medium",
    monospace;
}

.tech-section > header strong {
  font:
    700 12px "IBM Plex Mono:Bold",
    monospace;
  letter-spacing: 0.55px;
}

.tech-section > header span {
  color: #606861;
  font:
    500 8.9px "IBM Plex Mono:Medium",
    monospace;
  letter-spacing: 0.25px;
}

.tech-section table {
  width: calc(100% - 16px);
  margin: 10px 8px 0;
  table-layout: fixed;
  border-collapse: collapse;
}

.tech-section th,
.tech-section td {
  overflow: hidden;
  height: 30px;
  padding: 5px 7px;
  border-right: 1px solid rgba(167, 173, 163, 0.55);
  border-bottom: 1px solid #a7ada3;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tech-section th {
  color: #2d413d;
  font-family: "IBM Plex Mono:Medium", monospace;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.tech-section .tech-key {
  width: 136px;
  color: #1a4c5f;
  font-family: "IBM Plex Mono:Medium", monospace;
}

.tech-wide .tech-key {
  width: 50px;
}

.tech-wide th:nth-child(2) {
  width: 247px;
}

.source-note {
  margin: 8px 14px 0;
  color: #8d3f28;
  font:
    500 8.5px/1.3 "IBM Plex Mono:Medium",
    monospace;
}

.measurements .measure-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 10px;
}

.measure-grid > div {
  height: 111px;
  padding: 11px 10px;
  border-bottom: 1px solid #a7ada3;
}

.measure-grid strong {
  display: block;
  color: #1a4c5f;
  font:
    300 38px/1 "DM Sans:Light",
    sans-serif;
}

.measure-grid b,
.measure-grid small {
  display: block;
  margin-top: 5px;
  font-family: "IBM Plex Mono:Medium", monospace;
  font-size: 8.8px;
}

.measure-grid small {
  color: #606861;
}

.matrix td:not(:first-child),
.matrix th:not(:first-child) {
  text-align: center;
}

.matrix i {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #1a4c5f;
}

.record-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.extended-records table {
  font-size: 7.6px;
}

.extended-records th,
.extended-records td {
  height: 18px;
  padding: 2px 4px;
}

.extended-records .tech-key {
  width: 45px;
}

.extended-records th:nth-child(2) {
  width: 145px;
}

/* Keep factual qualifications visible in the corrected About tables. */
.tech-section td,
.tech-section th[scope="row"] {
  white-space: normal;
  overflow-wrap: anywhere;
}

.matrix th:first-child {
  width: 245px;
}

.matrix th:nth-child(2),
.extended-records th:nth-child(2) {
  width: auto;
}

.extended-records th:first-child {
  width: 90px;
}

.extended-records th:last-child {
  width: 122px;
}

.plate-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding: 12px 4px;
  border-top: 3px solid #2d413d;
  color: #1a4c5f;
  font:
    500 9px "IBM Plex Mono:Medium",
    monospace;
}

@media (max-width: 700px) {
  :root {
    --header-safe-top: max(env(safe-area-inset-top, 0px), 54px);
  }

  .site-header {
    height: calc(var(--header-safe-top) + 112px);
  }

  .site-nav {
    top: calc(var(--header-safe-top) + 8px);
    width: max-content;
    gap: 25px;
    font-size: 10px;
  }

  .site-nav a {
    width: auto;
  }

  .wordmark {
    top: calc(var(--header-safe-top) + 34px);
    left: 50%;
    font-size: 17px;
  }

  .site-nav--footer {
    top: auto;
    bottom: calc(max(env(safe-area-inset-bottom, 0px), 12px) + 14px);
  }

  .works-page {
    height: 2100px;
  }

  .works-field {
    width: calc(100% - 48px);
    height: 1780px;
  }

  .work--colman {
    top: 82px;
    left: 7%;
    width: 88%;
  }

  .work--colman h1 {
    margin-bottom: 14px;
    font-size: 28px;
    letter-spacing: -0.5px;
  }

  .work--colman img {
    width: 100%;
    height: 420px;
    margin: 0;
  }

  .work--flow {
    top: 690px;
    left: 20%;
    width: 77%;
  }

  .work--flow h2 {
    margin-bottom: 10px;
    font-size: 22px;
  }

  .work--flow img {
    width: 100%;
    height: 250px;
    margin: 0;
  }

  .work--machine {
    top: 1190px;
    left: 5%;
    width: 78%;
  }

  .work--machine h2 {
    margin-left: 25%;
    margin-bottom: 10px;
    font-size: 18px;
  }

  .work--machine a {
    width: 100%;
  }

  .work--machine img {
    height: 225px;
  }

  .index-page {
    min-height: 1780px;
  }

  .index-intro {
    max-width: calc(100% - 48px);
    margin-top: 80px;
    font-size: 17px;
  }

  .index-intro p + p {
    margin: 30px 0 0 12%;
  }

  .catalog {
    max-width: calc(100% - 48px);
    margin-top: 170px;
  }

  .catalog-entry {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: 0;
  }

  .catalog-entry + .catalog-entry {
    margin-top: 92px;
  }

  .catalog-copy h1 {
    font-size: 34px;
  }

  .catalog-copy p {
    font-size: 16px;
  }

  .catalog-media {
    align-items: flex-end;
  }

  .catalog-media img {
    width: min(250px, 100%);
  }

  .catalog-media small {
    width: min(250px, 100%);
    text-align: center;
  }

  .about-page {
    min-height: 3900px;
  }

  .plate-scroll {
    box-sizing: border-box;
    padding-right: max(env(safe-area-inset-right, 0px), 24px);
    padding-left: max(env(safe-area-inset-left, 0px), 24px);
    scroll-padding-inline: max(env(safe-area-inset-left, 0px), 24px);
  }

  .technical-plate {
    margin-right: 0;
    margin-left: 0;
  }

  .about-page > .site-nav--footer {
    position: absolute;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
