:root {
  --max-width: 960px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background-color: #ffffff;
  color: #000000;
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1,
h2 {
  margin: 0 0 0.75em;
  line-height: 1.2;
}

h1 {
  font-weight: 600; /* semi-bold */
  font-size: clamp(2rem, 3vw, 2.5rem);
}

h2 {
  font-weight: 500; /* medium */
  font-size: clamp(1.3rem, 2.1vw, 1.6rem);
}

p {
  margin: 0 0 1em;
  font-size: 1rem;
}

.lead {
  font-size: 1.5rem;
  font-weight: 300;
}

/* Links inside content */
.content-section a {
  color: #232323;              /* keep black on white */
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.content-section a:hover {
  text-decoration-thickness: 1.5px;
}

/* Header */
.site-header {
  border-bottom: 0.5px solid #787878;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.logo {
  text-decoration: none;
  color: #000000;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

/* Navigation */
.site-nav {
  display: flex;
  gap: 1rem;
}

.nav-link {
  text-decoration: none;
  color: #000000;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  border-bottom-color: #000000;
}

.nav-link-active {
  border-bottom-color: #000000;
}

/* Sections */
.content-section {
  padding: 2.5rem 0 3rem;
}

.content-section .narrow {
  max-width: 42rem;
}

.image-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.image-item {
  flex: 1 1 0;
}

.image-item img {
  width: 100%;
  height: auto;
  display: block;
}

.content-split-right,
.content-split-left {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.content-split-left {
  flex-direction: row-reverse;
}

.content-text {
  flex: 2 1 0;
}

.content-photo {
  flex: 1 1 0;
}

.content-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.mobile-only {
  display: none;
}

/* Footer */
.site-footer {
  border-top: 0.5px solid #787878;
  padding: 1.5rem 0 2rem;
  margin-top: 2rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
  text-align: center;
  color: #787878;
}

/* Mobile */
@media (max-width: 640px) {
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .content-split-right,
  .content-split-left {
    flex-direction: column;
  }

  .mobile-only {
    display: inline;
  }

  .image-row {
    justify-content: center;
  }

  .image-row .image-item {
    flex: 0 0 calc(33.333% - 0.5rem);
  }
}
