:root {
  --text: #1f1d5c;
  --heading: #111111;
  --link: #0b2bd6;
  --bg: #ffffff;
}

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Public Sans", system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.6;
}

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

#title-block-header { display: none; }

a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--link); }

/* drawing beside the name and icons; the text runs full width below */
.top { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2rem; }
.top p { margin: 0; }
.portrait { display: block; width: 7rem; height: auto; }
.drawing { flex: 0 0 8rem; }
.credit { display: block; margin-top: 0.4rem; font-size: 0.75rem; line-height: 1.35; opacity: 0.8; }
.icons { margin-top: 0.9rem; }
.icons p { display: flex; gap: 1rem; }
.icons a { color: var(--link); text-decoration: none; }
.icons svg { width: 1.5rem; height: 1.5rem; fill: currentColor; }
h1 {
  font-family: "Lato", system-ui, sans-serif;
  font-weight: 400;
  color: var(--heading);
  font-size: 2.2rem;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

strong { font-weight: 600; color: var(--heading); }
p { margin: 0 0 1.2rem; }
ul { padding-left: 1.3rem; margin: 0 0 1.6rem; }
li { margin-bottom: 0.5rem; }
li ul { margin: 0.5rem 0 0; list-style: circle; }
li strong { font-weight: 400; }

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

.updated { display: block; max-width: 36rem; margin: 3rem auto 2rem; padding: 0 1.25rem; font-size: 0.85rem; opacity: 0.6; }

@media (max-width: 600px) {
  body { font-size: 1.02rem; }
  .page { padding-top: 2.5rem; }
  .top { gap: 1rem; margin-bottom: 1.5rem; }
  .drawing { flex-basis: 6rem; }
  .portrait { width: 6rem; }
  h1 { font-size: 1.8rem; }
}

/* tabs, styled like the Morocco dashboard's research drawers */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  margin-bottom: 1.4rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(31, 29, 92, 0.15);
}
.tabs button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--link);
  cursor: pointer;
}
.tabs button:hover, .tabs button[aria-selected="true"] { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.tabs button[aria-selected="false"] { opacity: 0.75; }

@media (max-width: 600px) {
  .tabs { gap: 0.4rem 1.2rem; }
}

/* small lowercase labels inside the recent work tab */
.panel h3 {
  margin: 1.8rem 0 0.5rem;
  font-family: "Public Sans", system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--heading);
  opacity: 0.7;
}
.panel h3:first-child, .panel section:first-child h3 { margin-top: 0; }
.panel ul { margin-bottom: 0; }
