:root {
  --bg: #f3efe7;
  --ink: #1c1a16;
  --soft: #7e776b;
  --card: #ffffff;
  --accent: #df5327;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background:
    radial-gradient(60% 50% at 15% 0%, #fffdf8, transparent 70%),
    radial-gradient(50% 45% at 100% 100%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%),
    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: 12px 18px;
}

/* the post's head keeps the height of the open card, so nothing jumps when the byline grows */
.post { width: min(330px, 100%); height: min(352px, 90vh); }
.post__kicker { font-size: 11.5px; line-height: 16px; font-weight: 660; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.post__title { margin-top: 6px; font-size: clamp(23px, 7.4vw, 28px); line-height: 1.12; font-weight: 720; font-stretch: 110%; letter-spacing: -0.025em; text-wrap: balance; }

.author {
  position: relative;
  margin-top: 16px;
  width: max-content;
  max-width: 100%;
  height: 44px;
  border-radius: 22px;
  background: var(--card);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(28, 26, 22, 0.07),
    0 1px 2px rgba(28, 26, 22, 0.05),
    0 8px 18px -10px rgba(28, 26, 22, 0.25);
  transition: box-shadow 0.5s ease;
}
.author.is-open {
  box-shadow:
    0 0 0 1px rgba(28, 26, 22, 0.06),
    0 2px 4px rgba(28, 26, 22, 0.05),
    0 22px 44px -18px rgba(28, 26, 22, 0.32),
    0 50px 80px -44px color-mix(in srgb, var(--accent) 55%, transparent);
}
.author__head { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 16px 8px 8px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.author__head:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; border-radius: 22px; }
.avatar { flex: none; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(140deg, #ffb35c, var(--accent) 60%, #a52a12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 2px 6px -2px color-mix(in srgb, var(--accent) 80%, transparent); display: grid; place-items: center; color: #ffffff; font-size: 10.5px; font-weight: 720; letter-spacing: 0.02em; }
.avatar span { display: block; }
.author__id { display: flex; align-items: baseline; gap: 7px; min-width: 0; white-space: nowrap; }
.author__name { font-size: 13.5px; line-height: 18px; font-weight: 660; }
.author__meta { font-size: 12px; font-weight: 520; color: var(--soft); }
.roll { display: block; height: 18px; line-height: 18px; overflow: hidden; }
.roll span { display: block; white-space: nowrap; }

.author__more { padding: 2px 14px 14px; width: var(--open-w, 300px); visibility: hidden; }
.author__bio { font-size: 13px; line-height: 1.42; color: color-mix(in srgb, var(--ink) 80%, var(--soft)); }
.author__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 11px; }
.author__stats div { padding: 8px 11px 9px; border-radius: 13px; background: #f6f3ee; }
.author__stats dt { font-size: 11px; line-height: 14px; font-weight: 560; color: var(--soft); }
.author__stats dd { font-size: 18px; line-height: 23px; font-weight: 700; font-stretch: 106%; letter-spacing: -0.015em; }
.follow { position: relative; display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; height: 40px; margin-top: 11px; border: 0; border-radius: 99px; background: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 16px -8px rgba(28, 26, 22, 0.55); color: #ffffff; font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease; }
.follow:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.follow.is-on { background: color-mix(in srgb, var(--accent) 12%, #ffffff); color: color-mix(in srgb, var(--accent) 78%, #1c0a04); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 55%, transparent); }
.follow svg { width: 16px; height: 16px; overflow: visible; }
.follow path { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.follow__tick { stroke-dasharray: 1; stroke-dashoffset: 1; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ghost {
  position: fixed;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  pointer-events: none;
  fill: #14151a;
  stroke: #ffffff;
  stroke-width: 1.4;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 4px rgba(20, 21, 26, 0.3));
  opacity: 0;
  visibility: hidden;
  z-index: 5;
}

/* big in the poster and on a desk, unchanged in the phone's box */
@media (min-width: 700px) and (min-height: 500px) {
  .post { zoom: 1.25; }
}
@media (min-width: 1100px) and (min-height: 760px) {
  .post { zoom: 1.7; }
}
