:root {
  --ink: #3b2b22;
  --ink-soft: #745f52;
  --gold: #b97a06;
  --gold-bright: #f2b53a;
  --page: #fbf0e8;
  --page-2: #f5e4e2;
  --glass: rgba(255, 252, 247, 0.62);
  --glass-line: rgba(255, 255, 255, 0.75);
  --line: rgba(185, 122, 6, 0.22);
  --shadow: 0 2px 6px rgba(110, 60, 40, 0.06), 0 18px 40px rgba(110, 60, 40, 0.10);
  --sky: url("images/sky-light.webp");
  --veil: linear-gradient(90deg, rgba(255, 214, 120, 0.55), rgba(236, 222, 255, 0.55));
  --lotus: url("images/lotus-light.webp");
  --lotus-opacity: 0.55;
  --lotus-blend: multiply;
  --wash: 0.28;
  --clouds: url("images/clouds-light.webp");
  --clouds-opacity: 0.95;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f6e7cf;
    --ink-soft: #c7b3c4;
    --gold: #ffc65a;
    --gold-bright: #ffcf6b;
    --page: #251c36;
    --page-2: #2d2242;
    --glass: rgba(40, 30, 58, 0.58);
    --glass-line: rgba(255, 220, 170, 0.14);
    --line: rgba(255, 198, 90, 0.2);
    --shadow: 0 2px 6px rgba(0, 0, 0, 0.25), 0 18px 40px rgba(0, 0, 0, 0.35);
    --sky: url("images/sky-dark.webp");
    --veil: linear-gradient(90deg, rgba(255, 180, 70, 0.28), rgba(140, 110, 220, 0.25));
    --lotus: url("images/lotus-dark.webp");
    --lotus-opacity: 0.32;
    --lotus-blend: normal;
    --wash: 0.3;
    --clouds: url("images/clouds-dark.webp");
    --clouds-opacity: 0.55;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font: 400 17px/1.65 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* A faint wash of the sky behind everything below the hero. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: var(--sky) center / cover no-repeat;
  opacity: var(--wash);
  pointer-events: none;
}
a { color: var(--gold); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
code { font: 0.86em ui-monospace, Menlo, Consolas, monospace; background: var(--line); padding: 0.1em 0.35em; border-radius: 5px; overflow-wrap: anywhere; }
h2, h3, .motto, .brand { font-family: Fraunces, Georgia, serif; }
h2 { font-weight: 650; font-size: clamp(30px, 5vw, 46px); line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 14px; text-align: center; }
h3 { font-weight: 650; }

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}

/* Navigation */
.top {
  position: fixed; z-index: 10; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(760px, calc(100% - 24px));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 10px 8px 16px; border-radius: 999px;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 19px; color: var(--ink); text-decoration: none; }
