/* Marc Levine Photography */

:root {
  --bg: #f5f2ec;
  --bg-soft: #ece7df;
  --ink: #1c1a17;
  --ink-soft: #4d4740;
  --muted: #847c71;
  --rule: #ddd6cb;
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino", Georgia, serif;
  --sans: "Jost", "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pad: clamp(16px, 4.5vw, 64px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121110;
    --bg-soft: #1c1a18;
    --ink: #eee8df;
    --ink-soft: #c9c1b5;
    --muted: #8f877c;
    --rule: #2c2926;
    color-scheme: dark;
  }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 300 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 300; }

.eyebrow {
  margin: 0;
  font: 500 11px/1.4 var(--sans);
  letter-spacing: .28em;
  text-transform: uppercase;
}

.js .fade { opacity: 0; transition: opacity .9s var(--ease); }
.js .fade.is-in { opacity: 1; }

.btn {
  display: inline-block;
  padding: 15px 30px 14px;
  font: 500 11px/1 var(--sans);
  letter-spacing: .26em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .3s, color .3s, border-color .3s;
}
.btn--light { color: #fff; border: 1px solid rgba(255, 255, 255, .65); }
.btn--light:hover, .btn--light:focus-visible { background: #fff; color: #1c1a17; border-color: #fff; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ---------------------------------------------------------------- hero (home) and cover (gallery) */

.hero, .cover {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: #2a2724;
  text-align: center;
}
.hero { height: 100vh; height: 100svh; min-height: 560px; }
.cover { height: 86vh; height: 86svh; min-height: 520px; }

.hero__img, .cover__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--c);
  animation: settle 22s var(--ease) both;
}
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero__img, .cover__img { animation: none; } }

/* A tall photo is shown whole, over a soft, darkened, blurred copy of itself that fills the sides. */
.hero--tall .hero__img, .hero__slide--tall .hero__img, .cover--tall .cover__img { object-fit: contain; background: none; }
/* Home page photos: each sits in its own layer and fades in over the one before. */
.hero__slide { position: absolute; inset: 0; overflow: hidden; transition: opacity 1.6s ease; }
.hero__slide.is-next { opacity: 0; }
.hero__credit[hidden] { display: none; }
.hero__photos { position: absolute; inset: 0; }

.hero__fill, .cover__fill {
  position: absolute;
  /* Larger than its frame on every side (and not limited by img's max-width) so the blur's soft edge falls outside
     the frame; otherwise the darker background behind it shows through at the screen's edges. */
  top: -120px;
  left: -120px;
  width: calc(100% + 240px);
  max-width: none;
  height: calc(100% + 240px);
  object-fit: cover;
  filter: blur(40px) brightness(.62) saturate(1.1);
  background: var(--c);
}

.hero__shade, .cover__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0, 0, 0, .28), rgba(0, 0, 0, 0) 70%),
    linear-gradient(to bottom, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, .45));
}

.hero__text, .cover__text {
  position: relative;
  max-width: 900px;
  padding: 0 var(--pad);
  animation: rise 1.4s .2s var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero h1, .cover h1 {
  margin: .22em 0 .2em;
  font: 300 clamp(54px, 10vw, 148px)/.92 var(--serif);
  letter-spacing: -.015em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
}
.hero__text { max-width: 1100px; }   /* room for the full name on one line */
.hero h1 { font-size: clamp(46px, 10vw, 148px); }
.cover h1 { font-size: clamp(46px, 8vw, 116px); }
.cover__subtitle {
  margin: -.1em auto .9em;
  max-width: 30em;
  font: 300 clamp(20px, 2.4vw, 32px)/1.25 var(--serif);
  letter-spacing: .01em;
  opacity: .88;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .25);
}

.hero__tagline, .cover__desc {
  margin: 0 auto 2.2em;
  max-width: 34em;
  font: italic 300 clamp(19px, 2.2vw, 26px)/1.35 var(--serif);
  opacity: .92;
}
.cover__desc { font-size: clamp(18px, 1.8vw, 22px); }
.hero__text .btn, .cover__text .btn { margin-top: .6em; }

