/* renderStacks - site pages.
   ---------------------------------------------------------------------------
   The landing page and the ordinary content pages.  The documentation does not
   load this file; it only loads rs-theme.css, so Material for MkDocs keeps
   styling its own body and nothing here can reach it.
   --------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.rs-site {
  margin: 0;
  background: var(--rs-band);
  color: var(--rs-text);
  font-family: var(--rs-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.rs-site img { max-width: 100%; height: auto; }

/* Link colour belongs to body copy, not to every <a> on the page - the bar,
   the buttons and the cards all carry their own. :where() keeps this at zero
   specificity so a component class always wins, whatever the file order. */
:where(.rs-prose, .rs-lede, .rs-feature, .rs-pillar, .rs-note, .rs-section > .rs-wrap > .rs-narrow) a {
  color: var(--rs-accent);
}

.rs-wrap {
  max-width: var(--rs-wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.rs-narrow { max-width: 820px; }

.rs-site code {
  padding: .1em .35em;
  border-radius: 4px;
  background: var(--rs-ink);
  box-shadow: inset 0 0 0 1px var(--rs-line);
  font-family: var(--rs-mono);
  font-size: .88em;
  word-break: break-word;
}

.rs-section--dark .rs-site code,
.rs-hero code {
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.rs-section { padding: 3.5rem 0; }
.rs-section--tight { padding: 2.25rem 0; }
.rs-section--grey { background: var(--rs-band-2); border-block: 1px solid var(--rs-line); }
.rs-section--dark { background: var(--rs-ink); color: rgba(255, 255, 255, .78); }

/* Any band can take one of the spectrum tints instead, by naming it on the
   element:  <section class="rs-section--tint" style="--rs-band: var(--rs-tint-pink)">
   They all sit at the same lightness, so this changes the hue of a band
   without changing where it sits in the page's order. */
.rs-section--tint { background: var(--rs-band); border-block: 1px solid var(--rs-line); }

.rs-h2 {
  margin: 0 0 .4rem;
  font-family: var(--rs-display);
  font-size: clamp(1.9rem, 1.2rem + 2vw, 2.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.015em;
  color: var(--rs-text);
}

.rs-section--dark .rs-h2 { color: #fff; }

/* the spectrum, reduced to a 48px rule - enough to read as the brand */
.rs-h2--ruled::before {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-bottom: 1.1rem;
  border-radius: 3px;
  background: var(--rs-spectrum);
}

.rs-lede {
  max-width: 62ch;
  margin: 0 0 2.5rem;
  color: var(--rs-muted);
  font-size: 1.1rem;
}

.rs-section--dark .rs-lede { color: rgba(255, 255, 255, .6); }

/* --------------------------------------------------------------- button -- */

.rs-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .72rem 1.4rem;
  border: 0;
  border-radius: 8px;
  background: var(--rs-accent);
  color: #fff;
  font-family: var(--rs-display);
  font-size: 1.02rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: filter .15s ease, transform .15s ease;
}

.rs-btn:hover { filter: brightness(1.12); color: #fff; }
.rs-btn:active { transform: translateY(1px); }

.rs-btn--ghost {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
}

.rs-btn--ghost:hover { background: rgba(255, 255, 255, .1); filter: none; }

.rs-btn--quiet {
  background: transparent;
  color: var(--rs-text);
  box-shadow: inset 0 0 0 1px var(--rs-line);
}

.rs-btn--quiet:hover { background: rgba(255, 255, 255, .08); color: var(--rs-text); filter: none; }

/* ----------------------------------------------------------------- hero -- */

.rs-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--rs-nav-h) + 5.5rem) 0 5rem;
  background: var(--rs-hero);
  color: var(--rs-text);
  isolation: isolate;
}

/* Two soft colour washes from opposite ends of the logo spectrum.  They sit
   far enough apart that neither reads as a single tinted overlay, and both are
   dim enough to keep white text at full contrast. */
.rs-hero::before,
.rs-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 70vw;
  max-width: 900px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .22;
  pointer-events: none;
}

.rs-hero::before { top: -28%; left: -14%; background: var(--rs-blue); }
.rs-hero::after  { top: 8%;  right: -20%; background: var(--rs-pink); }

.rs-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  align-items: center;
  gap: 3.5rem;
}

