/*
 * Monograph for Ghost, by Peachfin Themes (https://peachfinthemes.com/).
 * A culture and photography magazine: a lead story, a mixed-size grid of the
 * issue, section rows, and photo essays with full-bleed photographs set on a
 * twelve-column grid in black and white.
 *
 * Fonts: Instrument Sans (variable width and weight, upright and italic) and
 * IBM Plex Mono, bundled in assets/fonts and licensed under the SIL Open Font
 * License 1.1 (OFL.txt beside each font). No font service and no remote font
 * request. Instrument Sans is split by Unicode range; a browser downloads a
 * file only when a page uses one of its characters. Headlines use its
 * condensed width (font-stretch 75%).
 */

@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/instrument-sans/InstrumentSans-Variable-x.woff2') format('woff2');
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-0107, U+010A-0113, U+0116-0118, U+011A-011B, U+011E-0123, U+0126-0127, U+012A-012B, U+012E-0133, U+0136-0137, U+0139-013E, U+0141, U+0143-0148, U+014A-014D, U+0150-015B, U+015E-0161, U+0164-0165, U+016A-017E, U+01CD-01CE, U+0218-021B, U+0237, U+02C6-02C7, U+02D8-02DD, U+0300-0304, U+0306-0308, U+030A-030C, U+0312, U+0326-0328, U+1E80-1E85, U+1E9E, U+1EF2-1EF3, U+201E, U+2022, U+2030, U+2039, U+20AC, U+2122, U+2190-2191, U+2193-2199, U+2212;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/instrument-sans/InstrumentSans-Variable-c.woff2') format('woff2');
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00A3, U+00A5, U+00A7-00AB, U+00AE-00B0, U+00B4, U+00B6-00B8, U+00BA-00BB, U+00BF-00FF, U+0119, U+0142, U+2013-2014, U+2018-201A, U+201C-201D, U+2026, U+203A, U+2192;
}

@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/instrument-sans/InstrumentSans-Italic-Variable-x.woff2') format('woff2');
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0100-0107, U+010A-0113, U+0116-0118, U+011A-011B, U+011E-0123, U+0126-0127, U+012A-012B, U+012E-0133, U+0136-0137, U+0139-013E, U+0141, U+0143-0148, U+014A-014D, U+0150-015B, U+015E-0161, U+0164-0165, U+016A-017E, U+01CD-01CE, U+0218-021B, U+0237, U+02C6-02C7, U+02D8-02DD, U+0300-0304, U+0306-0308, U+030A-030C, U+0312, U+0326-0328, U+1E80-1E85, U+1E9E, U+1EF2-1EF3, U+201E, U+2022, U+2030, U+2039, U+20AC, U+2122, U+2190-2191, U+2193-2199, U+2212;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/instrument-sans/InstrumentSans-Italic-Variable-e.woff2') format('woff2');
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0119, U+0142, U+203A, U+2192;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/instrument-sans/InstrumentSans-Italic-Variable-c.woff2') format('woff2');
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00A3, U+00A5, U+00A7-00AB, U+00AE-00B0, U+00B4, U+00B6-00B8, U+00BA-00BB, U+00BF-00FF, U+2013-2014, U+2018-201A, U+201C-201D, U+2026;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/ibm-plex-mono/IBMPlexMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   Tokens. Switches from the theme settings arrive as data-* attributes on
   <html> (see default.hbs). Every text pair is checked for WCAG AA.
   ========================================================================== */

:root {
  --paper: #f4f2ec;
  --ink: #121211;
  --muted: #5b5953;
  --wash: #e8e5dc;
  --line: color-mix(in srgb, var(--ink) 18%, var(--paper));
  --inverse: #121211;
  --on-inverse: #f4f2ec;
  --inverse-muted: #b3b0a8;
  --accent: var(--ink);
  --on-accent: var(--paper);

  --sans: var(--gh-font-body, "Instrument Sans", "Helvetica Neue", Arial, system-ui, sans-serif);
  --display: var(--gh-font-heading, "Instrument Sans", "Helvetica Neue", Arial, system-ui, sans-serif);
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wide: 90rem;
  --measure: 38rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --col-gap: clamp(1rem, 2vw, 2rem);
  --space: clamp(4rem, 3rem + 5vw, 8rem);
  --bar: 4rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

:root[data-palette="white"] {
  --paper: #ffffff;
  --muted: #5d5b56;
  --wash: #f1f0ec;
  --on-inverse: #ffffff;
}

:root[data-palette="ink"] {
  --paper: #111110;
  --ink: #efede6;
  --muted: #a6a39b;
  --wash: #1e1e1c;
  --inverse: #262624;
  --on-inverse: #efede6;
  --inverse-muted: #a6a39b;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root[data-palette="system"] {
    --paper: #111110;
    --ink: #efede6;
    --muted: #a6a39b;
    --wash: #1e1e1c;
    --inverse: #262624;
    --on-inverse: #efede6;
    --inverse-muted: #a6a39b;
    color-scheme: dark;
  }
}

/* Site accent colour for section labels, links, buttons and the progress bar.
   Its lightness is clamped so text keeps at least 4.5:1 on the palette.
   Browsers without relative colour syntax stay monochrome. */
