@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --navy: #182755;
  --grey: #525252;
  --blue: #3a75a2;
  --teal: #58b8c4;
  --rule: #e2e0da;
  --ink: #1a1a1a;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  background: #fff;
  hanging-punctuation: first;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font: 400 1.1875rem/1.55 var(--serif);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: oldstyle-nums proportional-nums;
}

::selection { background: var(--teal); color: #fff; }

a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}
a:hover { text-decoration-color: var(--navy); }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 1px; }

.page {
  max-width: 66rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.75rem 0 1.25rem;
  border-bottom: 1px solid var(--rule);
}
.site-header a { text-decoration: none; }
.logo {
  width: 210px;
  height: auto;
  display: block;
}
.site-header .mail {
  font-size: .95rem;
  color: var(--grey);
}
@media (max-width: 30em) {
  .site-header .mail { display: none; }
}

/* Rows: label column + body column */
.row {
  align-items: start;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem 3.5rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.row:last-of-type { border-bottom: 0; }
@media (min-width: 62em) {
  .row {
    grid-template-columns: 13rem minmax(0, 40rem);
    justify-content: start;
    padding: 3rem 0;
  }
  .row > .body { grid-column: 2; }
}

/* Intro */
h1 {
  font: 600 clamp(2.5rem, 6.5vw, 4.25rem)/1 var(--serif);
  letter-spacing: -.02em;
  color: var(--navy);
  margin: 0 0 .75rem;
}
.role {
  font-style: italic;
  color: var(--grey);
  margin: 0 0 1.75rem;
  font-size: 1.1rem;
  text-wrap: pretty;
}
.role span { display: inline-block; }
.role .loc { display: block; }
.lede {
  font-size: clamp(1.3rem, 2.4vw, 1.625rem);
  line-height: 1.38;
  color: var(--navy);
  margin: 0;
  text-wrap: pretty;
}
.lede::first-letter { font-weight: 600; }

/* Section labels with the two logo squares */
h2 {
  display: flex;
  align-items: center;
  font: 700 .6875rem/1.4 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 0 0 1.25rem;
}
h2::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  background: var(--blue);
  box-shadow: 10px 10px 0 0 var(--teal);
  margin: -10px 22px 10px 0;
}
@media (min-width: 62em) {
  h2 { margin: .55rem 0 0; }
}

/* Areas of work */
.areas {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem 2.5rem;
}
@media (min-width: 44em) {
  .areas { grid-template-columns: 1fr 1fr; }
}
.areas li {
  margin: 0;
  padding-top: .9rem;
  border-top: 1px solid var(--rule);
  text-wrap: pretty;
}
.areas b {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .15rem;
}
.areas span { color: var(--grey); font-size: 1.0625rem; line-height: 1.5; display: block; }

/* Background prose and pull-out figures */
.prose p { margin: 0 0 1.15rem; text-wrap: pretty; }
.prose p:last-child { margin-bottom: 0; }
.cred { margin-top: 1.6rem; font-size: 1rem; color: var(--grey); }
.cred b { color: var(--navy); font-weight: 600; }

.pulls {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 0 0 1.75rem;
}
.pull {
  margin: 0;
  padding-top: .75rem;
  border-top: 1px solid var(--navy);
}
.pull .n {
  display: block;
  font: 700 1.6rem/1 var(--sans);
  color: var(--navy);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -.02em;
}
.pull .t {
  display: block;
  font-size: .9375rem;
  line-height: 1.4;
  color: var(--grey);
  margin-top: .35rem;
  font-style: italic;
}
@media (min-width: 62em) {
  .pulls { grid-template-columns: 1fr; gap: 1.5rem; margin: 1.5rem 0 0; }
  .pull .n { font-size: 2rem; }
}

/* Contact */
.contact .body a { font-size: clamp(1.25rem, 2.4vw, 1.625rem); }

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.75rem;
  padding: 1.5rem 0 3rem;
  border-top: 1px solid var(--rule);
  font-size: .95rem;
  color: var(--grey);
}
.site-footer a { color: var(--grey); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--teal); }
.site-footer .copy { margin-left: auto; }

/* Privacy notice page */
.notice { max-width: 40rem; padding: 2.5rem 0 3rem; }
.notice h1 { font-size: clamp(2rem, 5vw, 2.75rem); margin-bottom: 1.5rem; }
.notice h2 { margin: 2rem 0 .75rem; }
.notice h2::before { display: none; }
.notice p, .notice li { text-wrap: pretty; }
.notice p { margin: 0 0 1rem; }
.notice ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.notice .updated { font-style: italic; color: var(--grey); font-size: 1rem; }

@media print {
  body { font-size: 11pt; }
  .site-header .mail, .site-footer { display: none; }
  a { color: inherit; text-decoration: none; }
  .row { padding: 1.25rem 0; }
}