.rs-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.4rem;
  padding: .3rem .85rem .3rem .4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13);
  color: rgba(255, 255, 255, .86);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
}

.rs-hero__badge:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.rs-hero__badge b {
  padding: .1rem .5rem;
  border-radius: 999px;
  background: var(--rs-accent);
  color: #fff;
  font-family: var(--rs-display);
  font-size: .82rem;
  font-weight: 800;
}

.rs-hero h1 {
  margin: 0 0 1rem;
  font-family: var(--rs-display);
  font-size: clamp(2.6rem, 1.4rem + 3.6vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.025em;
  color: #fff;
}

.rs-hero h1 em {
  font-style: normal;
  background: var(--rs-spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rs-hero p {
  max-width: 46ch;
  margin: 0 0 2rem;
  color: rgba(255, 255, 255, .68);
  font-size: 1.14rem;
}

.rs-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem;
}

.rs-hero__note {
  margin: 1.4rem 0 0;
  color: rgba(255, 255, 255, .45);
  font-size: .88rem;
}

/* the product shot, framed as a window rather than dropped flat on the page */
.rs-shot {
  margin: 0;
  border-radius: 12px;
  background: var(--rs-ink-2);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .09),
              0 30px 70px -20px rgba(0, 0, 0, .8);
  overflow: hidden;
}

.rs-shot img { display: block; width: 100%; }

.rs-shot figcaption {
  padding: .6rem .9rem;
  border-top: 1px solid var(--rs-ink-3);
  color: rgba(255, 255, 255, .42);
  font-size: .8rem;
}

/* -------------------------------------------------------------- pillars -- */

.rs-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* A tile is one step up from whatever band it sits on - the same step on
   every band, so a row of them reads the same wherever it appears. */
.rs-pillar {
  position: relative;
  padding: 1.9rem 1.6rem 1.7rem;
  border: 1px solid var(--rs-ink-3);
  border-radius: 12px;
  background: var(--rs-surface);
  color: rgba(255, 255, 255, .72);
  overflow: hidden;
}

/* each pillar takes one colour from the stack, top to bottom */
.rs-pillar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--rs-c, var(--rs-accent));
}

.rs-pillar h3 {
  margin: 0 0 .5rem;
  color: #fff;
  font-family: var(--rs-display);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}

.rs-pillar p { margin: 0; color: inherit; font-size: .98rem; }

/* ------------------------------------------------------------- features -- */

.rs-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.4rem 3rem;
}

.rs-feature h3 {
  margin: 0 0 .5rem;
  font-family: var(--rs-display);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.25;
}

.rs-feature h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: .55rem;
  border-radius: 2px;
  background: var(--rs-c, var(--rs-accent));
  vertical-align: .08em;
}

.rs-feature p { margin: 0 0 .7rem; color: var(--rs-muted); font-size: .98rem; }
.rs-feature p:last-child { margin-bottom: 0; }
.rs-feature ul { margin: 0; padding-left: 1.1rem; color: var(--rs-muted); font-size: .98rem; }

/* ----------------------------------------------------------- pmodifiers -- */

.rs-count {
  display: flex;
  align-items: baseline;
  gap: .7rem;
  margin: 0 0 1.5rem;
  font-family: var(--rs-display);
}

