@font-face { font-family: "Plex Sans"; src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Serif"; src: url("/fonts/ibm-plex-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Serif"; src: url("/fonts/ibm-plex-serif-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --paper: #f7f9fa;
  --panel: #edf1f4;
  --ink: #17232d;
  --muted: #566673;
  --rule: #d6dee4;
  --steel: #2f6585;
  --sans: "Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Plex Serif", "Iowan Old Style", Charter, Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121a20;
    --panel: #18222a;
    --ink: #e5ebef;
    --muted: #97a7b3;
    --rule: #2a3741;
    --steel: #82b5d3;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  text-rendering: optimizeLegibility;
}
.serif { font-family: var(--serif); }

a { color: var(--steel); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 66rem; margin: 0 auto; padding: 0 1.75rem; }

/* Header */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--rule);
}
.top .home { color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: 0.01em; }
.top nav.langs { display: flex; flex-wrap: nowrap; gap: 1.25rem; }
.top nav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.top nav a:hover { color: var(--steel); }
.top nav.langs a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* Hero: identity on the left, portrait on the right */
.hero { padding: 4.5rem 0 4rem; border-bottom: 1px solid var(--rule); }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 19rem;
  gap: 4rem;
  align-items: center;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.7rem, 6.5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}
.hero .role {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--steel);
  margin: 0 0 1.6rem;
}
.hero .thesis {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.3vw, 1.45rem);
  line-height: 1.45;
  max-width: 32rem;
  margin: 0 0 2.2rem;
}

/* Key facts */
dl.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.45rem 1.5rem;
  margin: 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
  max-width: 32rem;
}
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }

/* Portrait with registration ticks at the corners */
figure.portrait { position: relative; margin: 0; padding: 0.9rem; }
figure.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--panel);
  border-radius: 2px;
}
figure.portrait::before,
figure.portrait::after {
  content: "";
  position: absolute;
  width: 1.6rem;
  height: 1.6rem;
  border: 0 solid var(--steel);
  pointer-events: none;
}
figure.portrait::before { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
figure.portrait::after { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }

/* Content rows: heading column, text column */
.row {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 2.5rem;
  padding: 3.25rem 0;
  border-bottom: 1px solid var(--rule);
}
.row > h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
}
.row .body { max-width: 40rem; }
.row .body > :first-child { margin-top: 0; }
.row .body > :last-child { margin-bottom: 0; }
.lead { font-size: 1.18rem; line-height: 1.7; }

.row .body h3 { font-size: 1.02rem; font-weight: 600; margin: 2rem 0 0.35rem; }
.row .body h3:first-child { margin-top: 0; }

dl.faq { margin: 0; }
dl.faq dt { font-weight: 600; margin-top: 1.6rem; }
dl.faq dt:first-child { margin-top: 0; }
dl.faq dd { margin: 0.3rem 0 0; }

ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { margin: 0.3rem 0; }

/* Legal pages */
.doc { padding: 3.5rem 0 2rem; max-width: 42rem; }
.doc h1 { font-family: var(--serif); font-size: 2.3rem; font-weight: 500; line-height: 1.15; margin: 0 0 0.5rem; }
.doc .sub { color: var(--muted); margin: 0 0 2rem; }
.doc h2 { font-size: 1.08rem; font-weight: 600; margin: 2rem 0 0.5rem; }
.doc p, .doc ul { margin: 0 0 0.9rem; }
.doc address { font-style: normal; margin: 0 0 0.9rem; }

footer.wrap {
  padding-top: 2rem;
  padding-bottom: 3rem;
  color: var(--muted);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
footer.wrap a { color: var(--muted); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr) 14rem; gap: 2.5rem; }
  .row { grid-template-columns: 10rem minmax(0, 1fr); gap: 2rem; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 1.25rem; }
  .hero { padding: 2.5rem 0 3rem; }
  .hero .wrap { grid-template-columns: 1fr; gap: 2rem; }
  figure.portrait { order: -1; width: 12rem; padding: 0.7rem; }
  .row { grid-template-columns: 1fr; gap: 0.75rem; padding: 2.25rem 0; }
}
@media (max-width: 420px) {
  .top { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
  .top nav.langs { gap: 1rem; }
}

/* Keep every horizontal rule on the same text column */
.top, .hero .wrap {
  border-bottom: 0;
  background: linear-gradient(var(--rule), var(--rule)) center bottom / calc(100% - 3.5rem) 1px no-repeat;
}
.hero { border-bottom: 0; padding-bottom: 0; }
.hero .wrap { padding-bottom: 4rem; }
@media (max-width: 640px) {
  .top, .hero .wrap { background-size: calc(100% - 2.5rem) 1px; }
  .hero .wrap { padding-bottom: 3rem; }
}
