:root {
  color-scheme: light;
  --night: #101a24;
  --night-deep: #0b141e;
  --paper: #f7f8f2;
  --ink: #172820;
  --muted: #4f6156;
  --green: #416431;
  --lime: #d5f77a;
  --line: #dce2d6;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans", "Malgun Gothic", system-ui, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.65 var(--font);
}

h1, h2, h3, p {
  margin: 0;
}

h1, h2, h3 {
  line-height: 1.18;
  overflow-wrap: anywhere;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--green);
  text-underline-offset: .22em;
}

a:hover {
  text-decoration-thickness: .13em;
}

:focus-visible {
  outline: 3px solid #729e3c;
  outline-offset: 4px;
}

.global-wrap {
  width: min(73rem, calc(100% - 4rem));
  margin-inline: auto;
}

.global-skip {
  position: fixed;
  z-index: 5;
  top: 1rem;
  left: 1rem;
  padding: .55rem 1rem;
  transform: translateY(-150%);
  color: var(--night);
  background: var(--lime);
}

.global-skip:focus {
  transform: none;
}

.global-header {
  position: relative;
  z-index: 2;
  background: var(--night);
  color: white;
  border-bottom: 1px solid #ffffff25;
}

.global-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.75rem;
}

.global-brand, .global-nav a, .global-language a, .global-footer a {
  text-decoration: none;
}

.global-brand {
  display: inline-flex;
  gap: .65rem;
  align-items: center;
  color: white;
  font-size: 1.05rem;
  font-weight: 750;
}

.global-brand img {
  flex: 0 0 auto;
  border-radius: .7rem;
}

.global-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem 1.5rem;
  font-weight: 600;
}

.global-nav a {
  color: #e5ebef;
}

.global-nav a:hover, .global-footer a:hover {
  color: var(--lime);
  text-decoration: underline;
}

.global-language {
  position: relative;
}

.global-language summary {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 2.75rem;
  padding: .4rem .8rem;
  border: 1px solid #ffffff40;
  border-radius: .55rem;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}

.global-language summary::-webkit-details-marker {
  display: none;
}

.global-language summary::after {
  width: .45rem;
  height: .45rem;
  margin-block-start: -.25rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  content: "";
}

.global-language ul {
  position: absolute;
  inset: calc(100% + .45rem) 0 auto auto;
  min-width: 11rem;
  padding: .3rem;
  margin: 0;
  border: 1px solid #ffffff30;
  border-radius: .65rem;
  background: var(--night-deep);
  box-shadow: 0 .6rem 1.8rem #0005;
  list-style: none;
}

.global-language a {
  display: block;
  padding: .4rem .65rem;
  border-radius: .35rem;
  color: #e5ebef;
}

.global-language a:hover, .global-language a[aria-current] {
  color: var(--lime);
  background: #23323d;
}

.global-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(32rem, 55vw, 42rem);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--night-deep);
  color: white;
}

.global-hero-art {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 auto;
  width: 88%;
  height: 100%;
  object-fit: cover;
  object-position: 66% 44%;
}

