/* ==========================================================================
   El Rincón de la Fotografía — editorial dark gallery
   ========================================================================== */

@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #0a0a0b;
  --ink-soft: #101012;
  --ink-raised: #16161a;
  --paper: #f2efe9;
  --muted: #918c84;
  --sand: #d9b98c;
  --line: rgba(242, 239, 233, 0.13);
  --line-strong: rgba(242, 239, 233, 0.28);

  --serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.15rem, 4vw, 4.5rem);
  --max: 1600px;
  --gap: clamp(2px, 0.55vw, 10px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 4.5rem;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--sand);
  color: var(--ink);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  margin: 0;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------- header --- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
  padding-inline: var(--gutter);
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
}

/* only when JS is available can the header float transparent at the top */
.js .site-header:not(.is-scrolled):not(.is-open) {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
}

.wordmark span {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.25rem);
}

.nav a {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--paper);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--paper);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.2s;
}

.site-header.is-open .nav-toggle span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.site-header.is-open .nav-toggle span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

@media (max-width: 760px) {
  .js .nav-toggle {
    display: block;
  }

  .js .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 var(--gutter) 2.5rem;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    visibility: hidden;
    transition: transform 0.45s var(--ease), visibility 0.45s;
  }

  .js .site-header.is-open .nav {
    transform: translateY(0);
    visibility: visible;
  }

  .nav a {
    width: 100%;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.78rem;
  }

  /* without JS the nav stays visible, wrapped under the wordmark */
  html:not(.js) .site-header {
    flex-wrap: wrap;
    height: auto;
    padding-block: 0.9rem;
  }

  html:not(.js) .nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin-top: 0.25rem;
  }

  html:not(.js) .nav a {
    width: auto;
    padding: 0.35rem 0;
    border-bottom: 0;
  }
}

/* ----------------------------------------------------------------- hero --- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: #050506;
}

.hero-media {
  position: absolute;
  inset: -6% 0 0;
  z-index: -2;
}

.hero-media .media {
  height: 100%;
  background-color: #050506;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.05);
  will-change: transform;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      to top,
      rgba(5, 5, 6, 0.96) 0%,
      rgba(5, 5, 6, 0.55) 30%,
      rgba(5, 5, 6, 0.1) 60%,
      rgba(5, 5, 6, 0.62) 100%
    ),
    linear-gradient(to right, rgba(5, 5, 6, 0.72) 0%, rgba(5, 5, 6, 0.18) 52%, transparent 76%);
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(3.5rem, 9vh, 7rem);
}

.hero-name {
  margin: 1.1rem 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 9.2vw, 9.5rem);
  line-height: 0.86;
  letter-spacing: -0.03em;
  text-wrap: balance;
  text-shadow: 0 2px 60px rgba(0, 0, 0, 0.4);
}

.hero-name em {
  font-style: italic;
  color: var(--sand);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line-strong);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
  transition: color 0.3s, border-color 0.3s;
}

.hero-cta:hover {
  color: var(--sand);
  border-color: var(--sand);
}

.hero-cta span {
  transition: transform 0.3s var(--ease);
}

.hero-cta:hover span {
  transform: translateY(3px);
}

.hero-scroll {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(3.5rem, 9vh, 7rem);
  max-width: 18ch;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242, 239, 233, 0.6);
  text-align: right;
}

@media (max-width: 900px) {
  .hero {
    min-height: 86svh;
  }

  .hero-media img {
    object-position: 66% 44%;
  }

  .hero-name {
    font-size: clamp(2.6rem, 12vw, 4.2rem);
  }

  .hero-inner {
    padding-bottom: clamp(2.5rem, 6vh, 4rem);
  }

  .hero-scroll {
    display: none;
  }
}

/* -------------------------------------------------------------- section --- */

