/*
 * Shipwright Shore, a LengthOfRope game: the site's one stylesheet.
 *
 * Every surface wears the game's own interface materials, redrawn in CSS: buttons are planks of
 * its wood framed in dark outline, panels are slabs of its checkered stone, gold marks a heading,
 * rope divides the sections, the story sits on parchment, and a warm gold marks keyboard focus.
 * The colours are the game's palette (sand, wood, stone, gold, sea) taken from its source and renders.
 */

:root {
  --outline: #25190e;
  --slab: #353128;
  --slab-dark: #2a2620;
  --slab-deep: #1f1c17;
  --slab-check: #3b362c;
  --slab-rim: #4a4438;
  --plank: #d79c63;
  --plank-light: #e8b37a;
  --plank-shade: #c28e5b;
  --plank-foot: #9a6534;
  --wood: #8a603a;
  --lining: #4e341e;
  --lining-dark: #3b2716;
  --gold: #c6a440;
  --gold-light: #e2c060;
  --sand: #e8d6b4;
  --sand-mid: #d6be96;
  --sand-dark: #c2a678;
  --parchment: #ead8b4;
  --parchment-edge: #c9ab7a;
  --ink: #2b1d10;
  --ink-link: #7a3415;
  --sea: #7d7366;
  --sea-deep: #4a4239;
  --sea-glint: #f6e3a9;
  --focus: #e2c060;
  --rope-light: #cdb47e;
  --rope-dark: #957a46;
  --shadow: rgba(10, 8, 6, 0.45);

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  --font-block: ui-monospace, "Cascadia Mono", "Segoe UI Mono", "DejaVu Sans Mono", "Liberation Mono", Menlo, Consolas, monospace;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --measure: 72rem;
  --header-height: 4rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html:has(dialog[open]) {
  overflow: hidden;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--sand);
  background-color: var(--slab-dark);
  background-image: repeating-conic-gradient(var(--slab-dark) 0 25%, var(--slab-deep) 0 50%);
  background-size: 1.5rem 1.5rem;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

p,
ul,
dl,
figure,
blockquote {
  margin: 0;
}

p + p {
  margin-top: 1em;
}

a {
  color: var(--gold-light);
  text-decoration-thickness: 0.0625em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--sand);
}

:focus-visible {
  outline: 0.1875rem solid var(--focus);
  outline-offset: 0.1875rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  font-family: var(--font-block);
  font-weight: 700;
  color: var(--outline);
  background: var(--plank);
  border: 0.1875rem solid var(--outline);
}

.skip-link:focus {
  top: 1rem;
}

/* Plank: the game's wooden button, carved words on grained wood with a dark foot. */

.plank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 1.125rem 0.6875rem;
  font-family: var(--font-block);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--outline);
  text-shadow: 0.0625rem 0.0625rem 0 rgba(255, 228, 186, 0.6);
  background-color: var(--plank);
  background-image:
    repeating-linear-gradient(0deg, rgba(110, 74, 42, 0.16) 0 0.125rem, transparent 0.125rem 0.4375rem),
    repeating-linear-gradient(90deg, transparent 0 2.5rem, rgba(110, 74, 42, 0.22) 2.5rem 2.625rem, transparent 2.625rem 6rem),
    linear-gradient(180deg, var(--plank-light), var(--plank-shade));
  border: 0.1875rem solid var(--outline);
  box-shadow:
    inset 0 0.125rem 0 rgba(255, 230, 190, 0.55),
    inset 0 -0.3125rem 0 var(--plank-foot);
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.plank:hover {
  color: var(--outline);
  filter: brightness(1.08);
}

.plank:active {
  transform: translateY(0.125rem);
  box-shadow:
    inset 0 0.125rem 0 rgba(255, 230, 190, 0.4),
    inset 0 -0.125rem 0 var(--plank-foot);
}

.plank--large {
  min-height: 3.25rem;
  padding-inline: 1.5rem;
  font-size: 1rem;
}

/* Slab: the game's stone panel, a dark checker inside a bevelled rim. */

.slab {
  padding: clamp(1.25rem, 3vw, 2rem);
  color: var(--sand);
  background-color: var(--slab);
  background-image: repeating-conic-gradient(var(--slab-check) 0 25%, var(--slab) 0 50%);
  background-size: 1rem 1rem;
  border: 0.25rem solid var(--outline);
  box-shadow:
    inset 0 0 0 0.125rem var(--slab-rim),
    0 0.75rem 1.75rem var(--shadow);
}

