:root {
  --bg: #0a0a0a;
  --ink: rgba(255, 255, 255, 0.9);
  --muted: rgba(255, 255, 255, 0.45);
  --faint: rgba(255, 255, 255, 0.28);
  --cream: #e8e2d8;
  --cream-ink: #141414;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(255, 255, 255, 0.05), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 20px;
  gap: 0;
}

.mark {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
  animation: in 0.8s ease both;
}

h1 {
  margin: 20px 0 0;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  animation: in 0.8s ease 0.05s both;
}

.lede {
  margin: 14px 0 0;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--muted);
  animation: in 0.8s ease 0.1s both;
}

.privacy {
  margin: 18px 0 0;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  animation: in 0.8s ease 0.15s both;
}

.gallery {
  width: min(100%, 28rem);
  margin: 28px 0 0;
  overflow: hidden;
  opacity: 0.7;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  animation: in 0.8s ease 0.2s both;
}

.track {
  display: flex;
  width: max-content;
  gap: 8px;
  animation: slide 36s linear infinite;
}

.chip {
  flex: 0 0 auto;
  width: 42px;
  height: 56px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.c1 { background: #c4a574; }
.c2 { background: #e2b5a4; }
.c3 { background: #6a9088; }
.c4 { background: #7a94b0; }
.c5 { background: #d4894a; }
.c6 { background: #8a9a6e; }
.c7 { background: #b87a5c; }
.c8 { background: #8e8298; }

.btn {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  min-width: 11rem;
  border-radius: 10px;
  background: var(--cream);
  color: var(--cream-ink);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.9;
  cursor: default;
  animation: in 0.8s ease 0.25s both;
}

.gh {
  margin-top: 0;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  text-decoration: none;
}

.links {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: in 0.8s ease 0.3s both;
}

.sep {
  color: var(--faint);
  font-size: 0.65rem;
}

.gh:hover {
  color: var(--muted);
}

/* Privacy / doc pages */
.doc {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  margin: 0 auto;
  padding: 48px 22px 80px;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--muted);
}

.doc-nav {
  margin: 0 0 36px;
}

.doc-nav a {
  color: var(--faint);
  text-decoration: none;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.doc-nav a:hover {
  color: var(--muted);
}

.doc h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.doc-updated {
  margin: 10px 0 0;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--faint);
}

.doc-lead {
  margin: 28px 0 0;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.6;
}

.doc h2 {
  margin: 36px 0 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.doc p {
  margin: 0 0 12px;
}

.doc ul {
  margin: 0;
  padding-left: 1.1rem;
}

.doc li {
  margin: 0 0 10px;
}

.doc strong {
  color: var(--ink);
  font-weight: 500;
}

.doc a {
  color: var(--ink);
  text-underline-offset: 3px;
}

@keyframes in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .mark,
  h1,
  .lede,
  .privacy,
  .gallery,
  .btn {
    animation: none;
  }
  .track {
    animation: none;
  }
}