.section {
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

.section--tight {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

/* section whose media runs edge to edge */
.section--flush {
  padding-inline: 0;
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.section--flush .section-head {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.section-title {
  margin: 0.6rem 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.section-note {
  max-width: 32ch;
  text-align: right;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 700px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* ---------------------------------------------------------- contact sheet --- */

.sheet {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.sheet li {
  position: relative;
}

/* edge-to-edge variant used on the home page */
.sheet--bleed {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sheet--bleed .is-feature {
  grid-column: 1 / -1;
}

.sheet--bleed .is-feature .media,
.sheet--bleed .is-wide .media {
  aspect-ratio: 16 / 9;
}

.sheet--bleed .is-wide {
  grid-column: 1 / -1;
}

@media (max-width: 700px) {
  .sheet--bleed {
    grid-template-columns: 1fr;
  }

  .sheet--bleed .is-feature .media,
  .sheet--bleed .is-wide .media {
    aspect-ratio: 16 / 9;
  }
}

.sheet figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: var(--ink-soft);
}

.sheet .media {
  aspect-ratio: 16 / 9;
}

.sheet img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter 0.6s;
}

.sheet a:hover img,
.sheet a:focus-visible img {
  transform: scale(1.035);
}

.sheet figcaption {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 2.5rem 1rem 0.85rem;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.sheet a:hover figcaption,
.sheet a:focus-visible figcaption {
  opacity: 1;
  transform: none;
}

.sheet--full {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sheet--full li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.sheet--full li:last-child:nth-child(odd) .media {
  aspect-ratio: 21 / 9;
}

@media (max-width: 620px) {
  .sheet,
  .sheet--full {
    grid-template-columns: 1fr;
  }

  .sheet--full li:last-child:nth-child(odd) .media {
    aspect-ratio: 16 / 9;
  }
}

/* -------------------------------------------------------------- gallery cards --- */

.galleries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--ink-soft);
}

.card .media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink-soft);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), opacity 0.5s;
}

.card:hover img,
.card:focus-visible img {
  transform: scale(1.04);
}

.card-overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 4rem 1.25rem 1.15rem;
  background: linear-gradient(to top, rgba(4, 4, 5, 0.88), rgba(4, 4, 5, 0.35) 55%, transparent);
}

.card-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  font-weight: 400;
  line-height: 1.05;
}

.card-kicker {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242, 239, 233, 0.72);
  white-space: nowrap;
}

.card-desc {
  margin: 0.45rem 0 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .galleries {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .galleries {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------ about --- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.about-statement {
  margin: 1rem 0 0;
  max-width: 17ch;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.about-copy {
  padding-top: 0.4rem;
}

.about-copy p {
  max-width: 44ch;
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
}

.about-copy p:last-child {
  margin-bottom: 0;
}

@media (max-width: 820px) {
  .about {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-statement {
    max-width: 100%;
  }
}

/* ------------------------------------------------------------------- cta --- */

.cta {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(3rem, 7vw, 6rem);
  text-align: center;
}

.cta-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.015em;
}

.cta-title em {
  font-style: italic;
  color: var(--sand);
}

.cta-mail {
  display: inline-block;
  margin-top: 1.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line-strong);
  font-size: clamp(0.9rem, 1.4vw, 1.15rem);
  letter-spacing: 0.04em;
  transition: border-color 0.3s, color 0.3s;
}

.cta-mail:hover {
  color: var(--sand);
  border-color: var(--sand);
}

/* ---------------------------------------------------------- gallery page --- */

.page-head {
  padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 6rem));
  padding-bottom: clamp(1.75rem, 3vw, 3rem);
}

.page-title {
  margin: 0.9rem 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 8vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.page-desc {
  max-width: 46ch;
  margin: 0;
  color: var(--muted);
}

.page-count {
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.pager a {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 45%;
}

.pager a:last-child {
  text-align: right;
  align-items: flex-end;
}

.pager-label {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.pager-title {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  transition: color 0.3s;
}

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

/* --------------------------------------------------------------- contact --- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.contact-lead {
  max-width: 40ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
}

.contact-list {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.contact-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-list span {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-list a,
.contact-list strong {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  font-weight: 400;
  transition: color 0.3s;
}

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

.form {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--ink-soft);
  border: 1px solid var(--line);
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: none;
  color: var(--paper);
  font: inherit;
  font-size: 0.95rem;
  border-radius: 0;
}

.field textarea {
  min-height: 7rem;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--sand);
}

.form .btn {
  justify-self: start;
  margin-top: 0.5rem;
}

.form-note {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
}

@media (max-width: 820px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------- footer --- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.footer-brand {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.01em;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-nav a {
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s;
}

.footer-nav a:hover {
  color: var(--paper);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.68rem;
  color: var(--muted);
}

/* --------------------------------------------------------------- media --- */

.media {
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: var(--ink-soft);
}

.media img {
  position: relative;
  z-index: 1;
}

/* ------------------------------------------------------------- lightbox --- */

.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(6, 6, 7, 0.97);
  color: var(--paper);
  overflow: hidden;
}

.lightbox[open] {
  display: grid;
  grid-template-rows: auto 1fr auto;
  animation: lb-in 0.35s var(--ease);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

@keyframes lb-in {
  from {
    opacity: 0;
  }
}

.lb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2rem);
}

.lb-count {
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.lb-close {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  background: none;
  color: var(--paper);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}

.lb-close:hover {
  background: var(--paper);
  color: var(--ink);
}

.lb-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(1rem, 4vw, 4rem);
  min-height: 0;
}

.lb-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lb-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 3vw, 2rem) 1.5rem;
}

.lb-caption {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: var(--paper);
}

.lb-nav {
  display: flex;
  gap: 0.5rem;
}

.lb-nav button {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  background: none;
  color: var(--paper);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}

.lb-nav button:hover {
  background: var(--paper);
  color: var(--ink);
}

/* --------------------------------------------------------------- motion --- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