.rs-count b {
  font-size: clamp(2.6rem, 1.6rem + 3vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  background: var(--rs-spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rs-count span { color: var(--rs-muted); font-size: 1.1rem; font-weight: 700; }

.rs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rs-chips li {
  padding: .26rem .7rem;
  border: 1px solid var(--rs-line);
  border-radius: 999px;
  background: var(--rs-surface);
  font-family: var(--rs-display);
  font-size: .92rem;
  font-weight: 700;
  color: var(--rs-text);
}

/* ---------------------------------------------------------------- video -- */

.rs-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .09),
              0 30px 70px -24px rgba(0, 0, 0, .7);
  overflow: hidden;
}

.rs-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --------------------------------------------------------------- quotes -- */

.rs-quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.rs-quote {
  display: block;
  padding: 1.7rem 1.6rem;
  border: 1px solid var(--rs-ink-3);
  border-radius: 12px;
  background: var(--rs-surface);
  color: rgba(255, 255, 255, .8);
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}

.rs-quote:hover { border-color: rgba(255, 255, 255, .28); transform: translateY(-2px); color: rgba(255, 255, 255, .9); }
.rs-quote p { margin: 0 0 1rem; font-size: 1.02rem; }
.rs-quote footer { color: rgba(255, 255, 255, .45); font-family: var(--rs-display); font-size: .9rem; font-weight: 700; }

/* ------------------------------------------------------------------ cta -- */

.rs-cta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* All three are the same tile. The orange button is what marks the lead -
   a darker card next to a lighter one reads as a hard edge, not a row. */
.rs-cta__card {
  padding: 2rem 1.8rem;
  border: 1px solid var(--rs-ink-3);
  border-radius: 12px;
  background: var(--rs-surface);
  color: rgba(255, 255, 255, .72);
}

.rs-cta__card h3 {
  margin: 0 0 .5rem;
  color: #fff;
  font-family: var(--rs-display);
  font-size: 1.5rem;
  font-weight: 800;
}

.rs-cta__card p { margin: 0 0 1.4rem; color: inherit; opacity: .85; font-size: .98rem; }

/* ----------------------------------------------------------- inner page -- */

.rs-page__head {
  padding: 3rem 0 2.4rem;
  background: var(--rs-ink);
  color: var(--rs-text);
}

.rs-page__head h1 {
  margin: 0;
  color: #fff;
  font-family: var(--rs-display);
  font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.rs-page__head p { margin: .6rem 0 0; color: rgba(255, 255, 255, .6); }

.rs-prose { padding: 3rem 0 4rem; }
.rs-prose h2 {
  margin: 2.6rem 0 .8rem;
  font-family: var(--rs-display);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
}
.rs-prose h3 {
  margin: 2rem 0 .6rem;
  font-family: var(--rs-display);
  font-size: 1.3rem;
  font-weight: 800;
}
/* The release notes head each build with an h4 - "4.56 - 10/4/2026" - and the
   older posts go down to h6. The prototype's own pages stop at h3, so these
   never came up there; on the site they are 34 headings across the blog. */
.rs-prose h4,
.rs-prose h5,
.rs-prose h6 {
  margin: 1.8rem 0 .5rem;
  font-family: var(--rs-display);
  font-size: 1.12rem;
  font-weight: 800;
}
.rs-prose h5,
.rs-prose h6 {
  font-size: 1rem;
  letter-spacing: .02em;
  color: var(--rs-muted);
}
.rs-prose > :first-child { margin-top: 0; }
.rs-prose p, .rs-prose li { color: var(--rs-text); }
.rs-prose ul { padding-left: 1.2rem; }
/* ...but the chips are not that kind of list */
.rs-prose .rs-chips { padding-left: 0; }
.rs-prose li { margin-bottom: .45rem; }

.rs-note {
  margin: 1.6rem 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--rs-accent);
  border-radius: 0 8px 8px 0;
  background: var(--rs-surface);
  font-size: .96rem;
}

.rs-note strong { color: var(--rs-text); }

/* A notice that costs the reader something to miss, as against the ordinary
   .rs-note.  The bar is the logo's yellow - the one hue in the palette that
   reads as caution without reaching for a red the site does not own. */
.rs-note--warn { border-left-color: var(--rs-yellow); }

/* ------------------------------------------------------------- blog list -- */

.rs-posts {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rs-post {
  display: block;
  padding: 1.3rem 1.5rem;
  border: 1px solid var(--rs-ink-3);
  border-radius: 12px;
  background: var(--rs-surface);
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}

.rs-post:hover { border-color: var(--rs-accent); transform: translateY(-2px); }

.rs-post h2 {
  margin: 0 0 .3rem;
  color: #fff;
  font-family: var(--rs-display);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}

.rs-post time { display: block; margin-bottom: .55rem; }
.rs-post p { margin: 0; font-size: .96rem; }

/* The newest post is shown whole at the top of the first page, so the list
   opens with something to read instead of fifty excerpts.
 *
 * It is a <li>, not the <a> the other cards are: the post content has its own
 * links and images, and an anchor cannot be nested inside another one - the
 * browser closes the outer one early and the rest of the card falls out of it.
 * So the title carries the link here and the card does not. */
.rs-post--full { padding: 1.8rem 2rem 2rem; }
.rs-post--full:hover { border-color: var(--rs-ink-3); transform: none; }

.rs-post--full h2 { font-size: 1.7rem; }
.rs-post--full h2 a { color: #fff; text-decoration: none; }
.rs-post--full h2 a:hover { color: var(--rs-accent); }

/* .rs-prose carries the heading, list and link styling; this only undoes the
   page padding it assumes. A measure used to be held here as well, pulling
   the text in from the card's edge - that was written against a 1160 card,
   where the lines would otherwise have run to about 140 characters. The wrap
   is 1000 now and the card's content box about 896, so the text fills it. */
.rs-post__body { padding: 0; margin-top: 1.1rem; }
.rs-post__body > :last-child { margin-bottom: 0; }

/* The card is a <li> of .rs-posts, so a list in the post body is a nested one
   as far as the browser is concerned and its markers default to circles -
   the same content on the post's own page gets discs. Say which it is. */
.rs-post__body ul { list-style: disc; }
.rs-post__body ul ul { list-style: circle; }

/* the date on a post card and the date under a post's own title */
.rs-post time,
.rs-page__head time,
.rs-eyebrow {
  color: var(--rs-muted);
  font-family: var(--rs-display);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.rs-eyebrow { margin: 0 0 .5rem; }
.rs-eyebrow a { color: inherit; text-decoration: none; }
.rs-eyebrow a:hover { color: var(--rs-accent); }

/* ----------------------------------------------------------- rsPrvRender -- */

/* The tall tool window sits beside the introduction, and the small button
   strips beside the paragraph that explains each one - they are the whole
   argument on that page, and a reader should not have to scroll between the
   picture and the sentence about it. Both collapse to one column when there
   is no room for two. */
.rs-split {
  display: grid;
  grid-template-columns: 1fr minmax(0, 300px);
  gap: 1rem 3rem;
  align-items: start;
}

.rs-aside {
  display: grid;
  grid-template-columns: 1fr minmax(0, 280px);
  gap: 1rem 2.5rem;
  align-items: center;
  margin: 2rem 0;
}

.rs-split figure,
.rs-aside figure { margin: 0; }

.rs-split img,
.rs-aside img {
  display: block;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--rs-ink-3);
}

.rs-shot--plain {
  margin: 1.8rem 0;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--rs-ink-3);
}

/* ---------------------------------------------------------------- table -- */

.rs-table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  font-size: .98rem;
}

.rs-table th,
.rs-table td { padding: .7rem .9rem; border-bottom: 1px solid var(--rs-line); text-align: left; }

.rs-table th {
  font-family: var(--rs-display);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--rs-muted);
}

.rs-table td:last-child,
.rs-table th:last-child { text-align: right; }
.rs-table tbody tr:hover { background: rgba(255, 255, 255, .05); }
.rs-table .rs-price { font-family: var(--rs-display); font-size: 1.1rem; font-weight: 800; white-space: nowrap; }

/* ----------------------------------------------------------- responsive -- */

@media (max-width: 62em) {
  .rs-hero { padding-top: calc(var(--rs-nav-h) + 3rem); }
  .rs-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .rs-section { padding: 2.5rem 0; }
  .rs-section--tight { padding: 1.75rem 0; }
  .rs-split, .rs-aside { grid-template-columns: 1fr; }
}

@media (max-width: 36em) {
  body.rs-site { font-size: 16px; }
  .rs-pillar, .rs-cta__card { padding: 1.4rem 1.2rem; }
}
