:root {
  color-scheme: light;
  --page-padding-x: clamp(24px, 3.3vw, 64px);
  --page-padding-y: clamp(24px, 3vw, 52px);
  --header-height: 54px;
  --fade-duration: 900ms;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  overflow: hidden;
  background: #fff;
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid #000;
  outline-offset: 5px;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  min-height: var(--header-height);
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: var(--page-padding-y) var(--page-padding-x) 0;
  background: #fff;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
}

.brand img {
  display: block;
  width: clamp(112px, 9vw, 144px);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(20px, 2.5vw, 44px);
  padding-top: 2px;
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.page-main {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: calc(var(--page-padding-y) + var(--header-height) + 20px) var(--page-padding-x) var(--page-padding-y);
}

.slideshow {
  position: relative;
  width: min(100%, 1500px);
  height: min(72svh, 1000px);
  overflow: hidden;
  background: #fff;
}

.slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity var(--fade-duration) ease-in-out;
}

.slide.is-active {
  z-index: 1;
  opacity: 1;
}

@media (max-width: 600px) {
  :root {
    --page-padding-x: 18px;
    --page-padding-y: 20px;
    --header-height: 80px;
  }

  .site-header {
    gap: 18px;
  }

  .brand img {
    width: 96px;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 7px 16px;
    max-width: 210px;
    font-size: 12px;
  }

  .page-main {
    padding-top: calc(var(--page-padding-y) + var(--header-height) + 12px);
  }

  .slideshow {
    height: min(70svh, 720px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
