/* State Madison — ink on paper.
   Mono for names, navigation and labels; Sans for prose. */

:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #000000;
  --graphite: #555555;
  --hairline: #c4c4c4;

  --mono: "IBM Plex Mono", "Courier New", ui-monospace, monospace;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 5vw, 3rem);
  --measure: 34rem;
  --label-col: 13rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  /* Leave room for the pinned header when following section links. */
  scroll-padding-top: 12rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

p {
  margin: 0 0 1.15em;
}

p:last-child {
  margin-bottom: 0;
}

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

.skip {
  position: fixed;
  z-index: 30;
  left: var(--gutter);
  top: -4rem;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.skip:focus {
  top: 0.5rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  box-shadow: 0 1px 0 var(--hairline);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.25rem;
}

.site-header__logo {
  display: block;
  /* The lockup file carries its own left margin; pull it back to the text edge. */
  margin-left: -0.5rem;
}

.site-header__logo img {
  display: block;
  width: auto;
  height: 5.5rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav a {
  padding-block: 0.25rem;
  text-decoration-line: none;
}

.site-nav a:hover {
  text-decoration-line: underline;
}

/* Registration corners: the four brackets from the mark, framing a statement. */

.frame {
  --corner: clamp(1.5rem, 4vw, 2.75rem);
  --weight: 3px;
  margin-block: clamp(1.5rem, 5vw, 3.5rem) clamp(3rem, 8vw, 5.5rem);
  padding: clamp(2.25rem, 7vw, 5rem) clamp(1.5rem, 6vw, 4.5rem);
  background:
    linear-gradient(var(--ink), var(--ink)) top left / var(--corner) var(--weight) no-repeat,
    linear-gradient(var(--ink), var(--ink)) top left / var(--weight) var(--corner) no-repeat,
    linear-gradient(var(--ink), var(--ink)) top right / var(--corner) var(--weight) no-repeat,
    linear-gradient(var(--ink), var(--ink)) top right / var(--weight) var(--corner) no-repeat,
    linear-gradient(var(--ink), var(--ink)) bottom left / var(--corner) var(--weight) no-repeat,
    linear-gradient(var(--ink), var(--ink)) bottom left / var(--weight) var(--corner) no-repeat,
    linear-gradient(var(--ink), var(--ink)) bottom right / var(--corner) var(--weight) no-repeat,
    linear-gradient(var(--ink), var(--ink)) bottom right / var(--weight) var(--corner) no-repeat;
}

.statement {
  margin: 0;
  max-width: 30ch;
  font-family: var(--mono);
  font-size: clamp(1.375rem, 0.9rem + 2.4vw, 2.625rem);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* Company and brand pages: the name as a typed title. */

.title {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(1.25rem, 0.8rem + 2.6vw, 2.5rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-wrap: balance;
}

/* Company wordmarks retain their original artwork and proportions. */
.title--brand {
  line-height: 1;
}

.company-wordmark {
  display: block;
  width: 100%;
  max-width: 32rem;
  height: auto;
}

.affiliation {
  margin: 1.25rem 0 0;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Datum divider: a rule with calibration ticks, as on the mark's crosshair. */

.datum {
  height: 15px;
  margin: 0;
  border: 0;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 50% / 100% 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 2.5rem 0 / 1px 100% no-repeat,
    linear-gradient(var(--ink), var(--ink)) 4rem 0 / 1px 100% no-repeat,
    linear-gradient(var(--ink), var(--ink)) calc(100% - 2.5rem) 0 / 1px 100% no-repeat,
    linear-gradient(var(--ink), var(--ink)) calc(100% - 4rem) 0 / 1px 100% no-repeat;
}

/* Sections: label in the margin column, content beside it. */

.section {
  display: grid;
  grid-template-columns: var(--label-col) minmax(0, 1fr);
  column-gap: 2rem;
  padding-block: clamp(2.25rem, 6vw, 4.25rem);
}

.section__label {
  margin: 0;
  padding-top: 0.3rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section__body > p,
.section__body > ul.ticks {
  max-width: var(--measure);
}

.section__body > * + * {
  margin-top: 1.5rem;
}

.section__body > p + p {
  margin-top: 0;
}

/* Companies: a structure chart drawn as a list. Spine down the left, a tick to each entry. */

.tree-root {
  margin: 0;
  font-family: var(--mono);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tree {
  --tick-y: 1.9rem;
  --branch: 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tree-root + .tree {
  margin-top: 0;
}

.tree__item {
  position: relative;
  padding: 1.15rem 0 1.15rem var(--branch);
}

.tree__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: var(--tick-y);
  width: calc(var(--branch) - 0.75rem);
  height: 1px;
  background: var(--ink);
}

.tree__item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--ink);
}

.tree__item:last-child::after {
  bottom: auto;
  height: var(--tick-y);
}

.tree__name {
  font-family: var(--mono);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tree__role {
  margin: 0.2rem 0 0;
  color: var(--graphite);
  font-size: 0.9375rem;
}

.tree--sub {
  --tick-y: 1.45rem;
  --branch: 2rem;
  margin-top: 0.6rem;
}

.tree--sub .tree__item {
  padding-block: 0.75rem 0.25rem;
}

.tree--sub .tree__name {
  font-size: 0.9375rem;
}

/* Opportunities: what the enquiry is about, and who to take it to. */

.routes {
  margin: 0;
  max-width: 46rem;
  border-top: 1px solid var(--ink);
}

.routes__row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  column-gap: 2rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--hairline);
}

.routes__row:last-child {
  border-bottom-color: var(--ink);
}

.routes dt,
.routes dd {
  margin: 0;
}

.routes dd {
  font-family: var(--mono);
  font-size: 0.9375rem;
  font-weight: 500;
}

.routes__note {
  display: block;
  margin-top: 0.15rem;
  color: var(--graphite);
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 400;
}

/* Lists marked with a tick rather than a bullet. */

.ticks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 1.75rem;
}

.ticks li + li {
  margin-top: 0.6rem;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 1rem;
  height: 1px;
  background: var(--ink);
}

/* A standalone company mark signs off the contact section. */
.company-signature img {
  display: block;
  width: 7rem;
  height: 7.5rem;
  object-fit: contain;
  object-position: left center;
  margin-top: 2rem;
}

.company-signature--voss img {
  width: 10.5rem;
  height: 10.5rem;
  margin-left: -1.9rem;
  margin-top: 0.5rem;
}

.company-signature--running img {
  width: 12rem;
  height: 8rem;
  margin-left: -1.5rem;
  margin-top: 1rem;
}

@media (max-width: 48rem) {
  .company-signature {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .company-signature .section__label { margin: 0; }
  .company-signature img {
    flex-shrink: 0;
    width: 4rem;
    height: 4.5rem;
    margin: 0;
    object-position: center;
  }
  .company-signature--voss img { width: 6rem; height: 6rem; }
  .company-signature--running img { width: 7rem; height: 4.67rem; }
}

/* Contact and onward links */

.address {
  font-family: var(--mono);
  font-size: clamp(1rem, 0.8rem + 1.1vw, 1.375rem);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.mono-link {
  font-family: var(--mono);
  font-size: 0.9375rem;
  font-weight: 500;
}

.onward {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  padding-block: 0 clamp(2.25rem, 6vw, 4.25rem);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Footer: the one solid bar on the page. */

.site-footer {
  background: var(--ink);
  color: var(--paper);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: var(--label-col) minmax(0, 1fr);
  gap: 1.5rem 2rem;
  padding-block: clamp(2.25rem, 5vw, 3.5rem);
}

.site-footer__name {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.site-footer__legal {
  grid-column: 2;
  max-width: var(--measure);
  margin: 0;
  color: #d0d0d0;
  font-size: 0.8125rem;
  line-height: 1.55;
}

/* Narrow screens */

@media (max-width: 48rem) {
  .section,
  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .section__label {
    padding-top: 0;
    margin-bottom: 1.25rem;
  }

  .site-footer__legal {
    grid-column: 1;
  }

  .routes__row {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.25rem;
  }

  .site-header__logo img {
    height: 3.5rem;
  }

  .site-header__inner {
    padding-block: 0.75rem;
  }

  html {
    scroll-padding-top: 10rem;
  }

  .title {
    letter-spacing: 0.1em;
  }

  /* Keep the four navigation links on one line at phone widths. */
  .site-nav {
    column-gap: 1rem;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
  }
}

@media print {
  .site-header {
    position: static;
    box-shadow: none;
  }
}
