/* ------------------------------------------------------------------------------------------------
 * /media — the article library.
 *
 * A plain stylesheet served from `public/`, linked with `precedence` the way `src/app/layout.tsx`
 * links `base.css`. Not a CSS Module and not Tailwind: `postcss.config.mjs` keeps Tailwind to
 * `/admin`, and anything that goes through Next's CSS pipeline lands in `/_next/static/css/**`,
 * which the catch-all route serves to all 17 Studio pages as well.
 *
 * `base.css` is already doing the work inside `.render-canvas` — the reset, and `.richText`, which
 * is why an article body needs almost no rules here. Its selectors are `:where()`-wrapped, so
 * specificity 0: anything below overrides them without `!important`.
 *
 * The identity is the top page's first view (`src/site/trees/home-hero.json`, `docs/quirks.md`
 * C5/C6): a black face, the Anton wordmark, Poppins for the letter-spaced labels, Shippori Antique
 * B1 for the Japanese headline, Noto Sans JP for the text, the accent `#c8481b` for the one action
 * and `#f1f0ed` paper for everything that is not black. The fonts are linked by
 * `src/app/(site)/media/layout.tsx`.
 * ---------------------------------------------------------------------------------------------- */

/* `.m-vars` carries the tokens alone, for the admin editor's canvas (`src/admin/editor`). */
.m-root,
.m-vars {
  --m-ink: #000000;
  --m-ink-soft: #222222;
  --m-accent: #c8481b;
  --m-accent-dark: #a03a16;
  --m-accent-soft: #f7e5dc;
  --m-paper: #f1f0ed;
  --m-paper-deep: #e8e6e1;
  --m-surface: #ffffff;
  --m-line: #dcd9d3;
  --m-line-dark: #333333;
  --m-muted: var(--s-color-5fac2ffe, #595959);
  --m-muted-2: #8a8782;
  --m-on-dark-muted: #b9b5ae;
  --m-font: 'Noto Sans JP', system-ui, -apple-system, sans-serif;
  --m-font-display: Anton, 'Noto Sans JP', sans-serif;
  --m-font-en: Poppins, 'Noto Sans JP', sans-serif;
  --m-font-serif: 'Shippori Antique B1', 'Noto Sans JP', sans-serif;
  --m-measure: 1180px;
  --m-gap: 28px;
  --m-radius: 2px;
  --m-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.35);
}
.m-vars {
  font-family: var(--m-font);
  color: var(--m-ink);
}
.m-root {
  background: var(--m-paper);
  color: var(--m-ink);
  font-family: var(--m-font);
  font-feature-settings: 'palt';
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.m-root main {
  flex: 1;
}
/*
 * `base.css`'s reset gives every element inside `.render-canvas` `font-family: sans-serif` and
 * `color: #333` at element specificity, which would put the whole library in the system font. Pull
 * both back to the cascade here, at class specificity and before any other rule, so every classed
 * rule below still wins by order.
 */
.m-root :where(*),
.m-vars :where(*) {
  font-family: inherit;
  color: inherit;
}
.m-root :focus-visible {
  outline: 2px solid var(--m-accent);
  outline-offset: 2px;
}
.m-root img {
  color: transparent; /* alt text of a broken image should not paint over a card */
}

.m-wrap {
  width: 100%;
  max-width: var(--m-measure);
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* --- shared atoms ------------------------------------------------------------------------- */
.m-eyebrow {
  font-family: var(--m-font-en);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--m-muted);
  margin: 0 0 14px;
}
.m-eyebrow--light {
  color: var(--m-on-dark-muted);
}
.m-arrow {
  flex: none;
  transition: transform 220ms ease;
}
.m-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--m-accent);
  color: #ffffff;
  text-decoration: none;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  white-space: nowrap;
  border: 1px solid var(--m-accent);
  border-radius: var(--m-radius);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}
.m-cta:hover {
  background: var(--m-accent-dark);
  border-color: var(--m-accent-dark);
}
.m-cta:hover .m-arrow {
  transform: translateX(3px);
}
.m-cta--pill {
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 12px;
}
.m-cta--lg {
  padding: 16px 28px;
  font-size: 15px;
  letter-spacing: 0.3em;
  gap: 16px;
}
.m-cta--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}
.m-cta--ghost:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--m-ink);
}