@supports (color: oklch(from red l c h)) {
  :root[data-accent="site"] {
    --accent: oklch(from var(--ghost-accent-color, #121211) min(l, 0.5) c h);
    --on-accent: #ffffff;
  }

  :root[data-accent="site"][data-palette="ink"] {
    --accent: oklch(from var(--ghost-accent-color, #efede6) max(l, 0.78) min(c, 0.17) h);
    --on-accent: #111110;
  }

  @media (prefers-color-scheme: dark) {
    :root[data-accent="site"][data-palette="system"] {
      --accent: oklch(from var(--ghost-accent-color, #efede6) max(l, 0.78) min(c, 0.17) h);
      --on-accent: #111110;
    }
  }
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem / 1.55 var(--sans);
  font-kerning: normal;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img,
video,
svg {
  max-width: 100%;
  height: auto;
}

img {
  display: block;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

code,
pre,
kbd {
  font-family: var(--mono);
  font-size: 0.875em;
}

.mg-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.mg-skip {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-200%);
}

.mg-skip:focus {
  transform: none;
}

.mg-main:focus {
  outline: none;
}

.mg-wrap {
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Small type: labels, sections, dates and captions in Plex Mono. */
.mg-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.875rem;
  margin: 0 0 0.75rem;
  font: 400 0.75rem / 1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.mg-kicker__section {
  color: var(--accent);
  text-decoration: none;
}

.mg-kicker__section:hover {
  text-decoration: underline;
}

.mg-label {
  display: inline-block;
  padding: 0.05rem 0.4rem;
  border: 1px solid currentColor;
  font: 400 0.6875rem / 1.45 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.mg-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  font: 400 0.8125rem / 1.3 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

.mg-more:hover {
  text-decoration: underline;
}

.mg-empty {
  padding-block: 2rem;
  color: var(--muted);
}

/* Buttons and inputs */
.mg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  border: 1px solid var(--accent);
  border-radius: 0;
  background: var(--accent);
  color: var(--on-accent);
  font: 600 0.9375rem / 1.2 var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.mg-button:hover {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.mg-button--small {
  min-height: 40px;
  padding: 0.4rem 0.9rem;
  font-size: 0.875rem;
}

.mg-input {
  min-width: 0;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem / 1.3 var(--sans);
}

.mg-input::placeholder {
  color: var(--muted);
  opacity: 1;
}

/* ==========================================================================
   Header: the home masthead and the sticky bar
   ========================================================================== */

.mg-wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 700 1.5rem / 1 var(--display);
  font-stretch: 75%;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

.mg-wordmark__logo {
  width: auto;
  max-width: 220px;
  max-height: 40px;
  object-fit: contain;
}

.mg-masthead {
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mg-masthead__strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  min-height: 3.5rem;
  border-bottom: 1px solid var(--ink);
  font: 400 0.75rem / 1.3 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mg-masthead__date {
  color: var(--muted);
}

.mg-masthead__strip .mg-actions {
  justify-self: end;
}

.mg-masthead__title {
  margin: 0;
  padding-block: clamp(0.75rem, 2vw, 1.75rem) clamp(0.25rem, 1vw, 0.75rem);
  font: inherit;
  text-align: center;
}

.mg-wordmark--huge {
  display: block;
  font-size: clamp(3.5rem, 17vw, 16.5rem);
  line-height: 0.8;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.mg-wordmark--huge .mg-wordmark__logo {
  max-width: min(100%, 48rem);
  max-height: 10rem;
  margin-inline: auto;
}

.mg-masthead__tagline {
  padding-bottom: 1rem;
  font-size: 0.9375rem;
  text-align: center;
  color: var(--muted);
}

.mg-masthead__nav {
  display: flex;
  justify-content: center;
  border-block: 1px solid var(--ink);
  box-shadow: 0 3px 0 -2px var(--ink);
  margin-bottom: 3px;
}

.mg-nav ul,
.mg-actions,
.mg-menu__panel ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mg-nav ul {
  gap: 0 clamp(1rem, 2.4vw, 2.25rem);
}

.mg-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 400 0.8125rem / 1.2 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.mg-nav a:hover,
.mg-nav .nav-current a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45em;
}

.mg-actions {
  gap: 0.5rem 1rem;
}

.mg-search {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.mg-actions__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 400 0.8125rem / 1.2 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.mg-actions__link:hover {
  text-decoration: underline;
}

.mg-actions .mg-button--small {
  font: 400 0.8125rem / 1.2 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mg-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}

.mg-bar__inner {
  display: flex;
  align-items: center;
  gap: 1rem clamp(1rem, 3vw, 2.5rem);
  max-width: calc(var(--wide) + 2 * var(--gutter));
  min-height: var(--bar);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mg-bar .mg-nav {
  margin-right: auto;
}

:root[data-header="centered"] .mg-bar__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "space brand tools" "nav nav nav";
  row-gap: 0;
  padding-top: 0.5rem;
}

:root[data-header="centered"] .mg-bar .mg-wordmark {
  grid-area: brand;
  font-size: 2.25rem;
}

:root[data-header="centered"] .mg-bar .mg-nav {
  grid-area: nav;
  justify-self: center;
  margin: 0;
}

:root[data-header="centered"] .mg-bar .mg-actions,
:root[data-header="centered"] .mg-bar .mg-menu {
  grid-area: tools;
  justify-self: end;
}

.mg-menu {
  display: none;
}

.mg-menu summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.9rem;
  border: 1px solid var(--ink);
  list-style: none;
  font: 400 0.8125rem / 1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.mg-menu summary::-webkit-details-marker {
  display: none;
}

.mg-menu summary::after {
  content: "";
  width: 14px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.mg-menu[open] summary::after {
  height: 0;
  border-bottom: 0;
}

.mg-menu__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 60;
  padding: 0.5rem var(--gutter) 1.5rem;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}

.mg-menu__panel ul {
  display: grid;
  align-items: stretch;
}

.mg-menu__panel a {
  display: block;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font: 600 1.5rem / 1.1 var(--display);
  font-stretch: 75%;
  text-transform: uppercase;
  text-decoration: none;
}

.mg-masthead__nav {
  position: relative;
}

/* ==========================================================================
   Home: lead story, issue grid, index, section rows
   ========================================================================== */

.mg-lead {
  margin-bottom: var(--space);
}

.mg-lead__media {
  display: block;
  overflow: hidden;
  background: var(--wash);
}

.mg-lead__media img {
  width: 100%;
  height: min(82vh, 56.25vw);
  min-height: 18rem;
  object-fit: cover;
}

.mg-lead__body {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: end;
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin-inline: auto;
  padding: clamp(1.5rem, 3vw, 2.5rem) var(--gutter) 0;
}

.mg-lead--text .mg-lead__body {
  padding-top: var(--space);
  border-top: 1px solid var(--ink);
}

.mg-lead__body > .mg-kicker {
  grid-column: 1 / -1;
}

.mg-lead__title {
  grid-column: 1 / span 9;
  font-size: clamp(2.75rem, 1.5rem + 5.6vw, 8rem);
  font-stretch: 75%;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.mg-lead__title a {
  text-decoration: none;
}

.mg-lead__title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
}

.mg-lead__aside {
  grid-column: 10 / -1;
  display: grid;
  gap: 1rem;
  padding-bottom: 0.5rem;
}

.mg-lead__excerpt {
  font-size: 1.125rem;
  line-height: 1.5;
}

.mg-rowhead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1.5rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  padding-top: 0.75rem;
  border-top: 1px solid var(--ink);
}

.mg-rowhead .mg-kicker {
  flex-basis: 100%;
  margin: 0;
}

.mg-rowhead__title {
  margin-right: auto;
  font-size: clamp(2.25rem, 1.5rem + 3vw, 4.5rem);
  font-stretch: 75%;
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.mg-rowhead__title a {
  text-decoration: none;
}

.mg-rowhead__title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.05em;
}

.mg-issue,
.mg-sections,
.mg-related,
.mg-browse {
  margin-bottom: var(--space);
}

/* The issue grid: twelve columns, with a nine-card rhythm of sizes so the
   page does not tile: large and tall, three in a row, one across, three. */
.mg-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2.5rem, 4vw, 4.5rem) var(--col-gap);
}

.mg-grid > .mg-card {
  grid-column: span 4;
}

.mg-grid:not(.mg-grid--even) > .mg-card:nth-child(9n + 1) {
  grid-column: span 7;
}

.mg-grid:not(.mg-grid--even) > .mg-card:nth-child(9n + 2) {
  grid-column: span 5;
}

.mg-grid:not(.mg-grid--even) > .mg-card:nth-child(9n + 6) {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: center;
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
  border-block: 1px solid var(--ink);
}

.mg-grid:not(.mg-grid--even) > .mg-card:nth-child(9n + 6) .mg-card__media {
  grid-column: 1 / span 7;
  margin: 0;
}

.mg-grid:not(.mg-grid--even) > .mg-card:nth-child(9n + 6) .mg-card__body {
  grid-column: 8 / -1;
}

.mg-grid:not(.mg-grid--even) > .mg-card--text:nth-child(9n + 6) .mg-card__body {
  grid-column: 1 / span 9;
}

/* Cards */
.mg-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mg-card__media {
  display: block;
  overflow: hidden;
  margin-bottom: 1rem;
  background: var(--wash);
}

.mg-card__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.mg-grid:not(.mg-grid--even) > .mg-card:nth-child(9n + 1) .mg-card__media img {
  aspect-ratio: 4 / 3;
}

.mg-grid:not(.mg-grid--even) > .mg-card:nth-child(9n + 2) .mg-card__media img {
  aspect-ratio: 4 / 5;
}

.mg-grid:not(.mg-grid--even) > .mg-card:nth-child(9n + 6) .mg-card__media img {
  aspect-ratio: 16 / 10;
}

.mg-card__title {
  font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.625rem);
  line-height: 1.12;
  letter-spacing: -0.012em;
}

.mg-grid:not(.mg-grid--even) > .mg-card:is(:nth-child(9n + 1), :nth-child(9n + 2), :nth-child(9n + 6)) .mg-card__title,
.mg-row > .mg-card:first-child .mg-card__title {
  font-size: clamp(1.875rem, 1.2rem + 2.4vw, 3.5rem);
  font-stretch: 75%;
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.mg-card__title a {
  text-decoration: none;
}

.mg-card__title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
}

.mg-card__excerpt {
  margin-top: 0.625rem;
  max-width: 34rem;
  color: var(--muted);
}

.mg-card__meta {
  margin-top: 0.75rem;
  font: 400 0.75rem / 1.4 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.mg-card .mg-kicker {
  margin-bottom: 0.5rem;
}

.mg-card--text {
  padding-top: 1rem;
  border-top: 1px solid var(--ink);
}

.mg-card--text .mg-card__title {
  font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.5rem);
  font-stretch: 75%;
  line-height: 0.98;
}

/* Section rows: the first card large, two beside it. */
.mg-section-row + .mg-section-row {
  margin-top: var(--space);
}

.mg-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2.5rem var(--col-gap);
}

.mg-row > .mg-card {
  grid-column: span 3;
}

.mg-row > .mg-card:first-child {
  grid-column: span 6;
}

.mg-row > .mg-card:not(:first-child) .mg-card__media img {
  aspect-ratio: 4 / 5;
}

/* The index: numbered rows, with a photo preview on hover on wide screens. */
.mg-ledger {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: mg-ledger;
  border-bottom: 1px solid var(--ink);
}

.mg-ledger__row {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) 11rem 12rem 6.5rem;
  gap: 0.25rem var(--col-gap);
  align-items: baseline;
  padding-block: 1.125rem;
  border-top: 1px solid var(--line);
  counter-increment: mg-ledger;
}

.mg-ledger__row:first-child {
  border-top-color: var(--ink);
}

.mg-ledger__no::before {
  content: counter(mg-ledger, decimal-leading-zero);
  font: 400 0.875rem / 1 var(--mono);
  color: var(--muted);
}

.mg-ledger__title {
  font-size: clamp(1.375rem, 1rem + 1.5vw, 2.5rem);
  font-stretch: 75%;
  line-height: 1;
  letter-spacing: -0.02em;
}

.mg-ledger__title a {
  text-decoration: none;
}

.mg-ledger__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.mg-ledger__row:hover .mg-ledger__title a,
.mg-ledger__title a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 0.05em;
}

.mg-ledger__section,
.mg-ledger__author,
.mg-ledger__date {
  font: 400 0.75rem / 1.4 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.mg-ledger__date {
  text-align: right;
}

.mg-ledger__preview {
  position: absolute;
  top: 50%;
  right: 19rem;
  z-index: 2;
  width: 15rem;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-40%) rotate(-1.5deg);
  box-shadow: 0 1.5rem 3rem -1rem rgb(0 0 0 / 0.35);
  transition: opacity 0.25s var(--ease), transform 0.35s var(--ease);
}

@media (hover: hover) and (min-width: 64rem) {
  .mg-ledger__row:hover .mg-ledger__preview {
    opacity: 1;
    transform: translateY(-50%) rotate(-1.5deg);
  }
}

/* ==========================================================================
   Newsletter signup: the home band, the post box and the footer row
   ========================================================================== */

.mg-signup__busy,
.mg-signup__msg {
  display: none;
}

.mg-signup__form.loading .mg-signup__label {
  display: none;
}

.mg-signup__form.loading .mg-signup__busy {
  display: inline;
}

.mg-signup__form.success .mg-signup__msg--success,
.mg-signup__form.error .mg-signup__msg--error {
  display: block;
  margin-top: 0.75rem;
  font-weight: 600;
}

.mg-signup__form.success .mg-signup__row {
  display: none;
}

.mg-signup__row {
  display: flex;
  gap: 0.5rem;
}

.mg-signup__row .mg-input {
  flex: 1 1 14rem;
}

.mg-signup__note {
  margin-top: 0.75rem;
  font: 400 0.75rem / 1.4 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.mg-signup__title {
  font-stretch: 75%;
  letter-spacing: -0.025em;
}

.mg-signup__lede {
  margin-top: 1rem;
  max-width: 34rem;
}

.mg-signup--band {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 2rem;
  align-items: end;
  margin-bottom: var(--space);
  padding: clamp(4rem, 9vw, 8rem) max(var(--gutter), calc((100% - var(--wide)) / 2));
  background: var(--inverse);
  color: var(--on-inverse);
}

.mg-signup--band .mg-signup__text {
  grid-column: 1 / span 7;
}

.mg-signup--band .mg-signup__form {
  grid-column: 8 / -1;
}

.mg-signup--band .mg-signup__title {
  color: var(--on-inverse);
  font-size: clamp(2.75rem, 1.5rem + 5vw, 7rem);
  line-height: 0.88;
}

.mg-signup--band .mg-kicker,
.mg-signup--band .mg-signup__note {
  color: var(--inverse-muted);
}

.mg-signup--band .mg-input {
  border-color: var(--on-inverse);
  background: var(--inverse);
  color: var(--on-inverse);
}

.mg-signup--band .mg-input::placeholder {
  color: var(--inverse-muted);
}

.mg-signup--band .mg-button {
  border-color: var(--on-inverse);
  background: var(--on-inverse);
  color: var(--inverse);
}

.mg-signup--band .mg-button:hover {
  background: transparent;
  color: var(--on-inverse);
}

.mg-signup--band :focus-visible {
  outline-color: var(--on-inverse);
}

.mg-signup--box {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}

.mg-signup--box .mg-signup__title {
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  line-height: 0.95;
}

.mg-signup--footer {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 1.5rem;
  align-items: end;
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 4rem) var(--gutter);
  border-bottom: 1px solid var(--line);
}

.mg-signup--footer .mg-signup__text {
  grid-column: 1 / span 6;
}

.mg-signup--footer .mg-signup__form {
  grid-column: 8 / -1;
}

.mg-signup--footer .mg-signup__title {
  font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem);
  line-height: 0.95;
}

/* ==========================================================================
   Page heads, sections, authors, contributors
   ========================================================================== */

.mg-pagehead {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  padding-block: clamp(3rem, 7vw, 6.5rem) clamp(1.5rem, 3vw, 2.5rem);
}

.mg-pagehead__title {
  max-width: 18ch;
  font-size: clamp(3rem, 1.5rem + 6.5vw, 9rem);
  font-stretch: 75%;
  line-height: 0.88;
  letter-spacing: -0.035em;
}

.mg-pagehead__lede {
  max-width: 40rem;
  margin-top: 1.5rem;
  font-size: clamp(1.1875rem, 1rem + 0.7vw, 1.5rem);
  line-height: 1.4;
}

.mg-page__cover {
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  padding-inline: var(--gutter);
}

.mg-page__cover img {
  width: 100%;
  max-height: 80vh;
  object-fit: cover;
}

.mg-page__cover figcaption,
.mg-cover figcaption {
  margin-top: 0.75rem;
  font: 400 0.75rem / 1.5 var(--mono);
  letter-spacing: 0.02em;
  color: var(--muted);
}

.mg-sectionhead {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.mg-sectionhead__image {
  width: 100%;
  height: min(60vh, 42vw);
  min-height: 14rem;
  object-fit: cover;
}

.mg-sectionhead__text {
  padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--ink);
}

.mg-sectionhead--photo .mg-sectionhead__text {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.mg-authorhead {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  padding-block: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--ink);
}

.mg-authorhead__photo {
  grid-column: 1 / span 4;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.mg-authorhead__text {
  grid-column: 6 / -1;
}

.mg-authorhead__photo + .mg-authorhead__text .mg-pagehead__title {
  font-size: clamp(2.75rem, 1.5rem + 4.5vw, 6.5rem);
}

.mg-authorhead__text:only-child {
  grid-column: 1 / -1;
}

.mg-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  font: 400 0.8125rem / 1.4 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.mg-meta a {
  color: var(--ink);
}

.mg-people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: 3rem var(--col-gap);
  margin: 0 0 var(--space);
  padding: 0;
  list-style: none;
}

.mg-person__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin-bottom: 1rem;
  background: var(--wash);
}

.mg-person__photo--empty {
  display: block;
}

.mg-person__name {
  font-size: 2rem;
  font-stretch: 75%;
  line-height: 1;
}

.mg-person__name a {
  text-decoration: none;
}

.mg-person__name a:hover {
  text-decoration: underline;
}

.mg-person__bio {
  margin: 0.625rem 0 0.75rem;
  color: var(--muted);
}

.mg-sectionlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mg-sectionlinks a {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.35rem;
  font: 600 clamp(1.75rem, 1.25rem + 2vw, 3rem) / 1.1 var(--display);
  font-stretch: 75%;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.mg-sectionlinks a:hover span:first-child {
  text-decoration: underline;
  text-decoration-thickness: 0.05em;
}

.mg-sectionlinks__count {
  font: 400 0.75rem / 1.6 var(--mono);
  letter-spacing: 0;
  color: var(--muted);
}

.mg-pages {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1rem;
  border-top: 1px solid var(--ink);
  font: 400 0.8125rem / 1.3 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mg-pages__count {
  color: var(--muted);
}

.mg-pages__step {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.mg-pages__step:hover {
  text-decoration: underline;
}

.mg-pages__step--next {
  justify-self: end;
}

.mg-error-action {
  margin-top: 3rem;
  margin-bottom: var(--space);
}

.mg-errors {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.mg-footer {
  border-top: 1px solid var(--ink);
}

.mg-footer__main {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr);
  gap: 2rem var(--col-gap);
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 4rem) var(--gutter);
}

.mg-wordmark--footer {
  font-size: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  line-height: 0.85;
}

.mg-footer__note {
  max-width: 28rem;
  margin: 1rem 0;
  color: var(--muted);
}

.mg-footer__nav ul {
  display: grid;
  gap: 0.125rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mg-footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  text-decoration: none;
}

.mg-footer__nav a:hover {
  text-decoration: underline;
}

.mg-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin-inline: auto;
  padding: 1.25rem var(--gutter) 2rem;
  border-top: 1px solid var(--line);
  font: 400 0.75rem / 1.5 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.mg-footer__base a {
  color: var(--ink);
}

/* ==========================================================================
   Posts: header, full-bleed cover, text on a reading measure
   ========================================================================== */

.mg-posthead__text {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: end;
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 5.5rem) var(--gutter) 0;
}

.mg-posthead__text > .mg-kicker,
.mg-posthead__title {
  grid-column: 1 / -1;
}

.mg-posthead__title {
  max-width: 16ch;
  font-size: clamp(2.75rem, 1.25rem + 6.6vw, 8.75rem);
  font-stretch: 75%;
  line-height: 0.88;
  letter-spacing: -0.035em;
}

.mg-posthead__lede {
  grid-column: 1 / span 7;
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
  font-size: clamp(1.25rem, 1rem + 0.9vw, 1.75rem);
  line-height: 1.35;
  letter-spacing: -0.005em;
}

.mg-posthead__text > .mg-byline {
  grid-column: 9 / -1;
  justify-self: end;
}

.mg-posthead__lede + .mg-byline {
  align-self: end;
}

.mg-byline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.mg-byline__photos {
  display: flex;
  flex: 0 0 auto;
}

.mg-byline__photos img,
.mg-byline__initial {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--paper);
}

.mg-byline__photos > * + * {
  margin-left: -0.75rem;
}

.mg-byline__initial {
  display: inline-block;
  overflow: hidden;
  background: var(--wash);
  color: transparent;
  font-size: 0;
}

.mg-byline__text {
  display: grid;
  font: 400 0.75rem / 1.5 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.mg-byline__text a {
  color: var(--ink);
  text-decoration-color: var(--line);
}

.mg-cover {
  margin: clamp(2rem, 4vw, 3.5rem) 0 0;
}

.mg-cover img {
  width: 100%;
  height: 80vh;
  height: 80svh;
  min-height: 20rem;
  object-fit: cover;
  background: var(--wash);
}

:root[data-cover="screen"] .mg-posthead--bleed .mg-cover img {
  height: 100vh;
  height: 100svh;
}

:root[data-cover="wide"] .mg-posthead--bleed .mg-cover img {
  height: auto;
  min-height: 0;
  aspect-ratio: 21 / 9;
}

.mg-cover figcaption {
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
  text-align: right;
}

/* Split cover: the header text beside a tall photograph. */
.mg-posthead--split:not(.mg-posthead--nophoto) {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: calc(100vh - var(--bar));
  border-bottom: 1px solid var(--ink);
}

.mg-posthead--split:not(.mg-posthead--nophoto) .mg-posthead__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: none;
  margin: 0;
  padding: clamp(2rem, 5vw, 4rem) var(--gutter);
}

.mg-posthead--split .mg-posthead__title {
  font-size: clamp(2.5rem, 1rem + 4.6vw, 6.5rem);
}

.mg-posthead--split:not(.mg-posthead--nophoto) .mg-posthead__text > * {
  align-self: flex-start;
  text-align: left;
}

.mg-posthead--split .mg-byline {
  justify-self: start;
}

.mg-posthead--split .mg-cover {
  position: relative;
  margin: 0;
}

.mg-posthead--split .mg-cover img {
  position: absolute;
  inset: 0;
  height: 100%;
  min-height: 0;
}

.mg-posthead--split .mg-cover figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.5rem 0.75rem;
  background: var(--paper);
}

/* Text only, and posts without a photo: a centred typographic header. */
.mg-posthead--text .mg-posthead__text,
.mg-posthead--nophoto .mg-posthead__text {
  justify-items: center;
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
}

.mg-posthead--text .mg-posthead__text > *,
.mg-posthead--nophoto .mg-posthead__text > * {
  grid-column: 2 / -2;
  justify-self: center;
}

.mg-posthead--text .mg-posthead__title,
.mg-posthead--nophoto .mg-posthead__title {
  max-width: 14ch;
  margin-inline: auto;
}

.mg-posthead--text .mg-kicker,
.mg-posthead--nophoto .mg-kicker {
  justify-content: center;
}

.mg-posthead--text .mg-posthead__lede,
.mg-posthead--nophoto .mg-posthead__lede {
  max-width: 40rem;
}

.mg-posthead--text .mg-byline,
.mg-posthead--nophoto .mg-byline {
  justify-content: center;
  text-align: left;
}

/* Post and page text: named grid lines put text on the reading measure and
   let wide and full-width cards break out without viewport arithmetic. */
.mg-prose {
  display: grid;
  grid-template-columns:
    [full-start] minmax(var(--gutter), 1fr)
    [wide-start] minmax(0, 14rem)
    [main-start] min(var(--measure), calc(100% - 2 * var(--gutter)))
    [main-end] minmax(0, 14rem)
    [wide-end] minmax(var(--gutter), 1fr)
    [full-end];
  padding-block: clamp(2.5rem, 5vw, 4.5rem) 0;
  font-size: 1.1875rem;
  line-height: 1.62;
  counter-reset: mg-fig;
  --mg-fig: var(--mg-fig-label, "Fig.");
}

.mg-prose > * {
  grid-column: main;
  min-width: 0;
}

.mg-prose > .kg-width-wide {
  grid-column: wide;
}

.mg-prose > .kg-width-full {
  grid-column: full;
}

.gh-content > * + * {
  margin-top: 1.5em;
}

.gh-content > :first-child {
  margin-top: 0;
}

.mg-prose > p:first-of-type {
  font-size: clamp(1.3125rem, 1.1rem + 0.6vw, 1.5rem);
  line-height: 1.5;
  letter-spacing: -0.005em;
}

.gh-content h2 {
  margin-top: 2em;
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
  font-stretch: 75%;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.gh-content h3 {
  margin-top: 1.8em;
  font-size: 1.5rem;
  line-height: 1.2;
}

.gh-content h4 {
  margin-top: 1.6em;
  font: 400 0.8125rem / 1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gh-content :is(h2, h3, h4) + * {
  margin-top: 0.75em;
}

.gh-content a {
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
}

.gh-content a:hover {
  text-decoration-thickness: 2px;
}

.gh-content ul,
.gh-content ol {
  padding-left: 1.3em;
}

.gh-content li + li {
  margin-top: 0.4em;
}

.gh-content hr {
  width: 100%;
  height: 0;
  margin-block: 3em;
  border: 0;
  border-top: 1px solid var(--ink);
}

.gh-content pre {
  overflow-x: auto;
  padding: 1rem 1.25rem;
  background: var(--wash);
  color: var(--ink);
  font-size: 0.875rem;
  line-height: 1.55;
}

.gh-content :not(pre) > code {
  padding: 0.1em 0.3em;
  background: var(--wash);
}

.gh-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.gh-content th,
.gh-content td {
  padding: 0.6rem 0.75rem 0.6rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.gh-content th {
  font: 400 0.75rem / 1.4 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom-color: var(--ink);
}

/* Figures: mono captions, numbered as figures (theme setting). */
.gh-content figure {
  margin-inline: 0;
}

.gh-content figure + figure {
  margin-top: 0.75rem;
}

.gh-content figcaption {
  max-width: var(--measure);
  margin-top: 0.75rem;
  font: 400 0.75rem / 1.55 var(--mono);
  letter-spacing: 0.02em;
  color: var(--muted);
  text-align: left;
}

.mg-prose > .kg-width-full figcaption {
  margin-inline: var(--gutter);
}

:root[data-figures="on"] .mg-prose > :is(.kg-image-card, .kg-gallery-card) {
  counter-increment: mg-fig;
}

:root[data-figures="on"] .mg-prose > :is(.kg-image-card, .kg-gallery-card) > figcaption::before {
  content: var(--mg-fig) " " counter(mg-fig) "\2003";
  color: var(--ink);
}

/* Quotes: a pull quote set condensed across the wide column, and the
   alternative style set larger still, centred between rules. */
.gh-content blockquote:not(.kg-blockquote-alt) {
  grid-column: wide;
  margin-block: 2.25em;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--ink);
  font: 600 clamp(1.75rem, 1.2rem + 2.2vw, 3rem) / 1.02 var(--display);
  font-stretch: 75%;
  letter-spacing: -0.02em;
}

.gh-content blockquote.kg-blockquote-alt {
  grid-column: wide;
  margin-block: 2.5em;
  padding-block: 2rem;
  border-block: 1px solid var(--ink);
  font: 500 clamp(2rem, 1.2rem + 3.4vw, 4.25rem) / 1 var(--display);
  font-stretch: 75%;
  letter-spacing: -0.025em;
  text-align: center;
}

.gh-content blockquote p {
  margin: 0;
}

.gh-content blockquote strong,
.gh-content blockquote em {
  font-weight: inherit;
}

/* Post footer */
.mg-postfoot {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: clamp(3rem, 6vw, 5rem) auto var(--space);
  padding-inline: var(--gutter);
}

.mg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.mg-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  font: 400 0.75rem / 1.2 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.mg-tags a:hover {
  border-color: var(--ink);
}

.mg-authors {
  display: grid;
  gap: 1.5rem;
}

.mg-authorbox {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.mg-authorbox__photo {
  flex: 0 0 auto;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  object-fit: cover;
}

.mg-authorbox__name {
  font: 600 1.5rem / 1.1 var(--display);
  font-stretch: 75%;
}

.mg-authorbox__name a {
  text-decoration: none;
}

.mg-authorbox__name a:hover {
  text-decoration: underline;
}

.mg-authorbox__bio {
  margin-top: 0.375rem;
  color: var(--muted);
}

.mg-comments {
  padding-top: 1rem;
  border-top: 1px solid var(--ink);
}

/* Ghost's comments, Portal and search frames are light-scheme documents.
   On a dark page a frame whose colour scheme differs from its document is
   painted on an opaque white canvas, so the frames are set to the scheme of
   the document inside them and stay transparent. Each app takes its own
   light or dark look from the theme (comments mode, accent colour). */
#ghost-comments-root iframe,
#ghost-portal-root iframe,
#sodo-search-root iframe {
  color-scheme: light;
}

.mg-postnav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.5rem 2rem;
  padding-block: 1.25rem;
  border-block: 1px solid var(--ink);
}

.mg-postnav:not(:has(a)) {
  display: none;
}

.mg-postnav a {
  text-decoration: none;
}

.mg-postnav .mg-kicker {
  margin-bottom: 0.375rem;
}

.mg-postnav__title {
  display: block;
  font: 600 1.5rem / 1.05 var(--display);
  font-stretch: 75%;
}

.mg-postnav a:hover .mg-postnav__title {
  text-decoration: underline;
}

.mg-postnav__next {
  text-align: right;
}

.mg-postnav__next .mg-kicker {
  justify-content: flex-end;
}

/* Members-only and paid posts: the locked part's call to action (partials/content-cta.hbs) */
.mg-paywall {
  margin-top: 2.5rem;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  text-align: left;
}

.mg-paywall__title {
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  font-stretch: 75%;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.mg-paywall p + p {
  margin-top: 1rem;
}

.mg-paywall__signin {
  font-size: 0.9375rem;
  color: var(--muted);
}

.mg-paywall__signin a {
  color: var(--ink);
}

/* Reading progress: scroll-driven where supported, assets/js/progress.js elsewhere. */
.mg-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  height: 3px;
  pointer-events: none;
}

.mg-progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

@supports (animation-timeline: scroll()) {
  .mg-progress span {
    animation: mg-progress linear both;
    animation-timeline: scroll(root block);
  }
}

@keyframes mg-progress {
  to {
    transform: scaleX(1);
  }
}

/* Black and white photos on cards, in colour on hover and focus. */
:root[data-photos="bw"] :is(.mg-card__media, .mg-lead__media) img,
:root[data-photos="bw"] .mg-ledger__preview {
  filter: grayscale(1);
  transition: filter 0.5s var(--ease);
}

:root[data-photos="bw"] :is(.mg-card, .mg-lead):is(:hover, :focus-within) img {
  filter: none;
}

/* Motion: photos rise into place as they scroll in, and card photos ease in
   on hover. None of it runs for readers who ask for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .mg-card__media img,
  .mg-lead__media img {
    transition: transform 0.8s var(--ease), filter 0.5s var(--ease);
  }

  .mg-card:hover .mg-card__media img,
  .mg-lead:hover .mg-lead__media img {
    transform: scale(1.025);
  }

  @supports (animation-timeline: view()) {
    :root[data-motion="on"] :is(.mg-card__media, .mg-prose > figure, .mg-prose > .kg-gallery-card) {
      animation: mg-rise linear;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
  }
}

@keyframes mg-rise {
  from {
    opacity: 0.2;
    transform: translateY(2rem);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Koenig editor cards. Ghost's own card CSS and scripts load with
   card_assets; the rules below set Monograph's type, colours and widths.
   ========================================================================== */

/* Ghost's cards read --ghost-accent-color; inside content it is the theme's
   contrast-safe accent (ink when monochrome), and text on it uses --on-accent. */
.gh-content {
  --ghost-accent-color: var(--accent);
}

.gh-content .kg-callout-card.kg-callout-card-accent,
.gh-content .kg-button-card a.kg-btn-accent,
.gh-content .kg-product-card a.kg-product-card-btn-accent,
.gh-content a.kg-cta-button.kg-style-accent {
  color: var(--on-accent);
}

.gh-content .kg-audio-card .kg-audio-time,
.gh-content .kg-audio-card .kg-audio-playback-rate {
  color: var(--muted);
}

.gh-content .kg-width-wide img,
.gh-content .kg-width-full img {
  width: 100%;
}

.gh-content .kg-width-full img,
.gh-content .kg-width-full .kg-image {
  border-radius: 0;
}

.gh-content .kg-width-full figcaption {
  padding-inline: var(--gutter);
}

.gh-content .kg-image-card img {
  margin-inline: auto;
}

.gh-content .kg-card figcaption {
  text-align: left;
}

.gh-content .kg-embed-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gh-content .kg-embed-card > * {
  max-width: 100%;
}

/* Gallery */
.gh-content .kg-gallery-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gh-content .kg-gallery-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 0.5rem;
}

.gh-content .kg-gallery-image img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  border-radius: 0;
}

.gh-content .kg-gallery-row:not(:first-of-type),
.gh-content .kg-gallery-image:not(:first-of-type) {
  margin: 0;
}

/* Bookmark */
.gh-content .kg-bookmark-card,
.gh-content .kg-bookmark-card * {
  box-sizing: border-box;
}

.gh-content .kg-bookmark-card a.kg-bookmark-container,
.gh-content .kg-bookmark-card a.kg-bookmark-container:hover {
  display: flex;
  min-height: 9rem;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-top: 3px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  box-shadow: none;
}

.gh-content .kg-bookmark-container:hover .kg-bookmark-title {
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

.gh-content .kg-bookmark-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  padding: 1.1rem 1.25rem;
}

.gh-content .kg-bookmark-title {
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.gh-content .kg-bookmark-description {
  display: -webkit-box;
  margin-top: 0.4rem;
  overflow: hidden;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.gh-content .kg-bookmark-metadata {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  margin-top: auto;
  padding-top: 0.75rem;
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--muted);
}

.gh-content .kg-bookmark-icon {
  width: 20px;
  height: 20px;
}

.gh-content .kg-bookmark-author,
.gh-content .kg-bookmark-publisher {
  overflow: hidden;
  max-width: 100%;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.gh-content .kg-bookmark-thumbnail {
  position: relative;
  flex: 0 0 33%;
  min-width: 33%;
  max-height: 100%;
}

.gh-content .kg-bookmark-thumbnail img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

/* Callout: a wash box with an ink rule */
.gh-content .kg-callout-card {
  display: flex;
  gap: 0.85rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--ink);
  border-radius: 0;
  background: var(--wash);
  color: var(--ink);
}

.gh-content .kg-callout-card-grey,
.gh-content .kg-callout-card-white { background: var(--wash); }

.gh-content .kg-callout-card-blue { background: color-mix(in srgb, #3b82f6 12%, var(--paper)); }

.gh-content .kg-callout-card-green { background: color-mix(in srgb, #22c55e 13%, var(--paper)); }

.gh-content .kg-callout-card-yellow { background: color-mix(in srgb, #eab308 15%, var(--paper)); }

.gh-content .kg-callout-card-red { background: color-mix(in srgb, #ef4444 12%, var(--paper)); }

.gh-content .kg-callout-card-pink { background: color-mix(in srgb, #ec4899 12%, var(--paper)); }

.gh-content .kg-callout-card-purple { background: color-mix(in srgb, #8b5cf6 13%, var(--paper)); }

.gh-content .kg-callout-card-accent { background: var(--accent); color: var(--on-accent); border-left-color: var(--on-accent); }

.gh-content .kg-callout-card-accent a { color: inherit; }

.gh-content .kg-callout-emoji {
  font-size: 1.25rem;
  line-height: 1.5;
}

.gh-content .kg-callout-text {
  font-size: 1.0625rem;
  line-height: 1.6;
}

.gh-content .kg-callout-text > strong:first-child,
.gh-content .kg-callout-text > b:first-child {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--mono);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Toggle */
.gh-content .kg-toggle-card {
  padding: 1rem 0;
  border: 0;
  border-block: 2px solid var(--ink);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.gh-content .kg-toggle-card + .kg-toggle-card {
  margin-top: 0;
  border-top: 0;
}

.gh-content .kg-toggle-heading-text {
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.gh-content .kg-toggle-card-icon {
  color: var(--accent);
}

.gh-content .kg-toggle-card-icon svg {
  color: var(--accent);
}

.gh-content .kg-toggle-content {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
}

/* Button */
.gh-content .kg-button-card {
  display: flex;
}

.gh-content .kg-button-card.kg-align-center {
  justify-content: center;
}

.gh-content .kg-btn,
.gh-content .kg-btn-accent,
.gh-content .kg-product-card-button,
.gh-content .kg-header-card-button,
.gh-content .kg-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 1.3rem;
  border-radius: 0;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
}

.gh-content .kg-btn-accent,
.gh-content .kg-product-card-btn-accent,
.gh-content .kg-header-card-button.kg-style-accent,
.gh-content .kg-cta-button.kg-style-accent {
  background: var(--accent);
  color: var(--on-accent);
}

.gh-content .kg-btn-accent:hover,
.gh-content .kg-product-card-btn-accent:hover {
  background: var(--ink);
  color: var(--paper);
}

/* Product */
.gh-content .kg-product-card-container {
  max-width: 34rem;
  padding: 1.25rem;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: none;
}

.gh-content .kg-product-card-image {
  border-radius: 0;
}

.gh-content .kg-product-card-title {
  font-family: var(--display);
  font-size: 1.375rem;
  color: var(--ink);
}

.gh-content .kg-product-card-description {
  color: var(--muted);
}

.gh-content .kg-product-card-rating-active svg {
  fill: var(--accent);
}

/* Video */
.gh-content .kg-video-card video,
.gh-content .kg-video-container {
  border-radius: 0;
}

.gh-content .kg-video-card .kg-video-player button {
  color: #fff;
}

/* Audio */
.gh-content .kg-audio-card,
.gh-content .kg-audio-player-container,
.gh-content .kg-audio-player {
  min-width: 0;
  max-width: 100%;
}

.gh-content .kg-audio-card {
  min-height: 6rem;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: none;
}

.gh-content .kg-audio-thumbnail {
  border-radius: 0;
}

.gh-content .kg-audio-thumbnail.placeholder {
  background: var(--wash);
}

.gh-content .kg-audio-thumbnail.placeholder svg {
  color: var(--accent);
}

.gh-content .kg-audio-title {
  font-family: var(--display);
  font-size: 1.125rem;
  color: var(--ink);
}

.gh-content .kg-audio-player,
.gh-content .kg-audio-current-time,
.gh-content .kg-audio-duration,
.gh-content .kg-audio-playback-rate {
  font-family: var(--mono);
  color: var(--ink);
}

.gh-content .kg-audio-play-icon svg,
.gh-content .kg-audio-pause-icon svg,
.gh-content .kg-audio-mute-icon svg,
.gh-content .kg-audio-unmute-icon svg {
  color: var(--accent);
}

.gh-content .kg-audio-seek-slider,
.gh-content .kg-audio-volume-slider {
  accent-color: var(--accent);
}

/* File */
.gh-content .kg-file-card a.kg-file-card-container,
.gh-content .kg-file-card a.kg-file-card-container:hover {
  padding: 1rem 1.25rem;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: none;
  text-decoration: none;
}

.gh-content .kg-file-card-title {
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 700;
}

.gh-content .kg-file-card-caption,
.gh-content .kg-file-card-metadata {
  font-size: 0.9375rem;
  color: var(--muted);
}

.gh-content .kg-file-card-filesize {
  font-family: var(--mono);
}

.gh-content .kg-file-card-icon {
  color: var(--accent);
}

.gh-content .kg-file-card-icon::before {
  background: var(--accent);
  opacity: 0.12;
  border-radius: 0;
}

/* Header (v1 and v2) */
.gh-content .kg-header-card {
  font-family: var(--sans);
}

.gh-content .kg-header-card h2,
.gh-content .kg-header-card .kg-header-card-heading,
.gh-content .kg-header-card .kg-header-card-header {
  font-family: var(--display);
  letter-spacing: -0.03em;
}

.gh-content .kg-header-card .kg-header-card-subheading,
.gh-content .kg-header-card .kg-header-card-subheader {
  font-family: var(--sans);
}

.gh-content .kg-header-card.kg-width-wide,
.gh-content .kg-header-card.kg-width-full {
  border-radius: 0;
}

/* Signup card */
.gh-content .kg-signup-card {
  font-family: var(--sans);
}

.gh-content .kg-signup-card .kg-signup-card-heading {
  font-family: var(--display);
  letter-spacing: -0.03em;
}

.gh-content .kg-signup-card-input {
  border-radius: 0;
  font-family: var(--sans);
}

.gh-content .kg-signup-card-button {
  border-radius: 0;
  font-family: var(--sans);
  font-weight: 700;
}

.gh-content .kg-signup-card-disclaimer {
  font-size: 0.9375rem;
}

/* Call to action (Ghost 6) */
.gh-content .kg-cta-card {
  border-radius: 0;
  font-family: var(--sans);
}

.gh-content .kg-cta-card.kg-cta-bg-none,
.gh-content .kg-cta-card.kg-cta-bg-white {
  border: 2px solid var(--ink);
}

.gh-content .kg-cta-sponsor-label,
.gh-content .kg-cta-sponsor-label span {
  font-family: var(--mono);
  letter-spacing: 0.06em;
}

.gh-content .kg-cta-image {
  border-radius: 0;
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 75rem) {
  .mg-ledger__row {
    grid-template-columns: 3.5rem minmax(0, 1fr) 10rem 6rem;
  }

  .mg-ledger__author {
    display: none;
  }

  .mg-ledger__preview {
    right: 17rem;
  }
}

@media (max-width: 64rem) {
  .mg-grid:not(.mg-grid--even) > .mg-card:nth-child(n),
  .mg-grid > .mg-card {
    grid-column: span 6;
  }

  .mg-grid:not(.mg-grid--even) > .mg-card:is(:nth-child(9n + 1), :nth-child(9n + 6)) {
    grid-column: 1 / -1;
  }

  .mg-lead__title {
    grid-column: 1 / -1;
  }

  .mg-lead__aside {
    grid-column: 1 / span 8;
    margin-top: 1.5rem;
  }

  .mg-row > .mg-card,
  .mg-row > .mg-card:first-child {
    grid-column: span 6;
  }

  .mg-row > .mg-card:first-child {
    grid-column: 1 / -1;
  }

  .mg-posthead__lede {
    grid-column: 1 / span 10;
  }

  .mg-posthead__text > .mg-byline {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .mg-signup--band .mg-signup__text,
  .mg-signup--band .mg-signup__form,
  .mg-signup--footer .mg-signup__text,
  .mg-signup--footer .mg-signup__form {
    grid-column: 1 / -1;
  }

  .mg-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mg-footer__id {
    grid-column: 1 / -1;
  }
}

@media (max-width: 56rem) {
  .mg-nav,
  .mg-actions__member {
    display: none;
  }

  .mg-menu {
    display: block;
  }

  .mg-masthead__nav {
    justify-content: flex-end;
    padding-block: 0.375rem;
  }

  .mg-masthead__date {
    display: none;
  }

  .mg-masthead__strip {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .mg-bar .mg-wordmark {
    margin-right: auto;
  }

  :root[data-header="centered"] .mg-bar__inner {
    grid-template-areas: "space brand tools";
    padding-top: 0;
  }

  :root[data-header="centered"] .mg-bar .mg-actions {
    display: none;
  }

  .mg-posthead--split:not(.mg-posthead--nophoto) {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .mg-posthead--split .mg-cover {
    order: -1;
  }

  .mg-posthead--split .mg-cover img {
    position: static;
    height: 70vh;
    height: 70svh;
  }

  .mg-posthead--split .mg-cover figcaption {
    position: static;
    padding-inline: var(--gutter);
    text-align: left;
  }

  .mg-authorhead__photo {
    grid-column: 1 / span 6;
    margin-bottom: 1.5rem;
  }

  .mg-authorhead__text {
    grid-column: 1 / -1;
  }

  .mg-prose {
    grid-template-columns:
      [full-start] var(--gutter)
      [wide-start] 0
      [main-start] minmax(0, 1fr)
      [main-end] 0
      [wide-end] var(--gutter)
      [full-end];
  }
}

@media (max-width: 50rem) {
  .mg-grid:not(.mg-grid--even) > .mg-card:nth-child(n),
  .mg-grid > .mg-card,
  .mg-row > .mg-card,
  .mg-row > .mg-card:first-child {
    grid-column: 1 / -1;
  }

  .mg-grid:not(.mg-grid--even) > .mg-card:nth-child(9n + 6) {
    display: flex;
  }

  .mg-grid:not(.mg-grid--even) > .mg-card:nth-child(9n + 6) .mg-card__media {
    margin-bottom: 1rem;
  }

  /* Smaller cards become rows: a square photo beside the text. */
  .mg-grid:not(.mg-grid--even) > .mg-card:is(:nth-child(9n + 3), :nth-child(9n + 4), :nth-child(9n + 5), :nth-child(9n + 7), :nth-child(9n + 8), :nth-child(9n)):not(.mg-card--text),
  .mg-row > .mg-card:not(:first-child):not(.mg-card--text) {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
  }

  .mg-grid:not(.mg-grid--even) > .mg-card:is(:nth-child(9n + 3), :nth-child(9n + 4), :nth-child(9n + 5), :nth-child(9n + 7), :nth-child(9n + 8), :nth-child(9n)) .mg-card__media,
  .mg-row > .mg-card:not(:first-child) .mg-card__media {
    margin: 0;
  }

  .mg-grid:not(.mg-grid--even) > .mg-card:is(:nth-child(9n + 3), :nth-child(9n + 4), :nth-child(9n + 5), :nth-child(9n + 7), :nth-child(9n + 8), :nth-child(9n)) .mg-card__media img,
  .mg-row > .mg-card:not(:first-child) .mg-card__media img {
    aspect-ratio: 1;
  }

  .mg-grid:not(.mg-grid--even) > .mg-card:is(:nth-child(9n + 3), :nth-child(9n + 4), :nth-child(9n + 5), :nth-child(9n + 7), :nth-child(9n + 8), :nth-child(9n)) .mg-card__excerpt,
  .mg-row > .mg-card:not(:first-child) .mg-card__excerpt {
    display: none;
  }

  .mg-grid {
    row-gap: 2.25rem;
  }

  .mg-lead__media img {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .mg-lead__aside {
    grid-column: 1 / -1;
  }

  .mg-ledger__row {
    grid-template-columns: 2.75rem minmax(0, 1fr) auto;
    row-gap: 0.375rem;
  }

  .mg-ledger__title {
    grid-column: 2 / -1;
  }

  .mg-ledger__section {
    grid-column: 2;
  }

  .mg-ledger__date {
    grid-column: 3;
  }

  .mg-ledger__preview {
    display: none;
  }

  .mg-signup__row {
    flex-wrap: wrap;
  }

  .mg-signup__row .mg-button {
    flex: 1 1 auto;
  }

  .mg-posthead__lede {
    grid-column: 1 / -1;
  }

  .mg-cover img {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  :root[data-cover="wide"] .mg-posthead--bleed .mg-cover img {
    aspect-ratio: 16 / 10;
  }

  :root[data-cover="screen"] .mg-posthead--bleed .mg-cover img {
    height: 85svh;
    aspect-ratio: auto;
  }

  .mg-cover figcaption {
    text-align: left;
  }

  .mg-footer__main {
    grid-template-columns: minmax(0, 1fr);
  }

  .mg-postnav__next {
    text-align: left;
  }

  .mg-postnav__next .mg-kicker {
    justify-content: flex-start;
  }

  .gh-content .kg-bookmark-container {
    flex-direction: column-reverse;
  }

  .gh-content .kg-bookmark-thumbnail {
    flex-basis: auto;
    width: 100%;
    min-height: 10rem;
  }
}

@media (max-width: 30rem) {
  .gh-content .kg-audio-thumbnail,
  .gh-content .kg-audio-volume-slider {
    display: none;
  }

  .gh-content .kg-audio-player-container {
    padding-inline: 0.75rem;
  }

  .mg-pages {
    grid-template-columns: 1fr 1fr;
  }

  .mg-pages__count {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .mg-masthead__edition {
    font-size: 0.6875rem;
  }
}

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

  .mg-card__media img,
  .mg-lead__media img,
  .mg-ledger__preview,
  .mg-button {
    transition: none !important;
  }

  .mg-ledger__preview {
    transform: translateY(-50%) !important;
  }
}

@media print {
  .mg-masthead__strip,
  .mg-masthead__nav,
  .mg-bar,
  .mg-footer,
  .mg-postnav,
  .mg-signup,
  .mg-skip,
  .mg-comments,
  .mg-related,
  .mg-progress {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}

/* Monochrome accent callouts use the inverse band colours: black on Paper and White, a raised dark grey on Ink. */
:root[data-accent="mono"] .gh-content .kg-callout-card-accent {
  background: var(--inverse);
  color: var(--on-inverse);
  border-left-color: var(--on-inverse);
}
