@font-face {
  font-family: "Inter Tight";
  src: url("fonts/inter-tight.woff") format("woff");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #181818;
  --rule: #c9c9c9;
  font-family: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, a { color: inherit; }
button { font: inherit; }
a { text-underline-offset: .22em; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.wrap { width: min(100% - 48px, 960px); margin-inline: auto; }
.topbar {
  padding-block: 15px;
  font-size: 1.1rem;
  font-weight: 850;
}
.topbar a { text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.story { width: min(100% - 48px, 660px); margin-inline: auto; }
.story .subtitle {
  margin: 0 0 .65em;
  font-size: clamp(2.5rem, 7.4vw, 5.75rem);
  font-weight: 900;
  line-height: .94;
  letter-spacing: 0;
  word-spacing: .07em;
  text-wrap: balance;
}
.story { margin-top: clamp(34px, 5vw, 60px); }
.story p {
  margin: 0 0 1.15em;
  font-size: clamp(1.0625rem, 2.25vw, 1.25rem);
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: -.016em;
}
.story p:last-child { font-weight: 800; }
.story-images { margin: 19px 0 clamp(30px, 5vw, 48px); }
figure { margin: 0; }
.frame {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: zoom-in;
}
.frame img, .viewer-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 960 / 536;
  object-fit: contain;
}
.frame:hover { outline: 1px solid var(--ink); outline-offset: 2px; }
.frame:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
figcaption { margin-top: 6px; font-size: .875rem; font-weight: 650; font-variant-numeric: tabular-nums; }
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  border-top: 1px solid var(--rule);
  margin-top: 58px;
  padding-block: 14px 28px;
}
footer a { font-size: .9375rem; font-weight: 600; }
dialog {
  width: min(1180px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100% - 28px);
  padding: 0;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
}
dialog::backdrop { background: rgb(0 0 0 / 76%); }
.viewer-image { max-height: 76dvh; background: #000; }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px; }
.viewer-bar button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: var(--paper);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.viewer-bar button:hover { background: #f5f5f5; }
.viewer-time { font-size: .9375rem; margin-inline: 4px auto; font-variant-numeric: tabular-nums; }
@media (max-width: 500px) {
  .wrap, .story { width: calc(100% - 32px); }
}

.topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  color: #fff;
}
.language-picker { position: relative; }
.language-picker summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  list-style: none;
}
.language-picker summary::-webkit-details-marker { display: none; }
.language-picker summary:hover, .language-picker[open] summary { background: rgb(255 255 255 / 16%); }
.paw-icon {
  position: relative;
  width: 20px;
  height: 20px;
  background:
    radial-gradient(ellipse 2.2px 3px at 14% 42%, currentColor 85%, transparent),
    radial-gradient(ellipse 2.3px 3.2px at 38% 25%, currentColor 85%, transparent),
    radial-gradient(ellipse 2.3px 3.2px at 62% 25%, currentColor 85%, transparent),
    radial-gradient(ellipse 2.2px 3px at 86% 42%, currentColor 85%, transparent);
}
.paw-icon::after {
  content: "";
  position: absolute;
  inset: 10px 4px 1px;
  border-radius: 62% 62% 44% 44%;
  background: currentColor;
}
.languages {
  position: absolute;
  z-index: 2;
  inset-block-start: calc(100% + 6px);
  inset-inline-end: 0;
  min-width: 150px;
  padding: 5px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 7px 18px rgb(0 0 0 / 9%);
  font-size: .9375rem;
  font-weight: 500;
}
.languages a {
  display: flex;
  min-height: 40px;
  align-items: center;
  padding-inline: 10px;
  border-radius: 4px;
  white-space: nowrap;
}
.languages a:hover, .languages a[aria-current="page"] { background: #f5f5f5; }
.languages a[aria-current="page"] { text-decoration: underline; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--paper);
  color: #fff;
}
.hero-stage {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1920 / 1068;
}
.hero-preview {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgb(0 0 0 / 50%), transparent 108px);
}
.topbar > a:focus-visible, .language-picker summary:focus-visible {
  outline-color: #fff;
}

.feed-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 5px 11px 5px 8px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  font-size: .8125rem;
  font-weight: 650;
  cursor: pointer;
}
.bowl-icon {
  position: relative;
  flex: 0 0 16px;
  height: 14px;
}
.bowl-icon::before, .bowl-icon::after {
  content: "";
  position: absolute;
}
.bowl-icon::before {
  inset: 6px 1px 1px;
  border-radius: 1px 1px 5px 5px;
  background: currentColor;
}
.bowl-icon::after {
  inset: 3px 0 auto;
  height: 5px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.feed-trigger:hover { background: #f5f5f5; border-color: #777; }
.feed-dialog {
  width: min(540px, calc(100% - 28px), calc(100dvh - 76px));
  border: 1px solid #383838;
  border-radius: 14px;
  background: #0c0c0c;
  color: #fff;
  color-scheme: dark;
  box-shadow: 0 22px 85px rgb(0 0 0 / 48%);
  overflow: hidden;
}
.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1px 7px 1px 15px;
  border-bottom: 1px solid #2e2e2e;
}
.feed-header h2 { margin: 0; font-size: .875rem; font-weight: 650; }
.feed-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.feed-close:hover { background: #252525; }
.feed-close:focus-visible { outline-color: #fff; outline-offset: -3px; }
.feed-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: #000;
}
