:root {
  --white: #ffffff;
  --black: #050505;
  --muted: #727272;
  --line: rgba(5, 5, 5, 0.18);
  --red: #e30613;
  --shell: min(1600px, calc(100% - 64px));
  --font-sans:
    "Avenir Next",
    "Helvetica Neue",
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    sans-serif;
  --font-serif:
    "Iowan Old Style",
    "Baskerville",
    "Songti SC",
    "Noto Serif CJK SC",
    "Source Han Serif SC",
    Georgia,
    "Times New Roman",
    serif;
  --font-display:
    "Helvetica Neue",
    "Arial Black",
    Arial,
    sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-serif);
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

body.lightbox-open {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  color: inherit;
  font: inherit;
}

::selection {
  background: var(--red);
  color: var(--white);
}

.hero {
  display: grid;
  width: var(--shell);
  min-height: min(720px, 76svh);
  align-content: space-between;
  margin: 0 auto;
  padding: clamp(54px, 8vw, 110px) 0 28px;
}

.hero__title-wrap {
  align-self: center;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1 {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4.4rem, 15.5vw, 15rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.78;
  text-transform: uppercase;
}

.hero__red {
  color: var(--red);
}

.hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--black);
  text-align: center;
}

.hero__bottom p {
  max-width: 520px;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.7;
}

.hero__tagline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.hero__tagline span:first-child {
  color: var(--red);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__tagline span:last-child {
  font-family: var(--font-serif);
}

.year-nav {
  position: sticky;
  z-index: 25;
  top: 0;
  display: flex;
  width: 100%;
  min-height: 68px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 34px;
  padding: 10px max(28px, calc((100vw - 1600px) / 2));
  border-top: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
  background: var(--white);
}

.year-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  letter-spacing: 0;
  transition:
    color 160ms ease,
    font-weight 160ms ease;
}

.year-nav a::before {
  width: 5px;
  height: 5px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--red);
  content: "";
  opacity: 0;
  transition: opacity 160ms ease;
}

.year-nav a:hover,
.year-nav a:focus-visible {
  color: var(--black);
}

.year-nav a[aria-current="true"] {
  color: var(--black);
  font-weight: 500;
}

.year-nav a[aria-current="true"]::before {
  opacity: 1;
}

.section {
  width: var(--shell);
  margin: 0 auto;
}

.archive {
  padding: 100px 0 40px;
}

.archive__heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.55fr);
  gap: 48px;
  align-items: end;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--black);
}

.archive__heading h2,
.about h2,
.contact h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5vw, 5.4rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.04;
}

.archive__heading > p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.year-section {
  padding: 76px 0 20px;
  border-bottom: 1px solid var(--black);
  scroll-margin-top: 70px;
}

.year-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.year-heading h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(3.8rem, 8vw, 8.8rem);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 0.86;
}

.year-gallery {
  columns: 3 310px;
  column-gap: 20px;
}

.photo-card {
  break-inside: avoid;
  margin: 0 0 34px;
  animation: card-in 480ms ease both;
  animation-delay: calc(var(--order, 0) * 30ms);
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.photo-card__button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #ededed;
  cursor: zoom-in;
  overflow: hidden;
}

.photo-card img {
  width: 100%;
  height: auto;
  transition:
    opacity 220ms ease,
    transform 480ms ease;
}

.photo-card__button:hover img,
.photo-card__button:focus-visible img {
  opacity: 0.84;
  transform: scale(1.01);
}

.noscript {
  padding: 24px;
  border: 1px solid var(--black);
  background: var(--white);
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(340px, 0.72fr);
  gap: clamp(48px, 10vw, 150px);
  padding: 130px 0;
}

.about__intro {
  position: sticky;
  top: 108px;
  align-self: start;
}

.about h2 {
  max-width: 760px;
}

.about__body {
  padding-top: 34px;
}

.about__body p {
  margin: 0 0 24px;
  color: var(--muted);
}

.about__body .lead {
  color: var(--black);
  font-size: clamp(1.35rem, 2.4vw, 2.15rem);
  line-height: 1.4;
}

.contact {
  display: flex;
  width: 100%;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  padding: clamp(72px, 10vw, 140px) max(32px, calc((100vw - 1600px) / 2));
  background: var(--black);
  color: var(--white);
}

.contact h2 {
  max-width: 920px;
}

