/* annotation.html: the page around the examples, and the two live frames (a backlog panel, a draft) */
.anp { padding-top: clamp(40px, 8vh, 96px); padding-bottom: clamp(56px, 10vh, 120px); }
.anp-hero h1 { margin-top: 16px; font-weight: 400; font-size: clamp(40px, 6vw, 96px); line-height: 1; letter-spacing: -.045em; }
.anp-hero p:last-child { max-width: 30em; margin-top: 18px; color: var(--mute); font-size: clamp(17px, 1.6vw, 22px); line-height: 1.3; letter-spacing: -.015em; }

.an-ex { display: grid; grid-template-columns: minmax(220px, 4fr) 12fr; gap: 24px clamp(24px, 3vw, 56px);
         margin-top: clamp(64px, 12vh, 140px); padding-top: 28px; border-top: 1px solid var(--line); }
.an-ex-head { align-self: start; position: sticky; top: 28px; }
.an-ex-kicker { display: flex; gap: 10px; color: var(--mute); font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.an-ex-kicker span { color: var(--ink); font-variant-numeric: tabular-nums; }
.an-ex h2 { margin-top: 14px; font-weight: 500; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.an-ex-use { margin-top: 14px; font-size: 16px; line-height: 1.45; }
.an-ex-body { margin-top: 10px; color: var(--mute); font-size: 15px; line-height: 1.5; }
.an-ex-body a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.an-ex-frames { display: grid; gap: clamp(36px, 5vw, 64px); min-width: 0; }
.an-ex-label { margin-bottom: 10px; color: var(--mute); font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.an-ex-frame .an-ink { top: 0; }
.an-fallback { margin-top: 12px; padding-left: 1.2em; color: var(--ink-2, #555); }

.anp-how { margin-top: clamp(72px, 12vh, 140px); padding-top: 28px; border-top: 1px solid var(--line); }
.anp-how h2 { font-weight: 500; font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -.035em; }
.anp-how ol { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 24px; counter-reset: how; }
.anp-how li { counter-increment: how; padding-top: 14px; border-top: 1px solid var(--line); }
.anp-how li::before { content: counter(how, decimal-leading-zero); color: var(--mute); font-size: 13px; font-variant-numeric: tabular-nums; }
.anp-how h3 { margin-top: 8px; font-weight: 500; font-size: 18px; letter-spacing: -.02em; }
.anp-how p { margin-top: 6px; color: var(--mute); font-size: 15px; line-height: 1.45; }

@media (max-width: 1100px) {
  .an-ex { grid-template-columns: 1fr; }
  .an-ex-head { position: static; max-width: 40em; }
  .anp-how ol { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .anp-how ol { grid-template-columns: 1fr; } }

/* live frame 1: a backlog panel with a toast that comes and goes */
.dm { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 18px;
      padding: clamp(20px, 4vw, 48px) clamp(20px, 6vw, 72px); background: #f1f1f1; font-size: 15px; }
.dm-head, .dm-rows, .dm-foot { width: min(100%, 520px); margin: 0 auto; }
.dm-head { display: flex; justify-content: space-between; align-items: baseline; }
.dm-head b { font-weight: 500; font-size: 18px; letter-spacing: -.02em; }
.dm-count { color: var(--mute); font-size: 13px; }
.dm-rows { list-style: none; background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.dm-rows li { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-top: 1px solid rgba(0, 0, 0, .06); }
.dm-rows li:first-child { border-top: 0; }
.dm-rows i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #bbb; flex: none; }
.dm-rows .is-done i { background: #1d1d1d; box-shadow: none; }
.dm-rows .is-done { color: var(--mute); }
.dm-rows span { margin-left: auto; font-size: 12px; }
.dm-foot { display: flex; justify-content: space-between; align-items: center; color: var(--mute); font-size: 13px; }
.dm-foot button { padding: 10px 16px; border: 0; border-radius: 99px; background: #1d1d1d; color: #fff; font: 500 14px/1 var(--font); }
.dm-toast { position: absolute; right: clamp(16px, 5vw, 56px); bottom: clamp(18px, 4vw, 40px); padding: 12px 16px; border-radius: 12px;
            background: #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, .12), 0 0 0 1px rgba(0, 0, 0, .05); font-size: 14px;
            opacity: 0; translate: 0 12px; animation: dm-toast 6.5s cubic-bezier(.16, 1, .3, 1) 1.8s infinite; }
.dm-toast b { font-weight: 500; margin-right: 6px; }
@keyframes dm-toast {
  0% { opacity: 0; translate: 0 12px; }
  6%, 46% { opacity: 1; translate: 0 0; }
  52%, 100% { opacity: 0; translate: 0 12px; }
}
@media (prefers-reduced-motion: reduce) { .dm-toast { animation: none; opacity: 1; translate: none; } }

/* live frame 2: a paragraph in draft */
.dc { padding: clamp(24px, 4vw, 48px) clamp(24px, 5vw, 64px) clamp(24px, 4vw, 48px) clamp(20px, 4vw, 48px); background: #fff; box-shadow: inset 0 0 0 1px var(--line); border-radius: inherit; }
.dc p { max-width: 34em; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.6; letter-spacing: -.01em; }
