*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.portrait img { height: auto; }
p, h1, h2, h3, figure { margin: 0; }
svg {
  display: block; width: 1em; height: 1em; fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.icon-fill { fill: currentColor; stroke: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(1080px, calc(100% - 96px)); margin-inline: auto; }
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 20; padding: 10px 14px;
  border-radius: 8px; background: #fff; color: #000; transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-icon { width: 20px; height: 20px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; white-space: nowrap; }
.theme-switch { display: flex; gap: 4px; padding: 3px; }
.theme-switch button {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 0;
  background: none; color: inherit; font: inherit; font-size: 12px; line-height: 20px; cursor: pointer;
  transition: background-color .16s, color .16s;
}
.swatch { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 25%); }
[data-theme-option="paper"] .swatch { background: linear-gradient(135deg, #f4efe3 50%, #4a6a3a 50%); }
[data-theme-option="night"] .swatch { background: linear-gradient(135deg, #0e110f 50%, #b9e46f 50%); }
[data-theme-option="pop"] .swatch { background: linear-gradient(135deg, #ffd23f 50%, #ff8fae 50%); }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 64px; }
.hero-copy { flex: 1; min-width: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.project-head { display: flex; align-items: center; gap: 12px; }
.project-icon { display: grid; place-items: center; flex: none; }
.project-status { display: flex; align-items: center; gap: 8px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.access-head, .contact-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.access-name, .contact-label { display: inline-flex; align-items: center; gap: 8px; }
.access-url, .contact-value { display: block; overflow-wrap: anywhere; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

@media (max-width: 860px) {
  .wrap { width: calc(100% - 40px); }
  .nav { gap: 14px; }
  .nav-links { gap: 16px; }
  .theme-switch button { padding: 6px; }
  .theme-switch .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .swatch { width: 14px; height: 14px; }
}
@media (max-width: 520px) {
  .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .nav-links { gap: 12px; }
  .hero { flex-direction: column-reverse; align-items: flex-start; gap: 28px; }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
