/* ==========================================================
   FONT
   ========================================================== */

@font-face {
  font-family: "Switzer";
  src: url("fonts/Switzer-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: block;
}


/* ==========================================================
   DESIGN TOKENS
   ========================================================== */

:root {
  --ink: #fff4df;
  --page: #0d0d0d;

  --glass: rgba(18, 18, 18, 0.78);
  --glass-border: rgba(255, 244, 223, 0.16);
}


/* ==========================================================
   FOUNDATION
   ========================================================== */

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  background: var(--page);
}

body {
  overflow: hidden;
}


/* ==========================================================
   SCENE
   ========================================================== */

.scene {
  position: relative;

  width: 100%;
  height: 100vh;
  height: 100dvh;

  overflow: hidden;
}


/* ==========================================================
   PHOTOGRAPH
   ========================================================== */

.scene__image {
  position: absolute;

  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  z-index: 0;

  background-color: var(--page);
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: cover;
}


/*
   Deliberately unused.

   The photograph is presented without a vignette,
   gradient or colour treatment.
*/

.scene__grade {
  display: none;
}


/* ==========================================================
   STATEMENT
   ========================================================== */

.statement {
  position: absolute;

  left: 9%;
  bottom: 10.5%;

  z-index: 2;

  width: auto;
  max-width: 80%;

  margin: 0;
  padding: 0;

  color: var(--ink);

  font-family: "Switzer", Arial, sans-serif;

  font-size: clamp(24px, 2vw, 34px);
  font-style: normal;
  font-weight: 460;

  line-height: 1.10;
  letter-spacing: -0.026em;

  text-align: left;
}


/*
   This page is
   intentionally left blank
*/

.statement span {
  display: inline;
}

.statement span:first-child::after {
  content: "\A";
  white-space: pre;
}

.statement span:nth-child(2)::after {
  content: " ";
}

.statement span:last-child::after {
  content: "";
}


/* ==========================================================
   PHOTOGRAPH INFORMATION
   ========================================================== */

.photo-meta {
  position: absolute;

  right: 20px;
  bottom: 19px;

  z-index: 10;
}


/* ----------------------------------------------------------
   Information button
   ---------------------------------------------------------- */

.photo-info {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 28px;
  height: 28px;

  margin: 0;
  padding: 0;

  border: 1px solid rgba(255, 244, 223, 0.48);
  border-radius: 50%;

  color: rgba(255, 244, 223, 0.82);
  background-color: rgba(18, 18, 18, 0.08);

  font-family: "Switzer", Arial, sans-serif;
  font-size: 12px;
  font-style: italic;
  font-weight: 500;
  line-height: 1;

  opacity: 0.68;

  cursor: pointer;

  -webkit-tap-highlight-color: transparent;

  transition:
    opacity 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}


.photo-info:hover,
.photo-info:focus-visible,
.photo-meta.is-open .photo-info {
  opacity: 1;

  color: var(--ink);

  border-color: rgba(255, 244, 223, 0.82);

  background-color: rgba(18, 18, 18, 0.28);
}


.photo-info:focus {
  outline: none;
}


.photo-info:focus-visible {
  outline: 1px solid rgba(255, 244, 223, 0.86);
  outline-offset: 4px;
}


/* ----------------------------------------------------------
   Information card
   ---------------------------------------------------------- */

.photo-card {
  position: absolute;

  right: 0;
  bottom: 42px;

  width: min(320px, calc(100vw - 40px));
  max-height: calc(100dvh - 100px);
  overflow-y: auto;

  padding: 20px 21px 19px;

  border: 1px solid var(--glass-border);
  border-radius: 12px;

  color: var(--ink);

  background-color: var(--glass);

  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);

  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.16);

  opacity: 0;
  visibility: hidden;

  transform: translateY(4px);

  pointer-events: none;

  transition:
    opacity 160ms ease,
    transform 160ms ease,
    visibility 160ms ease;
}


/* Click or tap opens and pins the card. */

.photo-meta.is-open .photo-card {
  opacity: 1;
  visibility: visible;

  transform: translateY(0);

  pointer-events: auto;
}