/* --- header -------------------------------------------------------------------------------- */
.m-header {
  background: var(--m-ink);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.m-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}
.m-header__brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  flex: none;
}
.m-header__mark {
  font-family: var(--m-font-display);
  font-size: 22px;
  letter-spacing: 0.01em;
  line-height: 1;
}
.m-header__label {
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--m-on-dark-muted);
}
.m-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13px;
  letter-spacing: 0.06em;
  margin-left: auto;
}
.m-nav a {
  color: #ffffff;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
  opacity: 0.86;
  transition: opacity 160ms ease, border-color 160ms ease;
}
.m-nav a:hover {
  opacity: 1;
  border-bottom-color: var(--m-accent);
}

/* --- first view (index) -------------------------------------------------------------------- */
/* A short black band: the project in two sentences on the left, what a participant gets on the
   right, one action. The figures sit in their own bar below so the band stays about a third of
   the height a hero would take. */
.m-fv {
  background: var(--m-ink);
  color: #ffffff;
}
.m-fv__inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 44px;
  align-items: center;
  padding-top: 30px;
  padding-bottom: 30px;
}
.m-fv .m-eyebrow {
  margin-bottom: 10px;
}
.m-fv__title {
  font-family: var(--m-font-serif);
  font-weight: 400;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin: 0;
  text-wrap: balance;
}
.m-fv__lede {
  margin: 10px 0 0;
  max-width: 40em;
  font-size: 13px;
  line-height: 1.85;
  letter-spacing: 0.03em;
  color: var(--m-on-dark-muted);
}
.m-fv__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 16px;
}
.m-fv__actions .m-cta--lg {
  padding: 13px 24px;
  font-size: 14px;
}
.m-fv__note {
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--m-on-dark-muted);
}
.m-fv__offers {
  border-left: 1px solid var(--m-line-dark);
  padding-left: 36px;
}
.m-fv__offers-head {
  font-family: var(--m-font-en);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--m-on-dark-muted);
  margin: 0 0 12px;
}
.m-offers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.m-offer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 7px 12px;
  border: 1px solid var(--m-line-dark);
  border-radius: var(--m-radius);
  background: #0c0c0c;
}
.m-offer__n {
  flex: none;
  font-family: var(--m-font-en);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--m-accent);
  padding-top: 3px;
}
.m-offer__text {
  font-size: 12.5px;
  line-height: 1.6;
  font-weight: 500;
}
.m-offer__text small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--m-on-dark-muted);
  margin-top: 1px;
}

/* The figures, in one line under the band. */
.m-statsbar {
  background: var(--m-surface);
  border-bottom: 1px solid var(--m-line);
}
.m-statsbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 44px;
  margin: 0;
  padding-top: 14px;
  padding-bottom: 14px;
}
.m-statsbar__item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
}
.m-statsbar__item dt {
  font-family: var(--m-font-en);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--m-muted);
}
.m-statsbar__item dd {
  margin: 0;
  font-family: var(--m-font-en);
  font-weight: 600;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.02em;
}
.m-statsbar__item dd small {
  font-family: var(--m-font);
  font-size: 11px;
  font-weight: 400;
  margin-left: 3px;
  color: var(--m-muted);
}
.m-statsbar__item--accent dd {
  color: var(--m-accent);
  font-size: 24px;
}

/* The Slack button: the accent CTA with Slack's mark in front. */
.m-cta--slack {
  gap: 10px;
}
.m-cta--slack .m-slack {
  flex: none;
}
.m-cta--lg.m-cta--slack {
  letter-spacing: 0.2em;
}

/* --- page head (listing pages) ------------------------------------------------------------- */
.m-hero {
  padding: 64px 24px 8px;
}
.m-hero__title {
  font-family: var(--m-font-serif);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.35;
  letter-spacing: 0.02em;
  margin: 0;
}
.m-hero__lede {
  margin: 14px 0 0;
  max-width: 44em;
  line-height: 1.95;
  color: var(--m-muted);
  font-size: 14px;
}
.m-hero > .m-tags,
.m-hero > .m-search {
  margin-top: 28px;
}

