@font-face {
  font-family: "Bradford LL";
  font-style: normal;
  font-weight: 300;
  src: url("./assets/fonts/BradfordLL-Light.otf") format("opentype");
}

@font-face {
  font-family: "Bradford LL";
  font-style: italic;
  font-weight: 300;
  src: url("./assets/fonts/BradfordLL-LightItalic.otf") format("opentype");
}

@font-face {
  font-family: "Bradford LL";
  font-style: normal;
  font-weight: 400;
  src: url("./assets/fonts/BradfordLL-Regular.otf") format("opentype");
}

@font-face {
  font-family: "Bradford LL";
  font-style: italic;
  font-weight: 400;
  src: url("./assets/fonts/BradfordLL-Italic.otf") format("opentype");
}

@font-face {
  font-family: "Bradford LL";
  font-style: normal;
  font-weight: 450;
  src: url("./assets/fonts/BradfordLL-Book.otf") format("opentype");
}

@font-face {
  font-family: "Bradford LL";
  font-style: italic;
  font-weight: 450;
  src: url("./assets/fonts/BradfordLL-BookItalic.otf") format("opentype");
}

@font-face {
  font-family: "Bradford LL";
  font-style: normal;
  font-weight: 500;
  src: url("./assets/fonts/BradfordLL-Medium.otf") format("opentype");
}

@font-face {
  font-family: "Bradford LL";
  font-style: italic;
  font-weight: 500;
  src: url("./assets/fonts/BradfordLL-MediumItalic.otf") format("opentype");
}

@font-face {
  font-family: "Bradford LL";
  font-style: normal;
  font-weight: 600;
  src: url("./assets/fonts/BradfordLL-Bold.otf") format("opentype");
}

@font-face {
  font-family: "Bradford LL";
  font-style: italic;
  font-weight: 600;
  src: url("./assets/fonts/BradfordLL-BoldItalic.otf") format("opentype");
}

@font-face {
  font-family: "Bradford LL";
  font-style: normal;
  font-weight: 800;
  src: url("./assets/fonts/BradfordLL-ExtraBold.otf") format("opentype");
}

@font-face {
  font-family: "Bradford LL";
  font-style: italic;
  font-weight: 800;
  src: url("./assets/fonts/BradfordLL-ExtraBoldItalic.otf") format("opentype");
}

@font-face {
  font-family: "Bradford LL";
  font-style: normal;
  font-weight: 900;
  src: url("./assets/fonts/BradfordLL-Black.otf") format("opentype");
}

@font-face {
  font-family: "Bradford LL";
  font-style: italic;
  font-weight: 900;
  src: url("./assets/fonts/BradfordLL-BlackItalic.otf") format("opentype");
}

@font-face {
  font-family: "Bradford Mono LL";
  font-style: normal;
  font-weight: 400;
  src: url("./assets/fonts/BradfordMonoLL-Regular.otf") format("opentype");
}

* {
  box-sizing: border-box;
}

:root {
  --page-bg: white;
  --hive-red: #D20000;
  --page-width: 41.50rem;
  --motion-stiffness: 450;
  --motion-damping: 22;
  --magnet-enter-radius: 9;
  --magnet-release-radius: 16;
  --magnet-travel: 0.2;
  --magnet-scale: 1.2;
  --tooltip-scale-from: 1;
  --tooltip-scale-to: 1;
  --logo-divider-size: 1.35rem;
  --title-size: 1.28rem;
  --title-weight: 600;
  --title-line-height: 0.92;
  --title-tracking: 0.000em;
  --heading-size: 1.28rem;
  --heading-weight: 600;
  --heading-line-height: 1.2;
  --heading-tracking: -0.010em;
  --body-size: 1.13rem;
  --body-weight: 400;
  --body-line-height: 1.35;
  --body-tracking: -0.011em;
  --paragraph-spacing: 1.45rem;
  --footnote-size: 0.86rem;
  --footnote-line-height: 1.18;
  --font-kerning: normal;
  --font-features: "kern" 1, "liga" 1;
  --webkit-font-smoothing: antialiased;
  --moz-font-smoothing: grayscale;
  --text-rendering: optimizeLegibility;
  color-scheme: light;
}