.links { display: flex; gap: 2px; }
.links a { color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 12px; border-radius: 999px; }
.links a:hover { color: var(--ink); background: var(--line); }
.links a.nav-cta { margin-left: 6px; padding: 7px 16px; color: #2b1a02; font-weight: 600; background: linear-gradient(180deg, #ffd37a, #f0a926); box-shadow: 0 4px 12px rgba(240, 160, 40, 0.3); }
.links a.nav-cta:hover { color: #2b1a02; background: linear-gradient(180deg, #ffdf98, #f5b640); }
@media (max-width: 560px) {
  .links a { padding: 6px 9px; font-size: 14px; }
}
@media (max-width: 420px) {
  .links a:not(.nav-cta) { display: none; }
}

/* Hero */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; place-items: center;
  padding: 96px 16px 80px; text-align: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: var(--sky) center top / cover no-repeat;
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
  mask-image: linear-gradient(#000 70%, transparent);
  pointer-events: none;
}
.hero-in { position: relative; z-index: 1; max-width: 760px; }
.logo { width: min(520px, 88vw); margin: 0 auto; filter: drop-shadow(0 18px 30px rgba(120, 60, 20, 0.18)); animation: float 4.5s ease-in-out infinite; }
.motto { font-size: clamp(24px, 4.2vw, 36px); font-style: italic; font-weight: 450; margin: 6px 0 14px; line-height: 1.25; text-wrap: balance; }
.lede { max-width: 32em; margin: 0 auto 30px; font-size: 18.5px; color: var(--ink-soft); text-wrap: balance; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.fine { font-size: 14px; color: var(--ink-soft); margin: 16px auto 0; max-width: 30em; text-wrap: balance; }

.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px; cursor: pointer;
  font: 600 16px/1.2 Inter, system-ui, sans-serif; text-decoration: none;
  color: var(--ink); background: var(--glass); border: 1.5px solid var(--gold);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn.primary { color: #2b1a02; border-color: transparent; background: linear-gradient(180deg, #ffd37a, #f0a926) border-box; box-shadow: 0 8px 22px rgba(240, 160, 40, 0.35); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(240, 160, 40, 0.35); }
.btn.small { padding: 10px 20px; font-size: 15px; }

main { position: relative; }
section { max-width: 1080px; margin: 0 auto; padding: 72px 16px; }
.sub { max-width: 36em; margin: 0 auto 10px; text-align: center; color: var(--ink-soft); text-wrap: balance; }
.small { font-size: 14px; margin-top: 22px; }

/* Sample feed */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; padding-top: 24px; }
.split .copy { padding-top: 40px; }
.split h2 { text-align: left; }
.split .copy p { color: var(--ink-soft); }
.feed { border-radius: 22px; padding: 14px; }
.feed ul { list-style: none; margin: 0; padding: 0; }
.post { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.7s ease, opacity 0.6s ease, margin 0.7s ease; margin-bottom: 8px; }
.post-in { overflow: hidden; min-height: 0; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--glass); border: 1px solid var(--glass-line); position: relative; transition: background 0.4s, border-color 0.4s; }
.post .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: #ff6a3d; }
.post small { display: block; font-size: 12px; color: var(--ink-soft); }
.post p { margin: 0; font-weight: 500; font-size: 15.5px; line-height: 1.35; }
.post .tag { position: absolute; right: 10px; top: 8px; font: 600 11px/1 Inter, sans-serif; font-style: normal; color: var(--gold); background: var(--page); border: 1px solid var(--line); padding: 4px 8px; border-radius: 999px; opacity: 0; transform: translateY(-4px); transition: opacity 0.3s, transform 0.3s; }
.post.marked .post-in { background: var(--veil); border-color: rgba(230, 170, 50, 0.6); }
.post.marked .tag { opacity: 1; transform: none; }
.post.gone { grid-template-rows: 0fr; opacity: 0; margin-bottom: 0; }
.post.gone .post-in { padding-top: 0; padding-bottom: 0; border-width: 0; }
.tally { margin: 6px 4px 2px; font-size: 14px; color: var(--ink-soft); text-align: right; }
#tally { font-weight: 600; color: var(--gold); }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split h2 { text-align: center; }
  .split .copy { text-align: center; }
}

/* Filters */
/* One panel. Each group's filters flow across the same columns, so every
   row lines up and neither side runs longer than the other. */
.groups { margin-top: 34px; border-radius: 24px; padding: 8px 26px 14px; }
.group { padding: 18px 0 8px; border-top: 1px solid var(--line); }
.group:first-child { border-top: 0; }
.group h3 { margin: 0 0 6px; font-size: 20px; }
.group ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 26px; }
.group li { display: flex; gap: 12px; align-items: center; padding: 10px 0; }
.group li img { width: 30px; height: 30px; flex: none; }
.group b { display: block; font-weight: 600; font-size: 15.5px; }
.group span { display: block; font-size: 14.5px; color: var(--ink-soft); line-height: 1.4; }
@media (max-width: 900px) { .group ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .groups { padding: 4px 18px 10px; } .group ul { grid-template-columns: 1fr; } }

/* Alternating rows */
.row { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; margin: 44px 0; }
.row.flip .shot { order: 2; }
.row h3 { display: flex; align-items: center; gap: 12px; font-size: 26px; margin: 0 0 10px; }
.row h3 img { width: 34px; height: 34px; }
.row .copy p { margin: 0 0 10px; color: var(--ink-soft); font-size: 17.5px; }
.shot img { border-radius: 14px; box-shadow: var(--shadow); width: 100%; }
.shot.narrow { max-width: 300px; justify-self: center; }
.row.align-end .copy { text-align: right; }
.row.align-end h3 { justify-content: flex-end; }
@media (max-width: 760px) {
  .row.align-end .copy { text-align: left; }
  .row.align-end h3 { justify-content: flex-start; }
  .row { grid-template-columns: 1fr; gap: 18px; margin: 36px 0; }
  .row.flip .shot { order: 0; }
}

.lotus { position: relative; isolation: isolate; }
.lotus::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -30px; width: min(980px, 100%); aspect-ratio: 1100 / 625;
  transform: translateX(-50%);
  background: var(--lotus) center / contain no-repeat;
  opacity: var(--lotus-opacity); mix-blend-mode: var(--lotus-blend);
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent);
  mask-image: radial-gradient(closest-side, #000 55%, transparent);
  pointer-events: none;
  animation: bob 9s ease-in-out infinite;
}

