:root {
  --paper: #fbfaf6;
  --ink: #111;
  --muted: #6f6f6f;
  --panel: rgba(251, 250, 246, .94);
  --line: rgba(17, 17, 17, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Helvetica, Arial, "Hiragino Sans", "Yu Gothic", sans-serif;
  letter-spacing: 0;
}

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

button {
  border: 0;
  border-radius: 0;
  color: inherit;
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(18px, 2.8vw, 42px);
  pointer-events: none;
}

.brand,
.desktop-nav,
.menu-button {
  pointer-events: auto;
}

.brand {
  display: block;
  width: clamp(148px, 18vw, 274px);
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.desktop-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 20px;
  max-width: 610px;
  padding-top: 2px;
  font-size: 13px;
  line-height: 1.2;
  text-transform: uppercase;
}

.desktop-nav a {
  background: rgba(251, 250, 246, .72);
  padding: 4px 0;
}

.menu-button {
  display: none;
  position: relative;
  width: 48px;
  aspect-ratio: 1;
  background: var(--panel);
  cursor: pointer;
}

.menu-button span {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50%;
  height: 1px;
  background: var(--ink);
  transition: transform 180ms ease;
}

.menu-button span:first-child {
  transform: rotate(90deg);
}

body.menu-open .menu-button span:first-child {
  transform: rotate(45deg);
}

body.menu-open .menu-button span:last-child {
  transform: rotate(-45deg);
}

.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 40;
  display: flex;
  width: min(420px, 88vw);
  padding: 124px 28px 34px;
  background: var(--panel);
  transform: translateX(100%);
  transition: transform 220ms ease;
}

body.menu-open .drawer {
  transform: translateX(0);
}

.drawer nav {
  display: grid;
  align-content: start;
  gap: 18px;
  width: 100%;
  text-align: right;
}

.drawer a {
  font-size: clamp(28px, 9vw, 52px);
  line-height: .94;
  text-transform: uppercase;
}

.mosaic {
  min-height: 100vh;
  padding: 0;
}

.mosaic-loop {
  padding: 0 clamp(22px, 4vw, 58px) 72px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 1.7vw, 24px);
  break-after: avoid;
}

.mosaic-column {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 1.7vw, 24px);
}

.mosaic-column:nth-child(1) {
  padding-top: clamp(24px, 3.9vw, 68px);
}

.mosaic-column:nth-child(2) {
  padding-top: 0;
}

.mosaic-column:nth-child(3) {
  padding-top: clamp(42px, 6.8vw, 118px);
}

.tile {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: #e3e0d8;
  cursor: pointer;
  break-inside: avoid;
}

.tile img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: saturate(.9) contrast(.98);
  transition: transform 480ms ease, filter 480ms ease;
}

.tile:hover img,
.tile:focus-visible img {
  transform: scale(1.035);
  filter: saturate(1.04) contrast(1.02);
}

.tile span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  color: #fff;
  font-size: clamp(19px, 2.7vw, 44px);
  font-weight: 500;
  line-height: 1;
  text-shadow: 0 1px 22px rgba(0, 0, 0, .46);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.tile:hover span,
.tile:focus-visible span {
  opacity: 1;
  transform: translateY(0);
}

.cursor-card {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 70;
  pointer-events: none;
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  background: var(--panel);
  color: var(--ink);
  opacity: 0;
  transform: translate(-100px, -100px);
  transition: opacity 120ms ease;
}

.cursor-card.is-visible {
  opacity: 1;
}

.cursor-card strong {
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

.cursor-card span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    padding: 16px;
  }

  .brand {
    width: 154px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .mosaic {
    padding: 0;
  }

  .mosaic-loop {
    grid-template-columns: 1fr;
    padding: 0 14px 48px;
    gap: 6px;
  }

  .mosaic-column {
    gap: 6px;
    padding-top: 0 !important;
  }

  .tile span {
    opacity: 1;
    transform: none;
    font-size: clamp(18px, 6vw, 34px);
  }

  .cursor-card {
    display: none;
  }

}