.hero__credit {
  position: absolute;
  right: var(--pad);
  bottom: 26px;
  font: 400 11px/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: .75;
  transition: opacity .3s;
}
.hero__credit::before { content: "Featured — "; opacity: .7; }
.hero__credit:hover { opacity: 1; }

/* Computers, and tablets or phones held sideways: the name starts large over the first two photos, then app.js adds
   .is-settled and it glides into a slim dark band along the bottom, so later photos show uncovered.
   (Upright phones and iPads stack instead; see below.) --band is the band's height, set by app.js. */
@media (min-width: 1101px), (orientation: landscape) {
  .hero__photos { transition: bottom 1.4s var(--ease); }
  /* The blurred fill keeps the full-screen size while the photos glide up, so the browser doesn't have to redo the
     blur on every frame of that move (that redraw made the screen's edges flicker). */
  .hero__fill { height: calc(max(100vh, 560px) + 240px); height: calc(max(100svh, 560px) + 240px); will-change: transform; }
  .hero__shade { transition: opacity 1.4s ease; }
  .hero__text { transition: background-color 1.4s ease; }
  .hero.is-settled { background: #12100f; }
  .hero.is-settled .hero__photos { bottom: var(--band, 0px); }
  .hero.is-settled .hero__shade { opacity: 0; }
  .hero.is-settled .hero__credit { bottom: 16px; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
  .hero.is-settled .hero__text {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "name button" "tagline button";
    align-items: center;
    column-gap: 32px;
    max-width: none;
    margin: 0;
    padding: clamp(16px, 2.4vh, 28px) var(--pad);
    text-align: left;
    background: #12100f;
    animation: none;
  }
  .hero.is-settled h1 { grid-area: name; justify-self: start; margin: 0; font-size: clamp(30px, 3vw, 50px); line-height: 1.05; text-shadow: none; }
  .hero.is-settled .hero__tagline { grid-area: tagline; justify-self: start; margin: 4px 0 0; max-width: none; font-size: clamp(16px, 1.3vw, 20px); }
  .hero.is-settled .hero__text .btn { grid-area: button; margin: 0; }
}

/* Phones and iPads held upright: a wide photo would be a band in the middle of a tall screen, so the photos get
   the top of the screen to themselves, full width, and the name, tagline and button sit in a dark band underneath. */
@media (max-width: 1100px) and (orientation: portrait) {
  .hero { display: block; height: auto; min-height: 0; place-items: normal; background: #12100f; }
  .hero__photos { position: relative; inset: auto; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; }
  .hero__shade { display: none; }
  .hero__credit { bottom: 10px; right: 12px; font-size: 10px; opacity: .85; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
  .hero__text { margin: 0 auto; padding: clamp(34px, 6vw, 64px) var(--pad) clamp(46px, 8vw, 84px); }
  .hero h1 { margin-top: 0; text-shadow: none; }
}

/* ---------------------------------------------------------------- masthead */

.masthead {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: max(22px, env(safe-area-inset-top)) var(--pad) 22px;
  color: #fff;
}
.wordmark { font: 400 25px/1 var(--serif); text-decoration: none; letter-spacing: .01em; }
.wordmark span {
  display: block;
  margin-top: 6px;
  font: 500 9px/1 var(--sans);
  letter-spacing: .42em;
  text-transform: uppercase;
  opacity: .8;
}
.masthead__link {
  font: 500 11px/1 var(--sans);
  letter-spacing: .24em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .45);
}

/* ---------------------------------------------------------------- gallery index */

.index, .more {
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(72px, 10vw, 150px) var(--pad) clamp(72px, 8vw, 120px);
}
.more { padding-top: clamp(64px, 8vw, 110px); }

.index__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(36px, 5vw, 64px);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.index__head h2 { margin: 0; font: 300 clamp(40px, 5vw, 66px)/1 var(--serif); letter-spacing: -.01em; }
.index__head .eyebrow { color: var(--muted); }
.link { text-decoration: none; }
.link:hover { color: var(--ink); }

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
  gap: clamp(48px, 6vw, 84px) clamp(20px, 3vw, 44px);
}
.cards--small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

.card a { display: block; text-decoration: none; }
.card__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c); }
.card__img img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;   /* the whole photo, never cropped */
  transition: transform 1.4s var(--ease), opacity .9s var(--ease);
}
.card__img .card__fill {
  position: absolute;
  inset: -24px;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  object-fit: cover;
  filter: blur(22px) brightness(.72) saturate(1.1);
}
.card a:hover .card__img img, .card a:focus-visible .card__img img { transform: scale(1.03); }
.card__meta { margin: 22px 0 10px; color: var(--muted); font: 500 11px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.card__title {
  margin: 0;
  font: 400 clamp(28px, 2.6vw, 38px)/1.08 var(--serif);
  letter-spacing: -.005em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  display: inline;
  transition: background-size .6s var(--ease);
}
.card a:hover .card__title { background-size: 100% 1px; }
.cards--small .card__title { font-size: clamp(24px, 2vw, 30px); }
.card__subtitle { margin: 6px 0 0; color: var(--muted); font: 300 clamp(17px, 1.4vw, 20px)/1.3 var(--serif); }
.card__desc {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cards--small .card__desc { display: none; }
.empty { color: var(--muted); font: italic 300 24px var(--serif); }

/* ---------------------------------------------------------------- gallery bar */

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px var(--pad);
  padding-top: max(12px, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.3) blur(16px);
  backdrop-filter: saturate(1.3) blur(16px);
  border-bottom: 1px solid var(--rule);
}
.bar__title { display: flex; align-items: baseline; gap: 16px; min-width: 0; }
.bar__name { font: 400 23px/1.2 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar__count { color: var(--muted); white-space: nowrap; }
.bar__actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }

.action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font: 500 11px/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s;
}
.action:hover { background: var(--bg-soft); }
.action svg { width: 18px; height: 18px; flex-shrink: 0; }
.action small { color: var(--muted); font-size: 10px; letter-spacing: .1em; }

