/* Swiss magazine: cream paper, one forest green, Helvetica, big display type beside small narrow text,
   hairline rules, figure captions and a folio line with a page number. No images required, no motion. */
:root {
  --paper: #ecebdf;
  --ink: #1f4d3a;          /* 8.0:1 on the paper colour */
  --tint-a: #cbd6c4;
  --tint-b: #a3b9a1;
  --tint-c: #7a9a80;
  --gap: clamp(1rem, 3vw, 2.5rem);
}
* { box-sizing: border-box; }
html { font: 14px/1.45 "Helvetica Neue", Helvetica, Arial, "Nimbus Sans", sans-serif; color: var(--ink); background: var(--paper); -webkit-text-size-adjust: 100%; }
body { margin: 0 auto; max-width: 78rem; padding: 0 var(--gap); min-height: 100vh; background: var(--paper); }
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; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--gap); top: 0.5rem; background: var(--paper); padding: 0.25rem 0.5rem; z-index: 2; }

/* header */
.bar { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.25rem 2rem; padding: 1.5rem 0 0; font-weight: 600; }
.bar a { text-decoration: none; }
.bar nav { display: flex; gap: 2rem; flex-wrap: wrap; }
.bar a:hover, .bar a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }

/* type */
h1, h2, h3 { margin: 0; font-weight: 400; }
h1 { font-size: clamp(2.4rem, 7vw, 5.5rem); line-height: 1.02; letter-spacing: -0.03em; margin: clamp(3rem, 8vw, 6rem) 0 1.25rem; }
.lead { font-size: clamp(1.2rem, 2.4vw, 1.75rem); line-height: 1.2; letter-spacing: -0.01em; max-width: 28ch; margin: 0 0 1rem; }
h2 { font-size: 14px; font-weight: 600; }
h3 { font-size: 14px; font-weight: 600; margin: 1.6rem 0 0.5rem; }
h3:first-child { margin-top: 0; }
p, ul, ol { margin: 0 0 0.9rem; }
ul, ol { padding-left: 1.1rem; }
ul.plain { list-style: none; padding: 0; }
ul.plain li { margin-bottom: 0.8rem; }
strong { font-weight: 600; }
em { font-style: italic; }
.note { margin-bottom: 0; }
.label { font-weight: 600; margin-right: 0.6rem; }
ul.plain li .label { display: block; margin: 0; }
.facts li .label { display: inline-block; min-width: 8.5rem; }
.ref { margin-bottom: 0.9rem; max-width: 36rem; }

/* sections: label column left, text column right, hairline above */
main > section:not(.spread) { display: grid; grid-template-columns: 1fr; gap: 0.5rem 1.25rem; border-top: 1px solid var(--ink); padding-top: 0.6rem; margin-top: 2.25rem; }
main > section:not(.spread) > h2 { grid-column: 1; }
main > section:not(.spread) > *:not(h2) { grid-column: 1; max-width: 38rem; }
@media (min-width: 52rem) {
  main > section:not(.spread) { grid-template-columns: 13rem minmax(0, 1fr); }
  main > section:not(.spread) > *:not(h2) { grid-column: 2; }
}

/* dated rows (education, experience, awards, presentations) */
.row { display: grid; grid-template-columns: 6rem 1fr; gap: 0 1rem; }
.row .what p { margin-bottom: 0.25rem; }
.row ul { margin-bottom: 0.9rem; }

/* home spread: small text left, big statement right */
.spread { display: grid; gap: 2rem 2.5rem; margin-top: clamp(3rem, 8vw, 6rem); }
.small { max-width: 21rem; }
.bio p:first-child { font-weight: 600; }
.display { font-size: clamp(1.9rem, 4.4vw, 3.6rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0; max-width: 18ch; }
@media (min-width: 52rem) {
  .spread { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
}

/* abstract graphics */
.fig-wide { margin: clamp(2.5rem, 6vw, 4.5rem) 0 0; }
.fig-wide svg { display: block; width: 100%; height: auto; }
.bg-a { fill: var(--tint-a); } .bg-b { fill: var(--tint-b); } .bg-c { fill: var(--tint-c); } .bg-d { fill: var(--ink); }
.fg-ink { fill: var(--ink); } .fg-paper { fill: var(--paper); }
.figs-row { display: grid; gap: 2rem 2.5rem; margin-top: 2.25rem; }
@media (min-width: 52rem) { .figs-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.tiles li { display: flex; flex-direction: column; justify-content: space-between; padding: 0.6rem 0.7rem; min-height: 8.5rem; font-weight: 600; }
.tiles small { font-weight: 400; font-size: 12px; }
.markets { grid-template-columns: repeat(4, 1fr); }
.capitals { grid-template-columns: repeat(2, 1fr); }
.capitals li { min-height: 4.1rem; }
.tiles .t-a { background: var(--tint-a); color: #13301f; }
.tiles .t-b { background: var(--tint-b); color: #13301f; }
.tiles .t-c { background: var(--tint-c); color: #0d261a; }
.tiles .t-d { background: var(--ink); color: var(--paper); }

/* figures */
.figs { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1rem; max-width: none !important; }
figure { margin: 0; }
figcaption { font-size: 12px; margin-top: 0.4rem; }
.fig-code { margin: 0; background: var(--ink); color: var(--paper); padding: 1.1rem 1.25rem; font: 12.5px/1.6 ui-monospace, Menlo, Consolas, monospace; white-space: pre; overflow-x: auto; min-width: min(100%, 21rem); }
.squares { display: grid; grid-template-columns: repeat(9, 1.9rem); gap: 3px; }
.squares i { display: block; width: 1.9rem; height: 1.9rem; }
.t-a { background: var(--tint-a); } .t-b { background: var(--tint-b); } .t-c { background: var(--tint-c); } .t-d { background: var(--ink); }

/* long text from markdown */
.prose pre { margin: 0 0 0.9rem; background: var(--ink); color: var(--paper); padding: 1rem 1.25rem; overflow-x: auto; font: 12.5px/1.6 ui-monospace, Menlo, Consolas, monospace; }
.prose code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.93em; }
.prose pre code { font-size: inherit; }

/* folio */
footer { margin-top: clamp(4rem, 10vw, 7rem); padding-bottom: 1.5rem; }
.folio { display: flex; align-items: center; gap: 1.25rem; font-size: clamp(1.1rem, 2.2vw, 1.6rem); }
.folio-rule { flex: 1; height: 1px; background: var(--ink); }
.legal { font-size: 12px; margin: 0.75rem 0 0; }

@media (max-width: 34rem) {
  .row { grid-template-columns: 1fr; }
  .bar nav { gap: 1.25rem; }
  .squares { grid-template-columns: repeat(9, 1fr); width: 100%; }
  .squares i { width: auto; aspect-ratio: 1; height: auto; }
}
@media print { html, body { background: #fff; } }