/* --- tag chips ----------------------------------------------------------------------------- */
.m-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.m-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--m-line);
  padding: 7px 14px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--m-ink);
  text-decoration: none;
  background: var(--m-surface);
  border-radius: 999px;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}
.m-tag--area::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--m-accent);
  flex: none;
}
.m-tag:hover,
.m-tag[aria-current='page'],
.m-tag[aria-pressed='true'] {
  background: var(--m-ink);
  border-color: var(--m-ink);
  color: #ffffff;
}
.m-tag[aria-pressed='true']:hover {
  background: var(--m-accent);
  border-color: var(--m-accent);
}
.m-tag__x {
  font-size: 13px;
  line-height: 1;
  margin-left: 2px;
  opacity: 0.8;
}
.m-filter__hint {
  margin: -8px 0 16px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--m-muted);
}
.m-filter__clear {
  margin-left: 10px;
  color: var(--m-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.m-tags--dark .m-tag {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}
.m-tags--dark .m-tag:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--m-ink);
}
.m-tags__label {
  font-family: var(--m-font-en);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--m-muted-2);
  margin: 26px 0 10px;
}

/* --- sections ------------------------------------------------------------------------------ */
.m-section {
  padding: 56px 24px 0;
}
.m-section--tags {
  padding-top: 48px;
}
.m-section--list {
  padding-top: 36px;
}
.m-section--related {
  padding-bottom: 72px;
}
.m-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--m-ink);
}
.m-section__title {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.m-section__en {
  font-family: var(--m-font-en);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.32em;
}
.m-section__ja {
  font-family: var(--m-font-serif);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--m-ink-soft);
}
.m-section__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--m-muted);
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 2px;
}
.m-section__more:hover {
  color: var(--m-accent);
}
.m-section__more:hover .m-arrow {
  transform: translateX(3px);
}

/* --- cards --------------------------------------------------------------------------------- */
.m-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--m-gap);
  list-style: none;
  margin: 0;
  padding: 0;
}
.m-card {
  display: flex;
  flex-direction: column;
  background: var(--m-surface);
  border-radius: var(--m-radius);
  overflow: hidden;
  min-width: 0;
  transition:
    transform 260ms ease,
    box-shadow 260ms ease;
}
.m-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--m-shadow);
}
.m-card > a {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.m-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--m-paper-deep);
  position: relative;
  display: grid;
  place-items: center;
}
.m-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.m-card:hover .m-card__media img {
  transform: scale(1.04);
}
.m-card__blank {
  font-family: var(--m-font-display);
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--m-line);
}
.m-card__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.m-card__meta {
  font-family: var(--m-font-en);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--m-muted-2);
  display: flex;
  gap: 14px;
  margin: 0;
  text-transform: uppercase;
}
.m-card__title {
  font-size: 16.5px;
  line-height: 1.6;
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 160ms ease;
}
.m-card:hover .m-card__title {
  color: var(--m-accent);
}
.m-card__excerpt {
  font-size: 13px;
  line-height: 1.85;
  color: var(--m-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.m-card__tags {
  margin: auto 0 0;
  padding-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--m-muted);
  border-top: 1px solid var(--m-line);
}
.m-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border: 1px solid var(--m-line);
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.m-card__tag--area::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--m-accent);
}
.m-card__read {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--m-ink);
}
.m-card:hover .m-card__read .m-arrow {
  transform: translateX(3px);
}

/* The lead card: full width, cover beside the text. */
.m-card--feature {
  grid-column: 1 / -1;
}
.m-card--feature > a {
  flex-direction: row;
}
.m-card--feature .m-card__media {
  flex: 0 0 58%;
  aspect-ratio: auto;
  min-height: 360px;
}
.m-card--feature .m-card__body {
  padding: 36px 40px;
  justify-content: center;
  gap: 16px;
}
.m-card--feature .m-card__title {
  font-family: var(--m-font-serif);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.5;
  -webkit-line-clamp: 4;
}
.m-card--feature .m-card__excerpt {
  font-size: 14px;
  -webkit-line-clamp: 4;
}
.m-card--feature .m-card__tags {
  margin-top: 8px;
}

