:root {
  color-scheme: dark;
  --bg: #031020;
  --ink: #fff4dc;
  --muted: #b7c0d0;
  --gold: #ffda78;
  --panel: rgba(10, 22, 45, .78);
  --line: rgba(255, 255, 255, .13);
  --shadow: 0 28px 90px rgba(0, 0, 0, .38);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #020914;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", sans-serif;
}

.disable-none {
  display: none !important;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.site-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.site-brand,
.site-nav nav {
  display: flex;
  align-items: center;
}

.site-brand {
  gap: 12px;
}

.site-nav nav {
  gap: 28px;
}

.site-brand,
.site-nav a {
  text-decoration: none;
}

.site-nav nav a {
  color: var(--muted);
  font-size: 14px;
}

.site-nav nav .nav-download {
  color: #1b1405;
  font-weight: 800;
  border-radius: 999px;
  padding: 10px 16px;
  background: linear-gradient(180deg, #fff0a8, #ffd46d);
  box-shadow: 0 10px 26px rgba(255, 212, 109, .24);
}

.site-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 34px 0 42px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-brand,
.site-footer nav {
  display: flex;
  align-items: center;
}

.footer-brand {
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
}

.site-footer p {
  color: rgba(183, 192, 208, .82);
  font-size: 14px;
}

.site-footer nav {
  gap: 22px;
}

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

.site-footer nav a {
  color: var(--muted);
  font-size: 14px;
}

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgba(255, 218, 120, .12);
  box-shadow: 0 0 26px rgba(255, 218, 120, .24);
}

.brand-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.eyebrow {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.web-hero {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  min-height: min(860px, calc(100vh - 64px));
  overflow: hidden;
  background: #061326;
}

.web-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 180px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(2, 9, 20, 0), #020914 86%);
}

.web-hero-image,
.web-hero-shade {
  position: absolute;
  inset: 0;
}

.web-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.web-hero-shade {
  background:
    linear-gradient(90deg, rgba(2, 7, 17, .78) 0%, rgba(2, 7, 17, .50) 36%, rgba(2, 7, 17, .08) 72%, rgba(2, 7, 17, .16) 100%),
    linear-gradient(180deg, rgba(2, 7, 17, .12), rgba(2, 7, 17, .46));
}

.firefly-coordinate-plane {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: max(100vw, 150vh);
  aspect-ratio: 3 / 2;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.firefly-field {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.jar-field {
  left: 69%;
  top: 42%;
  width: 24%;
  height: 36%;
}

.jar-mouth-field {
  left: 75.5%;
  top: 51.5%;
  width: 18%;
  height: 30%;
  z-index: 2;
}

.top-field {
  top: 6%;
  left: 48%;
  width: 30%;
  height: 24%;
}

.upper-left-field {
  top: 8%;
  left: 10%;
  width: 26%;
  height: 28%;
}

.sparkle-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.glow-dot {
  --size: 5px;
  --x: 50%;
  --y: 50%;
  --delay: 0s;
  --duration: 4.8s;
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 238, 158, .98) 0%, rgba(231, 158, 40, .88) 40%, rgba(195, 107, 20, .18) 68%, rgba(195, 107, 20, 0) 100%);
  box-shadow:
    0 0 calc(var(--size) * 3.5) rgba(236, 168, 55, .62),
    0 0 calc(var(--size) * 10) rgba(211, 125, 30, .28),
    0 0 calc(var(--size) * 18) rgba(144, 83, 22, .16);
  animation: glow-breathe var(--duration) ease-in-out var(--delay) infinite;
}

.glow-a {
  --x: 84%;
  --y: 61%;
  --size: 6px;
  --delay: -.7s;
}

.glow-b {
  --x: 79%;
  --y: 56%;
  --size: 4px;
  --duration: 5.6s;
  --delay: -2.1s;
}

.glow-c {
  --x: 73%;
  --y: 63%;
  --size: 5px;
  --duration: 6.2s;
  --delay: -3.9s;
}

.glow-d {
  --x: 67%;
  --y: 50%;
  --size: 4px;
  --duration: 5.1s;
  --delay: -1.6s;
}

.glow-e {
  --x: 58%;
  --y: 43%;
  --size: 3px;
  --duration: 6.8s;
  --delay: -4.6s;
}

.glow-f {
  --x: 44%;
  --y: 18%;
  --size: 4px;
  --duration: 7.2s;
  --delay: -2.8s;
}

.glow-g {
  --x: 17%;
  --y: 21%;
  --size: 3px;
  --duration: 6.4s;
  --delay: -5.4s;
}

.firefly-dot {
  --size: 6px;
  --start-x: 50%;
  --start-y: 50%;
  --travel-x: -12%;
  --travel-y: -18%;
  --sway-x: 3%;
  --sway-y: -2%;
  --duration: 7s;
  --delay: 0s;
  position: absolute;
  left: var(--start-x);
  top: var(--start-y);
  width: var(--size);
  height: var(--size);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 238, 157, .96) 0%, rgba(238, 169, 48, .90) 36%, rgba(196, 116, 24, .34) 64%, rgba(196, 116, 24, 0) 100%);
  box-shadow:
    0 0 calc(var(--size) * 2.6) rgba(239, 176, 62, .64),
    0 0 calc(var(--size) * 6.5) rgba(205, 123, 34, .26);
  opacity: 0;
  animation:
    firefly-drift var(--duration) cubic-bezier(.28, .08, .28, 1) var(--delay) infinite,
    firefly-pulse 2.2s ease-in-out var(--delay) infinite;
}

