/* Inter, SIL Open Font License. See ../fonts/OFL.txt. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --bg: #f4f3ef;
  --surface: #ffffff;
  --ink: #14262c;
  --muted: #3e555c;
  --line: #d9e0e2;
  --accent: #0e4c5b;
  --accent-ink: #f5fbfb;
  --soft: #e5f1f3;
  --shadow: 0 18px 40px rgba(20, 38, 44, 0.05);
  --radius: 18px;
  --header: 4.5rem;
  --max: 70rem;
  --measure: 42rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent);
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: var(--soft);
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  padding: 0.6rem 0.9rem;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  border-radius: 8px;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-block: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.1rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 560;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.75fr);
  gap: 3.5rem;
  align-items: center;
  padding: 4.5rem 0 3.5rem;
}

.kicker {
  margin: 0 0 0.85rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-weight: 620;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  letter-spacing: -0.04em;
}

.positioning {
  margin: 1rem 0 0;
  max-width: 22ch;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.lead {
  margin: 1.15rem 0 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 620;
  line-height: 1.2;
}

.button-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.button-primary:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

.button-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.button-secondary:hover {
  text-decoration: none;
  border-color: var(--accent);
}

.button-meta {
  font-weight: 500;
  color: var(--muted);
}

.hero-media {
  position: relative;
  justify-self: end;
  width: min(100%, 22rem);
  padding: 0 0 0.85rem 0.85rem;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0.85rem 0 0 0;
  border: 1px solid var(--line);
  border-radius: 22px;
}

.hero-media img {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 20px;
  background: var(--soft);
}

.section {
  padding: 3.25rem 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 2.5vw, 2rem);
}

.prose {
  max-width: var(--measure);
  margin: 0;
}

.section-intro {
  margin: -0.25rem 0 1.5rem;
  max-width: var(--measure);
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  margin: 0;
  padding: 1.25rem 1.2rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-index {
  margin: 0 0 1.4rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.12rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: 1.25rem 1.75rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.timeline li:last-child {
  border-bottom: 1px solid var(--line);
}

.when {
  margin: 0.15rem 0 0;
  color: var(--accent);
  font-weight: 620;
  font-size: 0.95rem;
}

.role {
  margin: 0;
  font-size: 1.15rem;
}

.org,
.role-detail {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.contributions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.contributions:empty {
  display: none;
}

.contributions:not(:empty) + .contributions-empty {
  display: none;
}

.contributions a {
  font-weight: 620;
}

.contributions time {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.contributions-empty {
  margin: 0;
  max-width: var(--measure);
  padding: 1.1rem 1.2rem;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

.contact-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-nav {
  display: flex;
  gap: 1rem;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--ink);
}

.legal {
  padding: 3rem 0 4rem;
}

.legal h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  margin: 0 0 1.5rem;
}

.legal h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.25rem;
}

.legal p,
.legal address {
  max-width: 42rem;
  margin: 0.4rem 0 0;
}

.legal address {
  font-style: normal;
}

@media (max-width: 980px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .nav {
    width: 100%;
    gap: 0.45rem 0.7rem;
  }

  .nav a {
    font-size: 0.86rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2.4rem;
  }

  .hero-media {
    order: -1;
    justify-self: start;
    width: min(100%, 16rem);
  }

  .positioning {
    max-width: 24ch;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 1.75rem, var(--max));
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (forced-colors: active) {
  .button,
  .card,
  .brand-mark,
  .contributions-empty {
    border: 1px solid ButtonText;
  }
}

@media print {
  .site-header,
  .skip,
  .actions {
    position: static;
  }

  body {
    background: #fff;
    color: #000;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
  }
}