/* --- pagination ---------------------------------------------------------------------------- */
.m-pager {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 48px 0 0;
}
.m-pager a,
.m-pager span {
  border: 1px solid var(--m-ink);
  padding: 11px 22px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--m-ink);
  border-radius: var(--m-radius);
  transition:
    background 160ms ease,
    color 160ms ease;
}
.m-pager a:hover {
  background: var(--m-ink);
  color: #ffffff;
}
.m-pager span {
  opacity: 0.3;
}
.m-pager .m-pager__page {
  border: 0;
  opacity: 1;
  font-family: var(--m-font-en);
  font-weight: 600;
  padding: 0 8px;
}
.m-result {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--m-muted);
}
.m-result strong {
  font-family: var(--m-font-en);
  font-size: 18px;
  color: var(--m-ink);
  margin: 0 2px;
}

/* --- article head -------------------------------------------------------------------------- */
.m-ah {
  background: var(--m-ink);
  color: #ffffff;
}
.m-ah__inner {
  max-width: 980px;
  padding: 56px 24px 120px;
}
.m-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--m-on-dark-muted);
  margin-bottom: 28px;
}
.m-crumbs a {
  color: inherit;
  text-decoration: none;
}
.m-crumbs a:hover {
  color: #ffffff;
}
.m-ah .m-tags {
  margin-bottom: 22px;
}
.m-ah__title {
  font-family: var(--m-font-serif);
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin: 0 0 26px;
  text-wrap: balance;
}
.m-ah__meta {
  font-family: var(--m-font-en);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--m-on-dark-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
}
.m-ah__meta a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}
.m-ah__meta a:hover {
  border-bottom-color: var(--m-accent);
}
.m-ah__cover {
  max-width: 980px;
  margin: -88px auto 0;
  position: relative;
  z-index: 1;
}
.m-ah__cover img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
  display: block;
  border-radius: var(--m-radius);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
}
.m-ah__caption {
  font-size: 12px;
  color: var(--m-muted);
  margin: 10px 0 0;
  text-align: right;
}

/* --- article layout ------------------------------------------------------------------------ */
.m-article__grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 760px);
  gap: 56px;
  justify-content: center;
  padding-top: 56px;
  padding-bottom: 24px;
}
.m-article__grid--nocover {
  padding-top: 0;
}
.m-article__grid--nocover .m-article__main {
  margin-top: -56px;
  position: relative;
  z-index: 1;
}
.m-article__main {
  min-width: 0;
}
.m-side {
  min-width: 0;
}
.m-side__sticky {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.m-toc {
  background: var(--m-surface);
  padding: 20px 22px 22px;
  border-radius: var(--m-radius);
}
.m-toc__head {
  font-family: var(--m-font-en);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.32em;
  margin: 0 0 12px;
}
.m-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}
.m-toc li {
  counter-increment: toc;
  border-top: 1px solid var(--m-line);
}
.m-toc li a {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  padding: 10px 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--m-ink-soft);
  text-decoration: none;
}
.m-toc li a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--m-font-en);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--m-accent);
  padding-top: 3px;
}
.m-toc li a:hover {
  color: var(--m-accent);
}
.m-side__join {
  background: var(--m-ink);
  color: #ffffff;
  padding: 24px 22px 26px;
  border-radius: var(--m-radius);
}
.m-side__join-title {
  font-family: var(--m-font-serif);
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 10px;
}
.m-side__join-body {
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--m-on-dark-muted);
  margin: 0 0 18px;
}
.m-side__join .m-cta {
  width: 100%;
}

