/* Applied Ops Lab */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/ibm-plex-sans-latin-wght.woff2") format("woff2-variations"),
       url("/fonts/ibm-plex-sans-latin-wght.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #ffffff;
  --paper-2: #f4f6f8;
  --ink: #1e2329;
  --ink-2: #4a535e;
  --rule: #d5dbe2;
  --rule-strong: #aab5c1;
  --navy: #1f3a5f;
  --navy-dark: #152a46;
  --steel: #3f6a94;
  --steel-light: #a9bed3;
  --steel-pale: #d7e1eb;
  --ochre: #b07a16;
  --ochre-text: #855a0c;
  --ochre-pale: #fdf7ea;

  --font: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --section-space: clamp(4rem, 2.5rem + 6vw, 7.5rem);
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--steel);
}

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

.wrap {
  width: 100%;
  max-width: 74rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 0.875rem;
  background: var(--navy);
  color: #fff;
}

.skip-link:focus {
  top: 1rem;
  color: #fff;
}

/* Header ------------------------------------------------------------ */

.site-header {
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.125rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 2.5rem;
  height: 1rem;
  flex: none;
}

.bm-bar {
  fill: var(--steel-pale);
  stroke: var(--navy);
  stroke-width: 1.5;
}

.bm-cut {
  stroke: var(--navy);
  stroke-width: 1.5;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.005em;
}

.brand-sub {
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--ink-2);
}

.nav {
  display: flex;
  gap: 0.25rem 1.75rem;
  flex-wrap: wrap;
}

