/* The marketplace site's page: fonts, palette, header, prose and footer.
   The search UI's own rules are in marketplace.css. Colours are rs-rich's
   (rs-rich-cli's docs/assets/rs-rich/): the mark's dark purple #1c1a24 for
   the header, its gold #c08600 as the accent, set for light and dark so
   text keeps at least 4.5:1. */

/* The fonts, served with the site (fonts/README.md). */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-display: fallback;
  font-weight: 400;
  src: url(fonts/roboto-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-display: fallback;
  font-weight: 400;
  src: url(fonts/roboto-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Roboto";
  font-style: italic;
  font-display: fallback;
  font-weight: 400;
  src: url(fonts/roboto-latin-ext-400-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Roboto";
  font-style: italic;
  font-display: fallback;
  font-weight: 400;
  src: url(fonts/roboto-latin-400-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-display: fallback;
  font-weight: 700;
  src: url(fonts/roboto-latin-ext-700-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-display: fallback;
  font-weight: 700;
  src: url(fonts/roboto-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Roboto Mono";
  font-style: normal;
  font-display: fallback;
  font-weight: 400;
  src: url(fonts/roboto-mono-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Roboto Mono";
  font-style: normal;
  font-display: fallback;
  font-weight: 400;
  src: url(fonts/roboto-mono-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Roboto Mono";
  font-style: normal;
  font-display: fallback;
  font-weight: 700;
  src: url(fonts/roboto-mono-latin-ext-700-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Roboto Mono";
  font-style: normal;
  font-display: fallback;
  font-weight: 700;
  src: url(fonts/roboto-mono-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* The palette. */
:root {
  color-scheme: light;
  --bg: #f7f6fa;
  --surface: #ffffff;
  --surface-sunken: #f1eff6;
  --fg: #1c1a24;
  --fg-muted: #57536a;
  --border: #e0dde8;
  --border-strong: #b6b1c6;
  --link: #7a5500;
  --link-hover: #4d3600;
  --accent: #c08600;
  --focus: #7a5500;
  --header-bg: #1c1a24;
  --header-fg: #ecebf2;
  --header-muted: #b9b5c8;
  --shadow: 0 1px 2px rgba(28, 26, 36, 0.06), 0 2px 10px rgba(28, 26, 36, 0.05);
  --font: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Roboto Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #121118;
    --surface: #1a1922;
    --surface-sunken: #23212d;
    --fg: #ecebf2;
    --fg-muted: #aaa6bb;
    --border: #2e2b3a;
    --border-strong: #4a4659;
    --link: #e8b23d;
    --link-hover: #ffd47a;
    --accent: #c08600;
    --focus: #e8b23d;
    --header-bg: #1c1a24;
    --header-fg: #ecebf2;
    --header-muted: #aaa6bb;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1 0 auto;
}
main:focus {
  outline: none;
}
a {
  color: var(--link);
  text-underline-offset: 0.15em;
}
a:hover {
  color: var(--link-hover);
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}
code,
pre {
  font-family: var(--mono);
  font-size: 0.875em;
  font-variant-ligatures: none;
}
:not(pre) > code {
  background: var(--surface-sunken);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  overflow-wrap: anywhere;
}
pre {
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  line-height: 1.5;
}
.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (max-width: 36rem) {
  .wrap {
    padding: 0 1rem;
  }
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  background: var(--surface);
  color: var(--fg);
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
}
.skip:focus {
  top: 0.75rem;
}

/* The header. */
.site-header {
  background: var(--header-bg);
  color: var(--header-fg);
  border-bottom: 3px solid var(--accent);
}
.site-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  min-height: 3.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.site-header a {
  color: var(--header-fg);
}
.site-header :focus-visible {
  outline-color: #e8b23d;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.brand img {
  display: block;
  border-radius: 7px;
  box-shadow: 0 0 0 1px rgba(236, 235, 242, 0.18);
}
.brand-sub {
  font-weight: 400;
  color: var(--header-muted);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9375rem;
}
.nav a {
  text-decoration: none;
  display: inline-block;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover {
  color: #ffffff;
  border-bottom-color: var(--accent);
}

/* The introduction. */
.intro {
  padding: 2rem 0 0.5rem;
}
h1 {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem);
  line-height: 1.2;
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
}
h1 code {
  font-size: 0.9em;
  background: none;
  padding: 0;
  color: var(--link);
}
.lede {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  margin: 0 0 1.1rem;
  max-width: 46rem;
}
.trust {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: var(--surface);
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  max-width: 52rem;
  box-shadow: var(--shadow);
}
.trust p {
  margin: 0;
}
.trust .trust-title {
  font-weight: 700;
  margin-bottom: 0.2rem;
}

/* The prose below the list. */
.prose {
  max-width: 48rem;
  margin: 2.5rem 0 3rem;
}
.prose h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.6rem;
  scroll-margin-top: 1rem;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose p {
  margin: 0 0 1rem;
}

/* The footer. */
.site-footer {
  flex: none;
  background: var(--header-bg);
  color: var(--header-muted);
  font-size: 0.875rem;
  padding: 1.5rem 0;
}
.site-footer a {
  color: var(--header-fg);
}
.site-footer a:hover {
  color: #ffffff;
}
.site-footer :focus-visible {
  outline-color: #e8b23d;
}
.footer-inner p {
  margin: 0 0 0.6rem;
  max-width: 48rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* The static list of listings (packages/index.html, scripts/build_site.py). */
.static-list {
  padding-left: 1.2rem;
}
.static-list li {
  margin: 0.25rem 0;
}

/* A phone: the introduction is shorter, so the list starts sooner. */
@media (max-width: 36rem) {
  .intro {
    padding-top: 1.25rem;
  }
  .lede {
    font-size: 1rem;
    margin-bottom: 0.9rem;
  }
  .trust {
    font-size: 0.875rem;
    padding: 0.6rem 0.85rem;
  }
  .site-header-inner {
    min-height: 0;
  }
}