.dot-a {
  --size: 7px;
  --start-x: 78%;
  --start-y: 58%;
  --travel-x: -52%;
  --travel-y: -64%;
  --sway-x: 4%;
  --sway-y: -5%;
  --duration: 13.4s;
}

.dot-b {
  --size: 5px;
  --start-x: 84%;
  --start-y: 52%;
  --travel-x: -44%;
  --travel-y: -58%;
  --sway-x: -3%;
  --sway-y: 2%;
  --duration: 17.1s;
  --delay: -5.8s;
}

.dot-c {
  --size: 4px;
  --start-x: 73%;
  --start-y: 44%;
  --travel-x: -66%;
  --travel-y: -42%;
  --sway-x: 8%;
  --sway-y: -1%;
  --duration: 19.6s;
  --delay: -9.4s;
}

.dot-d {
  --size: 8px;
  --start-x: 88%;
  --start-y: 60%;
  --travel-x: -30%;
  --travel-y: -72%;
  --sway-x: -5%;
  --sway-y: -4%;
  --duration: 15.0s;
  --delay: -2.6s;
}

.dot-e {
  --size: 4px;
  --start-x: 68%;
  --start-y: 54%;
  --travel-x: -58%;
  --travel-y: -32%;
  --sway-x: 6%;
  --sway-y: 3%;
  --duration: 18.8s;
  --delay: -7.2s;
}

.dot-f {
  --size: 6px;
  --start-x: 82%;
  --start-y: 38%;
  --travel-x: -48%;
  --travel-y: -76%;
  --sway-x: -7%;
  --sway-y: -2%;
  --duration: 20.8s;
  --delay: -11.1s;
}

.dot-g {
  --size: 3px;
  --start-x: 62%;
  --start-y: 34%;
  --travel-x: -78%;
  --travel-y: -52%;
  --sway-x: 10%;
  --sway-y: -6%;
  --duration: 22.6s;
  --delay: -4.9s;
}

.dot-h {
  --size: 4px;
  --start-x: 72%;
  --start-y: 72%;
  --travel-x: -24%;
  --travel-y: -34%;
  --sway-x: -4%;
  --sway-y: -3%;
  --duration: 17.7s;
  --delay: -8.1s;
}

.dot-i {
  --size: 5px;
  --start-x: 44%;
  --start-y: 62%;
  --travel-x: -34%;
  --travel-y: -44%;
  --sway-x: 5%;
  --sway-y: 2%;
  --duration: 20.6s;
  --delay: -1.2s;
}

