/* Text pages (methodology, FAQ, about, regions): white paper, black ink.
   Bold Poppins headings, the key words set in solid black boxes; light
   Roboto text; photos cut on the diagonal, in greyscale slices and in
   circles. The map page keeps its own dark style (style.css). */
:root {
  --ink: #000000;
  --paper: #ffffff;
  --soft: #4a4a4a;
  --rule: #e2e2e2;
  --panel: #f4f4f4;
  --g: #3cc85a;
  --y: #f0c828;
  --r: #eb463c;
  --head: "Poppins", "Poppins Fallback", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --body: "Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --wide: 75rem;
  --text: 40rem;
  --gutter: clamp(16px, 6vw, 100px);
}

/* Arial scaled to Poppins' metrics, so headings keep their size while the
   web font loads. */
@font-face {
  font-family: "Poppins Fallback";
  src: local("Arial"), local("ArialMT");
  size-adjust: 112.5%;
  ascent-override: 93%;
  descent-override: 31%;
  line-gap-override: 9%;
}

* { box-sizing: border-box; }

html { background: var(--paper); color-scheme: light; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  font-size: 1.125rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
strong, b, th { font-weight: 500; }
img { max-width: 100%; }

/* ------------------------------------------------------------- header */
.site-head {
  pointer-events: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem 3rem;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 0;
  position: relative;
  z-index: 2;
}
.site-head a { pointer-events: auto; }
.brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
  font-family: var(--head);
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.brand img { display: block; }
.brand span { padding-left: 0.1em; }
.site-head nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  padding-top: 0.6rem;
  font-size: 1.15rem;
}
.site-head nav a { text-decoration: none; }
.site-head nav a:hover,
.site-head nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }

/* ---------------------------------------------------------------- hero */
/* Text on the left; on the right a photo cut on the diagonal, with the
   page title in black boxes over its lower edge. */
/* The photo runs to the top and right edges of the window; the text lines
   up with the header. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: end;
  gap: 2rem;
  margin-top: -9.25rem;
  padding-left: max(var(--gutter), calc((100vw - var(--wide)) / 2 + var(--gutter)));
}
.hero-intro { padding: 12rem 0 3rem; }
.hero-intro p { margin: 0 0 1.1rem; max-width: 34rem; }
.hero-intro .meta { font-size: 0.95rem; color: var(--soft); }
.hero-figure {
  position: relative;
  margin: 0;
  min-height: 40rem;
  align-self: stretch;
}
.hero-figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(32% 0, 100% 0, 100% 100%, 0 100%);
}
/* The title sits in the middle of the photo's visible area. */
.hero-title {
  position: absolute;
  top: 50%;
  right: 6%;
  left: 18%;
  transform: translateY(-50%);
  margin: 0;
  text-align: center;
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.32;
  letter-spacing: -0.01em;
}
.hero-title span,
.hl {
  background: var(--ink);
  color: var(--paper);
  padding: 0.02em 0.28em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ------------------------------------------------------------- strip */
/* Greyscale slices edge to edge, a hairline of white between them. */
.strip {
  display: flex;
  gap: 8px;
  height: clamp(10rem, 22vw, 18rem);
  overflow: hidden;
  margin: 0 0 1rem;
}
.strip img {
  flex: 1 0 9rem;
  min-width: 0;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

/* -------------------------------------------------------------- body */
.doc {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2rem var(--gutter) 4rem;
}
.doc > *:not(.split):not(.wide) { max-width: var(--text); margin-left: auto; margin-right: auto; }
.doc h1,
.doc h2,
.doc h3,
.faq dt {
  font-family: var(--head);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.doc h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.25; margin: 2rem auto 1rem; }
.doc h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.35; margin-top: 4rem; margin-bottom: 1.25rem; }
.doc h3 { font-size: 1.25rem; margin-top: 2rem; margin-bottom: 0.5rem; }
.doc p, .doc ul, .doc ol, .doc dl { margin-top: 0; margin-bottom: 1.1rem; }
.doc ul, .doc ol { padding-left: 1.2rem; }
.doc li + li { margin-top: 0.5rem; }
.meta { color: var(--soft); font-size: 0.95rem; }
.lede { font-size: 1.25rem; }
.doc hr, .rule { border: 0; border-top: 1px solid var(--ink); margin: 4rem auto; }

/* A section beside a pair of circular photos. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  margin: 4rem 0;
}
.split h2 { margin-top: 0; }
.circles { position: relative; aspect-ratio: 1 / 0.9; }
.circles img { position: absolute; height: auto; border-radius: 50%; object-fit: cover; aspect-ratio: 1; }
.circles img:first-child { width: 72%; left: 0; top: 0; }
.circles img:last-child { width: 46%; right: 2%; bottom: 0; outline: 8px solid var(--paper); }

.note {
  border-left: 6px solid var(--ink);
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin: 2.5rem auto;
  font-size: 1rem;
}
.note p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin-bottom: 1.25rem; }
table { border-collapse: collapse; width: 100%; font-size: 1rem; }
caption { text-align: left; padding-bottom: 0.5rem; }
th { font-family: var(--head); font-weight: 600; font-size: 0.9rem; }
th, td { text-align: left; padding: 0.6rem 1rem 0.6rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { border-bottom: 2px solid var(--ink); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; padding-right: 0; }

.swatch { display: inline-block; width: 0.8em; height: 0.8em; margin-right: 0.45em; vertical-align: -0.05em; clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); }
.swatch.g { background: var(--g); }
.swatch.y { background: var(--y); }
.swatch.r { background: var(--r); }

.map-embed {
  position: relative;
  aspect-ratio: 16 / 10;
  margin: 2.5rem auto 0.6rem;
  overflow: hidden;
  background: #0b0d12;
}
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.faq dt { font-size: 1.35rem; line-height: 1.35; margin-top: 2.75rem; }
.faq dd { margin: 0.75rem 0 0; }
.faq dd p { margin-bottom: 0.75rem; }

pre {
  overflow-x: auto;
  background: var(--panel);
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ------------------------------------------------------------- footer */
.site-foot {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 3rem var(--gutter) 2.5rem;
  text-align: center;
}
.site-foot .cta {
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  line-height: 1.35;
  margin: 0 0 2rem;
}
.site-foot .cta a { text-decoration-thickness: 2px; }
.site-foot nav p { margin: 0 auto 2.5rem; max-width: 40rem; }
.site-foot .small { font-size: 0.8rem; color: var(--soft); max-width: 52rem; margin: 0 auto 0.5rem; }

/* -------------------------------------------------------------- phones */
@media (max-width: 760px) {
  body { font-size: 1.05rem; }
  .site-head { flex-direction: column; padding-top: 1.5rem; gap: 1.25rem; }
  .brand { flex-direction: row; align-items: center; font-size: 1.3rem; }
  .site-head nav { padding-top: 0; gap: 0.25rem 1.25rem; }
  .hero { grid-template-columns: 1fr; margin-top: 1.5rem; padding-left: 0; }
  .hero-figure { order: -1; min-height: 20rem; }
  .hero-figure img { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 88%); }
  .hero-title { left: var(--gutter); right: var(--gutter); font-size: clamp(1.6rem, 7.5vw, 2.2rem); }
  .hero-intro { padding: 1.5rem var(--gutter) 0; }
  .strip img { flex-basis: 6rem; }
  .split { grid-template-columns: 1fr; gap: 1.5rem; }
  .circles { max-width: 22rem; width: 100%; margin: 0 auto; }
}
