html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 1rem;
}

body > main {
  padding-block: 0;
}

main > section {
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

body > main {
  flex: 1;
}

.site-header {
  border-bottom: 1px solid var(--pico-muted-border-color);
}

.site-header .logo img {
  display: block;
  width: auto;
  height: 2.5rem;
  border-radius: 0;
}

.site-header .nav-links {
  align-items: center;
}

.site-header .nav-links a {
  margin: 0;
}

.site-header .nav-links a:not([role='button']) {
  color: var(--ink);
  font-weight: 600;
}

.site-header .nav-links a[aria-current='page'] {
  color: var(--brand);
}

.site-header .nav-links [role='button'] {
  white-space: nowrap;
  padding: 0.5rem 1.1rem;
}

.menu-toggle {
  display: none;
  margin: 0;
  padding: 0.25rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  line-height: 0;
}

.menu-toggle:focus,
.menu-close:focus {
  --pico-box-shadow: none;
  outline: none;
}

.site-header.overlay {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  border-bottom: 0;
}

.site-header.overlay .logo img {
  filter: brightness(0) invert(1);
}

.site-header.overlay .nav-links a:not([role='button']),
.site-header.overlay .menu-toggle {
  color: #fff;
}

@media (max-width: 1023px) {
  .site-header .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
}

.menu-panel {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 1.25rem;
  border: 0;
  background: #fff;
  color: var(--ink);
  opacity: 0;
  translate: 0 -1.5rem;
  transition-property: opacity, translate, overlay, display;
  transition-duration: 0.25s;
  transition-timing-function: ease;
  transition-behavior: allow-discrete;
}

.menu-panel:popover-open {
  display: flex;
  flex-direction: column;
  opacity: 1;
  translate: 0;
  animation: menu-in 0.3s ease;
}

@keyframes menu-in {
  from {
    opacity: 0;
    translate: 0 -1.5rem;
  }
}

@keyframes menu-fade {
  from {
    opacity: 0;
  }
}

.menu-panel::backdrop {
  background: transparent;
}

body:has(.menu-panel:popover-open) {
  overflow: hidden;
}

.menu-close {
  align-self: flex-end;
  margin: 0;
  padding: 0.25rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  line-height: 0;
}

.menu-panel nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.menu-panel ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin: 0;
  padding: 0;
}

.menu-panel li {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.menu-panel a {
  color: var(--ink);
  font-size: 2rem;
  font-weight: 700;
  text-decoration: none;
}

.menu-panel .menu-cta {
  display: inline-block;
  color: #fff;
  margin-top: 1rem;
  padding: 0.6rem 1.75rem;
  border-radius: var(--pico-border-radius);
  background: var(--brand);
  font-size: 1.5rem;
}

.menu-footer {
  margin: 0;
  color: var(--pico-muted-color);
  font-size: 0.875rem;
  text-align: center;
}

/* Pico zeroes all animation for reduced motion with !important; a short
   fade is still acceptable there, so this (more specific) rule restores it */
@media (prefers-reduced-motion: reduce) {
  .menu-panel[popover] {
    translate: 0;
    transition-property: opacity, overlay, display !important;
    transition-duration: 0.2s !important;
  }

  .menu-panel:popover-open {
    animation: menu-fade 0.2s ease !important;
  }
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: min(100svh, 56rem);
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgb(10 10 20 / 0.75) 0%,
    rgb(10 10 20 / 0.35) 55%,
    rgb(10 10 20 / 0.15) 100%
  );
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: 7rem 4rem;
}

.hero-content > * {
  max-width: 36rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
}

.hero p {
  color: rgb(255 255 255 / 0.85);
  font-size: 1.125rem;
}

.hero [role='button'] {
  margin-top: 0.5rem;
  padding: 0.9rem 1.75rem;
}

.section {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.section.alt {
  background: var(--surface-alt);
}

.section h2 {
  margin-bottom: 2rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.split {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.gallery figure {
  margin: 0;
}

.gallery a {
  display: block;
  overflow: hidden;
  border-radius: var(--pico-border-radius);
}

.gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.3s ease;
}

.gallery a:hover img {
  transform: scale(1.04);
}

.gallery figcaption {
  padding-top: 0.5rem;
  color: var(--pico-muted-color);
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
    gap: 1rem;
  }
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: 1.5rem;
}

.testimonials blockquote {
  margin: 0;
  padding: 1.5rem;
  border-left: 4px solid var(--brand);
  border-radius: var(--pico-border-radius);
  background: #fff;
}

.testimonials footer {
  font-size: 0.875rem;
}

.contact-form button {
  width: 100%;
}

.site-footer {
  padding-block: 3rem;
  background: var(--ink);
  color: rgb(255 255 255 / 0.7);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.site-footer p {
  margin: 0;
  color: inherit;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.site-footer li {
  padding: 0;
  list-style: none;
}

.site-footer a {
  margin: 0;
  color: #fff;
}

@media (max-width: 767px) {
  .site-footer .container {
    flex-direction: column-reverse;
    justify-content: center;
    text-align: center;
  }

  .site-footer ul {
    justify-content: center;
    column-gap: 1.5rem;
    row-gap: 0.5rem;
  }
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(0 0 0 / 0.92);
}

.lightbox figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin: 0;
  padding: 3.5rem 0.5rem 1rem;
}

.lightbox img {
  max-width: 100%;
  max-height: calc(100dvh - 7rem);
  object-fit: contain;
  border-radius: 0;
}

.lightbox figcaption {
  padding-top: 0.75rem;
  color: #fff;
  text-align: center;
}

.lightbox button {
  position: absolute;
  min-width: 3rem;
  min-height: 3rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(0 0 0 / 0.4);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

.lightbox .close {
  top: 0.5rem;
  right: 0.5rem;
}

.lightbox .prev,
.lightbox .next {
  top: 50%;
  translate: 0 -50%;
}

.lightbox .prev {
  left: 0.5rem;
}

.lightbox .next {
  right: 0.5rem;
}

.lightbox.single .prev,
.lightbox.single .next {
  display: none;
}

@media (max-width: 599px) {
  .lightbox .prev,
  .lightbox .next {
    display: none;
  }
}

/* Caps tall portraits; cover keeps the face in frame */
.about-photo {
  width: 100%;
  max-height: 22rem;
  object-fit: cover;
  object-position: center 25%;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.pager > * {
  display: inline-grid;
  place-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding-inline: 0.75rem;
  border-radius: var(--pico-border-radius);
}

.pager a {
  border: 1px solid var(--pico-muted-border-color);
  color: var(--ink);
  text-decoration: none;
}

.pager a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.pager a[aria-current='page'] {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

/* The arrow with nowhere to go, and the gap between page numbers */
.pager span {
  color: var(--pico-muted-color);
}
