:root {
  --bg: #fff;
  --text: #171717;
  --muted: #6f6f6f;
  --line: #e8e8e8;
  --accent: #315b8c;
  --max: 920px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* Header */

.site-header {
  padding: 28px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 650;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: #555;
}

.nav a.active {
  color: var(--text);
}

/* Homepage hero */

.hero {
  padding: 74px 0 68px;
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 60px;
  align-items: start;
}

.eyebrow {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin: 0 0 18px;
  font-weight: 650;
}

.hero h2 {
  font-size: 20px;
  line-height: 1.4;
  font-weight: 500;
  margin: 0 0 22px;
  color: #444;
}

.hero p {
  max-width: 680px;
  color: #444;
  font-size: 18px;
}

/* Portrait */

.portrait {
  width: 190px;
  height: 230px;
  border-radius: 4px;
  object-fit: cover;
  background: #f1f1f1;
  filter: none !important;
  -webkit-filter: none !important;
}

/* General image note */

.image-note {
  font-size: 11px;
  color: #aaa;
  margin-top: 7px;
  line-height: 1.4;
}

/* Sections */

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

.section:first-of-type {
  border-top: 0;
}

.section h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #777;
  margin: 0 0 25px;
  font-weight: 650;
}

.intro {
  max-width: 720px;
}

/* Cards */

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.card {
  background: #fff;
  padding: 25px;
}

.card h3 {
  margin: 0 0 5px;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.55;
}

.meta {
  font-size: 13px;
  color: #888;
  margin-bottom: 12px;
}

.arrow {
  display: inline-block;
  margin-top: 17px;
  font-size: 14px;
  color: #555;
}

/* Lists */

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

.list-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 25px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.list-item .label {
  font-size: 13px;
  color: #888;
}

.list-item h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.list-item p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

/* Internal pages */

.page {
  padding: 72px 0;
}

.page-title {
  font-size: 46px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 0 0 18px;
}

.page-lede {
  font-size: 18px;
  color: #555;
  max-width: 700px;
  margin-bottom: 55px;
}

.article {
  max-width: 720px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.article:first-child {
  border-top: 0;
}

.article h2 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}

.article h3 {
  font-size: 20px;
  margin: 34px 0 10px;
}

.article p {
  color: #3f3f3f;
}

.article ul {
  color: #3f3f3f;
}

/* Tags */

.tag {
  display: inline-block;
  font-size: 12px;
  color: #777;
  margin-right: 12px;
}

/* Footer */

.footer {
  padding: 55px 0 70px;
  border-top: 1px solid var(--line);
  color: #777;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.links {
  display: flex;
  gap: 18px;
}

/* Utility styles */

.small {
  font-size: 13px;
  color: #777;
}

.quote {
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.35;
  color: #333;
  margin: 35px 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.two-col h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 99px;
  font-size: 12px;
  color: #666;
}

.notice {
  border-left: 2px solid #ddd;
  padding-left: 18px;
  color: #666;
  font-size: 14px;
}

/* Mobile */

@media (max-width: 700px) {
  .wrap {
    padding: 0 20px;
  }

  .site-header {
    align-items: flex-start;
  }

  .nav {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 55px 0;
  }

  .portrait {
    width: 130px;
    height: 160px;
    order: -1;
  }

  .hero h1 {
    font-size: 42px;
  }

  .grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .list-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .page {
    padding: 50px 0;
  }

  .page-title {
    font-size: 40px;
  }

  .footer {
    flex-direction: column;
  }
}