.slab__title {
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  font-family: var(--font-block);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: linear-gradient(90deg, var(--gold), var(--gold-light) 40%, transparent) bottom left / 100% 0.1875rem no-repeat;
}

/* Parchment: the story's page, warm and stained at the edges. */

.parchment {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  color: var(--ink);
  background-color: var(--parchment);
  background-image:
    radial-gradient(ellipse at 18% 12%, rgba(255, 246, 225, 0.7), transparent 45%),
    radial-gradient(ellipse at 85% 90%, rgba(160, 112, 60, 0.22), transparent 50%),
    radial-gradient(circle at 70% 25%, rgba(150, 100, 50, 0.08) 0 3rem, transparent 3.2rem);
  border: 0.1875rem solid var(--outline);
  box-shadow:
    inset 0 0 2.5rem rgba(125, 82, 38, 0.45),
    0 1rem 2rem var(--shadow);
}

.parchment a {
  color: var(--ink-link);
}

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

.parchment__title {
  margin: 0 0 1.25rem;
  font-family: var(--font-block);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lining);
}

/* Rope: the twisted cord between sections. */

.rope {
  height: 1rem;
  background-color: var(--rope-dark);
  background-image:
    repeating-linear-gradient(-55deg, var(--rope-light) 0 0.4375rem, var(--rope-dark) 0.4375rem 0.875rem),
    linear-gradient(180deg, rgba(255, 240, 200, 0.25), rgba(40, 25, 10, 0.35));
  background-blend-mode: multiply;
  border-block: 0.125rem solid var(--outline);
  box-shadow: 0 0.25rem 0.5rem var(--shadow);
  position: relative;
  z-index: 2;
}

/* Header and navigation. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--slab-deep);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
  border-bottom: 0.1875rem solid var(--outline);
  box-shadow: 0 0.25rem 0 var(--rope-dark), 0 0.5rem 1rem var(--shadow);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  max-width: var(--measure);
  min-height: var(--header-height);
  margin-inline: auto;
  padding: 0.5rem var(--gutter);
}

.studio-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-block);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--plank-light);
  text-shadow:
    0.0625rem 0.0625rem 0 var(--outline),
    -0.0625rem 0.0625rem 0 var(--outline),
    0.0625rem -0.0625rem 0 var(--outline),
    -0.0625rem -0.0625rem 0 var(--outline),
    0.125rem 0.1875rem 0 var(--plank-foot);
}

.studio-mark:hover {
  color: var(--gold-light);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.375rem 0.875rem;
  font-family: var(--font-block);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--outline);
  background: linear-gradient(180deg, var(--plank-light), var(--plank-shade));
  border: 0.1875rem solid var(--outline);
  box-shadow: inset 0 -0.25rem 0 var(--plank-foot);
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.125rem;
  height: 0.1875rem;
  background: var(--outline);
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before {
  top: -0.375rem;
}

.nav-toggle__bars::after {
  top: 0.375rem;
}

.site-nav {
  width: 100%;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  display: inline-block;
  padding: 0.5rem 0.125rem;
  font-family: var(--font-block);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--sand-mid);
}

.site-nav__link:hover {
  color: var(--gold-light);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 0.1875rem;
}

.site-header--enhanced .nav-toggle {
  display: inline-flex;
}

.site-header--enhanced .site-nav {
  display: none;
}

.site-header--enhanced.site-header--open .site-nav {
  display: block;
}

.site-header--enhanced .site-nav__list {
  flex-direction: column;
  gap: 0;
  padding-block: 0.5rem 0.75rem;
}

.site-header--enhanced .site-nav__link {
  display: block;
  padding: 0.75rem 0.25rem;
  border-top: 0.0625rem solid var(--slab-rim);
}

@media (min-width: 60em) {
  .site-header__inner {
    flex-wrap: nowrap;
  }

  .site-nav,
  .site-header--enhanced .site-nav {
    display: block;
    width: auto;
  }

  .site-header--enhanced .nav-toggle {
    display: none;
  }

  .site-nav__list,
  .site-header--enhanced .site-nav__list {
    flex-direction: row;
    gap: 0 1.25rem;
    padding: 0;
  }

  .site-header--enhanced .site-nav__link {
    display: inline-block;
    padding: 0.5rem 0.125rem;
    border-top: 0;
  }
}

/* Hero. */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100svh - var(--header-height));
  padding: clamp(3rem, 8vh, 6rem) var(--gutter) clamp(6rem, 12vh, 8rem);
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__backdrop-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(25, 18, 10, 0.55), rgba(25, 18, 10, 0.15) 70%),
    linear-gradient(180deg, rgba(20, 16, 12, 0.35), transparent 35%, rgba(20, 16, 12, 0.55));
}

