@font-face {
  font-family: "Open Sans";
  src: url("/fonts/OpenSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("/fonts/OpenSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("/fonts/OpenSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

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

:root {
  --bg: #fff;
  --fg: #000;
  --muted: #6b6b6b;
  --face-a: #000;
  --face-b: #2b2b2b;
  --face-c: #555;
}

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.home {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 48px 16px;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 9vw, 88px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

/* A slowly turning pyramid: four triangular faces around a vertical axis. */
.pyramid {
  --size: 120px;
  position: relative;
  width: var(--size);
  height: var(--size);
  transform-style: preserve-3d;
  animation: spin 9s linear infinite;
}

.side {
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform-origin: 50% 100%;
}

.front {
  background: var(--face-a);
  transform: translateZ(calc(var(--size) / 2)) rotateX(30deg);
}

.back {
  background: var(--face-b);
  transform: rotateY(180deg) translateZ(calc(var(--size) / 2)) rotateX(30deg);
}

.left {
  background: var(--face-c);
  transform: rotateY(-90deg) translateZ(calc(var(--size) / 2)) rotateX(30deg);
}

.right {
  background: var(--face-b);
  transform: rotateY(90deg) translateZ(calc(var(--size) / 2)) rotateX(30deg);
}

@keyframes spin {
  from {
    transform: rotateX(-12deg) rotateY(0);
  }
  to {
    transform: rotateX(-12deg) rotateY(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pyramid {
    animation: none;
    transform: rotateX(-12deg) rotateY(35deg);
  }
}

.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.stores a {
  display: block;
  line-height: 0;
  border-radius: 8px;
}

.stores img {
  height: 53px;
  width: auto;
}

.web-app {
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  padding: 24px max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  color: var(--muted);
  font-size: 14px;
}

.footer a {
  text-decoration: none;
}

.footer a:hover,
.web-app:hover {
  color: var(--fg);
  opacity: 0.7;
}

/* Text pages (privacy policy) */
.doc {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 32px max(16px, env(safe-area-inset-left)) 48px max(16px, env(safe-area-inset-right));
  line-height: 1.65;
  font-size: 16px;
}

.doc .back {
  display: inline-block;
  margin-bottom: 24px;
  font-weight: 700;
  text-decoration: none;
}

.doc h1 {
  font-size: clamp(32px, 6vw, 44px);
  font-weight: 600;
  margin: 0 0 24px;
}

.doc h2,
.doc h3,
.doc h4 {
  line-height: 1.3;
  margin: 32px 0 8px;
}

.doc ul {
  padding-left: 1.25em;
}

.doc hr {
  border: 0;
  border-top: 1px solid #e5e5e5;
  margin: 32px 0;
}