@supports (color: color(display-p3 0.8235 0 0)) {
  :root {
    --hive-red: color(display-p3 0.8235 0 0);
  }
}

html {
  background: var(--page-bg);
  color: black;
  cursor: default;
  font-family: "Bradford LL", Georgia, serif;
  font-feature-settings: var(--font-features);
  font-kerning: var(--font-kerning);
  -moz-osx-font-smoothing: var(--moz-font-smoothing);
  -webkit-font-smoothing: var(--webkit-font-smoothing);
  scroll-behavior: smooth;
  text-rendering: var(--text-rendering);
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--page-bg);
  color: black;
  cursor: default;
  font-family: "Bradford LL", Georgia, serif;
  font-feature-settings: inherit;
  font-kerning: inherit;
  -moz-osx-font-smoothing: inherit;
  -webkit-font-smoothing: inherit;
  text-rendering: inherit;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 850;
  background: rgba(0, 0, 0, 0.05);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

body.footnote-preview-active::before {
  opacity: 1;
}

main {
  position: relative;
  z-index: 1;
  width: min(100%, var(--page-width));
  margin: 0 auto;
  padding: 9rem 2rem 3.75rem;
}

article {
  width: 100%;
}

#hiveminds-constitution > h2:first-of-type {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: none;
  margin: 0 0 1rem;
  color: black;
  font-family: "Bradford Mono LL", ui-monospace, monospace;
  font-size: var(--title-size);
  font-weight: var(--title-weight);
  letter-spacing: var(--title-tracking);
  line-height: var(--title-line-height);
  text-align: center;
  overflow-wrap: normal;
}

#hiveminds-constitution > h2:first-of-type span {
  display: block;
}

#hiveminds-constitution > h2:not(:first-of-type) {
  max-width: 100%;
  margin: 3.5rem 0 1rem;
  color: black;
  font-size: var(--heading-size);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-tracking);
  line-height: var(--heading-line-height);
}

#hiveminds-constitution > h2:not(:first-of-type) strong {
  font-weight: inherit;
}

p,
li,
figcaption {
  max-width: 100%;
  color: black;
  font-size: var(--body-size);
  font-weight: var(--body-weight);
  letter-spacing: var(--body-tracking);
  line-height: var(--body-line-height);
}

p {
  margin: 0 0 var(--paragraph-spacing);
}

#hiveminds-constitution li > p > em:first-child {
  display: block;
  margin-bottom: 0.35rem;
}

#hiveminds-constitution li > p > em:first-child + br {
  display: none;
}

#hiveminds-constitution p:has(> strong:first-child:last-child) {
  max-width: 100%;
  margin: 3.5rem 0 1rem;
  color: black;
  font-size: var(--heading-size);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-tracking);
  line-height: var(--heading-line-height);
}

#hiveminds-constitution > h2:first-of-type + .section-heading {
  margin-top: 5.25rem;
}

#hiveminds-constitution > h2:first-of-type + .section-heading::before,
.section-mark {
  display: block;
  width: var(--logo-divider-size);
  height: var(--logo-divider-size);
  background: url("./assets/favicon.svg") center / contain no-repeat;
  content: "";
}

#hiveminds-constitution > h2:first-of-type + .section-heading::before {
  margin: 0 auto 3.375rem;
}

.section-mark {
  margin: 6rem auto 1.5rem;
}

#hiveminds-constitution p:has(> strong:first-child:last-child) strong {
  font-weight: inherit;
}

#hiveminds-constitution p:has(> strong:first-child:last-child) + p {
  max-width: 100%;
  margin-bottom: var(--paragraph-spacing);
  color: black;
  font-size: var(--body-size);
  font-weight: var(--body-weight);
  letter-spacing: var(--body-tracking);
  line-height: var(--body-line-height);
}

#hiveminds-constitution p:has(> strong:first-child:not(:last-child)) {
  max-width: 100%;
  margin-top: 3.5rem;
  color: black;
  font-size: var(--heading-size);
  font-weight: 400;
  letter-spacing: var(--heading-tracking);
  line-height: var(--heading-line-height);
}

.video-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 4480 / 3096;
  margin: 2.5rem 0 3.5rem;
  border: 0.025rem solid black;
  background: black url("./assets/video-poster.jpg") center / cover no-repeat;
  overflow: hidden;
}