.global-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(0deg, #0b141ef0, transparent 30%),
    linear-gradient(90deg, #0b141e 3%, #0b141ef0 24%, #0b141e99 43%, #0b141e15 70%);
  content: "";
}

.global-hero-inner {
  align-self: stretch;
  display: grid;
  grid-template-rows: 1fr auto;
}

.global-hero-copy {
  align-self: center;
  width: min(31rem, 48%);
  padding-block: 4.75rem;
}

.global-hero .hero-eyebrow {
  margin-bottom: .8rem;
  font-size: .85rem;
}

.global-hero .hero-bottom {
  position: static;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: .75rem;
  padding-bottom: 1.2rem;
  color: #d0dbe2;
  font-size: .75rem;
  letter-spacing: .08em;
}

.global-hero .hero-bottom > a {
  min-height: 2.75rem;
  color: white;
  font-size: .875rem;
  font-weight: 600;
}

.global-hero .hero-bottom > a:hover {
  text-decoration: underline;
}

.global-hero .hero-coordinate {
  justify-self: end;
  text-align: end;
}

.global-home .manifesto > div {
  min-width: 0;
  justify-content: center;
  flex-wrap: wrap;
  gap: .6rem clamp(.7rem, 3vw, 2.5rem);
  padding-inline: 1rem;
  font-size: .875rem;
  white-space: normal;
  text-align: center;
}

.global-hero h1 {
  font-size: clamp(2.65rem, 5vw, 5rem);
  font-weight: 800;
  letter-spacing: -.035em;
}

.global-lead {
  max-width: 34ch;
  margin-block: 1.1rem 1.6rem;
  color: #eff3f6;
  font-size: clamp(1rem, 1.55vw, 1.25rem);
}

.global-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

.global-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2.9rem;
  padding: .55rem 1.15rem;
  border: 1px solid transparent;
  border-radius: .5rem;
  font-weight: 700;
  text-decoration: none;
}

.global-button:hover {
  text-decoration: underline;
}

.global-button-primary {
  color: var(--night);
  background: var(--lime);
}

.global-button-outline {
  color: white;
  border-color: #ffffff80;
  background: #0b141e70;
}

.global-button-dark {
  color: white;
  background: var(--night);
}

.global-footer {
  padding-block: 1.6rem;
  border-top: 1px solid #ffffff28;
  color: #d2dbe2;
  background: var(--night-deep);
}

.global-footer-inner, .global-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.5rem;
}

.global-footer-inner {
  justify-content: space-between;
}

.global-footer a {
  color: #e5ebef;
}

.global-reading {
  width: min(53rem, calc(100% - 4rem));
  margin: 0 auto;
  padding-block: clamp(2rem, 5vw, 4rem);
}

.global-reading h1 {
  margin-bottom: .8rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -.025em;
}

.global-reading-card {
  padding: clamp(1.15rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: white;
  overflow-wrap: anywhere;
}

.global-reading-card p, .global-reading-card li {
  margin-top: .65rem;
}

.global-reading-card ul, .global-reading-card ol {
  padding-inline-start: 1.5rem;
}

.global-legal h2 {
  margin-top: 1.85rem;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
}

html body.global-support {
  max-width: none;
  margin: 0 !important;
  padding: 0 !important;
}

.global-support .page,
.global-faq-page {
  width: min(70rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding-bottom: 2.5rem;
}

.global-faq-page {
  max-width: 54rem;
  padding-top: clamp(2rem, 5vw, 3rem);
}

.global-support .page .diagram,
.global-home .feature-tab,
.global-home .demo-apps,
.global-home .wallpaper-meta {
  overflow-wrap: anywhere;
}

.global-home .feature-tab {
  min-width: 0;
}

.global-home .demo-apps,
.global-home .wallpaper-toolbar {
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .global-wrap, .global-reading {
    width: calc(100% - 2.5rem);
  }

  .global-header-inner {
    grid-template-columns: 1fr auto;
    gap: .55rem .75rem;
    padding-block: .7rem;
  }

  .global-brand img {
    width: 36px;
    height: 36px;
  }

  .global-nav {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: .25rem .95rem;
  }

  .global-hero {
    display: block;
    min-height: auto;
  }

  .global-hero-art {
    position: static;
    width: 100%;
    height: clamp(12rem, 51vw, 22rem);
    object-position: 54% 40%;
    mask-image: linear-gradient(black 69%, transparent);
  }

  .global-hero::after {
    display: none;
  }

  .global-hero-copy {
    width: 100%;
    padding: .6rem 0 1.35rem;
  }

  .global-hero .hero-bottom {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-bottom: .75rem;
  }
}

@media (max-width: 520px) {
  .global-home .manifesto .global-manifesto-extra {
    display: none;
  }
}