/* Install */
.dusk { max-width: none; position: relative; padding: 100px 16px 90px; }
.dusk::before {
  /* The sky is sized by the page width only, so opening an expander
     makes the section taller without rescaling the image. */
  content: ""; position: absolute; inset: 0;
  background: var(--sky) center top / max(100%, 2000px) auto no-repeat;
  -webkit-mask-image: linear-gradient(transparent, #000 180px, #000 calc(100% - 200px), transparent);
  mask-image: linear-gradient(transparent, #000 180px, #000 calc(100% - 200px), transparent);
  pointer-events: none;
}
.installs { position: relative; z-index: 1; max-width: 920px; margin: 30px auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.installs article { border-radius: 22px; padding: 26px; }
.installs h3 { margin: 0 0 8px; font-size: 22px; line-height: 1.25; text-wrap: balance; }
.installs p { color: var(--ink-soft); margin: 0 0 18px; }
.installs details { margin-top: 18px; font-size: 15px; }
.installs summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.installs summary::-webkit-details-marker { display: none; }
.installs summary::before {
  content: ""; width: 7px; height: 7px; margin: 0 3px 0 1px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); transition: transform 0.3s ease;
}
.installs details.is-open summary::before { transform: rotate(45deg) translate(-2px, -1px); }
.installs .more { overflow: hidden; }
.installs details p, .installs ol { margin: 10px 0 0; }
.installs ol { padding-left: 1.3em; color: var(--ink-soft); }
.installs li { margin: 4px 0; }
.dusk h2 { position: relative; z-index: 1; }

/* Support */
.support {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px 8px 13px; border-radius: 999px;
  color: var(--ink); font-weight: 600; text-decoration: none;
  background: rgba(240, 120, 90, 0.14); border: 1px solid rgba(232, 100, 70, 0.45);
  transition: background 0.15s ease, transform 0.15s ease;
}
.support:hover { background: rgba(240, 120, 90, 0.26); transform: translateY(-1px); }
.support svg { width: 15px; height: 15px; color: #e8644a; flex: none; }
.give { position: relative; z-index: 1; max-width: 920px; margin: 20px auto 0; border-radius: 22px; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; }
.give p { margin: 0; flex: 1 1 360px; color: var(--ink-soft); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 22px; margin-top: 14px; }
.foot-links a:not(.support) { color: var(--ink-soft); }
footer { text-align: center; padding: 30px 16px 56px; color: var(--ink-soft); font-size: 15px; }
footer img { margin: 0 auto 12px; }
footer p { margin: 6px 0; }
footer .disclaimer { font-size: 13.5px; opacity: 0.85; }



/* A layer of thin clouds drifts slowly across the still sky. The track
   holds three copies of a seamless tile and slides left by one copy, then
   starts over, so the loop never shows a join. */
.clouds {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  opacity: var(--clouds-opacity);
  -webkit-mask-image: linear-gradient(#000 60%, transparent);
  mask-image: linear-gradient(#000 60%, transparent);
}
.clouds-track {
  position: absolute; left: 0; bottom: -4%; height: 112%;
  aspect-ratio: 3540 / 900;
  background: var(--clouds) 0 0 / 33.3334% 100% repeat-x;
  animation: clouds 90s linear infinite;
  will-change: transform;
}
/* The same drift behind the install section, sized in pixels so opening an
   expander doesn't rescale it. */
.clouds.clouds-dusk {
  -webkit-mask-image: linear-gradient(transparent, #000 180px, #000 calc(100% - 200px), transparent);
  mask-image: linear-gradient(transparent, #000 180px, #000 calc(100% - 200px), transparent);
}
.clouds-dusk .clouds-track { top: 0; bottom: auto; height: 1000px; animation-duration: 120s; animation-delay: -40s; }
.dusk > h2, .dusk > .installs, .dusk > .give { position: relative; z-index: 1; }

/* A fainter drift behind the whole page, over the still wash. */
.clouds.clouds-wash { position: fixed; z-index: -1; opacity: calc(var(--clouds-opacity) * 0.4); -webkit-mask-image: none; mask-image: none; }
.clouds-wash .clouds-track { top: 0; bottom: auto; height: 100lvh; animation-duration: 180s; animation-delay: -90s; }
@keyframes clouds { from { transform: translateX(0); } to { transform: translateX(-33.3333%); } }

/* ---- Motion ---------------------------------------------------------- */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes bob { 0%, 100% { transform: translateX(-50%) translateY(0) rotate(0deg); } 50% { transform: translateX(-50%) translateY(-10px) rotate(-0.6deg); } }
@keyframes rise {
  0% { transform: translate(0, 0); opacity: 0; }
  12% { opacity: 0.9; }
  50% { transform: translate(var(--sway), -45vh); }
  85% { opacity: 0.6; }
  100% { transform: translate(0, -95vh); opacity: 0; }
}
@keyframes sheen { 0%, 70% { transform: translateX(-120%) skewX(-20deg); } 100% { transform: translateX(260%) skewX(-20deg); } }
@keyframes glow { 0%, 100% { opacity: 0.55; transform: translateX(-50%) scale(1); } 50% { opacity: 0.9; transform: translateX(-50%) scale(1.08); } }

.motes { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.motes i {
  position: absolute; bottom: -10px; border-radius: 50%;
  background: radial-gradient(circle, #fff8d8 0%, #ffd27a 45%, rgba(255, 190, 90, 0) 70%);
  box-shadow: 0 0 12px 4px rgba(255, 196, 90, 0.55), 0 0 2px 1px rgba(255, 255, 255, 0.8);
  animation: rise 20s linear infinite;
}
.motes i:nth-child(1) { left: 91.2%; width: 8px; height: 8px; animation-duration: 18.7s; animation-delay: -1.2s; --sway: -23px; }
.motes i:nth-child(2) { left: 9.3%; width: 10px; height: 10px; animation-duration: 20.1s; animation-delay: -0.9s; --sway: 25px; }
.motes i:nth-child(3) { left: 26.1%; width: 6px; height: 6px; animation-duration: 20.6s; animation-delay: -1.4s; --sway: -19px; }
.motes i:nth-child(4) { left: 91.2%; width: 10px; height: 10px; animation-duration: 20.9s; animation-delay: -9.5s; --sway: -13px; }
.motes i:nth-child(5) { left: 83.0%; width: 10px; height: 10px; animation-duration: 17.5s; animation-delay: -3.5s; --sway: -30px; }
.motes i:nth-child(6) { left: 55.5%; width: 8px; height: 8px; animation-duration: 22.2s; animation-delay: -2.5s; --sway: -23px; }
.motes i:nth-child(7) { left: 54.4%; width: 6px; height: 6px; animation-duration: 14.8s; animation-delay: -1.4s; --sway: -27px; }
.motes i:nth-child(8) { left: 43.3%; width: 10px; height: 10px; animation-duration: 17.8s; animation-delay: -14.1s; --sway: 23px; }
.motes i:nth-child(9) { left: 26.9%; width: 8px; height: 8px; animation-duration: 16.2s; animation-delay: -18.7s; --sway: -30px; }
.motes i:nth-child(10) { left: 52.3%; width: 8px; height: 8px; animation-duration: 24.5s; animation-delay: -17.5s; --sway: 31px; }
.motes i:nth-child(11) { left: 14.9%; width: 6px; height: 6px; animation-duration: 19.0s; animation-delay: -18.2s; --sway: -27px; }
.motes i:nth-child(12) { left: 7.6%; width: 9px; height: 9px; animation-duration: 22.0s; animation-delay: -18.3s; --sway: 22px; }
.motes i:nth-child(13) { left: 58.7%; width: 8px; height: 8px; animation-duration: 21.0s; animation-delay: -10.9s; --sway: -20px; }
.motes i:nth-child(14) { left: 68.1%; width: 9px; height: 9px; animation-duration: 14.8s; animation-delay: -17.5s; --sway: 32px; }

/* A warm glow behind the logo that slowly swells. */
.hero-in::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -40px;
  width: min(620px, 110vw); aspect-ratio: 1.6; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 220, 140, 0.55), transparent);
  animation: glow 8s ease-in-out infinite;
  pointer-events: none;
}

/* Light passes across the gold buttons now and then. */
.btn.primary, .links a.nav-cta { position: relative; overflow: hidden; }
.btn.primary::after, .links a.nav-cta::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: sheen 6s ease-in-out infinite;
  pointer-events: none;
}
.links a.nav-cta::after { animation-delay: 3s; }

/* Filter rows and cards respond to the pointer. */
.group li img { transition: transform 0.25s ease; }
.group li:hover img { transform: translateY(-2px) rotate(-6deg) scale(1.08); }
.shot img { transition: transform 0.4s ease, box-shadow 0.4s ease; }
.shot:hover img { transform: translateY(-4px); }
.installs article, .give { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.installs article:hover, .js .installs article.reveal.shown:hover { transform: translateY(-3px); }
.support svg { transition: transform 0.3s ease; }
.support:hover svg { animation: beat 0.9s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.25); } 60% { transform: scale(0.95); } }

/* Content drifts up into place as it scrolls into view. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.shown { opacity: 1; transform: none; }
.installs .reveal:nth-child(2) { transition-delay: 0.12s; }
.split .feed.reveal { transition-delay: 0.15s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; animation: none !important; }
  .motes { display: none; }
}