.video-placeholder iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

strong {
  color: black;
  font-weight: 600;
}

.section-heading strong {
  font-weight: inherit;
}

em {
  color: black;
  font-style: italic;
}

a,
a:visited {
  color: black;
  text-decoration-color: black;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.13em;
}

[lang|="zh"] {
  font-family: "Songti TC", "Songti SC", STSong, serif;
}

.footnote-ref,
.footnote-ref:visited {
  position: relative;
  color: var(--hive-red);
  cursor: default;
  text-decoration: none;
}

.footnote-ref::after {
  position: absolute;
  inset: -0.2em -0.15em;
  content: "";
}

.footnote-ref sup {
  display: inline-block;
  color: var(--hive-red);
  font-weight: 600;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.footnote-ref.is-previewing sup {
  text-shadow: 0 0 0.02em var(--hive-red);
}

.footnote-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 900;
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.5rem;
  width: min(18rem, calc(100vw - 2rem));
  border: 0;
  border-radius: 0.15rem;
  -webkit-backdrop-filter: blur(24px) saturate(1.35);
  backdrop-filter: blur(24px) saturate(1.35);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 1.4rem 3rem rgba(0, 0, 0, 0.18);
  color: var(--hive-red);
  opacity: 0;
  padding: 0.85rem 1rem;
  pointer-events: none;
  scale: 1;
  transform: translate3d(0, 0, 0);
  transform-origin: center center;
  transition:
    opacity 120ms ease;
  visibility: hidden;
  will-change: opacity, scale, transform;
}

.footnote-preview.is-visible {
  opacity: 1;
  scale: 1;
  visibility: visible;
}

.footnote-preview-number,
.footnote-preview-body,
.footnote-preview p,
.footnote-preview em,
.footnote-preview a {
  color: var(--hive-red);
}

.footnote-preview-number {
  font-size: var(--footnote-size);
  font-weight: 600;
  line-height: var(--footnote-line-height);
}

.footnote-preview p {
  margin: 0;
  max-width: none;
  font-size: var(--footnote-size);
  line-height: var(--footnote-line-height);
}

ul {
  max-width: 100%;
  margin: 2.5rem 0 0;
  padding: 0;
  color: black;
  list-style: none;
}

li {
  max-width: none;
  margin: 0;
  padding: 0 0 1.5rem;
}

li > p:first-child {
  max-width: 100%;
  font-size: var(--body-size);
  line-height: var(--body-line-height);
}

#cases ul {
  margin: 1.35rem 0 2.25rem;
}

#cases li {
  padding: 0;
}

#cases li > em {
  display: block;
  border-left: 0.1rem solid var(--hive-red);
  margin: 0;
  padding: 0.05rem 0 0.05rem 1rem;
  color: var(--hive-red);
  font-style: italic;
  font-size: var(--body-size);
  font-weight: var(--body-weight);
  letter-spacing: var(--body-tracking);
  line-height: var(--body-line-height);
}

sup {
  color: black;
  font-size: 0.56em;
  line-height: 0;
}

#footnotes {
  margin-top: 4rem;
  border-top: 0;
  padding-top: 1rem;
  color: var(--hive-red);
  font-family: "Bradford Mono LL", ui-monospace, monospace;
}

#footnotes > hr {
  display: none;
}

#footnotes ol {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--hive-red);
  column-gap: 3rem;
}

#footnotes li {
  break-inside: avoid;
  border-top: 0;
  color: var(--hive-red);
  padding: 0;
  font-size: clamp(0.68rem, 0.72vw, 0.78rem);
}

#footnotes li::marker {
  color: var(--hive-red);
  font-size: 0.82em;
}

#footnotes p {
  max-width: none;
  color: var(--hive-red);
  font-size: var(--footnote-size);
  line-height: var(--footnote-line-height);
}

#footnotes em,
#footnotes a {
  color: var(--hive-red);
}