.dot-j {
  --size: 3px;
  --start-x: 20%;
  --start-y: 50%;
  --travel-x: -40%;
  --travel-y: -30%;
  --sway-x: -7%;
  --sway-y: -1%;
  --duration: 16.1s;
  --delay: -6.6s;
}

.dot-k {
  --size: 5px;
  --start-x: 56%;
  --start-y: 30%;
  --travel-x: -42%;
  --travel-y: -56%;
  --sway-x: 7%;
  --sway-y: -5%;
  --duration: 23.2s;
  --delay: -12.3s;
}

.dot-l {
  --size: 5px;
  --start-x: 68%;
  --start-y: 74%;
  --travel-x: -24%;
  --travel-y: -48%;
  --sway-x: 4%;
  --sway-y: 3%;
  --duration: 20.1s;
  --delay: -9.4s;
}

.dot-m {
  --size: 3px;
  --start-x: 34%;
  --start-y: 52%;
  --travel-x: -36%;
  --travel-y: -62%;
  --sway-x: -5%;
  --sway-y: -2%;
  --duration: 18.2s;
  --delay: -4.7s;
}

.dot-n {
  --size: 4px;
  --start-x: 18%;
  --start-y: 78%;
  --travel-x: -44%;
  --travel-y: -42%;
  --sway-x: 6%;
  --sway-y: -4%;
  --duration: 23.9s;
  --delay: -13.5s;
}

.dot-o {
  --size: 6px;
  --start-x: 52%;
  --start-y: 70%;
  --travel-x: -38%;
  --travel-y: -58%;
  --sway-x: -4%;
  --sway-y: -3%;
  --duration: 13.0s;
  --delay: -.6s;
}

.dot-p {
  --size: 5px;
  --start-x: 50%;
  --start-y: 72%;
  --travel-x: -55%;
  --travel-y: -70%;
  --sway-x: 7%;
  --sway-y: -5%;
  --duration: 16.8s;
  --delay: -8.4s;
}

.dot-q {
  --size: 5px;
  --start-x: 48%;
  --start-y: 70%;
  --travel-x: -2%;
  --travel-y: -72%;
  --sway-x: -5%;
  --sway-y: -4%;
  --duration: 14.8s;
  --delay: -3.1s;
}

.dot-r {
  --size: 4px;
  --start-x: 54%;
  --start-y: 68%;
  --travel-x: 4%;
  --travel-y: -86%;
  --sway-x: 6%;
  --sway-y: -2%;
  --duration: 19.0s;
  --delay: -10.5s;
}

.dot-s {
  --size: 4px;
  --start-x: 49%;
  --start-y: 76%;
  --travel-x: -68%;
  --travel-y: -48%;
  --sway-x: 9%;
  --sway-y: 2%;
  --duration: 15.3s;
  --delay: -5.7s;
}

.dot-t {
  --size: 7px;
  --start-x: 51%;
  --start-y: 66%;
  --travel-x: -42%;
  --travel-y: -36%;
  --sway-x: -5%;
  --sway-y: 1%;
  --duration: 12.3s;
  --delay: -1.3s;
}

.dot-u {
  --size: 3px;
  --start-x: 46%;
  --start-y: 74%;
  --travel-x: 2%;
  --travel-y: -54%;
  --sway-x: -4%;
  --sway-y: -2%;
  --duration: 17.8s;
  --delay: -7.2s;
}

.dot-v {
  --size: 6px;
  --start-x: 55%;
  --start-y: 72%;
  --travel-x: -8%;
  --travel-y: -92%;
  --sway-x: 5%;
  --sway-y: -5%;
  --duration: 21.0s;
  --delay: -12.4s;
}

.dot-w {
  --size: 5px;
  --start-x: 53%;
  --start-y: 74%;
  --travel-x: 34%;
  --travel-y: -42%;
  --sway-x: -6%;
  --sway-y: -3%;
  --duration: 14.2s;
  --delay: -4.2s;
}