.hero__content {
  display: grid;
  justify-items: center;
  gap: 1rem;
  max-width: 48rem;
}

.hero__kicker {
  font-family: var(--font-block);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
  text-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.8);
}

.hero__title {
  margin: 0;
  line-height: 0;
}

.hero__logo {
  width: min(40rem, 90vw);
  margin-inline: auto;
  filter: drop-shadow(0 0.5rem 1rem rgba(0, 0, 0, 0.55));
}

.hero__tagline {
  font-family: var(--font-block);
  font-size: clamp(1.25rem, 3.4vw, 1.875rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--gold-light);
  text-shadow: 0.125rem 0.125rem 0 var(--outline), 0 0 1rem rgba(0, 0, 0, 0.7);
}

.hero__lead {
  max-width: 34rem;
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  color: var(--sand);
  text-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.9);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin-top: 0.5rem;
}

.hero__status {
  max-width: 34rem;
  padding: 0.625rem 1rem;
  font-family: var(--font-block);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--sand);
  background: rgba(31, 28, 23, 0.82);
  border: 0.125rem solid var(--outline);
  box-shadow: inset 0 0 0 0.125rem var(--slab-rim);
}

.hero__sea {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6rem;
  pointer-events: none;
}

.hero__wave {
  --tile: 16rem;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.5rem;
  height: 4.5rem;
  background-repeat: repeat-x;
  background-position: 0 100%;
  background-size: var(--tile) 4rem;
  image-rendering: pixelated;
  animation:
    wave-drift 20s linear infinite,
    wave-swell 5s ease-in-out infinite alternate;
}

.hero__wave--back {
  --tile: 30rem;
  height: 6.5rem;
  background-image: url("../media/sea/wave-back.svg");
  background-size: var(--tile) 6rem;
  animation-duration: 46s, 7s;
  animation-direction: reverse, alternate;
}

.hero__wave--mid {
  --tile: 20rem;
  height: 5.5rem;
  background-image: url("../media/sea/wave-mid.svg");
  background-size: var(--tile) 5rem;
  animation-duration: 30s, 6s;
  animation-delay: 0s, -2s;
}

.hero__wave--front {
  background-image: url("../media/sea/wave-front.svg");
  animation-duration: 20s, 5s;
  animation-delay: 0s, -3.5s;
}

@keyframes wave-drift {
  from {
    background-position-x: 0;
  }

  to {
    background-position-x: var(--tile);
  }
}

@keyframes wave-swell {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-0.375rem);
  }
}

/* Sections. */

.section {
  position: relative;
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
}

.section__inner {
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section__header {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section__eyebrow {
  margin-bottom: 0.5rem;
  font-family: var(--font-block);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand-mid);
}

.section__title {
  margin: 0;
  padding-bottom: 0.75rem;
  font-family: var(--font-block);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--gold-light);
  text-shadow: 0.125rem 0.125rem 0 var(--outline);
  background: linear-gradient(90deg, var(--gold), var(--gold-light) 30%, transparent 80%) bottom left / 100% 0.25rem no-repeat;
}

.section--stone {
  background-color: var(--slab-dark);
}

.section--wood {
  background-color: var(--lining);
  background-image:
    repeating-linear-gradient(90deg, transparent 0 7rem, rgba(0, 0, 0, 0.08) 7rem 7.125rem, transparent 7.125rem 15rem),
    repeating-linear-gradient(180deg, var(--lining) 0 3.375rem, var(--lining-dark) 3.375rem 3.5rem);
}

