/*
 * pr.task.vc — the press room of Task Venture Capital GmbH.
 * Built from the task.vc redesign ("Circle of life"), artboards Press.dc.html and Article.dc.html in
 * code.foss.global/task.vc/design (task.vc/). Values follow the artboards' inline styles; boxes keep the
 * browser's content-box sizing as the artboards do, so max-width plus padding lines the sections up.
 */

/* Fonts: self-hosted Geist and Geist Mono (SIL OFL 1.1), Latin. The build copies them from their
   @fontsource packages into assets/built/fonts/ together with their licences. */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../built/fonts/geist-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../built/fonts/geist-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../built/fonts/geist-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../built/fonts/geist-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../built/fonts/geist-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../built/fonts/geist-mono-latin-500-normal.woff2') format('woff2');
}

/* ---------------------------------------------------------------- tokens */

:root {
  color-scheme: light;
  --ground: #F4F5F1;
  --ink: #0B1210;
  --white: #FFFFFF;
  --line: #E2E4DE;
  --line-strong: #D5D8D1;
  --rule: #DADDD6;
  --dashed: #C9CDC6;
  --soft: #ECEEE9;
  --body: #3A423E;
  --muted: #4A524E;
  --text: #1E2622;
  --deep: #2E3632;
  --link-hover: #2F52E0;
  --focus: #2F52E0;

  --food: #3E8E41;
  --food-tint: #E3F0DF;
  --housing: #E0763C;
  --housing-tint: #FBE6D9;
  --work: #2F52E0;
  --work-tint: #E1E7FC;
  --compute: #0B1210;
  --compute-tint: #E3E6E4;
  --circle: conic-gradient(#3E8E41 0 25%, #E0763C 25% 50%, #2F52E0 50% 75%, #0B1210 75% 100%);

  --sans: 'Geist', system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* a post's foundation, set by [data-foundation]; no foundation is the neutral ground */
  --f-dot: var(--circle);
  --f-tint: var(--soft);
  --f-deep: var(--muted);
  --f-accent: var(--ink);
}

[data-foundation='food'] { --f-dot: var(--food); --f-tint: var(--food-tint); --f-deep: #2C5A2E; --f-accent: var(--food); }
[data-foundation='housing'] { --f-dot: var(--housing); --f-tint: var(--housing-tint); --f-deep: #6A3A1E; --f-accent: var(--housing); }
[data-foundation='work'] { --f-dot: var(--work); --f-tint: var(--work-tint); --f-deep: #22398F; --f-accent: var(--work); }
[data-foundation='compute'] { --f-dot: var(--compute); --f-tint: var(--compute-tint); --f-deep: var(--muted); --f-accent: var(--compute); }

/* ---------------------------------------------------------------- base */

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.site {
  min-height: 100vh;
  padding-bottom: 24px;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
}

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

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 10;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
  color: var(--white);
}

.mono {
  font-family: var(--mono);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--f-dot);
  flex: none;
}

/* ---------------------------------------------------------------- header */

.site-header {
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px 24px 0;
}

.site-header__bar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 8px 8px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.brand__mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--circle);
}

.brand__section {
  font-weight: 500;
  color: var(--muted);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 500;
}

.site-nav__link {
  padding: 12px 16px;
  border-radius: 999px;
  min-height: 44px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
}

.site-nav__link--press {
  background: var(--soft);
}

.site-nav__cta {
  background: var(--ink);
  color: var(--white);
  padding: 12px 22px;
  border-radius: 999px;
  min-height: 44px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
}

.site-nav__cta:hover {
  color: var(--white);
  background: #26302C;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  max-width: 1320px;
  margin: 0 auto;
  padding: 32px 32px 24px;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  font-size: 14px;
  color: var(--body);
}

.site-footer__org {
  line-height: 1.8;
}

.site-footer__name {
  font-weight: 700;
  color: var(--ink);
}

.site-footer__org a {
  text-decoration: underline;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  align-items: center;
}

.site-footer__nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* ---------------------------------------------------------------- pills and chips */

