/* One typeface throughout: Inter. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(fonts/inter-latin.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Two colours. Paper is pure white; everything else is one matte dark green,
     the Porsche oak-green family: desaturated, closer to slate than to emerald.
     Tints below are that same green at reduced strength, never a second hue. */
  --paper: #ffffff;
  --tan: #ffffff;
  --green: #24352c;
  --green-lift: #3c5245;
  --tan-deep: #dde3df;
  --rule: #c2cdc6;
  --rule-soft: #dce3de;

  /* Every rule, divider and cell border on this site is drawn at this width. */
  --hairline: 1px;

  --ink: #171b18;
  --ink-2: #4a524c;
  --ink-3: #667066;

  --accent: var(--green);

  --deep: var(--green);
  --deep-ink: #dfe6e1;

  --sans: 'Inter', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --container: 1120px;
  /* Two widths, both starting at the container's left edge. Running text sits
     in --prose. Figures, the requirements table and the people grid take
     --wide, so they extend past the text on the right and never on the left. */
  --prose: 40rem;
  --wide: 52rem;
  --gutter: 1.5rem;
  --ease: 170ms cubic-bezier(0.2, 0, 0.2, 1);
}

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

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

body {
  margin: 0;
  background: var(--tan);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
  font-feature-settings: 'kern' 1;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.017em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--ease), text-decoration-color var(--ease);
}
a:hover { color: var(--green-lift); }

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

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

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--tan);
  padding: 0.6rem 1rem;
  z-index: 20;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */

.masthead {
  border-bottom: var(--hairline) solid var(--rule);
  background: var(--tan);
}

.masthead__inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.4rem;
}

.wordmark {
  font-size: 1.3125rem;
  letter-spacing: -0.03em;
  color: var(--green);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark:hover { color: var(--green); }

.nav {
  display: flex;
  gap: 1.75rem;
  font-size: 0.875rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink-2);
  padding-bottom: 3px;
  border-bottom: var(--hairline) solid transparent;
  transition: color var(--ease), border-color var(--ease);
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--rule); }
.nav a[aria-current='page'] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---------- opening ---------- */

.hero { padding-block: 5rem 3rem; }

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.12;
  max-width: 26ch;
  margin-bottom: 1.75rem;
}

.lede {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: var(--prose);
}

/* ---------- figures ---------- */

.figure { margin: 0; }

.figure img {
  width: 100%;
  background: var(--paper);
}

.figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.78125rem;
  line-height: 1.55;
  color: var(--ink-3);
  max-width: var(--prose);
}
.figure figcaption a { color: var(--ink-3); }

/* The opening photograph spans the container. Every other figure follows the
   text of its section at the wide measure. */
.figure--opening { padding-bottom: 5rem; }
.figure--follows { max-width: var(--wide); margin-top: 3rem; }

/* ---------- sections and bands ---------- */

.band { border-top: var(--hairline) solid var(--rule); }

/* Solid colour, no image or gradient layer of any kind. */
.band--deep {
  background-color: var(--deep);
  background-image: none;
  border-top-color: var(--deep);
  color: var(--deep-ink);
}
.band--deep h1, .band--deep h2, .band--deep h3 { color: var(--paper); }
.band--deep .prose { color: var(--deep-ink); }
.band--deep a { color: var(--paper); }
.band--deep a:hover { color: #ffffff; }
.band--deep .figure img { background: transparent; }
.band--deep .figure figcaption { color: var(--deep-ink); }

/* One vertical rhythm for every section. */
.section { padding-block: 5rem; }

.h2 {
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  line-height: 1.26;
  margin-bottom: 1.4rem;
  max-width: 30ch;
}

.prose { max-width: var(--prose); color: var(--ink-2); }
.prose a { color: var(--accent); }
.band--deep .prose a { color: var(--paper); }

/* Text runs on without a heading column beside it. */
.runs { max-width: var(--prose); }

/* ---------- requirements table ---------- */

.spec {
  width: 100%;
  max-width: var(--wide);
  border-collapse: collapse;
  font-size: 1.0625rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.spec th, .spec td {
  text-align: left;
  vertical-align: top;
  padding: 0.95rem 1rem 0.95rem 0;
  border-bottom: var(--hairline) solid var(--rule-soft);
}

.spec tbody th { font-weight: 400; color: var(--ink); width: 15rem; }
.spec td { color: var(--ink-2); }
.spec tbody th, .spec tbody td { transition: color var(--ease); }
.spec tbody tr:hover th, .spec tbody tr:hover td { color: var(--ink); }

/* ---------- people ---------- */

.people {
  max-width: var(--wide);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 3.5rem;
}

.person { border-top: var(--hairline) solid var(--rule); padding-top: 1.25rem; }
/* The circle is baked into the file's alpha channel, so no border-radius here. */
.person--portrait { display: flex; gap: 1.25rem; align-items: flex-start; }
.portrait { flex: none; width: 5rem; height: auto; margin-top: 0.1rem; }
.person h2 { font-size: 1.1875rem; margin-bottom: 0.15rem; }
.person .role {
  font-size: 0.78125rem;
  color: var(--ink-3);
  margin-bottom: 0.85rem;
}
.person p { color: var(--ink-2); font-size: 1.0625rem; }
.person a { color: var(--accent); }

/* ---------- footer ----------
   The wordmark and the contact address sit at the same two edges as the
   wordmark and the nav in the masthead. */

.footer {
  border-top: var(--hairline) solid var(--rule);
  padding-block: 3rem 3.5rem;
  font-size: 0.8125rem;
  color: var(--ink-3);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 28rem) auto;
  justify-content: space-between;
  gap: 2.5rem;
}

.footer h2 {
  font-size: 0.8125rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--accent); text-decoration: underline; }

.footer__wordmark {
  font-size: 1.125rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
  letter-spacing: -0.03em;
}

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .hero { padding-block: 3.5rem 2.25rem; }
  .hero h1 { max-width: none; }
  .h2 { max-width: none; }
  .section { padding-block: 3.5rem; }
  .figure--opening { padding-bottom: 3.5rem; }
  .masthead__inner { flex-direction: column; align-items: flex-start; gap: 0.9rem; }
  .nav { gap: 1.25rem; flex-wrap: wrap; }
  .people { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .spec tbody th { width: 40%; }
  .footer__grid { justify-content: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}
