/* Emily Nixon — press site
   Palette and typography follow Brand Book Vol. 1:
   Kelp #664301, Dulce #3b0700, Bone #edeee7; Caslon set against a mono. */

:root {
  --kelp: #664301;
  --dulce: #3b0700;
  --bone: #edeee7;
  --paper: #ffffff;

  --ink: var(--dulce);
  --muted: rgba(59, 7, 0, 0.55);
  --faint: rgba(59, 7, 0, 0.38);
  --rule: rgba(59, 7, 0, 0.13);

  --serif: "adobe-caslon-pro", "Big Caslon", Caslon, Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --measure: 1560px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--kelp);
  outline-offset: 3px;
}

/* Small mono labels, as used for "SECTION 1" / "DATE" in the brand book. */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kelp);
  margin: 0;
}

/* --- Pre-release gate --------------------------------------------------- */

.gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--paper);
  display: grid;
  place-items: center;
  padding: var(--gutter);
  overflow-y: auto;
}

.gate[hidden] { display: none; }

/* Keep the catalogue out of sight until the gate is cleared. */
body.is-gated > *:not(.gate) { display: none; }

.gate__panel {
  width: min(24rem, 100%);
  text-align: center;
}

.gate__mark { margin-bottom: 2rem; }

.gate__mark .wordmark__img {
  width: min(260px, 70vw);
  margin: 0 auto;
}

.gate__mark .wordmark__text {
  font-size: 1.75rem;
  color: var(--ink);
}

.gate__title {
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0.75rem 0 0.5rem;
}

.gate__note {
  font-style: italic;
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0 0 2rem;
}

.gate__input {
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding: 0.7rem 0.25rem;
  width: 100%;
  text-align: center;
  -webkit-appearance: none;
}

.gate__input::placeholder { color: var(--faint); }
.gate__input:focus { outline: none; border-bottom-color: var(--kelp); }

.gate__button {
  margin-top: 1.5rem;
  width: 100%;
}

.gate__error {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--dulce);
  margin: 1rem 0 0;
}

.gate__error[hidden] { display: none; }

/* --- Masthead ----------------------------------------------------------- */

.masthead {
  padding: clamp(2rem, 5vw, 3.5rem) var(--gutter) 1.75rem;
  max-width: var(--measure);
  margin: 0 auto;
}

.masthead__row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
}

.wordmark {
  display: block;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-decoration: none;
}

/* The supplied logo is a very wide wordmark (roughly 8:1). */
.wordmark__img {
  display: block;
  width: clamp(200px, 26vw, 320px);
  height: auto;
}

.masthead__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.25rem;
}

/* A quiet mark in the space under the search field. */
.hallmark {
  width: 26px;
  height: auto;
  opacity: 0.55;
  margin-right: 0.15rem;
}

.masthead__label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--kelp);
  margin: 0.5rem 0 0;
}

/* No measure cap: each line sits on one line and wraps only when the
   viewport genuinely forces it. */
.masthead__note {
  margin: 1.75rem 0 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted);
  font-style: italic;
}

.masthead__note p { margin: 0 0 0.55rem; }
.masthead__note p:last-child { margin-bottom: 0; }

.masthead__note a {
  color: var(--kelp);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.masthead__note a:hover { color: var(--dulce); }

.search input {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 0.6rem 0.25rem;
  width: min(320px, 62vw);
  border-radius: 0;
  -webkit-appearance: none;
}

.search input::placeholder { color: var(--faint); }
.search input:focus {
  outline: none;
  border-bottom-color: var(--kelp);
}

/* --- Tabs --------------------------------------------------------------- */

.tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-block: 1px solid var(--rule);
}

.tabs__list {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
  list-style: none;
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs__list::-webkit-scrollbar { display: none; }

.tab {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 1rem 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease;
}

.tab:hover { color: var(--ink); }

.tab[aria-current="true"] {
  color: var(--dulce);
  border-bottom-color: var(--kelp);
}

.tab__count {
  font-size: 0.625rem;
  color: var(--faint);
  margin-left: 0.4em;
}

/* --- Toolbar: filters and the collection toggle ------------------------- */

.toolbar {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.toolbar[hidden] { display: none; }

.toolbar__inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0.9rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  align-items: center;
}

.toolbar__right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-left: auto;
}

.filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  /* Metal chips must be able to wrap, or they run off a narrow screen. */
  flex-wrap: wrap;
}

.filter__label {
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}

