/* ---------- Basics ---------- */
:root {
  --bg: #faf8f5;
  --ink: #1d1c1a;
  --soft: #55514b;
  --muted: #8b867e;
  --tile: #ece7df;
  --gap: 10px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .7s ease, transform 1.2s cubic-bezier(.2, .7, .2, 1);
}
img.is-loaded { opacity: 1; }

.meta {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Header & footer ---------- */
.site-header {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 24px 48px;
  text-align: center;
}
.site-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 5.2vw, 56px);
  line-height: 1.1;
  letter-spacing: .005em;
}
.lang {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--muted);
}
.lang button { padding: 8px 6px; color: var(--muted); transition: color .2s; }
.lang button:hover, .lang button[aria-pressed="true"] { color: var(--ink); }

.site-footer {
  text-align: center;
  padding: 40px 24px 48px;
  font-size: 12px;
  color: var(--muted);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 64px;
  transition: opacity .45s ease;
}
main.is-entering { opacity: 0; transition: none; }

/* ---------- Home: collection previews ---------- */
.home {
  display: flex;
  flex-direction: column;
  gap: clamp(72px, 10vw, 128px);
}
.card { display: block; }

.mosaic {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--gap);
  aspect-ratio: 16 / 9;
}
.mosaic .m { overflow: hidden; background: var(--tile); }
.mosaic .m0 { grid-column: 1; grid-row: 1 / 3; }
.mosaic .m1 { grid-column: 2; grid-row: 1; }
.mosaic .m2 { grid-column: 2; grid-row: 2; }
.mosaic--2 .m1 { grid-row: 1 / 3; }
.mosaic--1 { grid-template-columns: 1fr; }

.card--flip .mosaic { grid-template-columns: 1fr 2fr; }
.card--flip .m0 { grid-column: 2; }
.card--flip .m1, .card--flip .m2 { grid-column: 1; }

.card:hover .m img, .card:focus-visible .m img { transform: scale(1.035); }

.card__text {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 20px;
}
.card h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
}
.card h2 span {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s ease;
}
.card:hover h2 span, .card:focus-visible h2 span { background-size: 100% 1px; }
.card .meta { white-space: nowrap; }

/* ---------- One collection ---------- */
.c-head {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 0 56px;
  text-align: center;
}
.back {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
.back:hover { color: var(--ink); }
.c-head h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.1;
}
.c-text {
  margin-top: 20px;
  color: var(--soft);
  font-size: 16px;
  white-space: pre-line;
}

/* The collage: 12 columns; one row = half a column, so shapes stay true */
.collage-wrap { container-type: inline-size; }
.collage {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: calc(((100cqw - 11 * var(--gap)) / 12 - var(--gap)) / 2);
  gap: var(--gap);
}
.b {
  grid-column: var(--x) / span var(--w);
  grid-row: var(--y) / span var(--h);
  position: relative;
  min-width: 0;
  overflow: hidden;
}
.b-photo { background: var(--tile); }
.ph { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.ph:hover img { transform: scale(1.02); }

.b-poem, .b-text {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4cqw, 56px);
}
.poem {
  font-family: var(--serif);
  font-size: clamp(17px, 1.75cqw, 23px);
  line-height: 1.7;
  white-space: pre-line;
}
.poem h3 {
  font-style: italic;
  font-weight: 400;
  font-size: 1.3em;
  margin-bottom: .9em;
}
.b-text p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17px, 1.6cqw, 22px);
  color: var(--soft);
  text-align: center;
  white-space: pre-line;
}

.b-video { background: #111; }
.yt { position: relative; display: block; width: 100%; height: 100%; }
.yt img { filter: brightness(.88); }
.yt:hover img { transform: scale(1.02); }
.play {
  position: absolute;
  left: 50%; top: 50%;
  width: 68px; height: 68px;
  margin: -34px 0 0 -34px;
  border-radius: 50%;
  background: rgba(250, 248, 245, .9);
  transition: transform .3s ease;
}
.play::after {
  content: "";
  position: absolute;
  left: 27px; top: 22px;
  border-style: solid;
  border-width: 12px 0 12px 19px;
  border-color: transparent transparent transparent var(--ink);
}
.yt:hover .play { transform: scale(1.08); }
.b-video iframe { display: block; width: 100%; height: 100%; border: 0; }

.c-next {
  margin-top: clamp(72px, 10vw, 120px);
  text-align: center;
}
.c-next a { display: inline-flex; flex-direction: column; gap: 6px; }
.c-next em {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
}
.c-next a:hover em { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

.empty { text-align: center; padding: 80px 0; color: var(--soft); }
.empty a { text-decoration: underline; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 17, 16, .97);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lb-img {
  width: auto;
  height: auto;
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
}
.lb-btn {
  position: absolute;
  color: rgba(255, 255, 255, .75);
  font-size: 22px;
  line-height: 1;
  padding: 16px;
  transition: color .2s;
}
.lb-btn:hover { color: #fff; }
.lb-close { top: 8px; right: 8px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 44px; font-weight: 300; }
.lb-prev { left: 4px; }
.lb-next { right: 4px; }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }
.lb-count {
  position: absolute;
  bottom: 18px;
  left: 0; right: 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: .16em;
  color: rgba(255, 255, 255, .55);
}

/* ---------- Phones ---------- */
@media (max-width: 700px) {
  :root { --gap: 6px; }
  .site-header { padding: 56px 16px 32px; }
  .lang { top: 8px; right: 8px; }
  main { padding: 0 16px 48px; }
  .home { gap: 64px; }
  .mosaic { aspect-ratio: 4 / 3; }
  .card__text { flex-direction: column; gap: 2px; margin-top: 14px; }
  .c-head { padding-bottom: 36px; }

  /* Collage becomes one column, in reading order */
  .collage { display: flex; flex-direction: column; gap: 12px; }
  .b-photo { aspect-ratio: var(--ratio); }
  .b-video { aspect-ratio: 16 / 9; }
  .b-poem { padding: 40px 8px; }
  .poem { font-size: 20px; }
  .b-text { padding: 24px 8px; }
  .b-text p { font-size: 19px; }
  .lb-prev, .lb-next { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