/* Body: `base.css` .richText supplies the block rules; this sets the scale it inherits from. */
.m-body {
  background: var(--m-surface);
  padding: 48px 56px 56px;
  border-radius: var(--m-radius);
  font-size: 16px;
  line-height: 2.05;
  letter-spacing: 0.02em;
  color: var(--m-ink-soft);
}
.m-body > :first-child {
  margin-top: 0;
}
.m-body h2 {
  font-size: 22px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  margin: 64px 0 22px;
  padding-top: 18px;
  border-top: 1px solid var(--m-ink);
  position: relative;
  scroll-margin-top: 96px;
}
.m-body h2::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 56px;
  height: 3px;
  background: var(--m-accent);
}
.m-body h3 {
  font-size: 18px;
  line-height: 1.65;
  margin: 44px 0 14px;
  padding-left: 14px;
  border-left: 3px solid var(--m-accent);
  scroll-margin-top: 96px;
}
.m-body h4 {
  font-size: 16px;
  margin: 32px 0 10px;
}
.m-body p {
  margin: 20px 0;
}
.m-body a {
  color: var(--m-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  word-break: break-all;
}
.m-body a:hover {
  color: var(--m-accent-dark);
}
.m-body strong,
.m-body b {
  font-weight: 700;
  color: var(--m-ink);
}
.m-body hr {
  border: 0;
  border-top: 1px solid var(--m-line);
  margin: 44px 0;
}
.m-body ul,
.m-body ol {
  margin: 20px 0;
  padding-left: 1.6em;
}
.m-body li {
  margin: 8px 0;
}
.m-body li p {
  margin: 0;
}
.m-body blockquote {
  margin: 28px 0;
  padding: 6px 0 6px 20px;
  border-left: 3px solid var(--m-accent);
  color: var(--m-muted);
  font-style: normal;
}
.m-body figure {
  margin: 36px 0;
}
.m-body img {
  border-radius: var(--m-radius);
}
.m-body figcaption {
  font-size: 12px;
  color: var(--m-muted);
  margin-top: 10px;
  text-align: center;
}

/* --- Ghost card markup (kg-*) -------------------------------------------------------------- */
.m-body .kg-card {
  margin: 28px 0;
}
.m-body .kg-image-card img {
  width: 100%;
  height: auto;
}
.m-body .kg-callout-card {
  display: flex;
  gap: 14px;
  padding: 22px 26px;
  background: var(--m-paper);
  border-left: 3px solid var(--m-ink);
  border-radius: 0 var(--m-radius) var(--m-radius) 0;
}
.m-body .kg-callout-card + .kg-callout-card {
  margin-top: -14px;
}
.m-body .kg-callout-card-yellow {
  background: var(--m-paper);
  border-left-color: var(--m-accent);
}
.m-body .kg-callout-card-grey {
  background: #f3f3f1;
  border-left-color: var(--m-muted-2);
}
.m-body .kg-callout-card-blue {
  background: #eef3f8;
  border-left-color: #5b8db8;
}
.m-body .kg-callout-card-white {
  background: var(--m-surface);
  border: 1px solid var(--m-line);
  border-left: 3px solid var(--m-ink);
}
.m-body .kg-callout-emoji {
  flex: none;
  font-size: 20px;
  line-height: 1.4;
}
.m-body .kg-callout-text {
  font-size: 14.5px;
  line-height: 1.95;
}
.m-body .kg-callout-text strong {
  display: inline-block;
  margin-bottom: 4px;
}
.m-body .kg-header-card {
  /* Ghost keeps the colours in data-*; the inline style they were also in is dropped by the
     sanitiser, so the attribute selectors below are what paints these. */
  padding: 32px 36px;
  border-radius: var(--m-radius);
  background: var(--m-paper);
}
.m-body .kg-header-card[data-background-color='#000000'] {
  background: var(--m-ink);
  color: #e8e6e1;
}
.m-body .kg-header-card [data-text-color='#FFFFFF'] {
  color: #ffffff;
}
.m-body .kg-header-card h2,
.m-body .kg-header-card-heading {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.6;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
}
.m-body .kg-header-card h2::before {
  display: none;
}
.m-body .kg-header-card-subheading {
  font-size: 14px;
  line-height: 1.95;
  margin: 0;
}
.m-body .kg-header-card[data-background-color='#000000'] a {
  color: #ff9c73;
}
.m-body .kg-bookmark-card a,
.m-body .kg-cta-card a {
  color: inherit;
  text-decoration: none;
}
.m-body .kg-bookmark-container {
  display: flex;
  border: 1px solid var(--m-line);
  border-radius: var(--m-radius);
  overflow: hidden;
  background: var(--m-surface);
}
.m-body .kg-bookmark-content {
  flex: 1;
  min-width: 0;
  padding: 18px 20px;
}
.m-body .kg-bookmark-title {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.6;
}
.m-body .kg-bookmark-description {
  font-size: 13px;
  line-height: 1.7;
  color: var(--m-muted);
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.m-body .kg-bookmark-metadata {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--m-muted-2);
  margin-top: 10px;
}
.m-body .kg-bookmark-icon {
  width: 16px;
  height: 16px;
  border-radius: 0;
}
.m-body .kg-bookmark-thumbnail {
  flex: 0 0 200px;
}
.m-body .kg-bookmark-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

/* --- article foot -------------------------------------------------------------------------- */
.m-article__foot {
  padding: 28px 0 0;
}
.m-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 16px;
}
.m-share__label {
  font-family: var(--m-font-en);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.32em;
  margin-right: 6px;
}
.m-share__link {
  border: 1px solid var(--m-ink);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--m-ink);
  text-decoration: none;
  transition:
    background 160ms ease,
    color 160ms ease;
}
.m-share__link:hover {
  background: var(--m-ink);
  color: #ffffff;
}
.m-article__dates {
  font-size: 12px;
  color: var(--m-muted-2);
  letter-spacing: 0.04em;
  margin: 0 0 28px;
}
.m-author {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--m-surface);
  padding: 24px 26px;
  border-radius: var(--m-radius);
}
.m-author__avatar {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}
.m-author__avatar--blank {
  display: grid;
  place-items: center;
  background: var(--m-ink);
  color: #ffffff;
  font-family: var(--m-font-display);
  font-size: 22px;
}
.m-author__text {
  min-width: 0;
}
.m-author__label {
  font-family: var(--m-font-en);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--m-muted-2);
  margin: 0 0 4px;
}
.m-author__name {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}
.m-author__name a {
  color: inherit;
  text-decoration: none;
}
.m-author__name a:hover {
  color: var(--m-accent);
}
.m-author__bio {
  font-size: 13px;
  line-height: 1.85;
  color: var(--m-muted);
  margin: 8px 0 0;
}
.m-author__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 10px 0 0;
  font-size: 12px;
  letter-spacing: 0.06em;
}
.m-author__links a {
  color: var(--m-ink);
  text-underline-offset: 3px;
}