.pill {
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pill--ink {
  background: var(--ink);
  color: var(--white);
}

.pill--tint {
  background: var(--f-tint);
}

.pill--white {
  background: var(--white);
}

.pill--outline {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 5px 12px;
}

/* ---------------------------------------------------------------- press intro */

.press-intro {
  max-width: 1320px;
  margin: 0 auto;
  padding: 72px 32px 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
}

.press-intro .eyebrow {
  margin-bottom: 16px;
}

.press-title {
  margin: 0;
  font-size: clamp(56px, 8vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.055em;
  font-weight: 600;
}

/* titles that are not the press room's own (tags, authors, pages) */
.press-title--small {
  font-size: clamp(44px, 6vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.05em;
  overflow-wrap: anywhere;
}

.press-intro__lead {
  margin: 0;
  max-width: 400px;
  color: var(--body);
}

/* ---------------------------------------------------------------- foundation filters */

.filters {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px 32px;
}

.filters__group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  box-sizing: border-box;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.chip__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--f-dot);
  flex: none;
}

.chip[aria-current='page'],
.chip[aria-pressed='true'] {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.chip[aria-current='page']:hover,
.chip[aria-pressed='true']:hover {
  color: var(--white);
}

.chip:hover {
  border-color: var(--ink);
}

/* a chip pressed in place (a foundation without announcements) releases the page's own chip */
.filters__group.is-filtered .chip[aria-current='page'] {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line-strong);
}

/* ---------------------------------------------------------------- featured card */

.featured {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px 16px;
}

.featured-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 32px;
  overflow: hidden;
}

.featured-card__media {
  position: relative;
  background: var(--f-tint);
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  box-sizing: border-box;
}

.featured-card__media--image {
  min-height: 0;
  padding: 0;
  background: var(--ground);
}

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

.featured-card__body {
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}