.dot-x {
  --size: 4px;
  --start-x: 47%;
  --start-y: 68%;
  --travel-x: 48%;
  --travel-y: -62%;
  --sway-x: 8%;
  --sway-y: -2%;
  --duration: 18.1s;
  --delay: -9.8s;
}

.dot-y {
  --size: 6px;
  --start-x: 50%;
  --start-y: 76%;
  --travel-x: 62%;
  --travel-y: -28%;
  --sway-x: -7%;
  --sway-y: 4%;
  --duration: 22.4s;
  --delay: -2.8s;
}

@keyframes firefly-drift {
  0% {
    opacity: 0;
    left: var(--start-x);
    top: var(--start-y);
    transform: scale(.78);
  }
  11% {
    opacity: .42;
    left: calc(var(--start-x) + (var(--travel-x) * .08) + var(--sway-x));
    top: calc(var(--start-y) + (var(--travel-y) * .06));
    transform: scale(.88);
  }
  24% {
    opacity: .92;
    left: calc(var(--start-x) + (var(--travel-x) * .24) - (var(--sway-x) * .42));
    top: calc(var(--start-y) + (var(--travel-y) * .20) + var(--sway-y));
    transform: scale(1.05);
  }
  43% {
    opacity: .34;
    left: calc(var(--start-x) + (var(--travel-x) * .34) + (var(--sway-x) * .72));
    top: calc(var(--start-y) + (var(--travel-y) * .31) - (var(--sway-y) * .35));
    transform: scale(.82);
  }
  62% {
    opacity: .86;
    left: calc(var(--start-x) + (var(--travel-x) * .68) - (var(--sway-x) * .26));
    top: calc(var(--start-y) + (var(--travel-y) * .62) + (var(--sway-y) * .76));
    transform: scale(.98);
  }
  81% {
    opacity: .46;
    left: calc(var(--start-x) + (var(--travel-x) * .78) + (var(--sway-x) * .30));
    top: calc(var(--start-y) + (var(--travel-y) * .84));
    transform: scale(.72);
  }
  100% {
    opacity: 0;
    left: calc(var(--start-x) + var(--travel-x));
    top: calc(var(--start-y) + var(--travel-y));
    transform: scale(.56);
  }
}

@keyframes firefly-pulse {
  0%,
  100% {
    filter: brightness(.72) blur(.1px);
  }
  42% {
    filter: brightness(1.55) blur(0);
  }
  64% {
    filter: brightness(.92) blur(.18px);
  }
}

@keyframes glow-breathe {
  0%,
  100% {
    opacity: .16;
    transform: scale(.72);
    filter: brightness(.72) blur(.18px);
  }
  38% {
    opacity: .88;
    transform: scale(1.16);
    filter: brightness(1.35) blur(0);
  }
  62% {
    opacity: .42;
    transform: scale(.92);
    filter: brightness(.96) blur(.12px);
  }
}

.web-hero-copy {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 22px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 110px) 0;
}

.web-hero-copy > * {
  max-width: 820px;
}