/* --- fixed pages (about / apply) ----------------------------------------------------------- */
.m-page {
  max-width: 820px;
  padding-top: 64px;
}
.m-page__title {
  font-family: var(--m-font-serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.45;
  margin: 0 0 32px;
}
.m-page__body .m-body {
  padding: 40px 48px 48px;
}
.m-page__actions {
  margin: 40px 0 0;
}

/* --- join band ----------------------------------------------------------------------------- */
.m-join {
  background: var(--m-ink);
  color: #ffffff;
  margin-top: 88px;
}
.m-join__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  padding-top: 88px;
  padding-bottom: 96px;
}
.m-join__title {
  font-family: var(--m-font-serif);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin: 0;
}
.m-join__lede {
  font-size: 14px;
  line-height: 2.05;
  color: var(--m-on-dark-muted);
  margin: 22px 0 0;
}
.m-join__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}
.m-join__note {
  margin: 14px 0 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--m-on-dark-muted);
}
.m-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--m-line-dark);
  border: 1px solid var(--m-line-dark);
}
.m-step {
  background: var(--m-ink);
  padding: 28px 24px 30px;
  min-width: 0;
}
.m-step__n {
  font-family: var(--m-font-en);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--m-accent);
}
.m-step__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  margin: 14px 0 12px;
}
.m-step__body {
  font-size: 13px;
  line-height: 1.95;
  color: var(--m-on-dark-muted);
  margin: 0;
}