/*
   Automatic introduction.

   The card briefly introduces itself after page load,
   without becoming interactive or stealing focus.
*/

.photo-meta.is-auto .photo-card {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: none;
}

/* ----------------------------------------------------------
   Mouse hover button treatment

   Only devices with a genuine precise pointing device
   receive hover behaviour.
   ---------------------------------------------------------- */

@media (hover: hover) and (pointer: fine) {

  .photo-meta:hover .photo-info {
    opacity: 1;

    color: var(--ink);

    border-color: rgba(255, 244, 223, 0.82);

    background-color: rgba(18, 18, 18, 0.28);
  }
}


/* ----------------------------------------------------------
   Card typography
   ---------------------------------------------------------- */

.photo-card p {
  margin: 0;
}


.photo-card__location {
  margin-bottom: 11px !important;

  color: rgba(255, 244, 223, 0.68);

  font-family: "Switzer", Arial, sans-serif;
  font-size: 10px;
  font-weight: 570;

  line-height: 1.2;

  letter-spacing: 0.13em;

  text-transform: uppercase;
}


.photo-card__description {
  margin-bottom: 17px !important;

  color: var(--ink);

  font-family: "Switzer", Arial, sans-serif;
  font-size: 15px;
  font-weight: 430;

  line-height: 1.42;

  letter-spacing: -0.012em;
}


.photo-card__credit {
  color: rgba(255, 244, 223, 0.54);

  font-family: "Switzer", Arial, sans-serif;
  font-size: 11px;
  font-weight: 430;

  line-height: 1.4;

  letter-spacing: -0.005em;
}


.photo-card__credit a {
  color: rgba(255, 244, 223, 0.76);

  text-decoration: none;

  text-decoration-thickness: 1px;
  text-underline-offset: 3px;

  transition: color 140ms ease;
}


.photo-card__credit a:hover,
.photo-card__credit a:focus-visible {
  color: var(--ink);

  text-decoration: underline;
}


.photo-card__credit a:focus-visible {
  outline: none;
}


/* ==========================================================
   NARROW SCREENS
   ========================================================== */

@media (max-width: 600px) {

  .statement {
    left: 12%;
    bottom: 11%;

    max-width: 82%;

    font-size: clamp(22px, 6.3vw, 27px);
  }


  .photo-meta {
    right: 15px;
    bottom: 15px;
  }


  .photo-info {
    width: 30px;
    height: 30px;

    font-size: 12px;
  }


  .photo-card {
    bottom: 44px;

    width: min(300px, calc(100vw - 30px));

    padding: 19px 20px 18px;
  }
}


/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

  .photo-info,
  .photo-card,
  .photo-card__credit a {
    transition: none;
  }
}

/* Navigation shares the open information button's visual treatment.
   Each 28px circle has a 44px transparent touch target. */
.photo-navigation {
  position: absolute;
  right: calc(100% + 2px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 0;
}

.photo-navigation[hidden] {
  display: none;
}

.photo-arrow {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.photo-arrow::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 244, 223, 0.82);
  border-radius: 50%;
  background-color: rgba(18, 18, 18, 0.28);
}

.photo-chevron {
  position: relative;
  width: 6px;
  height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
}

.photo-chevron--previous {
  transform: translateX(1px) rotate(-135deg);
}

.photo-chevron--next {
  transform: translateX(-1px) rotate(45deg);
}

.photo-arrow:hover::before {
  border-color: var(--ink);
}

.photo-arrow:focus-visible {
  outline: none;
}

.photo-arrow:focus-visible::before {
  outline: 1px solid rgba(255, 244, 223, 0.86);
  outline-offset: 4px;
}

@media (max-width: 600px) {
  .photo-arrow::before {
    inset: 7px;
  }
}

/* Statement — aligned with the photograph card typography */

.statement {
  font-size: clamp(21px, 1.65vw, 28px);
font-weight: 400;
line-height: 1.18;
letter-spacing: -0.008em;

  color: rgba(255, 244, 223, 0.88);
  text-shadow: none;
}

@media (max-width: 600px) {
  .statement {
    font-size: clamp(20px, 5.4vw, 23px);
  }
}