:root {
  color-scheme: dark;
  --background: #0e121a;
  --text: #c5cddb;
  --heading: #edf2fa;
  --muted: #95a3b8;
  --accent: #aec9eb;
  --line: #283446;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0 28px;
  color: var(--text);
  background: radial-gradient(ellipse at 50% 0, #1a273c 0, transparent 650px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: var(--background);
}

.site {
  max-width: 660px;
  margin: 0 auto;
}

a {
  color: var(--accent);
  text-decoration-color: #5e789b;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

a:hover {
  color: var(--heading);
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 2px;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

header {
  padding: 72px 0 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

header > a {
  display: inline-block;
}

.title {
  width: 360px;
  max-width: 100%;
}

.icon {
  width: 280px;
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading);
  font-weight: 400;
  line-height: 1.35;
  text-wrap: balance;
}

h1 {
  margin: 0 0 32px;
  font-size: clamp(30px, 5vw, 42px);
  letter-spacing: -0.025em;
}

h1:empty {
  display: none;
}

h2 {
  margin: 36px 0 20px;
  font-size: 24px;
}

h3,
.section-heading {
  margin: 56px 0 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

p {
  margin: 0 0 24px;
  text-align: left;
}

.white {
  color: var(--heading);
}

.site > header + div {
  margin-bottom: 56px;
}

.site > header + div > h2.white {
  margin: 0 0 24px !important;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.site > header + div > br,
.site > br {
  display: none;
}

.appstore {
  width: 150px;
}

iframe {
  display: block;
  width: 360px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  margin: 36px auto 0;
  border: 1px solid var(--line);
  background: #080c13;
  box-shadow: 0 24px 64px #00000030;
}

.site > p:first-of-type {
  color: #d6dfed;
  font-size: clamp(20px, 3vw, 23px);
  line-height: 1.75;
}

.site > p:first-of-type a {
  color: inherit;
}

.site > p + p > a:only-child {
  font-size: 14px;
}

ul, ol {
  margin: 24px 0;
  padding-left: 1.25em;
}

li {
  padding-left: 0.2em;
  margin: 8px 0;
}

li::marker {
  color: var(--muted);
}

table {
  width: 100%;
  margin-top: 20px !important;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 15px;
  color: var(--muted);
}

td {
  padding: 0 16px 0 0;
  vertical-align: top;
  text-align: left;
}

td:last-child {
  padding-right: 0;
}

td ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

td li {
  margin: 5px 0;
  padding: 0;
}

.thumb {
  display: block;
  max-width: 440px;
  margin: 48px auto;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.thumb a {
  display: block;
}

.thumb img {
  display: block;
  max-width: 100%;
  margin: 0 auto 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.page img {
  border: 1px solid var(--line);
}

.press-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 20px;
  margin: 48px 0;
}

.press-gallery .thumb {
  min-width: 0;
  max-width: none;
  margin: 0;
  text-align: left;
  font-size: 12px;
}

.press-gallery .thumb a {
  margin-bottom: 12px;
  border-radius: 8px;
}

.press-gallery .thumb img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  margin: 0;
  background: #080c13;
}

.press-gallery a:hover img,
.press-gallery a:focus-visible img {
  border-color: var(--accent);
}

@media (max-width: 600px) {
  .press-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
  }
}

@media (max-width: 380px) {
  .press-gallery {
    grid-template-columns: minmax(0, 1fr);
  }
}

footer {
  margin-top: 80px;
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.04em;
}

footer small {
  font-size: 11px;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin: 20px 0 28px;
  padding: 0;
  list-style: none;
}

footer li {
  margin: 0;
  padding: 0;
}

footer img {
  width: 48px;
  border-radius: 12px;
}

@media (max-width: 480px) {
  body {
    padding: 0 22px;
    font-size: 16px;
  }

  header {
    padding: 44px 0 28px;
    margin-bottom: 28px;
  }

  .title {
    width: 280px;
  }

  .site > header + div {
    margin-bottom: 40px;
  }

  table {
    font-size: 13px;
  }

  footer {
    margin-top: 56px;
  }
}

.gallery-viewer-page .site {
  max-width: 1040px;
}

.gallery-viewer-page .gallery-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  margin-bottom: 0;
  border: 0;
}

.gallery-home {
  flex: 0 0 auto;
}

.gallery-viewer-page .title {
  width: 140px;
}

.gallery-header-side {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  white-space: nowrap;
}

.gallery-header-right {
  justify-content: flex-end;
}

.gallery-header-side a,
.gallery-header-side span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.gallery-header-side a {
  text-decoration: none;
}

@media (max-width: 600px) {
  .gallery-viewer-page .gallery-header {
    gap: 12px;
    padding: 16px 0;
  }

  .gallery-viewer-page .title {
    width: 110px;
  }

  .gallery-header-side {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    font-size: 12px;
  }

  .gallery-header-right {
    align-items: flex-end;
  }
}

.gallery-viewer-page footer {
  margin-top: 40px;
  border-top: 0;
}

.gallery-counter {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.gallery-figure {
  margin: 0 0 24px;
}

.gallery-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #080c13;
}

.gallery-image-link {
  display: block;
  width: 100%;
}

.gallery-stage img {
  display: block;
  width: 100%;
  height: 60vh;
  height: 60svh;
  object-fit: contain;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #080c13e6;
  color: var(--heading);
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
}

.gallery-arrow-prev {
  left: 12px;
}

.gallery-arrow-next {
  right: 12px;
}

.gallery-arrow:hover {
  border-color: var(--accent);
  background: var(--background);
}

.gallery-arrow[aria-disabled="true"] {
  color: var(--muted);
  opacity: 0.4;
  pointer-events: none;
}

.gallery-figure figcaption {
  margin-top: 20px;
  text-align: center;
}

.gallery-figure h1 {
  margin: 0 0 8px;
  font-family: inherit;
  font-size: clamp(18px, 3vw, 24px);
  letter-spacing: 0;
}

.gallery-original {
  font-size: 13px;
}

.press-gallery .thumb {
  scroll-margin-top: 24px;
}

@media (prefers-reduced-motion: reduce) {
  a {
    transition: none;
  }
}
