:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #666666;
  --line: #e6e6e6;
}

html {
  font-size: 14px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* shared header */

.site-header {
  text-align: center;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-top: 18px;
}

.site-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* main-nav pages only */

.top-nav {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 400;
}

.top-nav-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

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

.top-nav a,
.top-nav span {
  display: inline-block;
  text-align: center;
}

.top-nav a.active {
  border-bottom: 1px solid #000;
  font-weight: 700;
}

@media (max-width: 480px) {
  .top-nav-row {
    gap: 10px;
  }
}