.web-hero h1,
.page-hero h1,
.article h1 {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: clamp(50px, 5.4vw, 76px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: 0;
  text-shadow: 0 0 28px rgba(255, 218, 120, .18);
}

.web-hero h1 span {
  display: block;
  white-space: nowrap;
}

.web-hero p,
.feature-band p,
.notebook-band p,
.page-hero p,
.article-excerpt {
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.primary-cta,
.secondary-cta,
.section-head a,
.back-link {
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 800;
}

.primary-cta {
  color: #1b1405;
  background: linear-gradient(180deg, #fff0a8, #ffd46d);
  box-shadow: 0 12px 34px rgba(255, 212, 109, .26);
}

.secondary-cta,
.section-head a,
.back-link {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06);
}

.hero-note {
  position: absolute;
  right: max(20px, calc((100vw - 1180px) / 2));
  bottom: clamp(26px, 5vw, 58px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(330px, calc(100% - 52px));
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 24px;
  padding: 16px 18px;
  background: rgba(6, 16, 32, .70);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 58px rgba(0, 0, 0, .36);
}

.hero-note img {
  width: 54px;
  height: 54px;
}

.hero-note strong,
.hero-note span {
  display: block;
}

.hero-note span {
  margin-top: 5px;
  color: var(--muted);
}

.feature-band,
.notebook-band,
.download-band,
.story-band,
.blog-preview,
.blog-page,
.article-page {
  padding: 86px 0;
}

.blog-page,
.article-page,
.simple-page,
.sitemap-page {
  padding-top: 34px;
}

.article-page {
  padding-top: 26px;
}

.feature-band,
.notebook-band,
.download-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .76fr) minmax(340px, 1fr);
  gap: 34px;
  align-items: center;
}

.blog-preview {
  position: relative;
}

.download-band {
  grid-template-columns: minmax(460px, .95fr) minmax(420px, 1fr);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.download-band > :not(.section-fireflies),
.story-band > :not(.section-fireflies),
.feature-band > :not(.section-fireflies),
.notebook-band > :not(.section-fireflies),
.blog-preview > :not(.section-fireflies) {
  position: relative;
  z-index: 1;
}

.section-fireflies {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.section-glow {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  opacity: .34;
  background: radial-gradient(circle, rgba(255, 238, 158, .98) 0%, rgba(231, 158, 40, .88) 40%, rgba(195, 107, 20, .18) 68%, rgba(195, 107, 20, 0) 100%);
  box-shadow:
    0 0 calc(var(--size) * 3.5) rgba(236, 168, 55, .62),
    0 0 calc(var(--size) * 10) rgba(211, 125, 30, .28),
    0 0 calc(var(--size) * 18) rgba(144, 83, 22, .16);
  animation: section-glow var(--duration) ease-in-out var(--delay) infinite;
}

.download-fireflies .glow-1 {
  --x: 10%;
  --y: 30%;
  --size: 5px;
  --duration: 5.8s;
  --delay: -1.4s;
}

.download-fireflies .glow-2 {
  --x: 32%;
  --y: 70%;
  --size: 3px;
  --duration: 7.1s;
  --delay: -4.2s;
}

.download-fireflies .glow-3 {
  --x: 58%;
  --y: 24%;
  --size: 4px;
  --duration: 6.4s;
  --delay: -2.7s;
}

.download-fireflies .glow-4 {
  --x: 84%;
  --y: 62%;
  --size: 6px;
  --duration: 8.2s;
  --delay: -5.8s;
}

.download-fireflies .glow-5 {
  --x: 73%;
  --y: 18%;
  --size: 3px;
  --duration: 6.9s;
  --delay: -3.5s;
}

.download-band h2,
.story-band h2 {
  margin: 10px 0 14px;
  font-size: clamp(34px, 3.8vw, 52px);
  line-height: 1.12;
  letter-spacing: 0;
}

.download-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.store-button {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
  min-height: 168px;
  text-decoration: none;
  overflow: hidden;
  border: 1px solid rgba(255, 218, 120, .32);
  border-radius: 26px;
  padding: 22px;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 224, 125, .24), rgba(255, 224, 125, 0) 34%),
    linear-gradient(145deg, rgba(255, 218, 120, .16), rgba(255, 255, 255, .06) 52%, rgba(255, 255, 255, .03));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .14),
    0 24px 58px rgba(0, 0, 0, .32);
  transition:
    border-color .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}

.beta-close:focus-visible,
.beta-submit:focus-visible,
.beta-field input:focus-visible {
  outline: 2px solid rgba(255, 218, 120, .86);
  outline-offset: 3px;
}

.store-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 226, 142, .52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    0 30px 72px rgba(0, 0, 0, .38),
    0 0 34px rgba(255, 199, 77, .12);
}

.store-button.muted {
  border-color: rgba(255, 255, 255, .14);
  background:
    radial-gradient(circle at 18% 16%, rgba(183, 192, 208, .14), rgba(183, 192, 208, 0) 34%),
    linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .035));
}

.store-button.muted:hover {
  border-color: rgba(255, 255, 255, .22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .14),
    0 28px 68px rgba(0, 0, 0, .34);
}