.contact .eyebrow {
  color: rgba(255, 255, 255, 0.52);
}

.contact__mail {
  flex: none;
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 0.9rem;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.footer {
  display: flex;
  width: var(--shell);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  padding: 28px 0 38px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
}

.footer p {
  margin: 0;
}

.lightbox {
  width: min(1520px, calc(100vw - 24px));
  max-width: none;
  height: min(960px, calc(100svh - 24px));
  max-height: none;
  padding: 0;
  border: 0;
  background: var(--black);
  color: var(--white);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.9);
}

.lightbox[open] {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.lightbox__top,
.lightbox__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 18px;
}

.lightbox__top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.lightbox__bottom {
  justify-content: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.lightbox__bottom a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  text-decoration-color: var(--red);
  text-underline-offset: 4px;
}

.lightbox__counter {
  margin: 0;
  color: var(--red);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.lightbox__stage {
  position: relative;
  display: grid;
  min-height: 0;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 8px;
  padding: 14px;
  touch-action: pan-y;
}

.lightbox__figure {
  display: grid;
  min-width: 0;
  min-height: 0;
  height: 100%;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  margin: 0;
}

.lightbox__figure img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.lightbox__figure figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 0 8px 4px;
}

.lightbox__figure figcaption span:first-child {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 500;
}

.lightbox__figure figcaption span:last-child {
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 500;
  text-align: right;
}

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  transform: scale(1.05);
}

.icon-button svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.icon-button--light {
  color: rgba(255, 255, 255, 0.82);
}

.icon-button--light:hover,
.icon-button--light:focus-visible {
  background: var(--red);
  color: var(--white);
}

.lightbox__nav {
  width: 46px;
  height: 46px;
}

.lightbox__nav--prev {
  justify-self: start;
}

.lightbox__nav--next {
  justify-self: end;
}

.error-page {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 32px;
  background: var(--black);
  color: var(--white);
}

.error-page main {
  width: min(720px, 100%);
}

.error-page h1 {
  margin: 0 0 18px;
  font-size: clamp(2.8rem, 8vw, 6rem);
  font-weight: 600;
  line-height: 1;
}

.error-page p:not(.eyebrow) {
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.68);
}

.error-page .button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  padding: 0 18px;
  background: var(--red);
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

@media (max-width: 1080px) {
  .archive__heading,
  .about {
    grid-template-columns: 1fr;
  }

  .archive__heading {
    gap: 24px;
  }

  .about__intro {
    position: static;
  }

  .about__body {
    padding-top: 0;
  }

  .contact {
    align-items: flex-start;
    flex-direction: column;
  }

  .year-gallery {
    columns: 2 280px;
  }
}

@media (max-width: 760px) {
  :root {
    --shell: min(100% - 36px, 1600px);
  }

  .hero {
    min-height: min(650px, 74svh);
    padding: 56px 0 24px;
  }

  .hero h1 {
    font-size: clamp(4rem, 25vw, 7rem);
    line-height: 0.82;
  }

  .hero__bottom {
    align-items: center;
    flex-direction: column;
    gap: 22px;
    text-align: center;
  }

  .hero__bottom p {
    max-width: 340px;
    font-size: 0.96rem;
  }

  .year-nav {
    min-height: 0;
    justify-content: space-between;
    gap: 7px 10px;
    padding: 10px 18px;
  }

  .year-nav a {
    flex: 0 0 calc(25% - 8px);
    min-height: 28px;
    font-size: 0.86rem;
  }

  .archive {
    padding-top: 72px;
  }

  .archive__heading {
    padding-bottom: 28px;
  }

  .year-section {
    padding-top: 58px;
  }

  .year-heading {
    margin-bottom: 24px;
  }

  .year-heading h3 {
    font-size: 3.7rem;
  }

  .year-gallery {
    columns: 1;
  }

  .photo-card {
    margin-bottom: 30px;
  }

  .about {
    gap: 36px;
    padding: 88px 0;
  }

  .contact {
    padding: 72px 18px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 24px 0 32px;
  }

  .lightbox {
    width: 100vw;
    height: 100svh;
  }

  .lightbox__stage {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 4px;
    padding: 8px;
  }

  .lightbox__nav {
    width: 38px;
    height: 38px;
  }

  .lightbox__figure figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .lightbox__figure figcaption span:last-child {
    text-align: left;
  }
}

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