.section--sea {
  background-color: var(--sea-deep);
  background-image:
    radial-gradient(ellipse at 20% 0, rgba(246, 227, 169, 0.16), transparent 55%),
    repeating-linear-gradient(170deg, transparent 0 1.75rem, rgba(246, 227, 169, 0.05) 1.75rem 1.875rem),
    linear-gradient(180deg, #5e554a, var(--sea-deep));
}

.section--backdrop {
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(4rem, 12vw, 9rem);
}

.section__backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section--backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(31, 28, 23, 0.55), rgba(31, 28, 23, 0.3) 40%, rgba(31, 28, 23, 0.65));
}

.lead {
  font-size: clamp(1.125rem, 2.4vw, 1.3125rem);
  line-height: 1.55;
  color: var(--sand);
}

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.framed {
  margin: 0.5rem;
  background: var(--slab-deep);
  border: 0.25rem solid var(--outline);
  box-shadow:
    0 0 0 0.3125rem var(--plank-shade),
    0 0 0 0.5rem var(--outline),
    0 1rem 2rem var(--shadow);
}

.framed img {
  width: 100%;
}

.framed--portrait {
  max-width: 26rem;
  justify-self: center;
}

@media (min-width: 60em) {
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split--reverse {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .slab--wide {
    max-width: 48rem;
  }
}

/* The island: alternating rows of text and shots. */

.row {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.row + .row {
  margin-top: clamp(3rem, 8vw, 5rem);
}

.row__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-block);
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--gold-light);
}

@media (min-width: 60em) {
  .row {
    grid-template-columns: 1.1fr 1fr;
  }

  .row--reverse .row__media {
    order: 2;
  }
}

.note {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  max-width: 28rem;
  font-family: var(--font-block);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--parchment);
  background-image: radial-gradient(ellipse at 20% 15%, rgba(255, 246, 225, 0.75), transparent 55%);
  border: 0.1875rem solid var(--outline);
  box-shadow: inset 0 0 1.25rem rgba(125, 82, 38, 0.4), 0.375rem 0.375rem 0 var(--outline);
  transform: rotate(-1deg);
}

.note p::before {
  content: "\201C";
}

.note p::after {
  content: "\201D";
}

.note__by {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--lining);
}

.note__by::before {
  content: "- ";
}

/* Banner: the library hero strip. */

.banner {
  border-block: 0.1875rem solid var(--outline);
}

.banner__image {
  width: 100%;
  height: clamp(8rem, 24vw, 22rem);
  object-fit: cover;
}

/* Features: one plank per thing you get. */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.features__item {
  position: relative;
  padding: 1rem 1.125rem 1.25rem 2.75rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--outline);
  background-color: var(--plank);
  background-image:
    repeating-linear-gradient(0deg, rgba(110, 74, 42, 0.14) 0 0.125rem, transparent 0.125rem 0.5rem),
    linear-gradient(180deg, var(--plank-light), var(--plank-shade));
  border: 0.1875rem solid var(--outline);
  box-shadow:
    inset 0 0.125rem 0 rgba(255, 230, 190, 0.55),
    inset 0 -0.3125rem 0 var(--plank-foot),
    0 0.5rem 1rem var(--shadow);
}

.features__item::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.3rem;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--gold-light);
  border: 0.125rem solid var(--outline);
  box-shadow: inset -0.125rem -0.125rem 0 var(--gold);
}

.slab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1.25rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}

/* Gallery and key art. */

.gallery__heading {
  margin: clamp(2rem, 5vw, 3rem) 0 1.25rem;
  font-family: var(--font-block);
  font-size: clamp(1.125rem, 2.6vw, 1.375rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sand);
}

.section__note {
  display: inline-block;
  margin: 1rem 0 0;
  padding: 0.5rem 0.875rem;
  font-family: var(--font-block);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--sand);
  background: var(--slab-deep);
  border: 0.125rem solid var(--outline);
  box-shadow: inset 0 0 0 0.125rem var(--slab-rim);
}

.section__header + .gallery__heading {
  margin-top: 0;
}

.gallery,
.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: 1.25rem;
  padding: 0;
  list-style: none;
}

.art-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
  align-items: start;
}

