/* Rebuilt from the original Squarespace theme's computed values.
   Fluid type uses Squarespace's own formula:
     min((V - 1) * 1.2vw + 1rem, max((V - 1) * .012 * maxPageWidth + 1rem, V * 1rem)) */

:root {
  --white: hsl(0, 0%, 98.04%);
  --black: hsl(0, 0%, 0%);
  --accent: hsl(0, 0%, 86.27%);

  --body-font: "Helvetica Neue", Arial, sans-serif;
  --page-padding: 4vw;
  --max-page-width: 3000px;

  --site-title-size: min(
    calc(0.7 * 1.2vw + 1rem),
    max(calc(0.7 * 0.012 * 3000px + 1rem), 1.7rem)
  );
  --nav-size: min(
    calc(-0.1 * 1.2vw + 1rem),
    max(calc(-0.1 * 0.012 * 3000px + 1rem), 0.9rem)
  );
}

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

html { font-size: 16px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--body-font);
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.02em;
  line-height: 1.3em;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

a { color: inherit; }

/* ---------- Header ---------- */

.header {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 1.5vw var(--page-padding);
}

.header-inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--max-page-width);
  margin: 0 auto;
}

.header-nav { flex: 1 1 33%; width: 33%; }

.header-nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.header-nav-item { font-size: var(--nav-size); }
.header-nav-item:not(:last-child) { margin-right: 2vw; }

.header-nav-item a {
  text-decoration: none;
  padding-bottom: 1px;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0% 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: background-size 0.2s ease-in-out;
}

.header-nav-item a:hover,
.header-nav-item--active a { background-size: 100% 1px; }

.header-title {
  flex: 1 1 34%;
  width: 34%;
  text-align: center;
  font-size: var(--site-title-size);
  font-weight: 700;
}

.header-title a { text-decoration: none; }

.header-actions { flex: 0 0 33%; width: 33%; }

/* Burger is desktop-hidden; the nav collapses into it under 800px. */
.header-burger {
  display: none;
  background: none;
  border: 0;
  padding: 0;
  margin-left: auto;
  cursor: pointer;
  color: inherit;
}

.header-burger span {
  display: block;
  width: 24px;
  height: 1px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.header-burger span + span { margin-top: 6px; }

/* Open: the three bars become an X. Bars sit at y = 0, 7, 14, so the outer
   two travel 7px to meet in the middle. */
.header[data-menu-open="true"] .header-burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header[data-menu-open="true"] .header-burger span:nth-child(2) { opacity: 0; }
.header[data-menu-open="true"] .header-burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Main ---------- */

.page { flex: 1 1 auto; display: flex; flex-direction: column; }

/* ---------- Gallery slideshow ---------- */

.gallery-slideshow {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  user-select: none;
  z-index: 0;
  width: 100%;
  max-width: var(--max-page-width);
  margin: 0 auto;
  padding: var(--page-padding);
  height: calc(50vh + 2 * var(--page-padding));
}

.gallery-slideshow-wrapper {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
}

.gallery-slideshow-list {
  position: absolute;
  inset: 0;
  z-index: 0;
  cursor: grab;
}

.gallery-slideshow-list:active { cursor: grabbing; }

.gallery-slideshow-item {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  display: flex;
  visibility: hidden;
  align-items: center;
  justify-content: center;
}

.gallery-slideshow-item[data-active="true"] { visibility: visible; }

.gallery-slideshow-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-slideshow-controls {
  position: absolute;
  display: flex;
  justify-content: space-between;
  inset: 0;
  pointer-events: none;
}

.gallery-slideshow-control {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.gallery-slideshow-control-btn {
  background: none;
  border: 0;
  position: relative;
  color: var(--black);
  padding: 8px 10px 8px 8px;
  pointer-events: all;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-slideshow-control-btn:hover { opacity: 1; }

.gallery-slideshow-control-btn svg {
  width: 9px;
  height: 16px;
  display: block;
  stroke: currentColor;
}

/* A gallery of one has nothing to page through. */
.gallery-slideshow[data-count="1"] .gallery-slideshow-controls { display: none; }

/* ---------- Text pages ---------- */

.page-content {
  width: 100%;
  max-width: var(--max-page-width);
  margin: 0 auto;
  padding: var(--page-padding);
}

.text-block { max-width: 46rem; }
.text-block p { margin: 0 0 1.3em; font-size: 1.1rem; }
.text-block p:last-child { margin-bottom: 0; }
.text-block ul { margin: 0 0 1.3em; padding-left: 1.2em; }
.text-block li p { margin: 0 0 0.6em; }
.text-block a { text-decoration: underline; text-underline-offset: 2px; }

.button-block { text-align: center; padding: 0 0 var(--page-padding); }

.button-block a {
  display: inline-block;
  font-family: "Roboto", var(--body-font);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
}

/* ---------- Mobile ---------- */

@media only screen and (pointer: coarse) and (max-width: 1024px),
       screen and (max-width: 799px) {
  .header { padding: 6vw; }
  .header-nav { display: none; }
  .header-title { flex: 1 1 auto; width: auto; text-align: left; }
  .header-actions { display: none; }
  .header-burger { display: block; }

  .menu-overlay:not([hidden]) { display: flex; }
}

/* ---------- Mobile menu overlay ---------- */

/* Hidden everywhere by default; the mobile media query above is the only place
   that reveals it, so resizing to desktop with the menu open can't strand it. */
.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3;
  background: var(--white);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

/* Sits above the overlay so the burger remains tappable as a close button. */
.header[data-menu-open="true"] { z-index: 4; }

body.menu-open { overflow: hidden; }

.menu-overlay .header-nav-item { margin: 0; font-size: inherit; }

.menu-overlay a {
  font-size: 1.4rem;
  text-decoration: none;
}
