@import url("https://api.fontshare.com/v2/css?f[]=neue-montreal@300,400,500,700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "Neue Montreal", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: #ffffff;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

a {
  text-decoration: none;
  color: #000;
  font-size: 13.5px;
  font-weight: 500;
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 0.3em 1em;
  display: flex;
  align-items: center;
  z-index: 10;
  background-color: #ffffff;
}

nav .logo a {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  transition: none;
}

nav > div {
  flex: 1;
}

nav .nav-items {
  display: flex;
  gap: 1em;
  justify-content: center;
}

nav .nav-nb {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

nav .nav-nb img {
  height: 1em !important;
  width: auto !important;
  display: inline-block;
  object-fit: contain;
  transition: none !important;
  transform: none !important;
  flex-shrink: 0;
}

nav .contact {
  display: flex;
  justify-content: flex-end;
}

.container {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.items {
  width: 100%;
  display: flex;
  gap: 2px;
  padding: 0 1em;
}

.items-col {
  flex: 1;
  display: flex;
}

.item-card {
  position: relative;
  top: 12vh;
  height: 60vh;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
}

.item-card:hover img {
  transform: scale(1.04);
}

.item-copy {
  padding: 0.5em 0;
  height: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.item-copy-wrapper {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.item-copy-wrapper p {
  position: relative;
  margin-bottom: 0.25em;
  font-weight: 500;
  font-size: 13.5px;
  line-height: 100%;
  color: #000;
}

.item-card .item-img {
  flex: 1;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
}

.header {
  position: absolute;
  bottom: 0;
  width: 100%;
}

.header-acronym {
  display: flex;
  width: 100%;
}

.header-fullname {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
  flex-wrap: wrap;
  gap: 0 1em;
  padding: 0 1.5em;
  pointer-events: none;
}

.header-word {
  overflow: hidden;
}

.header-word span {
  display: block;
  font-family: "Neue Montreal", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 3.5vw;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: #000;
  line-height: 1;
}

.header-item {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  will-change: transform;
}

.header-item-1 {}

.header-item-2 {}

.letter {
  flex: 1;
  font-size: 13vw;
  font-weight: 300;
  color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.letter-wrapper {
  position: relative;
  will-change: transform;
}

@media (max-width: 768px) {
  html,
  body {
    overflow: auto;
  }

  .container {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }

  .header {
    order: 1;
    position: static;
    transform: none !important;
    padding: 4.5em 1.5em 1em;
  }

  .header-acronym {
    display: none;
  }

  .header-fullname {
    position: static;
    height: auto;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0 0.4em;
    padding: 0;
  }

  .header-word span {
    font-size: 5vw;
  }

  .items {
    order: 2;
    flex-direction: column;
    padding: 1em 1em 2em;
    gap: 1em;
  }

  .item-card {
    top: 0;
    height: 50vw;
  }
}

/* ── Edition index pages ──────────────────────────────── */

.page-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding-top: 56px;
}

.page-header {
  position: relative;
  padding: 2em 1em 1.5em;
  border-bottom: 1px solid #e0e0e0;
}

.page-header h1 {
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: #000;
  line-height: 1;
}

.page-header p {
  font-size: 13.5px;
  font-weight: 500;
  color: #666;
  margin-top: 0.5em;
  letter-spacing: 0.02em;
}

.page-body {
  flex: 1;
  display: flex;
  padding: 0 1em;
  gap: 2px;
  overflow: hidden;
}

.page-col {
  flex: 1;
  display: flex;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000;
  opacity: 0.55;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.back-link:hover { opacity: 1; }
.back-link::before { content: "←"; }

.event-header .back-link,
.page-header .back-link {
  position: absolute;
  bottom: 1.5em;
  right: 1em;
}

/* ── Event pages ──────────────────────────────────────── */

.event-page {
  padding-top: 56px;
  min-height: 100vh;
}

.event-header {
  position: relative;
  padding: 2em 1em 1.5em;
  border-bottom: 1px solid #e0e0e0;
}

.event-header .kicker {
  font-size: 13px;
  font-weight: 500;
  color: #666;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.4em;
}

.event-header h1 {
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 300;
  color: #000;
  line-height: 1;
}

.event-body {
  padding: 2em 1em 5em;
}

.event-copy {
  max-width: 720px;
  margin-bottom: 3em;
}

.event-copy p + p {
  margin-top: 1em;
}

.event-copy p {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.65;
  color: #333;
}

/* ── Gallery ──────────────────────────────────────────── */

.gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 1em;
  border-bottom: 1px solid #e0e0e0;
  margin: 0 -1em 4px;
  padding-left: 1em;
  padding-right: 1em;
}

.gallery-head h2 {
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.gallery-count {
  font-size: 13px;
  color: #666;
  font-weight: 500;
}

.gallery-grid {
  columns: 4;
  column-gap: 4px;
  margin: 0 -1em;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 4px;
  background: #eee;
  overflow: hidden;
  display: block;
}

.gallery-item img {
  width: 100%;
  height: auto !important;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.02);
}

/* ── Placeholder ──────────────────────────────────────── */

.placeholder-content {
  display: grid;
  min-height: 30vh;
  place-items: center;
  padding: 2rem;
  border: 1px solid #e0e0e0;
  color: #999;
  text-align: center;
  font-size: 13.5px;
}

/* ── Responsive ───────────────────────────────────────── */

@media (max-width: 768px) {
  .page-body {
    flex-direction: column;
    overflow-y: auto;
    padding: 0 1em 2em;
    gap: 1em;
  }

  .page-col .item-card {
    height: 50vw;
  }

  .gallery-grid {
    columns: 2;
  }

  .event-header .back-link,
  .page-header .back-link {
    position: static;
    display: block;
    margin-top: 1em;
    text-align: right;
  }
}

