/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-block: var(--space-2);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-fg);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

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

.site-nav a {
  color: var(--color-fg);
  text-decoration: none;
  font-size: var(--font-body);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  text-decoration: underline;
}

.site-controls {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.site-controls button {
  font-family: var(--font-mono);
  font-size: var(--font-caption);
  background: none;
  border: 1px solid var(--color-fg);
  border-radius: var(--radius-sm);
  color: var(--color-fg);
  padding: var(--space-1) var(--space-2);
  cursor: pointer;
  line-height: 1;
}

.site-controls button:hover,
.site-controls button:focus-visible {
  background: var(--color-fg);
  color: var(--color-bg);
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 10;
  background-color: #0A0A0A;
  width: 100%;
  overflow-x: hidden;
  padding-block: 12px var(--space-4);
  padding-top: 24px;
}

[data-theme="light"] .site-footer {
  background-color: #FAFAFA;
}

.footer-bigline {
  width: 100%;
}

.footer-bigline-text {
  display: inline-block;
  white-space: nowrap;
}

.footer-name {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--footer-name-size, clamp(4rem, 11vw, 25rem));
  line-height: 0.9;
  letter-spacing: -0.02em;
  user-select: none;
}

.footer-name span {
  display: inline-block;
  will-change: transform;
}

.footer-meta {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: calc(var(--footer-name-size, clamp(4rem, 11vw, 25rem)) * 0.35);
  margin-left: 0.4em;
  user-select: none;
}

.footer-utility {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-4);
  font-size: var(--font-caption);
}

@media (min-width: 600px) {
  .footer-utility {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
  }
}

.footer-copyright {
  margin: 0;
  color: var(--color-fg);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer-links a {
  color: var(--color-fg);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  text-decoration: underline;
}
