:root {
  color-scheme: light;
  --canvas: #f5f5f5;
  --paper: #ffffff;
  --ink: #111111;
  --soft-panel: #f2f0ea;
  --soft-panel-2: #f7f4ec;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family:
    "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei",
    sans-serif;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
}

img,
video {
  display: block;
  width: 100%;
  max-width: 100%;
  background: var(--soft-panel);
}

video {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #111111;
}

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

.figma-page {
  width: min(1326px, 100%);
  margin: 0 auto;
  background: var(--paper);
  min-height: 100vh;
  padding: 21px 32px 112px;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 24px;
  min-height: 208px;
  color: var(--ink);
  overflow: hidden;
}

.page-header a {
  font-size: 27px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.page-header span {
  display: block;
  margin-top: 9px;
  color: var(--ink);
  font-size: 11px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 4.1px;
  white-space: nowrap;
}

.case-frame {
  scroll-margin-top: 34px;
  padding: 0 0 96px;
}

.case-frame + .case-frame {
  padding-top: 74px;
}

.case-heading {
  display: grid;
  grid-template-columns: 46.5% minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  margin-bottom: 13px;
}

.case-title-block h1 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0;
}

.case-title-block p {
  margin: 0;
  color: var(--ink);
  font-size: 9px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: 4.2px;
  text-transform: none;
}

.case-description {
  display: grid;
  gap: 7px;
  padding-top: 0;
}

.case-description p {
  margin: 0;
  max-width: 548px;
  color: var(--ink);
  font-size: 10px;
  line-height: 1.52;
  font-weight: 500;
  letter-spacing: 0;
}

.case-description p[lang] {
  font-size: 10px;
  line-height: 1.55;
  font-weight: 500;
}

.media-layout {
  display: grid;
  gap: 14px;
}

.media-layout figure {
  margin: 0;
  background: var(--soft-panel);
}

.media-layout img,
.media-layout video {
  border: 0;
  border-radius: 0;
}

.media-stack {
  grid-template-columns: 1fr;
}

.span-wide {
  grid-column: 1 / -1;
}

@media (max-width: 820px) {
  .figma-page {
    padding: 18px 14px 56px;
  }

  .page-header {
    min-height: 78px;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
  }

  .page-header a {
    font-size: 12px;
    font-weight: 800;
  }

  .page-header span {
    margin-top: 3px;
    font-size: 5px;
    line-height: 1.12;
    font-weight: 400;
    letter-spacing: 1.9px;
    white-space: nowrap;
  }

  .case-heading {
    grid-template-columns: 46.5% minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 10px;
  }

  .case-title-block h1 {
    font-size: 9.5px;
    line-height: 1.05;
    margin-bottom: 6px;
  }

  .case-title-block p {
    font-size: 4.8px;
    line-height: 1.1;
    letter-spacing: 1.9px;
  }

  .case-description p,
  .case-description p[lang] {
    max-width: none;
    font-size: 5.6px;
    line-height: 1.45;
    font-weight: 500;
  }

  .media-layout {
    gap: 10px;
  }

  .span-wide {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .figma-page {
    padding: 18px 14px 56px;
  }

  .page-header a {
    font-size: 12px;
  }

  .page-header span {
    margin-top: 3px;
    font-size: 5px;
    letter-spacing: 1.9px;
  }

  .case-heading {
    gap: 14px;
    margin-bottom: 10px;
  }

  .case-title-block h1 {
    font-size: 9.5px;
  }

  .case-title-block p {
    font-size: 4.8px;
    letter-spacing: 1.9px;
  }

  .case-description p,
  .case-description p[lang] {
    font-size: 5.6px;
    line-height: 1.45;
  }
}