@media (max-width: 720px) {
  .bar__count, .action small { display: none; }
  .action span { display: none; }
  .action { padding: 11px; }
  .bar__name { font-size: 20px; }
}

/* ---------------------------------------------------------------- justified photo grid
   Each tile grows in proportion to its shape, so every row ends up the same height. */

.grid {
  --row-h: 150px;
  --gap: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  padding: var(--gap);
  scroll-margin-top: 60px;
}
.grid::after { content: ""; flex-grow: 999999; }
@media (min-width: 600px) { .grid { --row-h: 220px; --gap: 6px; padding: var(--gap) var(--pad); } }
@media (min-width: 1000px) { .grid { --row-h: 300px; --gap: 8px; } }
@media (min-width: 1700px) { .grid { --row-h: 380px; --gap: 10px; } }

.tile {
  position: relative;
  flex-grow: var(--ar);
  width: calc(var(--ar) * var(--row-h));
  overflow: hidden;
  background: var(--c);
  cursor: zoom-in;
}
.tile img {
  width: 100%;
  height: auto;
  aspect-ratio: var(--ar);
  object-fit: cover;
  transition: transform 1.2s var(--ease), opacity .9s var(--ease), filter .4s;
}
.tile:hover img { transform: scale(1.025); }
.tile__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 16px 12px;
  color: #fff;
  font: italic 400 17px/1.3 var(--serif);
  background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s, transform .4s var(--ease);
}
.tile:hover .tile__cap, .tile:focus-visible .tile__cap { opacity: 1; transform: none; }
@media (hover: none) { .tile__cap { display: none; } }
.tile__play {
  position: absolute;
  top: 50%; left: 50%;
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .42);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .5);
  pointer-events: none;
  transition: background-color .3s;
}
.tile__play svg { width: 22px; height: 22px; margin-left: 3px; }
.tile:hover .tile__play { background: rgba(0, 0, 0, .6); }
.tile__dur {
  position: absolute;
  right: 8px; bottom: 8px;
  padding: 3px 7px;
  border-radius: 3px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font: 500 11px/1 var(--sans);
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.tile--video { cursor: pointer; }

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

.foot {
  margin-top: clamp(40px, 6vw, 80px);
  padding: 56px var(--pad) max(56px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule);
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}
.foot p { margin: 0 0 8px; }
.foot__name { color: var(--ink); font: 400 26px/1.2 var(--serif); margin-bottom: 14px !important; }
.foot__copy { font-size: 12px; letter-spacing: .08em; }
.home .foot { margin-top: 0; }

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

.lb {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #0c0b0b;
  color: #e9e4dc;
  opacity: 0;
  transition: opacity .3s ease;
}
.lb[hidden] { display: none; }
.lb.is-open { opacity: 1; }
.lb.is-idle { cursor: none; }

.lb__top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 22px;
  padding-top: max(10px, env(safe-area-inset-top));
  transition: opacity .5s;
}
.lb__count { font: 500 11px/1 var(--sans); letter-spacing: .24em; color: #a49d93; }
.lb__tools { display: flex; gap: 2px; }
.lb__btn {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #cfc8be;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.lb__btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.lb__btn svg { width: 21px; height: 21px; }
.lb__btn[data-lb="play"] svg + svg, .lb.is-playing .lb__btn[data-lb="play"] svg:first-child { display: none; }
.lb.is-playing .lb__btn[data-lb="play"] svg + svg { display: block; }

.lb__stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0 clamp(0px, 6vw, 96px);
  overflow: hidden;
  touch-action: pinch-zoom;
}
.lb__img {
  max-width: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  transition: opacity .35s ease, transform .35s var(--ease);
}
.lb__img.is-loading { opacity: 0; }
.lb__img.is-dragging, .lb__video.is-dragging { transition: none; }
.lb__img[hidden], .lb__video[hidden] { display: none; }
.lb__video {
  max-width: none;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  transition: transform .35s var(--ease);
}

.lb__spinner {
  position: absolute;
  width: 28px; height: 28px;
  border: 1.5px solid rgba(255, 255, 255, .15);
  border-top-color: rgba(255, 255, 255, .7);
  border-radius: 50%;
  opacity: 0;
  transition: opacity .2s;
  animation: spin .9s linear infinite;
  pointer-events: none;
}
.lb.is-waiting .lb__spinner { opacity: 1; transition-delay: .35s; }
@keyframes spin { to { transform: rotate(360deg); } }

.lb__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 72px;
  height: 140px;
  margin-top: -70px;
  border: 0;
  background: none;
  color: #bdb6ab;
  cursor: pointer;
  transition: color .2s, opacity .5s;
}
.lb__nav:hover { color: #fff; }
.lb__nav svg { width: 34px; height: 34px; }
.lb__nav--prev { left: 0; }
.lb__nav--next { right: 0; }
@media (hover: none) { .lb__nav { display: none; } }

.lb__caption {
  margin: 0;
  min-height: 64px;
  padding: 16px 24px max(22px, env(safe-area-inset-bottom));
  text-align: center;
  font: italic 300 20px/1.35 var(--serif);
  color: #d9d2c7;
  transition: opacity .5s;
}

.lb.is-idle .lb__top, .lb.is-idle .lb__nav { opacity: 0; }   /* the caption stays: it's part of the photo */

.lb__progress { position: absolute; top: 0; left: 0; right: 0; z-index: 3; height: 2px; }
.lb__progress span { display: block; height: 100%; width: 0; background: rgba(255, 255, 255, .55); }
.lb.is-playing .lb__progress span { animation: progress var(--slide, 5s) linear forwards; }
@keyframes progress { to { width: 100%; } }

/* ⓘ photo details: a small round button on the photo's top-right corner, and the panel it opens */
.lb__info-btn {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .38);
  color: #fff;
  cursor: pointer;
  opacity: .82;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: opacity .4s, background-color .2s;
}
.lb__info-btn svg { width: 22px; height: 22px; }
.lb__info-btn:hover, .lb__info-btn[aria-expanded="true"] { opacity: 1; background: rgba(0, 0, 0, .6); }
.lb.is-idle .lb__info-btn:not([aria-expanded="true"]) { opacity: 0; }
.lb__info-btn[hidden], .lb__info[hidden] { display: none; }
.lb__info {
  position: absolute;
  z-index: 3;
  width: max-content;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(12, 11, 11, .88);
  color: #e9e4dc;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font: 400 13px/1.45 var(--sans);
  text-align: left;
  cursor: auto;
}
.lb__info dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.lb__info dt { color: #a49d93; font-size: 10px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; padding-top: 2px; }
.lb__info dd { margin: 0; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: max(28px, env(safe-area-inset-bottom));
  z-index: 200;
  padding: 13px 22px;
  background: var(--ink);
  color: var(--bg);
  font: 500 11px/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  border-radius: 999px;
  transform: translate(-50%, 20px);
  opacity: 0;
  transition: opacity .3s, transform .3s var(--ease);
  pointer-events: none;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- password-protected galleries */

.card__img--locked {
  display: grid;
  place-items: center;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .10), rgba(0, 0, 0, .28)),
    var(--c, #2a2724);
}
.card__lock {
  display: grid;
  justify-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, .92);
  font: 500 11px/1.4 var(--sans);
  letter-spacing: .24em;
  text-transform: uppercase;
}
.card__lock svg { width: 34px; height: 34px; }
.card__badge {
  position: absolute;
  top: 12px; left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  font: 500 10px/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.card__badge svg { width: 14px; height: 14px; }

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.gate { min-height: 100vh; display: flex; flex-direction: column; }
.gate .masthead { position: static; color: var(--ink); }
.gate .masthead__link { border-bottom-color: var(--rule); }
.gate__main { flex: 1; display: grid; place-items: center; padding: 40px var(--pad) 72px; }
.gate__box { width: 100%; max-width: 440px; text-align: center; }
.gate__icon { display: inline-block; color: var(--muted); margin-bottom: 18px; }
.gate__icon svg { width: 34px; height: 34px; }
.gate__box .eyebrow { color: var(--muted); }
.gate__box h1 { margin: .25em 0 .3em; font: 300 clamp(40px, 7vw, 64px)/1 var(--serif); }
.gate__subtitle { margin: -.2em 0 1em; color: var(--muted); font: 300 clamp(18px, 2.4vw, 22px)/1.3 var(--serif); }
.gate__note { margin: 0 0 28px; color: var(--ink-soft); }
.gate__error { margin: 0 0 18px; color: #a33a2a; font-weight: 400; }
@media (prefers-color-scheme: dark) { .gate__error { color: #f08f7e; } }
.gate__form { display: grid; gap: 12px; }
.gate__form input[name="password"] {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.2 var(--sans);
  text-align: center;
}
.gate__form input[name="password"]:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: transparent; }
.gate__show { display: inline-flex; align-items: center; justify-self: center; gap: 8px; color: var(--ink-soft); font-size: 15px; cursor: pointer; }
.gate__show input { width: 16px; height: 16px; margin: 0; accent-color: var(--ink); }
.btn--dark {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
}
.btn--dark:hover, .btn--dark:focus-visible { background: transparent; color: var(--ink); }
.gate .foot { margin-top: 0; }

/* ---------------------------------------------------------------- small screens */

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wordmark { font-size: 21px; }
  .wordmark span { letter-spacing: .34em; }
  .masthead__link { font-size: 10px; letter-spacing: .2em; }
  .hero__credit { left: 0; right: 0; text-align: center; }
  .lb__top { padding-left: 16px; }
  .lb__btn { width: 42px; height: 42px; }
  .lb__caption { font-size: 18px; min-height: 52px; }
}
