:root {
  --page: #ffffff;
  --ink: #202224;
  --ink-soft: #4d545c;
  --muted: #6b737b;
  --link: #234f78;
  --rule: #d7d9dd;
  --rule-soft: #e7e9ec;
  --max-width: 860px;
  --name-size: clamp(2rem, 4vw, 2.6rem);
  --font-body: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-heading: "Newsreader", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--page);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

.site-header,
.site-main,
.site-footer {
  width: min(var(--max-width), 92vw);
  margin-left: auto;
  margin-right: auto;
}

.site-header {
  padding: 52px 0 22px;
  border-bottom: 1px solid var(--rule);
}

.home-page .site-header {
  padding-bottom: 12px;
}

.brand {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: var(--name-size);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.97rem;
  line-height: 1.5;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.site-main {
  padding: 26px 0 54px;
}

.home-page .site-main {
  padding-top: 12px;
}

.page-intro {
  padding: 8px 0 30px;
  border-bottom: 1px solid var(--rule);
}

.page-intro-home {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.9fr);
  gap: 20px 42px;
  align-items: end;
}

.page-intro h1 {
  max-width: 24ch;
  margin: 0 0 18px;
  color: var(--ink);
  font-size: var(--name-size);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

.page-intro-home h1 {
  max-width: none;
  margin-bottom: 0;
}

.page-intro-copy {
  min-width: 0;
}

.lead,
.section p,
.entry-content p {
  color: var(--ink-soft);
  line-height: 1.76;
  font-size: 1rem;
}

.lead {
  max-width: 68ch;
  margin: 0;
}

.page-intro-home .lead {
  max-width: 34ch;
  margin-left: auto;
}

.quick-links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.text-link {
  color: var(--link);
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--ink);
}

.section {
  display: grid;
  grid-template-columns: minmax(150px, 180px) minmax(0, 1fr);
  gap: 16px 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}

.section-home-about {
  grid-template-columns: minmax(0, 1fr);
  padding-top: 0;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px 30px;
  align-items: start;
}

.about-copy {
  min-width: 0;
}

.section:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.section h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 600;
  line-height: 1.2;
}

.section-body {
  min-width: 0;
}

.section p:last-child,
.entry-content p:last-child {
  margin-bottom: 0;
}

.entry-list {
  display: grid;
  gap: 18px;
}

.entry {
  display: grid;
  grid-template-columns: minmax(120px, 150px) minmax(0, 1fr);
  gap: 10px 24px;
  padding-top: 18px;
  border-top: 1px solid var(--rule-soft);
}

.entry-list > .entry:first-child {
  padding-top: 0;
  border-top: 0;
}

.entry-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.entry-content h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: clamp(1.28rem, 2.5vw, 1.6rem);
  font-weight: 600;
  line-height: 1.22;
}

.entry-content p {
  margin: 0 0 10px;
}

.entry-meta-highlight {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.entry-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 10px;
}

.contact-link {
  color: var(--link);
  font-size: 1.02rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--ink);
}

.site-footer {
  padding: 16px 0 42px;
  border-top: 1px solid var(--rule);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 720px) {
  .site-header {
    padding-top: 38px;
  }

  .brand {
    margin-bottom: 12px;
  }

  .page-intro h1 {
    max-width: 100%;
  }

  .page-intro-home {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .page-intro-home .lead {
    max-width: 100%;
    margin-left: 0;
  }

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

  .quick-links,
  .entry-links {
    gap: 8px 14px;
  }
}
