/*! Sora: Copyright 2019 The Sora Project Authors. Nuntrix Serif: a modified version of Source
 *  Serif 4, © 2014-2021 Adobe. Both under the SIL Open Font License 1.1: /font-licences.txt */

/* The Nuntrix blog. The marketplace's own tokens and typefaces (frontend/app/styles/tokens.css,
 * fonts.css), served from this origin: no font host, no CDN, nothing that hands a reader's
 * address to anybody else. Phones first; nothing on a page is wider than the screen. */

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/sora-latin.woff2?v=811e11966d") 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: "Sora";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/sora-latin-ext.woff2?v=08e1ba85bc") 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: "Nuntrix Serif";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/nuntrix-serif-600-latin.woff2?v=4affe3c564") 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: "Nuntrix Serif";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/nuntrix-serif-600-latin-ext.woff2?v=062b0956f0") 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: "Sora fallback";
  font-weight: 400 500;
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("LiberationSans"), local("Arimo"), local("Roboto");
  size-adjust: 113.05%;
  ascent-override: 85.80%;
  descent-override: 25.65%;
  line-gap-override: 0.00%;
}
@font-face {
  font-family: "Nuntrix Serif fallback";
  font-weight: 400 700;
  src: local("Times New Roman Bold"), local("TimesNewRomanPS-BoldMT"), local("Liberation Serif Bold"), local("LiberationSerif-Bold"), local("Tinos Bold"), local("Tinos-Bold");
  size-adjust: 104.85%;
  ascent-override: 98.80%;
  descent-override: 31.95%;
  line-gap-override: 0.00%;
}

:root {
  --nx-paper: #faf7f2;
  --nx-paper-warm: #efeae2;
  --nx-paper-tint: #f6f1e7;
  --nx-surface: #ffffff;
  --nx-hairline: #e7e0d4;
  --nx-rule: #d6d0c4;
  --nx-ink: #1e1b18;
  --nx-ink-muted: #57534e;
  --nx-ink-faint: #6b665f;
  --nx-amber: #b45309;
  --nx-amber-deep: #92400e;
  --nx-amber-soft: #fdf0e1;
  --nx-teal: #0f766e;
  --nx-font-ui: "Sora", "Sora fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --nx-font-editorial: "Nuntrix Serif", "Nuntrix Serif fallback", ui-serif, Georgia, "Times New Roman", serif;
  --nx-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --nx-r-sm: 12px;
  --nx-r-md: 14px;
  --nx-r-lg: 18px;
  /* The text column, the table of contents beside it on a wide screen, and the space between:
     the article is as wide as the three together (2026-12-02: 680 pixels read as a narrow strip
     on a laptop, with a cover of 960 whose edges matched nothing). */
  --nx-measure: 760px;
  --nx-side: 240px;
  --nx-side-gap: 56px;
  --nx-article: calc(var(--nx-measure) + var(--nx-side-gap) + var(--nx-side));
  --nx-max: 1140px;
  --nx-gutter: 16px;
  --nx-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nx-shadow: 0 8px 28px rgba(30, 27, 24, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--nx-paper);
  color: var(--nx-ink);
  font: 400 16px/1.65 var(--nx-font-ui);
  overflow-wrap: break-word;
  overflow-x: clip;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--nx-amber-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--nx-amber); }
:focus-visible { outline: 3px solid var(--nx-amber); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--nx-font-editorial); font-weight: 600; line-height: 1.2; text-wrap: balance; margin: 0; }

