@font-face {
  font-family: "Libre Baskerville";
  src: url("/fonts/libre-baskerville.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Brittany Signature";
  src: url("/fonts/brittany-signature.ttf") format("truetype");
  font-display: swap;
}

:root {
  --font: "Libre Baskerville", Georgia, serif;
  --font-display: var(--font);
  /* Change this to any CSS color to recolor hn creates. */
  --studio-accent: #ff0000;
  --red: var(--studio-accent);
  --black: rgb(from var(--studio-accent) calc(r * .058824) calc(g * .058824) calc(b * .058824));
  --red-3: rgb(from var(--studio-accent) calc(74 + r * .607843) calc(82 + g * .607843) calc(74 + b * .607843));
  --liquid-pink: color-mix(in srgb, var(--studio-accent) 29.8%, white);
  --studio-shadow: color-mix(in srgb, var(--studio-accent) 72.16%, black);
  --studio-surface: color-mix(in srgb, var(--studio-accent) 11%, black);
  --studio-hot: color-mix(in srgb, var(--studio-accent) 85%, white);
}

.ts-c.is-alt,
.ts-measure-alt {
  --font-display: "Brittany Signature", "Libre Baskerville", Georgia, serif;
}

.hero {
  --sil-color: var(--studio-shadow);
  --wm-stop0: color-mix(in srgb, var(--studio-accent) 5%, white);
}

a[href^="mailto:"] {
  overflow-wrap: anywhere;
}

.f-contact .f-contact__mail {
  max-inline-size: 100%;
  font-size: clamp(1rem, 6vw, 7rem);
  line-height: 1.15;
  letter-spacing: -.025em;
}

.dc-meta {
  container-type: inline-size;
}

@container (max-width: 23rem) {
  .dc-meta > div {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 4px;
  }
}

.work-legal {
  padding-block: 32px;
  font-size: .875rem;
}

.work-legal nav {
  grid-column: 1 / -1;
}

.work-legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 0;
  margin: 0;
  list-style: none;
}

html[data-studio-recolor] :is(.hero__gradient:not(:has(.hero__wave.is-live)), .f-kw-grain:not(.is-live)) {
  filter: url(#studio-accent-filter);
}

.f-cl--partners {
  margin-top: clamp(24px, 6vh, 64px);
}

.f-cl--partners :is(.f-cl__mark, .f-cl__colour) {
  width: min(100%, var(--brand-size));
}

.f-cl--partners .f-logo {
  width: 100%;
  height: auto;
  aspect-ratio: var(--brand-ratio);
}

.f-cl--partners .f-cl__mark img {
  filter: grayscale(1);
  opacity: .8;
}

.f-cl--partners .f-cl__cap {
  white-space: normal;
  text-align: center;
  justify-content: center;
}

.pj-story--artworks {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(12px, 2vw, 28px);
}

.pj-artwork {
  display: block;
  position: relative;
  height: 100%;
  border-radius: var(--img-r);
  cursor: zoom-in;
}

.pj-artwork img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

.pj__fig--hero .pj-artwork img {
  height: 100%;
}

.pj-artwork:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

.pj__fig--hero .pj-artwork:focus-visible {
  outline-color: white;
  outline-offset: -5px;
}

.pj-artwork:is([data-artwork="video"], [data-artwork="instagram"]) {
  cursor: pointer;
}

.pj-artwork:is([data-artwork="video"], [data-artwork="instagram"])::before {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgb(12 12 12 / .86);
  border: 1px solid rgb(255 255 255 / .66);
  pointer-events: none;
}

.pj-artwork:is([data-artwork="video"], [data-artwork="instagram"])::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 50% auto auto 50%;
  transform: translate(-35%, -50%);
  border: 7px solid transparent;
  border-left: 11px solid white;
  border-right: 0;
  pointer-events: none;
}

.artwork-viewer {
  position: fixed;
  inset: 0;
  margin: auto;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #141414;
  color: white;
  overflow: hidden;
}

.artwork-viewer::backdrop {
  background: rgb(0 0 0 / .85);
}

.artwork-viewer :is(img, video) {
  display: block;
  max-width: min(1050px, calc(100vw - 24px));
  max-height: calc(100dvh - 72px);
  object-fit: contain;
}

.artwork-viewer button {
  display: block;
  margin: 4px 4px 4px auto;
  min-height: 40px;
  padding-inline: 14px;
  border: 1px solid #adadad;
  border-radius: 6px;
  color: inherit;
  background: #242424;
  font: inherit;
  cursor: pointer;
}

.artwork-viewer button:focus-visible {
  outline: 2px solid white;
  outline-offset: 1px;
}

html:has(.artwork-viewer[open]) {
  overflow: hidden;
}

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

@media (max-width: 540px) {
  .pj-story--artworks {
    grid-template-columns: minmax(0, 1fr);
  }
}
