:root {
  --background: #ffffff;
  --text: #181818;
  --muted: #666666;
  --line: #e7e5e1;
  --soft: #f7f6f3;
  --accent: #1f5f8b;
  --max-width: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--text);
  background: var(--background);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
}

a {
  color: var(--text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

.site-header,
.site-main,
.site-footer {
  width: calc(100% - 40px);
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0 22px;
  border-bottom: 1px solid var(--line);
}

.site-name {
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 18px;
  font-size: 0.92rem;
}

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

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

.site-main {
  flex: 1;
  padding: 56px 0 64px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 56px;
  align-items: start;
}

.hero__copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  line-height: 1.18;
}

h1 {
  margin: 0 0 22px;
  font-size: clamp(2.4rem, 7vw, 4.7rem);
  font-weight: 700;
}

h2 {
  margin: 0;
  font-size: 1.45rem;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.lede {
  max-width: 680px;
  color: #2a2a2a;
  font-size: 1.05rem;
}

.lede p:first-child,
.content-body p:first-child {
  margin-top: 0;
}

.hero__portrait {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 28%;
  border-radius: 4px;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 26px;
  font-size: 0.95rem;
}

.link-row a {
  color: var(--accent);
}

.section {
  margin-top: 64px;
}

.section-heading {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.focus-grid,
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.focus-grid > div,
.post-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--background);
}

.focus-grid > div {
  padding: 20px;
}

.focus-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.post-card__link {
  display: block;
  min-height: 100%;
  padding: 20px;
  color: inherit;
  text-decoration: none;
}

.post-card__meta,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.post-card h3 {
  margin-top: 12px;
}

.post-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.page-header,
.article {
  max-width: 760px;
}

.page-header {
  margin-bottom: 34px;
}

.page-header p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.article-header {
  margin-bottom: 28px;
}

.content-body {
  max-width: 760px;
}

.content-body h2 {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.content-body ul {
  padding-left: 1.2rem;
}

.content-body li {
  margin: 0.35rem 0;
}

.content-body strong {
  font-weight: 650;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 30px 0 0;
  list-style: none;
}

.pagination li a {
  display: inline-flex;
  min-width: 2rem;
  min-height: 2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  padding: 0 0.65rem;
  text-decoration: none;
}

.pagination li.active a,
.pagination li a:hover {
  border-color: var(--text);
  color: var(--text);
}

.pagination li.disabled {
  display: none;
}

.site-footer {
  padding: 26px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .site-header,
  .site-main,
  .site-footer {
    width: calc(100% - 32px);
  }

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

  .site-nav {
    justify-content: flex-start;
    width: 100%;
    max-width: calc(100vw - 32px);
    gap: 8px 14px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .lede {
    max-width: 100%;
    font-size: 1rem;
  }

  .hero__copy,
  .lede,
  .lede p,
  .section-heading,
  .section-heading p,
  .content-body,
  .content-body p {
    max-width: calc(100vw - 32px);
    overflow-wrap: break-word;
  }

  .hero__portrait {
    max-width: 220px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .focus-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 821px) and (max-width: 1020px) {
  .focus-grid,
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .site-nav {
    max-width: 320px;
  }

  .eyebrow,
  .hero__copy,
  .lede,
  .lede p,
  .section-heading,
  .section-heading p,
  .content-body,
  .content-body p {
    max-width: 320px;
  }

  h1 {
    font-size: 2.35rem;
  }
}