/* --- footer -------------------------------------------------------------------------------- */
.m-footer {
  background: var(--m-ink);
  color: var(--m-on-dark-muted);
  font-size: 13px;
  border-top: 1px solid var(--m-line-dark);
}
.m-footer a {
  color: inherit;
  text-decoration: none;
}
.m-footer a:hover {
  color: #ffffff;
}
.m-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 40px;
}
.m-footer__mark {
  font-family: var(--m-font-display);
  font-size: 30px;
  line-height: 1;
  color: #ffffff;
  display: block;
}
.m-footer__tagline {
  font-family: var(--m-font-en);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.3em;
  margin: 12px 0 0;
}
.m-footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.m-footer__head {
  font-family: var(--m-font-en);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.32em;
  color: #ffffff;
  margin: 0 0 6px;
}
.m-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  padding-bottom: 28px;
  border-top: 1px solid var(--m-line-dark);
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* --- search -------------------------------------------------------------------------------- */
.m-search {
  display: flex;
  gap: 10px;
  max-width: 640px;
}
.m-search input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--m-line);
  background: var(--m-surface);
  padding: 14px 16px;
  font: inherit;
  font-size: 14px;
  color: inherit;
  border-radius: var(--m-radius);
}
.m-search input:focus-visible {
  outline: 2px solid var(--m-accent);
  outline-offset: -1px;
}
.m-search button {
  border: 0;
  background: var(--m-ink);
  color: #ffffff;
  padding: 14px 26px;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.14em;
  cursor: pointer;
  border-radius: var(--m-radius);
}
.m-search button:hover {
  background: var(--m-accent);
}

.m-empty {
  padding: 48px 0;
  color: var(--m-muted);
  font-size: 14px;
}

/* --- responsive ---------------------------------------------------------------------------- */
@media (max-width: 1060px) {
  .m-article__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    max-width: 820px;
  }
  .m-side {
    order: 2;
  }
  .m-side__sticky {
    position: static;
    flex-direction: row;
    align-items: stretch;
  }
  .m-side__sticky > * {
    flex: 1 1 0;
  }
  .m-toc li a {
    padding: 8px 0;
  }
}

@media (max-width: 900px) {
  .m-fv__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 36px;
    padding-bottom: 36px;
  }
  .m-fv__offers {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--m-line-dark);
    padding-top: 24px;
  }
  .m-join__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding-top: 64px;
    padding-bottom: 72px;
  }
  .m-footer__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .m-footer__brand {
    grid-column: 1 / -1;
  }
  .m-card--feature > a {
    flex-direction: column;
  }
  .m-card--feature .m-card__media {
    flex: none;
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
  .m-card--feature .m-card__body {
    padding: 24px 26px 26px;
  }
}

@media (max-width: 720px) {
  .m-header__bar {
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 12px 16px;
  }
  .m-header__label {
    display: none;
  }
  .m-nav {
    order: 3;
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    margin-left: 0;
    scrollbar-width: none;
    font-size: 12px;
  }
  .m-nav::-webkit-scrollbar {
    display: none;
  }
  .m-cta--pill {
    padding: 9px 14px;
    font-size: 11px;
    letter-spacing: 0.12em;
  }
  .m-fv__actions .m-cta,
  .m-join__actions .m-cta {
    width: 100%;
  }
  .m-statsbar__inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
  }
  .m-statsbar__item {
    flex-direction: column;
    gap: 4px;
  }
  .m-hero {
    padding-top: 44px;
  }
  .m-section {
    padding-top: 44px;
  }
  .m-section__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .m-ah__inner {
    padding: 36px 24px 96px;
  }
  .m-ah__cover {
    margin-top: -72px;
  }
  .m-article__grid {
    padding-top: 32px;
  }
  .m-side__sticky {
    flex-direction: column;
  }
  .m-body {
    padding: 28px 22px 36px;
    font-size: 15.5px;
    line-height: 2;
  }
  .m-body h2 {
    font-size: 20px;
    margin-top: 48px;
  }
  .m-body .kg-callout-card,
  .m-body .kg-header-card {
    padding: 18px 20px;
  }
  .m-body .kg-bookmark-thumbnail {
    display: none;
  }
  .m-page__body .m-body {
    padding: 28px 22px 36px;
  }
  .m-steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .m-footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .m-search {
    flex-direction: column;
  }
}
