*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #111;
  --fg: #f2f2f2;
  --muted: #9a9a9a;
  --line: #2a2a2a;
  --serif: "Libre Baskerville", Georgia, serif;
  --sans: "Poppins", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 32px;
  background: #000;
}
.brand {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.nav { display: flex; gap: 28px; }
.nav a {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }

main { flex: 1; }

/* Book */
.book {
  position: relative;
  /* Fit the spread to the viewport height as well as its width */
  max-width: min(1200px, calc((100vh - 190px) * 1114 / 781 + 144px));
  margin: 0 auto;
  padding: 40px 72px 24px;
}
.book-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.book-track::-webkit-scrollbar { display: none; }
.book-track img {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 1114 / 781;
  object-fit: contain;
  scroll-snap-align: center;
  background: #1a1a1a;
}
.book-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: var(--fg);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.book-arrow:hover { opacity: 1; }
.book-arrow:disabled { opacity: 0.15; cursor: default; }
.book-arrow svg { width: 28px; height: 28px; }
.book-prev { left: 16px; }
.book-next { right: 16px; }
.book-count {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

/* Agencies */
.agencies {
  max-width: 640px;
  margin: 0 auto;
  padding: 72px 24px;
  text-align: center;
}
.agency-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
}
.agency-logos a { opacity: 0.85; transition: opacity 0.2s; }
.agency-logos a:hover { opacity: 1; }
.agency-logos .emily { width: 200px; }
.agency-logos .alterego { width: 90px; }
.agencies h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  margin: 72px 0 24px;
}
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 15px;
}
.contact-list a:hover { text-decoration: underline; }
.contact-list svg { width: 18px; height: 18px; flex: none; }

/* Footer */
.site-footer {
  padding: 24px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.mobile-only { display: none; }

/* Mobile: agencies content only, no book and no menu */
@media (max-width: 700px) {
  .site-header { padding: 18px 16px; justify-content: center; }
  .brand { font-size: 15px; }
  .nav { display: none; }
  .book { display: none; }
  .mobile-only { display: block; }
  .agencies { padding: 48px 16px; }
  .agency-logos { gap: 36px; }
  .agency-logos .emily { width: 160px; }
  .agency-logos .alterego { width: 72px; }
}
