/* Page frame: container, header, footer, sections. */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: 760px;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: var(--space-3);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.site-nav ul {
  display: flex;
  gap: var(--space-1);
}

.site-nav a {
  display: block;
  padding: var(--space-2) var(--space-3);
  border-radius: 999px;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.site-nav a.is-active {
  color: var(--ink);
  background: var(--surface-2);
}

@media (max-width: 560px) {
  .site-header .brand__name {
    display: none;
  }

  .site-nav a {
    padding-inline: var(--space-2);
  }
}

/* Sections */

.section {
  padding-block: var(--space-8);
}

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

.section--tinted {
  background: var(--surface-2);
}

.section__head {
  max-width: 620px;
  margin-bottom: var(--space-6);
}

.section__head h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

.section__head p {
  color: var(--muted);
  font-size: var(--text-lg);
}

.eyebrow {
  display: inline-block;
  margin-bottom: var(--space-3);
  color: var(--app);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Footer */

.site-footer {
  padding-block: var(--space-7) var(--space-6);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--text-sm);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: var(--space-6);
  padding-bottom: var(--space-6);
}

.site-footer__about .brand {
  margin-bottom: var(--space-3);
  color: var(--ink);
}

.site-footer__about p {
  max-width: 28ch;
}

.site-footer h2 {
  margin-bottom: var(--space-3);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0;
}

.site-footer__grid ul {
  display: grid;
  gap: var(--space-2);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}

.site-footer__bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer .brand:hover {
  text-decoration: none;
}

@media (max-width: 760px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer__about {
    grid-column: 1 / -1;
  }
}

.brand__mark rect {
  fill: var(--ink);
}

.brand__mark path {
  stroke: var(--bg);
}

.brand__mark circle {
  fill: var(--accent);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