/* Metal chips — a handful of values, so toggles beat a dropdown. */
.chip {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  padding: 0.35em 0.7em;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.chip:hover { border-color: var(--kelp); color: var(--ink); }

.chip[aria-pressed="true"] {
  background: var(--kelp);
  border-color: var(--kelp);
  color: var(--bone);
}

.filter select {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
  padding: 0.35em 1.6em 0.35em 0.6em;
  border-radius: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: right 0.7em top 52%, right 0.45em top 52%;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
}

.filter select:hover { border-color: var(--kelp); }

/* Price: two handles on one bar, either side of typed amounts.
   The scale is stepped rather than linear, so a handful of very expensive
   pieces don't squash every other price into the first few pixels. */
.range {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.money {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.money__prefix {
  position: absolute;
  left: 0.45em;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--faint);
  pointer-events: none;
}

.money input {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 0.35em 0.4em 0.35em 1.5em;
  width: 10ch; /* wide enough for the "No max" placeholder */
  text-align: right;
  -moz-appearance: textfield;
}

.money input::-webkit-outer-spin-button,
.money input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.money input:hover, .money input:focus { border-color: var(--kelp); outline: none; }
.money input::placeholder { color: var(--faint); }

.dualrange {
  position: relative;
  width: 130px;
  height: 20px;
  flex: none;
}

.dualrange__track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  transform: translateY(-50%);
  background: var(--rule);
}

.dualrange__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--kelp);
}

/* Both inputs overlay the same bar; only their thumbs take pointer events. */
.dualrange input[type="range"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  margin: 0;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.dualrange input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: auto;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--kelp);
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--kelp);
  cursor: grab;
}

.dualrange input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--kelp);
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--kelp);
  cursor: grab;
}

.dualrange input[type="range"]:active::-webkit-slider-thumb { cursor: grabbing; }
.dualrange input[type="range"]:focus-visible::-webkit-slider-thumb {
  outline: 2px solid var(--kelp);
  outline-offset: 2px;
}

.reset {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  padding: 0.2em 0;
  cursor: pointer;
}

.reset:hover { color: var(--dulce); border-bottom-color: var(--kelp); }

/* Toggle switch */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  user-select: none;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.switch__track {
  position: relative;
  width: 34px;
  height: 18px;
  border: 1px solid var(--rule);
  background: transparent;
  border-radius: 9px;
  transition: background 0.2s ease, border-color 0.2s ease;
  flex: none;
}

.switch__track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--faint);
  transition: transform 0.2s ease, background 0.2s ease;
}

.switch input:checked + .switch__track {
  background: var(--kelp);
  border-color: var(--kelp);
}

.switch input:checked + .switch__track::after {
  transform: translateX(16px);
  background: var(--bone);
}

.switch input:focus-visible + .switch__track {
  outline: 2px solid var(--kelp);
  outline-offset: 2px;
}

.switch__label {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.switch input:checked ~ .switch__label { color: var(--dulce); }

@media (max-width: 700px) {
  .toolbar__inner { gap: 0.85rem; }
  .filters { gap: 0.6rem 1rem; }
  /* Flow from the left rather than pushing the toggle against the edge. */
  .toolbar__right { margin-left: 0; width: 100%; justify-content: flex-start; }
  .range input[type="range"] { width: 68px; }
}

/* --- Catalogue ---------------------------------------------------------- */

.catalogue {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) var(--gutter) 5rem;
  outline: none;
}

.state {
  color: var(--muted);
  font-style: italic;
  padding: 3rem 0;
}

.collection {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.collection__head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.75rem;
  margin-bottom: 2.25rem;
  border-bottom: 1px solid var(--rule);
}

.collection__name {
  font-size: clamp(1.375rem, 2.6vw, 1.875rem);
  font-weight: 400;
  margin: 0;
}

.collection__count {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--faint);
  margin-left: auto;
  white-space: nowrap;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem);
  align-items: start;
}

/* Product heading inside the collection grid: spans every column so the
   variants beneath it always begin on a clean row. */
.product__name {
  grid-column: 1 / -1;
  font-size: 1.0625rem;
  font-weight: 400;
  font-style: italic;
  margin: 0;
  color: var(--ink);
}

/* No top margin on a heading that lands first in its collection. */
.product__name + .card { margin-top: 0; }
.grid > .product__name:not(:first-child) { margin-top: 1rem; }

/* --- About -------------------------------------------------------------- */

/* Left-aligned to the same gutter as the masthead and the product grid,
   with the prose held to a readable measure. */
.about {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) 5rem;
}

.about[hidden] { display: none; }

.about > * { max-width: 46rem; }

.about h1 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 2.5rem;
}

.about h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin: 3rem 0 1rem;
}

.about__subhead {
  font-size: 1.1875rem;
  font-weight: 400;
  font-style: italic;
  color: var(--kelp);
  margin: 2.75rem 0 0.6rem;
  line-height: 1.35;
}

.about p {
  margin: 0 0 1.35rem;
  font-size: 1.0625rem;
  line-height: 1.72;
}

.about strong { font-weight: 700; }

.about a {
  color: var(--kelp);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.about a:hover { color: var(--dulce); }

/* Galleries run a little wider than the text column. */
.about > .gallery { max-width: 64rem; }

.gallery { margin: 2.5rem 0 3rem; }

.gallery__head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.6rem;
  margin-bottom: 1.25rem;
}

.gallery__title {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kelp);
  margin: 0;
}

.gallery__count {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  color: var(--faint);
  margin-left: auto;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}

.gallery__item {
  aspect-ratio: 1 / 1;
  background: var(--bone);
  border: 0;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.2, 0, 0.2, 1);
}

