/* Shared navigation stays on the page background, with plain text links. */
nav.site-header {
  position: fixed; inset: 0 0 auto; z-index: 1000; width: 100%;
  height: var(--header-height);
  padding: 0 var(--gutter);
  background: var(--color-page);
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--color-heading);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  max-width: var(--width-shell);
  height: 100%;
  margin: 0 auto;
}
.site-header .site-wordmark {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  font-style: normal;
  font-synthesis: none;
  letter-spacing: normal;
  line-height: 1.3;
}
.site-header-links { display: flex; align-items: center; gap: clamp(var(--space-4), 2.5vw, var(--space-8)); }
.site-header-links > a { font-size: 14px; line-height: 1.5; white-space: nowrap; }
.site-header a:hover, .site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.site-header .theme-btn {
  display: inline-flex;
  flex: 0 0 32px;
  width: 32px;
  height: 36px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 6px;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: inherit;
}
@media (hover: hover) and (pointer: fine) {
  .site-header .theme-btn:hover:not(:disabled) {
    background: var(--color-control-subtle-hover);
    color: var(--color-link-hover);
  }
}
.site-header .theme-btn .nav-icon { width: 18px; height: 18px; padding: 0; color: inherit; }
.site-header .theme-btn:hover .nav-icon { color: inherit; }
.site-header .theme-icon { width: 18px; height: 18px; color: inherit; }
.site-header .theme-icon .light-icon { display: none; }
.site-header .theme-icon .dark-icon { display: block; }
.dark-mode .site-header .theme-icon .light-icon { display: block; }
.dark-mode .site-header .theme-icon .dark-icon { display: none; }
.site-header a:focus-visible, .site-header button:focus-visible,
.site-footer a:focus-visible, .case-study-card-link:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 6px;
  border-radius: 3px;
}
.case-study-card-link:focus-visible { border-radius: var(--radius-card); }

/* One small static illustration accompanies the contact invitation. */
.site-footer {
  font-family: var(--font-body);
  width: 100%;
  margin-top: var(--space-4);
  padding: var(--space-8) var(--gutter) var(--space-8);
  background: var(--color-page);
  color: var(--color-heading);
}
.site-footer-inner { width: 100%; max-width: var(--width-shell); margin: 0 auto; }
.site-footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: center;
  gap: var(--space-12);
}
.site-footer .site-footer-heading {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 400;
  font-style: normal;
  font-synthesis: none;
  letter-spacing: normal;
  line-height: 1.25;
  margin: 0 0 var(--space-4);
  color: inherit;
}
.site-footer p { color: inherit; margin: 0; }
.site-footer-contact > p { font-size: 15px; line-height: 1.6; margin-bottom: var(--space-5); }
.site-footer-talk { font-size: 15px; text-decoration: underline; text-underline-offset: 5px; }
.footer-art { position: relative; width: 280px; max-width: 100%; aspect-ratio: 3 / 2; pointer-events: none; }
.footer-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: none; box-shadow: none; }
.footer-art .footer-art-dark { display: none; }
.dark-mode .footer-art-light { display: none; }
.dark-mode .footer-art .footer-art-dark { display: block; }
.site-footer-bottom { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-8); margin-top: var(--space-12); }
.site-footer .site-footer-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  font-style: normal;
  font-synthesis: none;
  letter-spacing: normal;
  line-height: 1.5;
  margin-bottom: var(--space-1);
}
.site-footer-role { font-size: 13px; line-height: 1.6; }
.site-footer-meta { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-2); font-size: 13px; line-height: 1.6; }
.site-footer-socials { display: flex; gap: var(--space-2); }
.site-footer .site-footer-copyright { font-size: 12px; }
@media (max-width: 600px) {
  .site-header-inner { gap: var(--space-3); }
  .site-header-links { gap: var(--space-3); }
  .site-header-links > a { font-size: 12px; }
  .site-footer { margin-top: var(--space-4); padding-top: var(--space-8); }
  .site-footer-top { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .site-footer .site-footer-heading { font-size: 30px; }
  .footer-art { width: 240px; }
  .site-footer-bottom { flex-direction: column; margin-top: var(--space-8); gap: var(--space-6); }
  .site-footer-meta { align-items: flex-start; }
}

/* Anchors have explicit states on every page, including visited links. */
.site-header a:any-link, .site-footer a:any-link { color: var(--color-link); }
.site-header a { text-decoration: none; }
.site-footer a { text-decoration: none; }
.site-footer .site-footer-talk { text-decoration: underline; }
.site-header a:hover, .site-footer a:hover { color: var(--color-link-hover); text-decoration: underline; }
.site-header a:active, .site-footer a:active { color: var(--color-link-active); }
.site-header a:focus-visible, .site-footer a:focus-visible { color: var(--color-link); outline: var(--focus-ring); }
