*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: #000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

/* Home */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  /* The extended title can outgrow the viewport; never scroll sideways. */
  overflow: hidden;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 12vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero h1 a {
  text-decoration: none;
}

/* The tagline hangs from the right edge of the title. */
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* "Movidote" has no descenders: pull the tagline into that empty space. */
.brand h1 {
  margin-bottom: -0.1em;
  white-space: nowrap;
}

/* Extended "o" (see main.js): left half, horizontal strokes, right half. */
.o-stretch .o-left,
.o-stretch .o-mid,
.o-stretch .o-right,
.o-stretch.is-stretched .o-full {
  display: none;
}

.o-stretch.is-stretched .o-left,
.o-stretch.is-stretched .o-mid,
.o-stretch.is-stretched .o-right {
  display: inline-block;
}

/* Each half is cut only along the axis of the "o"; its outer curve may overhang
   its box (the title has negative tracking), as the whole glyph does. */
.o-left {
  width: var(--o-split);
  clip-path: inset(-0.5em 0 -0.5em -0.5em);
}

.o-right {
  width: var(--o-right);
  text-indent: calc(-1 * var(--o-split));
  clip-path: inset(-0.5em -0.5em -0.5em 0);
}

/* Zero height, so its bottom edge sits on the baseline. */
.o-mid {
  position: relative;
  height: 0;
  vertical-align: baseline;
}

.o-mid::before,
.o-mid::after {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  background: currentColor;
}

.o-mid::before {
  bottom: var(--o-top);
  height: var(--o-top-stroke);
}

.o-mid::after {
  bottom: var(--o-bottom);
  height: var(--o-bottom-stroke);
}

.tagline {
  margin: 0;
  line-height: 1.1;
  color: #a3a3a3;
  font-size: clamp(1rem, 2.6vw, 1.5rem);
  letter-spacing: -0.01em;
}

/* Legal pages */

.legal {
  flex: 1;
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 3rem 1rem 4rem;
  color: #d4d4d4;
  line-height: 1.65;
}

.legal .back {
  display: inline-block;
  margin-bottom: 2.5rem;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.legal h1 {
  margin: 0 0 0.5rem;
  color: #fff;
  font-size: 2rem;
  line-height: 1.2;
}

.legal h2 {
  margin: 2.25rem 0 0.5rem;
  color: #fff;
  font-size: 1.15rem;
}

.legal .updated {
  margin: 0 0 2rem;
  color: #8a8a8a;
  font-size: 0.9rem;
}

.legal ul {
  padding-left: 1.25rem;
}

/* Press room */

.press .download-all {
  display: inline-block;
  padding: 0.6rem 1rem;
  border: 1px solid #fff;
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.press .download-all:hover,
.press .download-all:focus-visible {
  background: #fff;
  color: #000;
}

.legal .assets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.assets li {
  display: flex;
  flex-direction: column;
}

/* The black-background logos need an outline to stand out from the page. */
.assets img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: contain;
  background: #111;
  border: 1px solid #262626;
  border-radius: 0.5rem;
}

.assets p {
  margin: 0.6rem 0 0;
  color: #fff;
  font-size: 0.95rem;
}

.assets p span {
  color: #8a8a8a;
}

.assets .formats {
  display: flex;
  gap: 1rem;
  margin-top: 0.25rem;
  font-size: 0.9rem;
}

/* Footer */

.site-footer {
  padding: 1.5rem 1rem;
  color: #8a8a8a;
  font-size: 0.85rem;
  text-align: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-bottom: 0.5rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible,
.site-footer a[aria-current="page"] {
  color: #fff;
}

.site-footer p {
  margin: 0;
}

.site-footer .lifetime {
  font-variant-numeric: tabular-nums;
}

.site-footer .lifetime::before {
  content: " · ";
}
