:root {
  --bg: #edf2f7;
  --surface: #f8fbfd;
  --text: #16202a;
  --muted: #5d6a76;
  --line: #d3dbe4;
  --accent: #214f7a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", "Avenir Next", "Segoe UI", sans-serif;
  background-image:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0)),
    radial-gradient(circle at top right, rgba(33, 79, 122, 0.08), transparent 24%);
}

a {
  color: inherit;
}

.site-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 56px;
  padding: 32px 0 64px;
}

.sidebar-inner {
  position: sticky;
  top: 24px;
  padding: 8px 0;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  font-weight: 600;
  line-height: 1.02;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.4rem);
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  max-width: 14ch;
}

h3 {
  font-size: 1.18rem;
}

.intro-location,
.intro-title,
.intro-summary,
.compact-list p,
.timeline-points,
.language-row span,
.stats-list dd,
.lead {
  color: var(--muted);
  line-height: 1.72;
}

.intro-title {
  margin: 14px 0 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
}

.intro-location {
  margin: 10px 0 0;
  font-weight: 500;
}

.intro-summary {
  margin: 20px 0 0;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-top: 22px;
}

.inline-links a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.inline-links a:hover {
  border-bottom-color: var(--accent);
}

.stats-list {
  margin: 32px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 20px;
}

.stats-list div {
  display: grid;
  gap: 5px;
}

.stats-list dt {
  font-family: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 1.85rem;
  color: var(--accent);
}

.stats-list dd {
  margin: 0;
}

.content {
  min-width: 0;
}

.section,
.footer {
  padding: 0 0 30px;
  border-bottom: 1px solid var(--line);
}

.section + .section,
.section + .footer {
  margin-top: 34px;
}

.lead {
  max-width: 60ch;
  margin: 18px 0 0;
  font-size: 1.04rem;
}

.compact-list {
  display: grid;
  gap: 20px;
  margin-top: 26px;
}

.compact-list article {
  padding-left: 18px;
  border-left: 2px solid rgba(33, 79, 122, 0.22);
}

.compact-list p {
  margin: 8px 0 0;
}

.timeline {
  display: grid;
  gap: 26px;
  margin-top: 26px;
}

.timeline-item {
  padding-top: 2px;
}

.timeline-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.timeline-meta {
  flex: 0 0 220px;
  text-align: right;
}

.timeline-meta span {
  display: block;
  color: var(--muted);
}

.timeline-company {
  margin: 8px 0 0;
  font-weight: 600;
  color: var(--accent);
}

.timeline-points {
  margin: 16px 0 0;
  padding-left: 18px;
}

.timeline-points li + li {
  margin-top: 9px;
}

.tag-list,
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tag-list span,
.chip {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.92rem;
  color: var(--text);
}

.section-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.language-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.language-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.footer {
  border-bottom: 0;
  padding-bottom: 0;
}

@media (max-width: 980px) {
  .site-shell {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .sidebar-inner {
    position: static;
  }

  .timeline-top,
  .section-split,
  .language-row {
    grid-template-columns: 1fr;
  }

  .timeline-top {
    display: grid;
    gap: 8px;
  }

  .timeline-meta {
    flex: none;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 24px, 1180px);
    padding: 20px 0 44px;
  }

  h1 {
    font-size: clamp(2.1rem, 12vw, 3.2rem);
  }

  .inline-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .section + .section,
  .section + .footer {
    margin-top: 28px;
  }
}