.typography-dev-panel,
.typography-dev-tab {
  position: fixed;
  z-index: 1000;
  color: black;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: normal;
  font-size: 12px;
  font-kerning: auto;
  letter-spacing: 0;
  line-height: 1.25;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

.typography-dev-panel {
  top: 1rem;
  right: 1rem;
  width: min(21rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.14);
  padding: 0.85rem;
}

.type-panel-closed .typography-dev-panel {
  display: none;
}

.typography-dev-tab {
  right: 1rem;
  bottom: 1rem;
  display: none;
  min-width: 3.25rem;
  border: 1px solid black;
  background: white;
  color: black;
  padding: 0.5rem 0.65rem;
}

.type-panel-closed .typography-dev-tab {
  display: block;
}

.typography-dev-panel h2 {
  margin: 0 0 0.7rem;
  color: black;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.1;
}

.typography-dev-preview {
  display: grid;
  gap: 0.55rem;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  padding-top: 0.7rem;
}

.typography-dev-sample {
  overflow: hidden;
  color: black;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.typography-dev-sample-title {
  color: var(--hive-red);
  font-family: "Bradford LL", Georgia, serif;
  font-size: var(--title-size);
  font-weight: var(--title-weight);
  letter-spacing: var(--title-tracking);
  line-height: var(--title-line-height);
}

.typography-dev-sample-heading {
  font-family: "Bradford LL", Georgia, serif;
  font-size: var(--heading-size);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-tracking);
  line-height: var(--heading-line-height);
}

.typography-dev-sample-body {
  font-family: "Bradford LL", Georgia, serif;
  font-size: var(--body-size);
  font-weight: var(--body-weight);
  letter-spacing: var(--body-tracking);
  line-height: var(--body-line-height);
}

.typography-dev-sample-footnote {
  color: var(--hive-red);
  font-family: "Bradford LL", Georgia, serif;
  font-size: var(--footnote-size);
  line-height: var(--footnote-line-height);
}

.typography-dev-sample-mono {
  font-family: "Bradford Mono LL", ui-monospace, monospace;
  font-size: 0.78rem;
  line-height: 1.25;
}

.typography-dev-section {
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  padding-top: 0.7rem;
  margin-top: 0.7rem;
}

.typography-dev-label {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
}

.typography-dev-label span {
  color: rgba(0, 0, 0, 0.72);
}

.typography-dev-value {
  min-width: 4.5rem;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: white;
  color: black;
  font: inherit;
  padding: 0.2rem 0.25rem;
  text-align: right;
}

.typography-dev-panel input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: var(--hive-red);
}

.typography-dev-panel select {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0;
  background: white;
  color: black;
  font: inherit;
  padding: 0.35rem;
}

.typography-dev-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.typography-dev-panel button {
  border: 1px solid black;
  border-radius: 0;
  background: white;
  color: black;
  font: inherit;
  padding: 0.45rem 0.35rem;
  cursor: pointer;
}

.typography-dev-panel button:hover,
.typography-dev-tab:hover {
  background: black;
  color: white;
}

.footnote-back {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.legal-body {
  background: white;
}

.legal-main {
  width: min(100%, var(--page-width));
  padding: 9rem 2rem 3.75rem;
}

.legal-document {
  width: 100%;
}

.legal-hero {
  margin: 0 0 5.25rem;
  text-align: center;
}

.legal-kicker,
.legal-updated {
  margin: 0 0 0.45rem;
  color: black;
  font-family: "Bradford Mono LL", ui-monospace, monospace;
  font-size: var(--footnote-size);
  font-weight: 400;
  letter-spacing: 0;
  line-height: var(--footnote-line-height);
}

.legal-hero h1 {
  max-width: 100%;
  margin: 0 0 0.75rem;
  color: black;
  font-family: "Bradford Mono LL", ui-monospace, monospace;
  font-size: var(--title-size);
  font-weight: var(--title-weight);
  letter-spacing: var(--title-tracking);
  line-height: var(--heading-line-height);
}

.legal-copy {
  color: black;
  font-size: var(--body-size);
  font-weight: var(--body-weight);
  letter-spacing: var(--body-tracking);
  line-height: var(--body-line-height);
}

.legal-copy p,
.legal-copy li,
.legal-copy figcaption,
.legal-copy p:has(> strong:first-child:last-child),
.legal-copy p:has(> strong:first-child:not(:last-child)),
.legal-copy p:has(> strong:first-child:last-child) + p {
  max-width: 100%;
  margin: 0 0 var(--paragraph-spacing);
  color: black;
  font-size: inherit;
  font-weight: var(--body-weight);
  letter-spacing: inherit;
  line-height: inherit;
}

.legal-copy a,
.legal-copy a:visited {
  color: black;
  text-decoration-color: black;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.14em;
}

.legal-copy u {
  text-decoration-thickness: 0.055em;
  text-underline-offset: 0.12em;
}

.legal-section {
  margin-top: 3rem;
}

.legal-section > h2,
.legal-notice > h2 {
  display: flex;
  align-items: baseline;
  gap: 0.32em;
  max-width: 100%;
  margin: 0 0 1rem;
  color: black;
  font-size: var(--heading-size);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-tracking);
  line-height: var(--heading-line-height);
}