.gallery__item:hover img { transform: scale(1.04); }

/* --- Card --------------------------------------------------------------- */

.card {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* Square, matching the product photography, so the tile is filled edge to
   edge with no letterboxing. */
.card__tile {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bone);
  overflow: hidden;
  margin-bottom: 0.875rem;
}

.card__tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.5s cubic-bezier(0.2, 0, 0.2, 1);
}

.card:hover .card__tile img { transform: scale(1.035); }

.card__tile--empty {
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.card__badge {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  padding: 0.25em 0.5em;
  background: rgba(255, 255, 255, 0.85);
  color: var(--muted);
}

.card__title {
  font-size: 0.9375rem;
  font-weight: 400;
  margin: 0 0 0.625rem;
  line-height: 1.3;
}

.card__variant {
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--muted);
  margin: -0.45rem 0 0.625rem;
}

/* Specification rows — visible at a glance beneath every thumbnail. */
.spec {
  margin: 0;
  border-top: 1px solid var(--rule);
  font-size: 0.75rem;
}

.spec > div {
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--rule);
}

.spec dt {
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
  padding-top: 0.15em;
}

.spec dd {
  margin: 0;
  text-align: right;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.spec dd.is-empty { color: var(--faint); }
.spec dd.is-sku { font-family: var(--mono); font-size: 0.6875rem; }

.spec--large { font-size: 0.875rem; border-top-color: rgba(237, 238, 231, 0.22); }
.spec--large > div { padding: 0.55rem 0; border-bottom-color: rgba(237, 238, 231, 0.16); }
.spec--large dt { font-size: 0.625rem; color: rgba(237, 238, 231, 0.55); }
.spec--large dd { color: var(--bone); }
.spec--large dd.is-empty { color: rgba(237, 238, 231, 0.4); }

/* --- Lightbox ----------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  /* Fully opaque: at 97% the catalogue behind showed through as ghost text. */
  background: #1c0300;
  color: var(--bone);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.lightbox[hidden] { display: none; }

.lightbox__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 4.5rem) clamp(1.25rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 4rem);
  align-items: start;
}

.lightbox__stage { margin: 0; }

.lightbox__stage img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  display: block;
  background: var(--bone);
}

.lightbox__filmstrip {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.lightbox__filmstrip button {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 1px solid transparent;
  background: var(--bone);
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.lightbox__filmstrip button:hover { opacity: 0.85; }
.lightbox__filmstrip button[aria-current="true"] {
  opacity: 1;
  border-color: var(--kelp);
}

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

.lightbox__panel { padding-top: 0.25rem; }

.lightbox__panel .eyebrow { color: rgba(237, 238, 231, 0.6); }

.lightbox__title {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 0.75rem 0 0;
}

.lightbox__variant {
  font-style: italic;
  color: rgba(237, 238, 231, 0.7);
  margin: 0.35rem 0 1.75rem;
}

.lightbox__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85em 1.6em;
  background: var(--kelp);
  color: var(--bone);
  border: 1px solid var(--kelp);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.button:hover { background: #7a5202; border-color: #7a5202; }

.button--ghost {
  background: transparent;
  color: rgba(237, 238, 231, 0.85);
  border-color: rgba(237, 238, 231, 0.3);
}

.button--ghost:hover {
  background: rgba(237, 238, 231, 0.1);
  border-color: rgba(237, 238, 231, 0.55);
  color: var(--bone);
}

.lightbox__filemeta {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: rgba(237, 238, 231, 0.5);
  margin: 0.9rem 0 0;
}

.lightbox__close,
.lightbox__nav {
  position: fixed;
  background: none;
  border: 0;
  color: rgba(237, 238, 231, 0.65);
  cursor: pointer;
  line-height: 1;
  z-index: 2;
  transition: color 0.2s ease;
}

.lightbox__close:hover,
.lightbox__nav:hover { color: var(--bone); }

.lightbox__close {
  top: 1rem; right: 1.25rem;
  font-size: 2.25rem;
  padding: 0.25rem 0.5rem;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.75rem;
  padding: 0.5rem 0.75rem;
}

.lightbox__nav--prev { left: 0.25rem; }
.lightbox__nav--next { right: 0.25rem; }

/* --- Footer ------------------------------------------------------------- */

.colophon {
  border-top: 1px solid var(--rule);
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2rem var(--gutter) 3.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.colophon p { margin: 0; }
.colophon a { color: var(--kelp); text-decoration: none; }
.colophon a:hover { text-decoration: underline; }

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 860px) {
  .lightbox__inner {
    grid-template-columns: minmax(0, 1fr);
    /* Clear the arrows, which sit fixed above the foot of the panel. */
    padding-bottom: 5.5rem;
  }
  .lightbox__stage img { max-height: 56vh; }
  .lightbox__nav {
    font-size: 2rem;
    top: auto;
    bottom: 0.75rem;
    transform: none;
    background: #1c0300;
    border-radius: 50%;
  }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .spec { font-size: 0.6875rem; }
}

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

body.is-locked { overflow: hidden; }
