/* ===========================================================================
   Research: the list of notes at /research and the page of each note. The
   landing page's paper, ink, type and isometric figures; on a note's page,
   the prose and the contents column of the documentation (docs.css).
   =========================================================================== */

/* ---- the block of a note: in the list, and at the top of its page -------- */
.note-item,
.rs-cover{
  display:grid; align-items:center;
  background:var(--sheet); border:1px solid var(--rule); border-radius:var(--radius-md);
}
.note-fig .fig,
.rs-cover-fig .fig{ display:block; }
.note-meta{ display:flex; flex-wrap:wrap; gap:6px 12px; font-size:0.875rem; color:var(--graphite); }
.note-meta a{ color:var(--graphite); }
/* a note shown on a page in another language than its own */
.note-lang{
  display:inline-flex; align-items:center; gap:5px; padding:0 7px 0 6px; border-radius:var(--radius-sm);
  background:var(--warn-bg); color:var(--warn); font-size:0.8125rem; line-height:1.6;
}
.note-lang .icon{ width:13px; height:13px; flex:none; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }

/* ---- the list of notes -------------------------------------------------- */
.rs-head{ padding-block:96px 48px; }
.notes{ display:grid; gap:24px; margin-bottom:112px; }
.note-item{
  position:relative; grid-template-columns:minmax(0,300px) minmax(0,1fr);
  gap:24px 56px; padding:32px 48px 32px 32px; transition:border-color .15s;
}
.note-item h2{ margin-top:12px; font-size:clamp(1.5rem, 1.25rem + 0.9vw, 1.875rem); line-height:1.2; }
.note-item h2 a{ color:inherit; text-decoration:none; }
.note-item h2 a::after{ content:""; position:absolute; inset:0; }
.note-item .lede-s{ margin-top:12px; max-width:62ch; color:var(--graphite); }
@media (hover:hover){
  .note-item:hover{ border-color:var(--ink); }
  .note-item:hover h2 a{ text-decoration:underline; text-underline-offset:0.15em; text-decoration-thickness:1px; }
}

/* ---- a note ------------------------------------------------------------- */
.rs-cover{
  grid-template-columns:minmax(0,1fr) minmax(0,340px); gap:32px 64px;
  margin-top:48px; padding:48px 48px 48px 56px;
}
.rs-cover h1{ margin-top:16px; font-size:clamp(2rem, 1.5rem + 2vw, 2.75rem); line-height:1.12; letter-spacing:-0.02em; }
.rs-cover .lede{ margin-top:16px; max-width:640px; color:var(--graphite); }
.rs-article-body{
  display:grid; grid-template-columns:minmax(0,700px) 200px; justify-content:space-between;
  gap:56px; align-items:start; padding-bottom:112px;
}
.rs-article-body .toc{ padding-top:56px; }

@media (max-width:1180px){
  .rs-article-body{ grid-template-columns:minmax(0,1fr); }
}
@media (max-width:920px){
  .rs-head{ padding-block:64px 32px; }
  .note-item{ grid-template-columns:minmax(0,1fr); gap:16px; padding:24px 20px 28px; }
  .note-fig{ max-width:280px; }
  .rs-cover{ grid-template-columns:minmax(0,1fr); gap:20px; margin-top:24px; padding:24px 20px 28px; }
  .rs-cover-fig{ order:-1; max-width:260px; }
}
