:root {
  --bg: #f6f4ef;
  --card: #ffffff;
  --ink: #17181b;
  --soft: #7b7d83;
  --line: rgba(23, 24, 27, 0.1);
  --bar: #dedbd3;
  --accent: #5a48e0;
}

*, *::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: 12px 16px;
}

.ar {
  width: min(360px, 100%);
  padding: 16px 16px 12px;
  border-radius: 26px;
  background: var(--card);
  box-shadow:
    0 0 0 1px rgba(23, 24, 27, 0.05),
    0 1px 2px rgba(23, 24, 27, 0.06),
    0 34px 60px -32px rgba(23, 24, 27, 0.3);
}
.ar__head { display: flex; align-items: baseline; justify-content: space-between; }
.ar__title { font-size: 15px; font-weight: 660; font-stretch: 106%; letter-spacing: -0.008em; }
.ar__title i { margin-left: 6px; font-style: normal; font-weight: 480; color: var(--soft); }
.ar__sum { font-size: 12px; font-weight: 480; color: var(--soft); }
.ar__sum b { font-weight: 660; color: var(--ink); }

/* twelve months: each is a tab with a bar that stands on the floor line and a letter below it */
.ar__bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; margin: 12px 0 0; }
.mo { position: relative; display: grid; grid-template-rows: min(84px, 20vh) 18px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mo__well { position: relative; align-self: stretch; border-bottom: 1px solid var(--line); }
.mo__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; border-radius: 6px 6px 2px 2px; background: var(--bar); transform-origin: 50% 100%; transition: background-color 0.3s ease; }
.mo__bar::after { content: ""; position: absolute; left: 3px; right: 3px; top: 3px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.5); }
.mo.is-on .mo__bar { background: var(--accent); }
.mo__letter { align-self: end; font-size: 10.5px; font-weight: 560; color: var(--soft); text-align: center; transition: color 0.3s ease; }
.mo.is-on .mo__letter { color: var(--ink); font-weight: 700; }
.mo:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.ar__month { display: flex; align-items: baseline; justify-content: space-between; height: 24px; margin-top: 12px; padding-top: 0; }
.ar__name { height: 24px; overflow: hidden; font-size: 17px; line-height: 24px; font-weight: 680; font-stretch: 104%; letter-spacing: -0.012em; }
.ar__n { height: 18px; overflow: hidden; font-size: 12px; line-height: 18px; font-weight: 560; color: var(--accent); }
.ar__name span, .ar__n span { display: block; }
.ar__posts { list-style: none; height: 81px; margin-top: 4px; overflow: hidden; }
.ar__posts li { display: flex; align-items: center; gap: 10px; height: 27px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 500; }
.ar__posts li span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar__posts li i { flex: none; font-style: normal; font-size: 11.5px; font-weight: 460; color: var(--soft); }
.ar__posts li.is-more span { color: var(--soft); }

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

@media (min-width: 700px) and (min-height: 500px) {
  .ar { zoom: 1.3; }
}
@media (min-width: 1100px) and (min-height: 760px) {
  .ar { zoom: 1.6; }
}
