:root {
  color-scheme: light dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

.column {
  width: min(42rem, 100%);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.site-nav {
  margin-bottom: 3rem;
  font-size: 0.9rem;
}

.site-nav a {
  color: var(--muted);
}

header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.logo {
  display: block;
  width: 6rem;
  height: 6rem;
  margin: 0 auto 1.25rem;
  border-radius: 1.35rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.75rem, 9vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.tagline {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.15rem;
}

p {
  margin: 0 0 1.25rem;
}

h2 {
  margin: 3rem 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

ul {
  margin: 0;
  padding: 0.25rem 0 0 1.25rem;
}

li {
  padding: 0.35rem 0;
}

li::marker {
  color: var(--accent);
}

.requirements {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}

footer p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--text);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
.shots:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.shots {
  display: flex;
  gap: 1.25rem;
  margin: 0 -0.5rem;
  padding: 0.5rem 0.5rem 1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  list-style: none;
}

.shots > li {
  flex: 1 0 10rem;
  padding: 0;
  scroll-snap-align: center;
}

.shots figure {
  margin: 0;
}

.shots a {
  display: block;
  border-radius: 1.35rem;
  box-shadow: 0 0 0 1px var(--rule);
}

.shots a:hover {
  outline: 1px solid var(--accent);
}

.shots picture {
  display: block;
  border-radius: inherit;
}

.shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

.shots figcaption {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
  text-align: center;
}

.gallery-note {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

body.viewer-open {
  overflow: hidden;
}

.viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 4rem 1rem 1.5rem;
  border: 0;
  background: #141419;
  color: #f4f4f8;
  align-items: center;
  justify-content: center;
  gap: clamp(0.25rem, 2vw, 1.5rem);
}

.viewer[open] {
  display: flex;
}

.viewer::backdrop {
  background: #141419;
}

.viewer figure {
  min-width: 0;
  margin: 0;
  text-align: center;
}

.viewer img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 76vh;
  max-height: 76dvh;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 1.35rem;
}

.viewer figcaption {
  max-width: 24rem;
  margin-top: 1rem;
  font-size: 0.85rem;
}

.viewer button {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid #ffffff40;
  border-radius: 50%;
  background: #ffffff18;
  color: #fff;
  font: 1.4rem/1 system-ui;
  cursor: pointer;
}

.viewer button:hover {
  background: #ffffff30;
}

.viewer button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.viewer .close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

@media (max-width: 36rem) {
  .column {
    padding-top: 1.5rem;
  }

  .site-nav {
    margin-bottom: 2rem;
  }
}
