:root {
  --page-bg: #f5efd7;
  --ink: #24211d;
  --muted: #615a4d;
  --rule: rgba(36, 33, 29, .72);
  --rule-soft: rgba(36, 33, 29, .22);
  --shell: min(100% - 56px, 1500px);
  --font-base: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.35;
}

.page {
  width: var(--shell);
  margin: 0 auto;
  padding: 26px 0 64px;
}

.project-header {
  display: block;
  margin: 0 0 32px;
}

.sqk-back {
  display: block;
  width: 84px;
  margin: 0 0 18px;
}

.sqk-back img {
  display: block;
  width: 100%;
  height: auto;
}

.project-date {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .05em;
  line-height: 1.1;
  text-transform: uppercase;
}

.project-rule {
  margin: 10px 0 16px;
  border-top: 2px solid var(--ink);
}

.project-note {
  max-width: 920px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: clamp(.95rem, 1.4vw, 1.3rem);
  font-weight: 900;
  line-height: 1.15;
}

h1,
h5 {
  margin: 0;
  max-width: 980px;
  font-size: clamp(1.3rem, 4vw, 4rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: .86;
}

h5 {
  font-size: clamp(1rem, 2.5vw, 2.5rem);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
  align-items: start;
}

.grid img {
  display: block;
  width: 100%;
  height: auto;
  background: rgba(36, 33, 29, .06);
}

.video-wrapper {
  position: relative;
  width: min(100%, 1200px);
  margin: 0;
  background: rgba(36, 33, 29, .06);
  cursor: pointer;
}

.page-talkback .video-wrapper {
  width: min(100%, 600px);
}

.video-wrapper img,
.video-wrapper video {
  display: block;
  width: 100%;
  height: auto;
}

.video-wrapper video {
  display: none;
}

.play-button {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: clamp(58px, 9vw, 104px);
  aspect-ratio: 1;
  border: 3px solid var(--ink);
  background: var(--page-bg);
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  line-height: 1;
}

.media-actions,
.project-footer {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  margin-top: 14px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.page-video .media-actions {
  width: min(100%, 1200px);
}

.page-talkback .media-actions {
  width: min(100%, 600px);
}

.project-footer {
  justify-content: flex-start;
  margin-top: 42px;
}

.copy-link,
.fullscreen-button,
.project-footer__mark {
  min-height: 36px;
  padding: 9px 12px;
  border: 0;
  border-right: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .78rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.copy-link,
.fullscreen-button {
  display: inline-flex;
  align-items: center;
}

.project-footer__mark {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  border-right: 1px solid var(--rule);
  border-left: 0;
}

.project-footer__mark img {
  display: block;
  width: auto;
  height: 3em;
}

.copy-link:hover,
.copy-link:focus-visible,
.fullscreen-button:hover,
.fullscreen-button:focus-visible,
.project-footer__mark:hover,
.project-footer__mark:focus-visible {
  background: var(--ink);
  color: var(--page-bg);
}

@media (max-width: 680px) {
  :root {
    --shell: min(100% - 24px, 1500px);
  }

  .page {
    padding-top: 18px;
  }

  .sqk-back {
    width: 66px;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
  }
}