.bl-skip { position: absolute; left: -9999px; top: 8px; }
.bl-skip:focus { left: 8px; z-index: 10; background: var(--nx-surface); padding: 8px 12px; border-radius: var(--nx-r-sm); }
.bl-preview { background: var(--nx-amber); color: #fff; text-align: center; padding: 10px var(--nx-gutter); font-size: 14px; }
.bl-wrap { max-width: var(--nx-max); margin: 0 auto; padding: 0 var(--nx-gutter); }

/* -- the bar at the top ----------------------------------------------------------------- */
.bl-top { border-bottom: 1px solid var(--nx-hairline); background: var(--nx-paper); }
.bl-top__inner { display: flex; align-items: center; gap: 12px; min-height: 60px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.bl-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--nx-ink); text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.bl-brand img { width: 30px; height: 30px; }
.bl-brand span { color: var(--nx-amber); font-weight: 600; }
.bl-top__links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.bl-langs { display: flex; gap: 4px; flex-wrap: wrap; font-size: 14px; }
.bl-langs a { position: relative; color: var(--nx-ink-muted); text-decoration: none; padding: 6px 8px; border-radius: 999px; }
.bl-langs a[aria-current="true"] { color: var(--nx-ink); background: var(--nx-paper-warm); font-weight: 600; }
.bl-langs__code { display: none; }
/* The way to the marketplace, beside the languages: in words, on every page. */
.bl-main { color: var(--nx-ink); text-decoration: none; font-size: 14px; font-weight: 600; padding: 6px 10px; border-radius: 999px; white-space: nowrap; border: 1px solid var(--nx-hairline); }
.bl-main:hover { background: var(--nx-paper-warm); }
.bl-cta { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 999px; background: var(--nx-amber); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; }
.bl-cta:hover { background: var(--nx-amber-deep); color: #fff; }
@media (max-width: 560px) {
  .bl-top__links { order: 3; width: 100%; margin-left: 0; justify-content: space-between; flex-wrap: nowrap; }
  /* On a phone a language is its two letters, so the four and the way to nuntrix.com share one
     row; the name is still what a screen reader says. */
  .bl-langs { flex-wrap: nowrap; gap: 2px; }
  .bl-langs__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .bl-langs__code { display: inline; }
  .bl-cta { margin-left: auto; }
}

/* -- lists of articles ------------------------------------------------------------------ */
.bl-hero { padding: 40px 0 24px; }
.bl-hero h1 { font-size: clamp(30px, 6vw, 46px); }
.bl-hero p { color: var(--nx-ink-muted); font-size: 18px; max-width: 46ch; margin: 12px 0 0; }
.bl-section-title { font-size: 22px; margin: 8px 0 16px; }
.bl-cards { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .bl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .bl-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bl-card { background: var(--nx-surface); border: 1px solid var(--nx-hairline); border-radius: var(--nx-r-lg); overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.bl-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--nx-paper-warm); }
.bl-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bl-card h2, .bl-card h3 { font-size: 20px; }
.bl-card h2 a, .bl-card h3 a { color: var(--nx-ink); text-decoration: none; }
.bl-card h2 a::after, .bl-card h3 a::after { content: ""; position: absolute; inset: 0; }
.bl-card { position: relative; }
.bl-card h2 a:hover, .bl-card h3 a:hover { color: var(--nx-amber-deep); }
.bl-card p { margin: 0; color: var(--nx-ink-muted); font-size: 15px; }
.bl-meta { color: var(--nx-ink-faint); font-size: 13px; margin-top: auto; }
.bl-empty { color: var(--nx-ink-muted); padding: 24px 0 48px; }
.bl-hub__section .bl-empty { padding: 4px 0 0; }
.bl-pager { display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; margin: 0 0 48px; }
.bl-pager a { font-weight: 600; }

.bl-hub { display: grid; gap: 28px; padding-bottom: 40px; }
.bl-hub__section { border-top: 1px solid var(--nx-rule); padding-top: 24px; }
.bl-hub__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.bl-hub__head h2 { font-size: 26px; }
.bl-hub__head p { margin: 4px 0 0; color: var(--nx-ink-muted); }

/* -- an article ------------------------------------------------------------------------- */
/* One grid: the header, the cover, the table of contents, the text and what follows it. On a
   phone and up to a laptop it is one column of the text's width, in that order. From 1100
   pixels the header and the cover take the whole width of the article, and the text and the
   table of contents sit side by side under them, so every edge lines up with another. */
.bl-article { padding: 28px 0 24px; }
.bl-article__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 28px;
  max-width: calc(var(--nx-measure) + 2 * var(--nx-gutter));
}
@media (min-width: 1100px) {
  .bl-article { padding-top: 40px; }
  .bl-article__grid--toc {
    max-width: calc(var(--nx-article) + 2 * var(--nx-gutter));
    grid-template-columns: minmax(0, var(--nx-measure)) var(--nx-side);
    column-gap: var(--nx-side-gap);
    grid-template-areas: "head head" "cover cover" "prose toc" "after toc";
  }
  .bl-article__grid--toc > .bl-article__head { grid-area: head; }
  .bl-article__grid--toc > .bl-cover { grid-area: cover; }
  .bl-article__grid--toc > .bl-toc { grid-area: toc; position: sticky; top: 24px; align-self: start; }
  .bl-article__grid--toc > .bl-prose { grid-area: prose; }
  .bl-article__grid--toc > .bl-after { grid-area: after; }
}
.bl-article__head { min-width: 0; }
.bl-eyebrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; font-size: 13px; }
.bl-eyebrow a { color: var(--nx-teal); text-decoration: none; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.bl-article h1 { font-size: clamp(30px, 5vw, 52px); max-width: var(--nx-measure); }
.bl-article__lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--nx-ink-muted); margin: 14px 0 0; max-width: var(--nx-measure); }
.bl-byline { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--nx-ink-faint); font-size: 14px; margin: 16px 0 0; }
.bl-byline a { color: var(--nx-ink); font-weight: 600; text-decoration: none; }
/* The cover is the header's width: under the title, its edges the text's. */
.bl-cover { margin: 0; }
.bl-cover img { width: 100%; border-radius: var(--nx-r-lg); background: var(--nx-paper-warm); }
.bl-toc { font-size: 14px; border: 1px solid var(--nx-hairline); border-radius: var(--nx-r-md); padding: 14px 16px; background: var(--nx-surface); }
.bl-toc h2 { font-family: var(--nx-font-ui); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--nx-ink-faint); margin-bottom: 8px; }
.bl-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bl-toc a { color: var(--nx-ink-muted); text-decoration: none; }
.bl-toc a:hover { color: var(--nx-amber-deep); }
.bl-toc .bl-toc__sub { padding-left: 12px; }

