@font-face {
  font-family: "DM Mono";
  src: url("assets/fonts/dm-mono.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Giamlass";
  src: url("assets/fonts/giamlass.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Higher";
  src: url("assets/fonts/higher-regular.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

:root {
  --red: #de143c;
  --rome-red: #c50000;
  --black: #000;
  --white: #fff;
  --pad: clamp(16px, 2.2vw, 36px);
  --line: 1px solid var(--black);
  --header-height: 60px;
  --ease: cubic-bezier(.76, 0, .24, 1);
}

* { box-sizing: border-box; }

html { background: var(--white); scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--black);
  background: var(--white);
  font-family: "DM Mono", "Courier New", monospace;
  font-size: 14px;
  line-height: 1.35;
}

::selection { color: var(--black); background: var(--red); }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
h1, p, figure { margin: 0; }

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

.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 100;
  padding: 10px 16px;
  color: var(--white);
  background: var(--black);
  transform: translate(-50%, -150%);
  transition: transform .2s;
}

.skip-link:focus { transform: translate(-50%, 0); }

.project-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 var(--pad);
  border-bottom: var(--line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
}

.project-header a {
  font-size: 12px;
  letter-spacing: .04em;
}

.project-header a:last-child {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-header a:last-child::after { content: "←"; }

.project-main { padding-top: var(--header-height); }

.red-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 20px;
  border: 1px solid var(--black);
  box-shadow: 4px 4px 0 var(--black);
  color: var(--black);
  background: var(--red);
  font-size: 15px;
  text-transform: uppercase;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.red-button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--black);
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--pad);
  border-top: var(--line);
  font-size: 12px;
}

/* Light Explorations */
.light-gallery {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: calc(100svh - var(--header-height));
  padding: 22px var(--pad) 20px;
}

.light-title {
  position: relative;
  z-index: 2;
  text-align: center;
  font-family: "Giamlass", Georgia, serif;
  font-size: clamp(42px, 5vw, 76px);
  font-weight: 400;
  line-height: 1;
}

.light-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 14px 0;
}

.light-image-button {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: e-resize;
}

.light-image-button img {
  width: auto;
  height: auto;
  max-width: min(86vw, 1400px);
  max-height: calc(100svh - 250px);
  object-fit: contain;
  transition: opacity .24s ease, transform .4s var(--ease);
}

.light-image-button:hover img { transform: scale(.995); }
.light-image-button img.is-changing { opacity: 0; transform: scale(.985); }

.light-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 20px;
}

.light-counter { align-self: center; justify-self: start; font-size: 12px; }
.light-arrows { justify-self: end; display: flex; }

.light-arrow {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 0;
  border: var(--line);
  background: var(--white);
  cursor: pointer;
  font-size: 22px;
}

.light-arrow + .light-arrow { border-left: 0; }
.light-arrow:hover { color: var(--black); background: var(--red); }

/* 2024 */
.year-hero {
  padding: clamp(80px, 10vw, 150px) var(--pad) clamp(44px, 6vw, 90px);
  overflow: hidden;
}

.year-title {
  font-family: "Giamlass", Georgia, serif;
  font-size: clamp(130px, 28vw, 460px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .68;
  white-space: nowrap;
}

.year-meta {
  display: flex;
  justify-content: space-between;
  margin-top: clamp(50px, 8vw, 110px);
  border-top: var(--line);
  padding-top: 12px;
  font-size: 12px;
}

.year-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: start;
  gap: clamp(10px, 1.5vw, 24px);
  padding: 0 var(--pad) clamp(80px, 10vw, 150px);
}

.year-photo {
  width: 100%;
  margin: 0;
}

.year-photo img {
  width: 100%;
  height: auto;
}

/* Let You Go Rome */
.rome-page { --red: var(--rome-red); }
.rome-hero {
  display: grid;
  place-items: center;
  min-height: calc(100svh - var(--header-height));
  padding: 70px var(--pad);
  text-align: center;
}

.rome-hero-inner {
  display: grid;
  justify-items: center;
  gap: clamp(44px, 7vh, 80px);
}

.rome-title {
  color: var(--rome-red);
  font-family: "Higher", Impact, sans-serif;
  font-size: clamp(72px, 10.2vw, 164px);
  font-weight: 400;
  letter-spacing: .01em;
  line-height: .82;
  white-space: nowrap;
}

.audio-control {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  width: min(520px, 100%);
  min-height: 66px;
  padding: 0 20px;
  border: var(--line);
  box-shadow: 4px 4px 0 var(--black);
  color: var(--black);
  background: var(--rome-red);
  cursor: pointer;
  text-align: left;
}

.audio-control-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--black);
  font-size: 12px;
}

.audio-control-label { font-size: 15px; }
.audio-time { font-size: 11px; }

.rome-note {
  width: min(780px, 100%);
  color: #363636;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.4;
}

.rome-stream { border-top: var(--line); }

.rome-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: clamp(36px, 7vw, 110px) var(--pad);
  border-bottom: var(--line);
}

.rome-photo img {
  width: auto;
  height: auto;
  max-width: min(92vw, 1500px);
  max-height: 88svh;
  object-fit: contain;
  opacity: .16;
  transform: translateY(34px);
  transition: opacity .8s ease, transform .9s var(--ease);
}

.rome-photo.in-view img { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .year-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  :root { --header-height: 54px; }
  .project-header a { font-size: 11px; }
  .project-header a:last-child span { display: none; }

  .light-gallery { padding-top: 18px; }
  .light-title { font-size: clamp(34px, 11vw, 48px); }
  .light-stage { padding-block: 18px; }
  .light-image-button img { max-width: 100%; max-height: calc(100svh - 245px); }
  .light-controls { grid-template-columns: 1fr auto; gap: 12px; }
  .light-counter { grid-column: 1; grid-row: auto; justify-self: start; }
  .light-arrows { grid-column: 2; }
  .red-button, .light-arrow { min-height: 52px; height: 52px; }
  .light-arrow { width: 48px; }

  .year-hero { padding-top: 84px; }
  .year-title { font-size: 33vw; }
  .year-meta { margin-top: 54px; }
  .year-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rome-hero { padding-block: 54px; }
  .rome-hero-inner { gap: 42px; }
  .rome-title { font-size: clamp(62px, 21vw, 96px); line-height: .86; white-space: normal; }
  .rome-note { font-size: 18px; }
  .rome-photo { min-height: 88svh; padding-block: 42px; }
  .rome-photo img { max-width: 100%; max-height: 78svh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .rome-photo img { opacity: 1; transform: none; }
}