.legal-notice {
  margin: 2.75rem 0;
}

.legal-notice > h2 {
  font-size: var(--body-size);
  font-weight: 600;
  letter-spacing: var(--body-tracking);
  line-height: var(--body-line-height);
}

.legal-subsection {
  margin-top: 1.45rem;
}

.legal-subsection > h3,
.legal-copy > h3,
.legal-section > h3 {
  display: flex;
  align-items: baseline;
  gap: 0.32em;
  max-width: 100%;
  margin: 0 0 0.55rem;
  color: black;
  font-size: var(--body-size);
  font-weight: 600;
  letter-spacing: var(--body-tracking);
  line-height: var(--body-line-height);
}

.legal-copy > h3,
.legal-section > h3 {
  display: block;
  margin-top: 1.75rem;
}

.legal-copy > h3,
.legal-section > h3,
.legal-notice > h2 {
  display: block;
}

.legal-number {
  color: black;
  display: inline-block;
  font-family: inherit;
  font-size: 1em;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  line-height: inherit;
}

.legal-section > h2 .legal-number {
  font-family: "Bradford Mono LL", ui-monospace, monospace;
  font-size: 0.78em;
  line-height: 1;
  transform: translateY(-0.03em);
}

.legal-section > h2 .legal-number,
.legal-subsection > h3 .legal-number {
  flex: 0 0 auto;
}

.legal-section > h2 .legal-number + span,
.legal-subsection > h3 .legal-number + span {
  min-width: 0;
}

.legal-important {
  font-size: inherit !important;
  font-weight: var(--body-weight) !important;
  line-height: inherit !important;
}

.legal-important strong {
  font-weight: 500;
}

.legal-copy ul,
.legal-list {
  max-width: 100%;
  margin: 0.35rem 0 var(--paragraph-spacing);
  padding: 0 0 0 1.25rem;
  list-style: disc;
}

.legal-copy li,
.legal-list li {
  margin: 0 0 0.75rem;
  padding: 0;
}

.legal-copy li::marker {
  color: black;
}

.legal-copy li > p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

.legal-address {
  margin: 0.85rem 0 1.35rem;
  padding-left: 1.25rem;
}

.legal-address p {
  margin: 0;
}

.legal-mark {
  background: white;
  color: black;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  width: min(100%, var(--page-width));
  margin: 0 auto;
  padding: 0 2rem 3rem;
  color: black;
  font-family: "Bradford Mono LL", ui-monospace, monospace;
  font-size: var(--footnote-size);
  line-height: var(--footnote-line-height);
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}

.site-footer a,
.site-footer a:visited {
  color: black;
  text-decoration-color: black;
}

.site-footer a[aria-current="page"] {
  color: black;
  text-decoration-color: black;
}

@media (max-width: 42rem) {
  .legal-main {
    padding: 6rem 1.5rem 2.5rem;
  }

  .site-footer {
    padding: 0 1.5rem 2rem;
  }
}

::selection {
  background: var(--hive-red);
  color: white;
}

@media (min-width: 58rem) {
  p:nth-of-type(7n + 2) {
    max-width: 100%;
  }

  #footnotes ol {
    columns: 1;
  }
}

@media (max-width: 42rem) {
  main {
    padding: 6rem 1.5rem 2rem;
  }

  #hiveminds-constitution > h2:first-of-type {
    max-width: none;
    font-size: var(--title-size);
    margin-bottom: 1rem;
  }

  #hiveminds-constitution p:has(> strong:first-child:last-child) {
    margin-top: 3rem;
  }
}