.featured-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.featured-card__meta time {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.featured-card__title {
  margin: 0 0 16px;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.featured-card__dek {
  margin: 0;
  color: var(--body);
  max-width: 520px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}

.featured-card__cta {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---------------------------------------------------------------- post grid */

.listing {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px 96px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
  gap: 16px;
}

.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.post-card__head {
  position: relative;
  background: var(--f-tint);
  height: 180px;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  box-sizing: border-box;
}

.post-card__head--image {
  height: auto;
  aspect-ratio: 16 / 9;
  padding: 0;
  background: var(--ground);
}

.post-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.post-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-grow: 1;
}

.post-card__date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.post-card__title {
  margin: 0;
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.post-card__dek {
  margin: 0;
  color: var(--body);
  font-size: 15px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.empty-state {
  background: var(--white);
  border: 1px dashed var(--dashed);
  border-radius: 24px;
  padding: 48px;
  text-align: center;
  color: var(--body);
}

.listing > .empty-state:not(:first-child) {
  margin-top: 16px;
}

/* ---------------------------------------------------------------- pagination */

.pagination {
  margin-top: 32px;
  padding: 0 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.pagination__page {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

/* ---------------------------------------------------------------- subscribe band */

.subscribe {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px 24px;
}

.subscribe__inner {
  background: var(--ink);
  color: var(--ground);
  border-radius: 32px;
  padding: clamp(32px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 40px;
  align-items: end;
}

.subscribe__title {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.subscribe__note {
  margin: 0;
  color: #BFC5C1;
}

.subscribe__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.subscribe__label {
  font-size: 14px;
  color: #D2D7D3;
}

.subscribe__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.subscribe__input {
  flex: 1 1 240px;
  min-height: 52px;
  border-radius: 999px;
  border: 1px solid #5B635F;
  background: #141C19;
  color: var(--ground);
  padding: 0 20px;
  font: inherit;
  box-sizing: border-box;
  min-width: 0;
}

.subscribe__input::placeholder {
  color: #8E9692;
}

.subscribe__input:focus-visible,
.subscribe__button:focus-visible,
.subscribe a:focus-visible {
  outline-color: var(--ground);
}

.subscribe__button {
  min-height: 52px;
  border-radius: 999px;
  border: none;
  background: var(--ground);
  color: var(--ink);
  padding: 0 26px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.subscribe__button:hover {
  background: var(--white);
}

.subscribe__form.loading .subscribe__button {
  opacity: 0.6;
  cursor: progress;
}

.subscribe__message {
  display: none;
  margin: 4px 0 0;
  font-size: 14px;
}

.subscribe__form.success .subscribe__message--success,
.subscribe__form.error .subscribe__message--error {
  display: block;
}

.subscribe__message--success {
  color: #CDE8C9;
}

.subscribe__message--error {
  color: #F6C2A5;
}

.subscribe__member {
  margin: 0;
  color: #D2D7D3;
}

.subscribe__member a {
  color: var(--ground);
  text-decoration: underline;
}

/* ---------------------------------------------------------------- article header */

.article-head {
  max-width: 1000px;
  margin: 0 auto;
  padding: 64px 32px 40px;
}

.breadcrumb {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 32px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: underline;
}

.breadcrumb a:hover {
  color: var(--link-hover);
}

.article-head__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 28px;
}

.article-title {
  margin: 0;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 600;
  overflow-wrap: break-word;
}

.article-dek {
  margin: 28px 0 0;
  font-size: 22px;
  line-height: 1.45;
  color: var(--body);
  max-width: 760px;
}

.byline {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.byline__author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.byline__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex: none;
}

.byline__text {
  line-height: 1.35;
}

.byline__name {
  font-weight: 600;
}

.byline__meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

/* ---------------------------------------------------------------- share */

.share {
  position: relative;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.share__round {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  padding: 0;
  box-sizing: border-box;
}

.share__pill {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: var(--ink);
}

.share__round:hover,
.share__pill:hover {
  border-color: var(--ink);
  color: var(--link-hover);
}

.share__mastodon {
  position: relative;
}

.share__mastodon > summary {
  list-style: none;
}

.share__mastodon > summary::-webkit-details-marker {
  display: none;
}

.share__mastodon[open] > summary {
  border-color: var(--ink);
}

.share__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 5;
  width: min(300px, calc(100vw - 64px));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 16px 40px rgba(11, 18, 16, 0.12);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.share__panel label {
  color: var(--muted);
}

.share__panel-row {
  display: flex;
  gap: 8px;
}

.share__panel input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  padding: 0 16px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  box-sizing: border-box;
}

.share__panel button {
  min-height: 44px;
  border-radius: 999px;
  border: none;
  background: var(--ink);
  color: var(--white);
  padding: 0 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.share__status {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.share__status:empty {
  display: none;
}

/* ---------------------------------------------------------------- lead image */

.article-lead {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px 40px;
  container-type: inline-size;
}

.article-lead img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100cqw * 9 / 21);
  object-fit: contain;
  border-radius: 32px;
}

.article-lead figcaption {
  max-width: 1000px;
  margin: 14px auto 0;
  padding: 0 8px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------------------------------------------------------------- article body */

.article-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px 96px;
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: flex-start;
}

/* without a contents list or a holding the text lines up with the header */
.article-layout:not(.has-aside) {
  max-width: 1000px;
}

.article-layout:not(.has-aside) .article-aside {
  display: none;
}

.article-aside {
  flex: 1 1 260px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 940px) {
  .article-aside {
    position: sticky;
    top: 24px;
  }
}

.toc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}

.toc[hidden] {
  display: none;
}

.toc__label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 10px;
}

.toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  font-size: 15px;
}

.toc__list a {
  display: flex;
  min-height: 40px;
  align-items: center;
  /* a heading that wraps keeps apart from the next; one line stays 40 px as in the artboard */
  padding: 6px 0;
  box-sizing: border-box;
}

.toc__list a[aria-current='true'] {
  font-weight: 600;
}

.holding {
  background: var(--f-tint);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.holding__label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--f-deep);
}

.holding__name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.holding__text {
  margin: 0;
  font-size: 15px;
  color: var(--deep);
}

.holding__link {
  font-weight: 600;
  font-size: 15px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.article-text {
  flex: 999 1 560px;
  min-width: 0;
  max-width: 700px;
  font-size: 19px;
  line-height: 1.7;
  color: var(--text);
}

/* ---------------------------------------------------------------- Ghost content */

.gh-content {
  overflow-wrap: break-word;
}

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

.gh-content > p,
.gh-content > ul,
.gh-content > ol {
  margin: 0 0 32px;
}

/* the opening paragraph: a larger lead, its dateline set like the design's */
.gh-content > p:first-child {
  margin: 0 0 28px;
  font-size: 21px;
  line-height: 1.6;
  color: var(--ink);
}

.gh-content > p:first-child > em:first-child,
.gh-content > p:first-child > strong:first-child {
  font-style: normal;
  font-weight: 600;
}

.gh-content > p:empty,
.gh-content > p:has(> br:only-child) {
  display: none;
}

.gh-content h2,
.gh-content h3,
.gh-content h4 {
  color: var(--ink);
  font-weight: 600;
  scroll-margin-top: 24px;
}

.gh-content h2 {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.gh-content h3 {
  margin: 0 0 12px;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.gh-content h4 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.gh-content h2 strong,
.gh-content h3 strong,
.gh-content h4 strong {
  font-weight: inherit;
}

.gh-content strong,
.gh-content b {
  font-weight: 600;
}

.gh-content a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.gh-content ul,
.gh-content ol {
  padding-left: 22px;
}

.gh-content li + li {
  margin-top: 6px;
}

.gh-content hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 8px 0 40px;
}

/* a blockquote is the design's pull quote */
.gh-content blockquote {
  margin: 8px 0 40px;
  padding: 32px 0;
  border: 0;
  border-top: 2px solid var(--f-accent);
  border-bottom: 1px solid var(--rule);
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: var(--ink);
  font-style: normal;
}

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

.gh-content blockquote p + p {
  margin-top: 14px;
}

.gh-content blockquote cite,
.gh-content blockquote footer {
  display: block;
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0;
  font-weight: 400;
  font-style: normal;
  color: var(--muted);
}

.gh-content blockquote.kg-blockquote-alt {
  text-align: left;
  padding: 32px 0;
  font-size: 30px;
}

/* a callout card is the design's "At a glance" box; bold text at its start is the box's label */
.gh-content .kg-callout-card,
.gh-content .at-a-glance {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 28px;
  margin: 0 0 40px;
  font-size: 17px;
  line-height: 1.6;
}

.gh-content .kg-callout-emoji {
  display: none;
}

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

.gh-content .kg-callout-text > strong:first-child,
.gh-content .kg-callout-text > b:first-child,
.gh-content .at-a-glance__label {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.gh-content .kg-callout-text > strong:first-child + br,
.gh-content .kg-callout-text > b:first-child + br {
  display: none;
}

.gh-content .at-a-glance ul {
  margin: 0;
  padding-left: 20px;
}

/* figures and cards */
.gh-content figure {
  margin: 0 0 40px;
}

.gh-content .kg-image-card img,
.gh-content .kg-gallery-image img {
  border-radius: 20px;
}

.gh-content figcaption {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  text-align: left;
}

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

.gh-content .kg-width-full img {
  border-radius: 20px;
}

.gh-content .kg-bookmark-card {
  margin: 0 0 40px;
}

.gh-content .kg-bookmark-container {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  text-decoration: none;
  overflow: hidden;
  color: var(--ink);
}

.gh-content .kg-bookmark-content {
  padding: 22px 24px;
}

.gh-content .kg-bookmark-title {
  font-weight: 600;
  font-size: 17px;
}

.gh-content .kg-bookmark-description {
  color: var(--body);
  font-size: 15px;
}

.gh-content .kg-bookmark-metadata {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.gh-content code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--soft);
  border-radius: 6px;
  padding: 2px 6px;
}

.gh-content pre {
  margin: 0 0 32px;
  padding: 20px 24px;
  border-radius: 20px;
  background: var(--ink);
  color: var(--ground);
  overflow-x: auto;
  font-size: 15px;
}

.gh-content pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}

.gh-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 32px;
  font-size: 16px;
}

.gh-content th,
.gh-content td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
}

/* ---------------------------------------------------------------- boilerplate */

.boilerplate {
  border-top: 1px solid var(--rule);
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
}

.boilerplate__title {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.boilerplate a[href^='mailto'] {
  text-decoration: underline;
}

/* ---------------------------------------------------------------- related */

.related {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px 72px;
}

.related__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 24px;
  padding: 0 8px;
}

.related__title {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.04em;
  line-height: 1;
  font-weight: 600;
}

.related__all {
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 16px;
}

.related-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  justify-content: space-between;
  min-height: 200px;
  box-sizing: border-box;
}

.related-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.related-card__top time {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.related-card__title {
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 600;
}

/* ---------------------------------------------------------------- pages, archives, accounts */

.page-head {
  max-width: 1000px;
  margin: 0 auto;
  padding: 64px 32px 40px;
}

.page-head .eyebrow {
  margin-bottom: 16px;
}

.page-head .article-dek {
  margin-top: 24px;
}

.page-body {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 32px 96px;
  font-size: 19px;
  line-height: 1.7;
  color: var(--text);
}

.page-body > * {
  max-width: 700px;
}

.panel {
    max-width: 700px;
  }
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 40px);
  font-size: 17px;
  line-height: 1.6;
}

.panel + .panel {
  margin-top: 16px;
}

.panel__label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 10px;
}

.panel p {
  margin: 0 0 8px;
}

.panel p:last-child {
  margin-bottom: 0;
}

.panel a {
  text-decoration: underline;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 14px 26px;
  box-sizing: border-box;
  border-radius: 999px;
  border: none;
  background: var(--ink);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.button:hover {
  color: var(--white);
  background: #26302C;
}

.button--ghost {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.button--ghost:hover {
  color: var(--ink);
  background: var(--white);
  border-color: var(--ink);
}

.term-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 160px;
  box-sizing: border-box;
}

.term-card__count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.term-card__title {
  margin: 0;
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.term-card__text {
  margin: 0;
  color: var(--body);
  font-size: 15px;
}

.page-spacer {
  height: 64px;
}

.related--after-band {
  padding-top: 72px;
}

.listing__actions {
  margin: 0 0 24px;
  padding: 0 8px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* the redirect page shows its link while the browser leaves */
.redirect-note {
  color: var(--muted);
}