.store-icon {
  display: grid;
  place-items: center;
  grid-column: 1 / -1;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 218, 120, .30);
  border-radius: 18px;
  color: var(--gold);
  background: rgba(255, 218, 120, .10);
  box-shadow: 0 0 28px rgba(255, 197, 74, .14);
  font-size: 14px;
  font-weight: 900;
}

.store-button.muted .store-icon {
  color: rgba(226, 234, 246, .82);
  border-color: rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
  box-shadow: none;
}

.store-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.store-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.store-copy strong {
  color: var(--ink);
  font-size: 21px;
  line-height: 1.18;
}

.store-copy small {
  max-width: 26ch;
  color: rgba(183, 192, 208, .86);
  font-size: 13px;
  line-height: 1.55;
}

.store-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  align-self: end;
  border-radius: 999px;
  color: #1b1405;
  background: linear-gradient(180deg, #fff0a8, #ffd46d);
  font-size: 18px;
  font-weight: 900;
}

.store-button.muted .store-arrow {
  color: rgba(226, 234, 246, .70);
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
}

.beta-signup-modal[hidden] {
  display: none;
}

.beta-signup-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.beta-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 18, .72);
  backdrop-filter: blur(14px);
}

.beta-dialog {
  position: relative;
  width: min(100%, 480px);
  border: 1px solid rgba(255, 218, 120, .22);
  border-radius: 8px;
  padding: 30px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 218, 120, .16), rgba(255, 218, 120, 0) 34%),
    linear-gradient(180deg, rgba(12, 27, 53, .98), rgba(5, 15, 31, .98));
  box-shadow: 0 34px 90px rgba(0, 0, 0, .54);
}

.beta-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  color: rgba(255, 244, 220, .82);
  background: rgba(255, 255, 255, .06);
  cursor: pointer;
  font: inherit;
  font-size: 22px;
  line-height: 1;
}

.beta-dialog h3 {
  margin-top: 10px;
  max-width: 12em;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.16;
  letter-spacing: 0;
}

.beta-dialog > p:not(.eyebrow),
.beta-dialog label,
.beta-message {
  color: rgba(183, 192, 208, .9);
  font-size: 14px;
  line-height: 1.65;
}

.beta-dialog > p:not(.eyebrow) {
  margin-top: 12px;
}

.beta-dialog form {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.beta-dialog label {
  font-weight: 700;
}

.beta-field input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  padding: 0 15px;
  color: var(--ink);
  background: rgba(255, 255, 255, .07);
  font: inherit;
  font-size: 16px;
}

.beta-field input::placeholder {
  color: rgba(183, 192, 208, .58);
}

