/* ==========================================================================
   Judith Ivry Bookbinding — custom rebuild of the original Squarespace site
   Fonts: Libre Caslon Text (title) · Montserrat (nav) · Merriweather (body)
   are free Google Fonts substitutes for the original Adobe Caslon Pro /
   Proxima Nova / Merriweather.
   ========================================================================== */

:root {
  --ink:        #222222;   /* title + hover text            */
  --text:       #5c5c5c;   /* body copy                     */
  --nav:        rgba(0,0,0,0.32);  /* nav links (resting)    */
  --nav-hover:  #1a1a1a;   /* nav links hover / active       */
  --rule:       #e8e8e8;
  --bg:         #ffffff;
  --content:    900px;
  --serif-title: "Libre Caslon Text", "Adobe Caslon Pro", Georgia, "Times New Roman", serif;
  --serif-body:  "Merriweather", Georgia, "Times New Roman", serif;
  --sans-nav:    "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif-body);
  font-size: 14px;
  line-height: 1.85;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

/* ---------- Header ------------------------------------------------------- */
.site-header {
  text-align: center;
  padding: 46px 24px 0;
}

.site-title {
  margin: 0;
  font-family: var(--serif-title);
  font-weight: 400;
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.site-title a { text-decoration: none; color: inherit; }

/* nav */
.nav-toggle {
  display: none;
  margin: 22px auto 0;
  border: 0;
  background: none;
  font-family: var(--sans-nav);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  color: var(--nav);
  cursor: pointer;
  padding: 6px 10px;
}

.site-nav {
  margin-top: 26px;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 26px;
}
.site-nav a {
  font-family: var(--sans-nav);
  text-transform: uppercase;
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 1.1px;
  color: var(--nav);
  text-decoration: none;
  transition: color .18s ease;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a:focus,
.site-nav li.is-active a { color: var(--nav-hover); }

.header-rule {
  max-width: var(--content);
  margin: 34px auto 0;
  border: 0;
  border-top: 1px solid var(--rule);
}

/* ---------- Main / content ---------------------------------------------- */
.content {
  max-width: var(--content);
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.prose p { margin: 0 0 1.15em; }
.prose p:last-child { margin-bottom: 0; }
.prose a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--ink); }

.text-center { text-align: center; }

/* Home */
.home-hero { width: 100%; height: auto; display: block; }
.home-intro { margin-top: 36px; max-width: 760px; }

/* Collaboration */
.collab-image { width: 100%; height: auto; display: block; margin-bottom: 34px; }

/* Press list */
.press-list { }
.press-list .press-item { margin-bottom: 1.4em; }
.press-list .press-source { font-weight: 700; color: var(--ink); }
.press-list a { display: inline-block; word-break: break-word; }

/* Contact */
.contact-block { text-align: center; line-height: 2; padding: 10px 0; }

/* ---------- Gallery (slideshow) ----------------------------------------- */
.gallery { margin: 0 auto; }

.gallery-stage {
  position: relative;
  background: #fff;
}
.gallery-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  max-height: 78vh;
  overflow: hidden;
}
.gallery-main img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  display: block;
  cursor: pointer;
  user-select: none;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 64px;
  border: 0;
  background: rgba(255,255,255,0.55);
  color: #333;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s ease, color .18s ease, opacity .18s ease;
  opacity: 0;
}
.gallery-stage:hover .gallery-arrow { opacity: 1; }
.gallery-arrow:hover { background: rgba(255,255,255,0.9); color: #000; }
.gallery-arrow.prev { left: 0; }
.gallery-arrow.next { right: 0; }

/* thumbnail strip */
.gallery-thumbs {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.gallery-thumbs button {
  flex: 0 0 auto;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  line-height: 0;
  opacity: 0.5;
  transition: opacity .18s ease;
}
.gallery-thumbs button:hover { opacity: 0.85; }
.gallery-thumbs button.is-active { opacity: 1; }
.gallery-thumbs img {
  height: 62px;
  width: auto;
  display: block;
}

.gallery-counter {
  text-align: center;
  margin-top: 8px;
  font-family: var(--sans-nav);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--nav);
}

/* ---------- Footer ------------------------------------------------------- */
.site-footer {
  text-align: center;
  padding: 30px 24px 46px;
  color: #9a9a9a;
  font-size: 12px;
}
.site-footer strong { font-weight: 400; }

/* ---------- Responsive --------------------------------------------------- */
@media (max-width: 767px) {
  .site-header { padding-top: 34px; }
  .site-title { font-size: 32px; }
  .nav-toggle { display: block; }
  .site-nav { display: none; margin-top: 14px; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 14px; }
  .gallery-arrow { opacity: 1; background: rgba(255,255,255,0.7); }
  .gallery-thumbs img { height: 52px; }
}