.nav a {
  display: inline-block;
  padding-block: 0.375rem;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.nav a:hover {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

/* Buttons ------------------------------------------------------------ */

.button {
  display: inline-block;
  padding: 0.8125rem 1.375rem;
  background: var(--navy);
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 2px;
}

.button:hover {
  background: var(--navy-dark);
  color: #fff;
}

/* Hero --------------------------------------------------------------- */

.hero {
  padding-top: clamp(3.5rem, 2rem + 6vw, 7rem);
}

.hero-title {
  font-size: clamp(2.375rem, 1.35rem + 4.1vw, 4.375rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.028em;
}

.hero-title span {
  display: block;
}

.hero-title span + span {
  color: var(--navy);
}

.hero-lede {
  margin-top: 1.75rem;
  max-width: 38rem;
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  line-height: 1.55;
  color: var(--ink);
}

.hero-meta {
  margin-top: 1rem;
  margin-bottom: 2.25rem;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.hero-meta .sep {
  margin-inline: 0.5em;
  color: var(--rule-strong);
}

.hero-rule {
  margin-top: clamp(3.5rem, 2rem + 5vw, 6rem);
}

.hero-bar {
  display: block;
  width: 100%;
  height: 24px;
}

.hero-seg {
  fill: var(--steel-pale);
}

.hero-kerf {
  stroke: var(--navy);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.hero-stock {
  fill: none;
  stroke: var(--ink-2);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

/* A drafting-style dimension line: |----- 240 in stock length -----| */
.hero-rule-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.hero-rule-label::before,
.hero-rule-label::after {
  content: "";
  flex: 1;
  height: 9px;
  border-top: 1px solid var(--rule-strong);
  transform: translateY(4px);
}

.hero-rule-label::before {
  border-left: 1px solid var(--rule-strong);
}

.hero-rule-label::after {
  border-right: 1px solid var(--rule-strong);
}

/* Sections ----------------------------------------------------------- */

.section {
  padding-block: var(--section-space);
}

.section-title {
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.625rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 20ch;
}

.split {
  display: grid;
  gap: 1.5rem 3rem;
}

@media (min-width: 52rem) {
  .split {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }
}

.prose {
  max-width: 38rem;
}

.prose p + p {
  margin-top: 1.125em;
}

/* Research focus ----------------------------------------------------- */

.focus-primary {
  display: grid;
  gap: 0.5rem 3rem;
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  padding-top: 1.5rem;
  border-top: 3px solid var(--navy);
}

.focus-tag {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

.focus-primary-title {
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.focus-primary-body {
  max-width: 38rem;
  font-size: 1.125rem;
}

@media (min-width: 52rem) {
  .focus-primary {
    grid-template-columns: 5fr 7fr;
    grid-template-rows: auto 1fr;
  }

  .focus-tag {
    grid-column: 1;
  }

  .focus-primary-title {
    grid-column: 1;
  }

  .focus-primary-body {
    grid-column: 2;
    grid-row: 1 / span 2;
    padding-top: 0.125rem;
  }
}

.focus-secondary {
  margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.focus-secondary-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
}

.focus-grid {
  display: grid;
  gap: 2rem 3rem;
  margin-top: 1.25rem;
}

@media (min-width: 46rem) {
  .focus-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.focus-grid h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.focus-grid p {
  margin-top: 0.5rem;
  max-width: 34rem;
  color: var(--ink-2);
}

/* Figure 1: drawing sheet ------------------------------------------- */

.sheet {
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  border: 1px solid var(--rule-strong);
  background: var(--paper);
}

.sheet-head {
  padding: 1.25rem clamp(1rem, 0.5rem + 2vw, 2rem);
  border-bottom: 1px solid var(--rule);
}

.sheet-title {
  font-weight: 600;
}

.sheet-intro {
  margin-top: 0.25rem;
  max-width: 44rem;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.panels {
  display: grid;
}

.panel {
  padding: 1.5rem clamp(1rem, 0.5rem + 2vw, 2rem) 1.25rem;
}

.panel + .panel {
  border-top: 1px dashed var(--rule);
}

.panel-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
}

.panel-figure {
  margin-top: 0.875rem;
}

.panel-caption {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.cut-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  font-variant-numeric: tabular-nums;
}

.cut-svg--compact {
  display: none;
}

@media (max-width: 40rem) {
  .cut-svg--wide {
    display: none;
  }

  .cut-svg--compact {
    display: block;
  }
}

.seg-A { fill: var(--navy); }
.seg-B { fill: var(--steel); }
.seg-C { fill: var(--steel-light); }
.seg-D { fill: var(--steel-pale); }

.seg-text {
  font-weight: 500;
}

.seg-text-A,
.seg-text-B { fill: #fff; }
.seg-text-C,
.seg-text-D { fill: var(--ink); }

.stock {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
}

.kerf {
  stroke: var(--ink);
  stroke-width: 1.5;
}

.offcut--reuse {
  fill: var(--ochre-pale);
  stroke: var(--ochre);
  stroke-width: 1.5;
  stroke-dasharray: 5 3;
}

.hatch-bg { fill: #eef1f4; }

.hatch-line {
  stroke: #7d8894;
  stroke-width: 1.25;
}

.offcut-text {
  fill: var(--ochre-text);
  font-weight: 500;
}

.bar-label {
  fill: var(--ink-2);
  font-size: 13px;
}

.dim {
  fill: none;
  stroke: var(--ink-2);
  stroke-width: 1;
}

.dim-text {
  fill: var(--ink-2);
}

.dim-text--reuse {
  fill: var(--ochre-text);
  font-weight: 600;
}

/* Title block: the corner box of an engineering drawing. */
.title-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--rule-strong);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.tb-cell {
  padding: 0.875rem clamp(1rem, 0.5rem + 2vw, 1.25rem);
  border-bottom: 1px solid var(--rule);
}

.tb-stock {
  border-right: 1px solid var(--rule);
}

.tb-parts,
.tb-legend {
  grid-column: 1 / -1;
}

.tb-label {
  margin-bottom: 0.25rem;
  font-size: 0.8125rem;
  color: var(--ink-2);
}

.parts-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.parts-list li,
.legend li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.part-id {
  font-weight: 600;
}

.qty {
  color: var(--ink-2);
}

.swatch,
.key {
  display: inline-block;
  width: 0.875rem;
  height: 0.875rem;
  flex: none;
}

.swatch-A { background: var(--navy); }
.swatch-B { background: var(--steel); }
.swatch-C { background: var(--steel-light); }
.swatch-D { background: var(--steel-pale); outline: 1px solid var(--rule-strong); outline-offset: -1px; }

.key-scrap {
  background: repeating-linear-gradient(45deg, #eef1f4 0 3px, #7d8894 3px 4.25px);
  border: 1px solid var(--ink);
}

.key-reuse {
  background: var(--ochre-pale);
  border: 1.5px dashed var(--ochre);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.tb-note {
  grid-column: 1 / -1;
  padding: 0.75rem clamp(1rem, 0.5rem + 2vw, 1.25rem);
  font-style: italic;
  color: var(--ink-2);
}

@media (min-width: 52rem) {
  .title-block {
    grid-template-columns: 2.2fr 1fr 1fr 2fr;
  }

  .tb-cell {
    border-right: 1px solid var(--rule);
  }

  .tb-parts,
  .tb-legend {
    grid-column: auto;
  }

  .tb-legend {
    border-right: 0;
  }

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

  .legend {
    flex-direction: column;
  }
}

/* About & contact ---------------------------------------------------- */

.about {
  border-top: 1px solid var(--rule);
}

.contact {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
}

.contact-actions {
  margin-top: 2rem;
}

.contact-address {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

/* Footer ------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--ink-2);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem 3rem;
  padding-block: 2.5rem;
}

.footer-name {
  font-weight: 600;
  color: var(--ink);
}

@media (min-width: 40rem) {
  .footer-end {
    text-align: right;
  }
}

/* 404 ---------------------------------------------------------------- */

.notfound {
  padding-block: var(--section-space);
}

.notfound p {
  margin-block: 1rem 2rem;
  color: var(--ink-2);
}