.beta-submit {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  color: #1b1405;
  background: linear-gradient(180deg, #fff0a8, #ffd46d);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.beta-submit:disabled {
  cursor: progress;
  opacity: .68;
}

.beta-message {
  min-height: 24px;
}

.beta-message[data-kind="success"] {
  color: #bff0d2;
}

.beta-message[data-kind="error"] {
  color: #ffb3a7;
}

.beta-message[data-kind="pending"] {
  color: var(--gold);
}

.story-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: start;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.story-fireflies .glow-1 {
  --x: 7%;
  --y: 20%;
  --size: 4px;
  --duration: 7.6s;
  --delay: -2.3s;
}

.story-fireflies .glow-2 {
  --x: 18%;
  --y: 76%;
  --size: 5px;
  --duration: 9.3s;
  --delay: -7.1s;
}

.story-fireflies .glow-3 {
  --x: 45%;
  --y: 38%;
  --size: 3px;
  --duration: 6.5s;
  --delay: -1.9s;
}

.story-fireflies .glow-4 {
  --x: 71%;
  --y: 24%;
  --size: 6px;
  --duration: 8.8s;
  --delay: -4.8s;
}

.story-fireflies .glow-5 {
  --x: 88%;
  --y: 68%;
  --size: 4px;
  --duration: 7.2s;
  --delay: -5.5s;
}

.story-fireflies .glow-6 {
  --x: 62%;
  --y: 82%;
  --size: 3px;
  --duration: 10.4s;
  --delay: -8.6s;
}

.feature-fireflies .glow-1 {
  --x: 13%;
  --y: 18%;
  --size: 4px;
  --duration: 7.8s;
  --delay: -3.8s;
}

.feature-fireflies .glow-2 {
  --x: 34%;
  --y: 74%;
  --size: 5px;
  --duration: 8.9s;
  --delay: -6.2s;
}

.feature-fireflies .glow-3 {
  --x: 61%;
  --y: 16%;
  --size: 3px;
  --duration: 6.7s;
  --delay: -1.2s;
}

.feature-fireflies .glow-4 {
  --x: 83%;
  --y: 78%;
  --size: 6px;
  --duration: 9.6s;
  --delay: -7.4s;
}

.feature-fireflies .glow-5 {
  --x: 92%;
  --y: 36%;
  --size: 3px;
  --duration: 7.1s;
  --delay: -4.9s;
}

.notebook-fireflies .glow-1 {
  --x: 8%;
  --y: 62%;
  --size: 5px;
  --duration: 8.4s;
  --delay: -5.1s;
}

.notebook-fireflies .glow-2 {
  --x: 22%;
  --y: 24%;
  --size: 3px;
  --duration: 6.6s;
  --delay: -2.8s;
}

.notebook-fireflies .glow-3 {
  --x: 51%;
  --y: 84%;
  --size: 4px;
  --duration: 9.2s;
  --delay: -6.7s;
}

.notebook-fireflies .glow-4 {
  --x: 69%;
  --y: 18%;
  --size: 5px;
  --duration: 7.4s;
  --delay: -3.5s;
}

.notebook-fireflies .glow-5 {
  --x: 86%;
  --y: 50%;
  --size: 3px;
  --duration: 10.1s;
  --delay: -8.4s;
}

.notebook-fireflies .glow-6 {
  --x: 94%;
  --y: 78%;
  --size: 4px;
  --duration: 6.9s;
  --delay: -1.8s;
}

.blog-fireflies .glow-1 {
  --x: 6%;
  --y: 25%;
  --size: 4px;
  --duration: 7.7s;
  --delay: -4.6s;
}

.blog-fireflies .glow-2 {
  --x: 28%;
  --y: 86%;
  --size: 3px;
  --duration: 9.9s;
  --delay: -8.1s;
}

.blog-fireflies .glow-3 {
  --x: 53%;
  --y: 18%;
  --size: 5px;
  --duration: 8.6s;
  --delay: -6.0s;
}

.blog-fireflies .glow-4 {
  --x: 76%;
  --y: 80%;
  --size: 4px;
  --duration: 6.8s;
  --delay: -2.5s;
}

.blog-fireflies .glow-5 {
  --x: 93%;
  --y: 34%;
  --size: 6px;
  --duration: 10.8s;
  --delay: -9.2s;
}

@keyframes section-glow {
  0%,
  100% {
    opacity: .12;
    transform: scale(.70);
    filter: blur(.12px) brightness(.74);
  }
  36% {
    opacity: .88;
    transform: scale(1.18);
    filter: blur(0) brightness(1.48);
  }
  58% {
    opacity: .34;
    transform: scale(.94);
    filter: blur(.12px) brightness(.92);
  }
}

.story-band .eyebrow {
  grid-column: 1 / -1;
}

.story-copy {
  display: grid;
  gap: 18px;
}

.story-copy p {
  color: rgba(226, 234, 246, .82);
  font-size: 18px;
  line-height: 1.92;
}

.feature-band h2,
.notebook-band h2,
.blog-preview h2,
.page-hero h1 {
  margin: 10px 0 14px;
}

.feature-band img {
  width: 100%;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.books {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.books img {
  width: 100%;
  filter: drop-shadow(0 24px 32px rgba(0, 0, 0, .35));
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 24px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.post-card a {
  display: grid;
  min-height: 100%;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.post-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.post-card div {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.post-card span {
  color: var(--gold);
  font-size: 12px;
}

.post-card p {
  color: var(--muted);
  line-height: 1.7;
}

.blog-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
  padding: 16px 0 4px;
}

.pager-link,
.page-number,
.page-gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 14px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .055);
}

.pager-link.disabled,
.page-gap {
  color: rgba(226, 234, 246, .42);
}

.page-number.current {
  color: #1b1405;
  background: linear-gradient(180deg, #fff0a8, #ffd46d);
  border-color: transparent;
}

.pager-status {
  color: var(--muted);
}

.page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0 0 84px;
}

.sitemap-group {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.sitemap-group h2 {
  font-size: 22px;
}

.sitemap-list {
  display: grid;
  gap: 10px;
}

.sitemap-list a {
  display: grid;
  gap: 5px;
  padding: 14px 0;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.sitemap-list a:last-child {
  border-bottom: 0;
}

.sitemap-list span {
  color: var(--ink);
  font-weight: 800;
}

.sitemap-list small {
  color: var(--muted);
  line-height: 1.55;
}

.sitemap-articles {
  padding: 0 0 86px;
}

.sitemap-article-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  border-top: 1px solid rgba(255, 255, 255, .10);
}

.sitemap-article-list a {
  display: grid;
  gap: 6px;
  padding: 16px 0;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.sitemap-article-list span {
  color: var(--ink);
  font-weight: 800;
}

.sitemap-article-list small {
  color: var(--muted);
  line-height: 1.55;
}

.simple-page {
  padding-bottom: 86px;
}

.letter-panel,
.policy-stack {
  width: min(820px, 100%);
}

.letter-panel {
  display: grid;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.letter-panel h2,
.policy-section h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

.letter-panel p,
.policy-section p {
  color: rgba(255, 244, 220, .86);
  font-size: 17px;
  line-height: 1.9;
}

.letter-button {
  width: fit-content;
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 20px;
  color: #1b1405;
  background: linear-gradient(180deg, #fff0a8, #ffd46d);
  box-shadow: 0 12px 34px rgba(255, 212, 109, .22);
  font-weight: 900;
}

.policy-stack {
  display: grid;
  gap: 18px;
}

.policy-section {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.page-hero {
  display: grid;
  gap: 16px;
  padding: 24px 0 34px;
}

.article {
  display: grid;
  gap: 22px;
}

.article-cover {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.article .article-excerpt {
  max-width: none;
}

.blog-page .page-hero p {
  max-width: none;
}

.article-body {
  display: grid;
  gap: 18px;
  color: rgba(255, 244, 220, .88);
  font-size: 18px;
  line-height: 1.9;
}

@media (max-width: 860px) {
  .site-shell {
    width: min(100% - 28px, 640px);
  }

  .site-nav {
    align-items: flex-start;
    gap: 18px;
    flex-direction: column;
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }

  .web-hero,
  .feature-band,
  .notebook-band,
  .download-band,
  .download-actions,
  .sitemap-grid,
  .sitemap-article-list,
  .story-band,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .blog-pagination {
    justify-content: flex-start;
  }

  .web-hero {
    min-height: 680px;
  }

  .web-hero-copy {
    width: 100%;
    margin: 0;
    padding: 36px 28px 150px;
  }

  .web-hero h1 {
    font-size: clamp(44px, 13vw, 68px);
  }

  .web-hero h1 span {
    white-space: normal;
  }

  .firefly-coordinate-plane {
    opacity: .82;
  }

  .store-button {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    min-height: 126px;
    border-radius: 22px;
    padding: 18px;
  }

  .store-icon {
    grid-column: auto;
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .store-copy strong {
    font-size: 19px;
  }

  .store-copy small {
    max-width: 100%;
  }

  .beta-signup-modal {
    align-items: end;
    padding: 14px;
  }

  .beta-dialog {
    padding: 26px 20px 20px;
  }

  .beta-dialog h3 {
    max-width: 100%;
    font-size: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .firefly-dot,
  .glow-dot,
  .section-glow {
    animation: none;
    opacity: .62;
  }
}