.gallery__figure {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.gallery__link {
  display: block;
  overflow: hidden;
  background: var(--slab-deep);
  border: 0.25rem solid var(--outline);
  box-shadow:
    0 0 0 0.1875rem var(--plank-shade),
    0 0 0 0.375rem var(--outline),
    0 0.75rem 1.5rem var(--shadow);
  margin: 0.375rem;
}

.gallery__link img {
  width: 100%;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery__link:hover img,
.gallery__link:focus-visible img {
  transform: scale(1.04);
  filter: brightness(1.06);
}

.gallery__link:focus-visible {
  outline-offset: 0.5rem;
}

.gallery__caption {
  margin-top: 0.625rem;
  padding-inline: 0.375rem;
  font-family: var(--font-block);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--sand-mid);
}

.gallery__item--tall .gallery__link {
  flex: 1;
}

.gallery__item--tall .gallery__link img {
  height: 100%;
  object-fit: cover;
}

@media (min-width: 40em) {
  .gallery__item--tall {
    grid-row: span 2;
  }

  .art-grid__item--wide {
    grid-column: span 2;
  }
}

.art-grid__icon {
  width: 10rem;
  margin: 1rem auto;
}

.art-grid__logo {
  padding: 1.25rem 0.75rem;
  background-color: var(--sea);
  background-image: repeating-conic-gradient(rgba(255, 255, 255, 0.06) 0 25%, transparent 0 50%);
  background-size: 1rem 1rem;
}

/* Facts and credits. */

.facts {
  display: grid;
}

.facts__row {
  display: grid;
  gap: 0.125rem 1rem;
  padding-block: 0.625rem;
  border-bottom: 0.0625rem dashed var(--slab-rim);
}

.facts__row:last-child {
  border-bottom: 0;
}

.facts dt {
  font-family: var(--font-block);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.facts dd {
  margin: 0;
}

@media (min-width: 30em) {
  .facts__row {
    grid-template-columns: 9rem 1fr;
    align-items: baseline;
  }
}

.bullets {
  display: grid;
  gap: 0.625rem;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}

.bullets li {
  position: relative;
  padding-left: 1.75rem;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.55em;
  width: 0.625rem;
  height: 0.625rem;
  background: var(--gold-light);
  border: 0.125rem solid var(--outline);
}

.press-contact {
  margin-top: 1.5rem;
  font-weight: 600;
}

.call {
  max-width: 48rem;
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
}

/* Footer. */

.site-footer {
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter);
  text-align: center;
  background-color: var(--lining-dark);
  background-image: repeating-linear-gradient(180deg, var(--lining-dark) 0 3.375rem, #2e1e10 3.375rem 3.5rem);
  border-top: 0.25rem solid var(--rope-dark);
}

.site-footer__inner {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  max-width: var(--measure);
  margin-inline: auto;
}

.site-footer__logo {
  width: 14rem;
  margin-bottom: 0.75rem;
}

.site-footer__line {
  font-size: 0.9375rem;
  color: var(--sand-mid);
}

.site-footer__line + .site-footer__line {
  margin-top: 0;
}

/* Lightbox. */

.lightbox {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  color: var(--sand);
  background: transparent;
  border: 0;
}

.lightbox::backdrop {
  background: rgba(20, 16, 12, 0.92);
}

.lightbox[open] {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas:
    "prev next . close"
    "frame frame frame frame";
  gap: 0.75rem;
}

.lightbox__button--prev {
  grid-area: prev;
}

.lightbox__button--next {
  grid-area: next;
}

.lightbox__button--close {
  grid-area: close;
}

.lightbox__frame {
  grid-area: frame;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  justify-items: center;
  min-height: 0;
}

.lightbox__stage {
  display: grid;
  place-items: center;
  min-height: 0;
  width: 100%;
}

.lightbox__image {
  max-width: 100%;
  max-height: min(100%, calc(100vh - 10rem));
  width: auto;
  height: auto;
  object-fit: contain;
  border: 0.25rem solid var(--outline);
  box-shadow: 0 0 0 0.25rem var(--plank-shade), 0 0 0 0.4375rem var(--outline);
}

.lightbox__caption {
  margin-top: 0.875rem;
  font-family: var(--font-block);
  font-weight: 700;
  text-align: center;
  color: var(--gold-light);
}

.lightbox__count {
  margin-top: 0.25rem;
  font-family: var(--font-block);
  font-size: 0.8125rem;
  color: var(--sand-mid);
}

/* Reveal on scroll, only for blocks that start below the fold. */

.reveal {
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal--pending {
  opacity: 0;
  transform: translateY(1.5rem);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal--pending {
    opacity: 1;
    transform: none;
  }

  .note {
    transform: none;
  }
}