.bl-prose { font-size: 17px; line-height: 1.75; min-width: 0; }
@media (min-width: 760px) { .bl-prose { font-size: 18px; } }
/* Space between the blocks of an article, and a little less under a heading than between two
   paragraphs, so a heading reads with what follows it. A paragraph's own margins are cleared at
   the bottom only: clearing them all (`.bl-prose p { margin: 0 }`, more specific than the rule
   below) is what ran every paragraph into the next (2026-12-02). */
.bl-prose > * + * { margin-top: 1.1em; }
.bl-prose > :first-child { margin-top: 0; }
.bl-prose p { margin-bottom: 0; }
.bl-prose h2 + *, .bl-prose h3 + *, .bl-prose h4 + * { margin-top: 0.6em; }
.bl-prose h2 { font-size: 28px; margin-top: 1.8em; scroll-margin-top: 16px; }
.bl-prose h3 { font-size: 22px; margin-top: 1.5em; scroll-margin-top: 16px; }
.bl-prose h4 { font-family: var(--nx-font-ui); font-size: 17px; font-weight: 700; margin-top: 1.4em; }
.bl-prose ul, .bl-prose ol { padding-left: 1.3em; margin-bottom: 0; }
.bl-prose li + li { margin-top: 0.35em; }
.bl-prose blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--nx-amber); color: var(--nx-ink-muted); font-style: italic; }
.bl-prose code { font-family: var(--nx-mono); font-size: 0.88em; background: var(--nx-paper-warm); padding: 1px 5px; border-radius: 6px; }
.bl-prose pre { overflow-x: auto; background: #201c18; color: #f5efe6; padding: 16px 18px; border-radius: var(--nx-r-md); font-size: 14px; line-height: 1.6; }
.bl-prose pre code { background: none; padding: 0; color: inherit; }
.bl-prose table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 15px; max-width: 100%; }
.bl-prose th, .bl-prose td { border: 1px solid var(--nx-hairline); padding: 8px 10px; text-align: left; vertical-align: top; }
.bl-prose th { background: var(--nx-paper-tint); }
.bl-prose hr { border: 0; border-top: 1px solid var(--nx-rule); margin: 2em 0; }
.bl-prose img { border-radius: var(--nx-r-md); }

/* Pictures, carousels and videos: built by the renderer (application/rendering.py). */
.bl-figure { margin-left: 0; margin-right: 0; }
.bl-figure img { width: 100%; background: var(--nx-paper-warm); }
.bl-prose figcaption, .bl-video figcaption { color: var(--nx-ink-faint); font-size: 14px; margin-top: 8px; line-height: 1.5; }
/* A wide picture reaches past the text, centred on it, never past the screen; a full one
   reaches both edges of the screen. Beside a table of contents neither has room, and both stay
   the text's width rather than run under it. */
