:root {
  --bg: #ffffff;
  --ink: #16171b;
  --soft: rgba(22, 23, 27, 0.56);
  --line: rgba(22, 23, 27, 0.09);
  --accent: #7a4dff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 10px 12px;
}

.post { position: relative; width: min(340px, 100%); display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px 18px 14px; border-radius: 24px; background: #ffffff; box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(22, 23, 27, 0.04), 0 22px 40px -28px rgba(22, 23, 27, 0.3); }
/* while the fan is open, the rest of the post steps back */
[data-body] { transition: opacity 0.3s ease, filter 0.3s ease; }
.post.is-open [data-body] { opacity: 0.38; }

.post__body { display: grid; gap: 12px; }
.post__head { display: flex; align-items: center; gap: 11px; }
.post__avatar { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--accent) 14%, #ffffff); color: var(--accent); font-size: 13.500px; font-weight: 760; letter-spacing: 0.02em; }
.post__who { display: grid; gap: 1px; min-width: 0; }
.post__who b { font-size: 14.500px; font-weight: 720; font-stretch: 104%; }
.post__who span { font-size: 12.500px; font-weight: 560; color: var(--soft); }
.post__text { font-size: 15.500px; line-height: 22px; font-weight: 520; letter-spacing: -0.005em; text-wrap: pretty; }
.post__tags { display: flex; gap: 6px; }
.post__tags span { height: 24px; line-height: 24px; padding: 0 10px; border-radius: 12px; background: rgba(22, 23, 27, 0.05); font-size: 12px; font-weight: 640; color: var(--soft); }

.post__bar { display: flex; align-items: center; gap: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.post__stat { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 640; color: var(--soft); }
.post__stat svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.700; stroke-linecap: round; stroke-linejoin: round; }

.post__share { position: relative; margin-left: auto; }
/* --fill and --text are tweened by the script: quiet at rest, dark while the fan is open, the accent after a share */
.post__btn { --fill: rgba(22, 23, 27, 0.06); --text: var(--ink); position: relative; z-index: 2; display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px 0 11px; border: 0; border-radius: 20px; background: var(--fill); color: var(--text); font: inherit; font-size: 13.500px; font-weight: 700; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.post__btn:focus-visible, .post__chan:focus-visible { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--accent); }
.post__icons { position: relative; width: 20px; height: 20px; }
.post__icons svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.900; stroke-linecap: round; stroke-linejoin: round; }
.post__icons [data-icon="close"], .post__icons [data-icon="done"] { opacity: 0; }
.post__roll { display: block; height: 20px; line-height: 20px; overflow: hidden; }
.post__roll > span { display: block; white-space: nowrap; }

/* the fan: every channel starts under the button and is thrown to its place on the arc */
.post__fan { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 1; }
.post__chan { position: absolute; left: -23px; top: -23px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: #ffffff; color: var(--ink); cursor: pointer; outline: none; visibility: hidden; -webkit-tap-highlight-color: transparent; box-shadow: 0 0 0 1px var(--line), 0 10px 20px -8px rgba(22, 23, 27, 0.35); }
.post__chan i { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; transition: transform 0.3s cubic-bezier(0.3, 1.7, 0.5, 1), background-color 0.2s, color 0.2s; }
.post__chan svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.800; stroke-linecap: round; stroke-linejoin: round; }
.post__chan.is-hot i, .post__chan:focus-visible i { transform: scale(1.1); background: var(--ink); color: #ffffff; }
.post__tip { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%) scale(0.86); height: 22px; line-height: 22px; padding: 0 8px; border-radius: 8px; background: var(--ink); color: #ffffff; font-size: 11px; font-weight: 680; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.18s, transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1); }
.post__chan.is-hot .post__tip, .post__chan:focus-visible .post__tip { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.post__say { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.ghost { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -3px 0 0 -5px; pointer-events: none; opacity: 0; fill: var(--ink); stroke: #ffffff; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 3px rgba(22, 23, 27, 0.3)); z-index: 5; }

@media (max-width: 350px) {
  .post { padding: 16px 16px 12px; gap: 12px; }
  .post__text { font-size: 14.500px; line-height: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  [data-body], .post__chan i, .post__tip { transition: none; }
}