@media (min-width: 800px) {
  .bl-figure--wide { margin-left: calc((100% - min(960px, 100vw - 2 * var(--nx-gutter))) / 2); margin-right: calc((100% - min(960px, 100vw - 2 * var(--nx-gutter))) / 2); }
}
.bl-figure--full { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.bl-figure--full img { border-radius: 0; }
@media (min-width: 1100px) {
  .bl-article__grid--toc .bl-figure--wide, .bl-article__grid--toc .bl-figure--full { margin-left: 0; margin-right: 0; }
  .bl-article__grid--toc .bl-figure--full img { border-radius: var(--nx-r-md); }
}

.bl-carousel { position: relative; }
.bl-carousel__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; gap: 12px; border-radius: var(--nx-r-md); scrollbar-width: thin; overscroll-behavior-x: contain; }
.bl-carousel__slide { flex: 0 0 100%; scroll-snap-align: center; margin: 0; position: relative; }
.bl-carousel__slide img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--nx-r-md); background: var(--nx-paper-warm); }
.bl-carousel__count { display: inline-block; font-weight: 600; color: var(--nx-ink-muted); margin-right: 6px; }
.bl-carousel__arrow { position: absolute; top: calc(50% - 40px); width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--nx-ink); display: grid; place-items: center; text-decoration: none; font-size: 26px; line-height: 1; box-shadow: var(--nx-shadow); }
.bl-carousel__arrow--prev { left: 10px; }
.bl-carousel__arrow--next { right: 10px; }
.bl-carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.bl-carousel__dots a { width: 10px; height: 10px; border-radius: 50%; background: var(--nx-rule); }
.bl-carousel__dots a[aria-current="true"] { background: var(--nx-amber); }

.bl-video { margin-left: 0; margin-right: 0; }
.bl-video video { width: 100%; border-radius: var(--nx-r-md); background: #000; }
.bl-youtube { position: relative; display: block; border-radius: var(--nx-r-md); overflow: hidden; color: #fff; }
.bl-youtube img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.bl-youtube__play { position: absolute; left: 50%; top: 50%; width: 72px; height: 50px; margin: -25px 0 0 -36px; border-radius: 14px; background: rgba(30, 27, 24, 0.82); transition: background 0.18s var(--nx-ease); }
.bl-youtube__play::after { content: ""; position: absolute; left: 29px; top: 15px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.bl-youtube:hover .bl-youtube__play, .bl-youtube:focus-visible .bl-youtube__play { background: var(--nx-amber); }
.bl-youtube__label { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 14px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)); font-size: 14px; font-weight: 600; }
.bl-youtube iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.bl-youtube__note { display: block; font-size: 12px; }

/* -- after the article ------------------------------------------------------------------ */
.bl-after { margin-top: 12px; display: grid; gap: 28px; min-width: 0; }
.bl-box { background: var(--nx-surface); border: 1px solid var(--nx-hairline); border-radius: var(--nx-r-lg); padding: 20px; }
.bl-box h2 { font-size: 22px; margin-bottom: 10px; }
.bl-faq details { border-top: 1px solid var(--nx-hairline); padding: 12px 0; }
.bl-faq details:first-of-type { border-top: 0; }
.bl-faq summary { cursor: pointer; font-weight: 600; }
.bl-faq details p { margin: 8px 0 0; color: var(--nx-ink-muted); }
.bl-sources ol { margin: 0; padding-left: 1.2em; font-size: 15px; }
.bl-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.bl-tags a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--nx-paper-warm); color: var(--nx-ink); text-decoration: none; font-size: 14px; }
.bl-author { display: flex; gap: 16px; align-items: flex-start; }
.bl-author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.bl-author p { margin: 6px 0 0; color: var(--nx-ink-muted); font-size: 15px; }
.bl-author__links { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 14px; }
.bl-promo { background: var(--nx-amber-soft); border-color: #f3d9b8; }
.bl-promo p { margin: 0 0 14px; }

/* -- the foot of every page ------------------------------------------------------------- */
.bl-foot { border-top: 1px solid var(--nx-hairline); margin-top: 48px; padding: 28px 0 40px; color: var(--nx-ink-faint); font-size: 14px; }
.bl-foot p { margin: 0 0 10px; }
.bl-foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.bl-foot a { color: var(--nx-ink-muted); }

.bl-error { padding: 72px 0; max-width: 560px; }
.bl-error h1 { font-size: 34px; }
.bl-error p { color: var(--nx-ink-muted); }

@media (prefers-reduced-motion: reduce) {
  .bl-carousel__track { scroll-behavior: auto; }
  * { transition: none !important; }
}
