/* Zermin Product Management */

:root {
  --font-sans: 'Manrope', system-ui, sans-serif;
  --font-serif: 'Lora', Georgia, serif;

  /* Matches the background colour of the hero graphic in /assets/js/vanta.js */
  --color-bg: #23153C;
  --color-card: #2C1D4A;
  --color-card-hover: #38265C;
  --color-plum: #3D1D43;
  --color-primary: #9C3860;
  --color-primary-hover: #B04670;
  --color-dark-button: #21163A;
  --color-dark-button-hover: #2E1F4F;
  --color-outline: #7C5A8E;
  --color-quote-mark: #9A7AAE;

  /* Pink is reserved for interactive things: text links, the selected filter, LinkedIn icons, focus rings */
  --color-accent: #F3B8D2;

  /* Text by role */
  --color-text: #FFFFFF;
  --color-text-supporting: #E3D9F0;
  --color-text-meta: #CFC3E2;

  --divider: 1px solid rgba(255, 255, 255, 0.15);

  --gradient-raspberry: linear-gradient(180deg, #762D55 0%, #8B335B 100%);
  --gradient-contact: linear-gradient(180deg, #762D55 0%, #93365F 100%);
  --gradient-purple: linear-gradient(180deg, #3D1D43 0%, #57244A 100%);

  /* Height of the slanted edge between sections, and the space that keeps content clear of it */
  --slant: 70px;
  --section-space: calc(var(--slant) + 80px);

  /* The homepage's "Trusted by" strip; the Workshops hero reserves the same height so both heroes match */
  --logo-row: 30px;
  --trusted-by-height: calc(72px + 20px + 16px + var(--logo-row));

  --radius-card: 14px;
  --radius-small: 8px;
  --content-width: 1040px;
  --gutter: 24px;
}

@media (max-width: 640px) {
  :root {
    --slant: 32px;
    --logo-row: 20px;
  }
}


/* Base */

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

html {
  /* Shown when scrolling past the end of the page, below the raspberry footer */
  background: #93365F;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: clip;
}

img {
  max-width: 100%;
}

/* Type system: Lora 400 only for page titles and section headings; Manrope 400 for text, 600 for emphasis */
h1, h2, h3, strong, b {
  font-weight: 600;
}

h1, h2, h3 {
  margin: 0;
}

/* Underline only ever means "link", and only on hover */
a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

[hidden] {
  display: none !important;
}

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


/* Layout and section rhythm */

.container {
  max-width: var(--content-width);
  margin: 0 auto;
}

.section {
  position: relative;
  padding: var(--section-space) var(--gutter);
}

.page-intro {
  padding-top: 100px;
}

.section-dark {
  background: var(--color-bg);
}

.section-raspberry {
  background: var(--gradient-raspberry);
}

.section-purple {
  background: var(--gradient-purple);
}

/*
 * Every boundary between two differently coloured sections is slanted: the section slides up over
 * the one above it and only its top edge is cut, higher on the left and lower on the right.
 * The section above shows through the triangle, so all slants are parallel and leave no gaps.
 */
.slant {
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * var(--slant));
  clip-path: polygon(0 0, 100% var(--slant), 100% 100%, 0 100%);
}

.grid {
  display: grid;
  gap: 22px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Heading (or its sub-line) to the cards, people or columns below it */
.container > .grid,
.people-row,
.partners,
.key-figures,
.testimonial-columns,
.blog-list {
  margin-top: 40px;
}

.container > .grid:first-child {
  margin-top: 0;
}


/* Typography */

.page-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 56px);
  line-height: 1.15;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(30px, 5vw, 40px);
  line-height: 1.2;
}

.lead {
  margin: 20px 0 0;
  max-width: 640px;
  font-size: 20px;
  color: var(--color-text-supporting);
}

.section-subline {
  margin: 20px 0 0;
  max-width: 640px;
  color: var(--color-text-supporting);
}

/* Centred headings introduce a symmetric row of equal items or a standalone moment; reading content stays left-aligned */
.center {
  text-align: center;
}

.section-subline.center,
.center > .section-subline {
  margin-left: auto;
  margin-right: auto;
}

/* The one uppercase style: small labels */
.label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-meta);
}

/* Facts about something, items separated by middle dots */
.meta {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-meta);
}

/* Lists with small lavender dots instead of default bullets */
ul.dot-list,
.dot-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

ul.dot-list li,
.dot-list ul li {
  position: relative;
  padding-left: 18px;
}

ul.dot-list li::before,
.dot-list ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(0.775em - 3px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-text-meta);
}

/* A decorative icon in a round badge */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-plum);
  flex-shrink: 0;
}

.icon-badge img {
  display: block;
  width: 26px;
  height: 26px;
}

/* Small arrow on clickable cards: lavender, pink on hover or focus */
.card-arrow {
  flex-shrink: 0;
  color: var(--color-text-meta);
}

.project-card:hover .card-arrow,
.project-card:focus-visible .card-arrow,
.work-card:hover .card-arrow,
.work-card:focus-visible .card-arrow {
  color: var(--color-accent);
}

/* Cards that are buttons */
button.card {
  width: 100%;
  border: 0;
  color: var(--color-text);
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
}

/* Text links in content. The padding gives a 44px touch target without changing the layout. */
.text-link {
  display: inline-block;
  padding: 12px 0;
  margin: -12px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-accent);
}

/* Pink lacks contrast on raspberry, so links there are white */
.section-raspberry .text-link,
.closing .text-link {
  color: var(--color-text);
}

/* ...except inside dark cards on raspberry */
.section-raspberry .card .text-link {
  color: var(--color-accent);
}


/* Buttons: sentence case, no arrows */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius-small);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
}

.button:hover {
  text-decoration: none;
  color: var(--color-text);
}

.button-primary {
  background: var(--color-primary);
}

.button-primary:hover {
  background: var(--color-primary-hover);
}

.button-dark {
  background: var(--color-dark-button);
}

.button-dark:hover {
  background: var(--color-dark-button-hover);
}

.button-small {
  min-height: 44px;
  padding: 0 18px;
}


/* Navigation */

.site-nav,
.hero-content,
.trusted-by {
  max-width: calc(var(--content-width) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.site-nav {
  position: relative;
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
}

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

.site-logo img {
  display: block;
  height: 46px;
  width: auto;
}

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

.site-nav-links a:not(.button) {
  padding: 10px 0;
  color: var(--color-text);
}

.site-nav-links a:not(.button):hover {
  color: var(--color-accent);
  text-decoration: none;
}

.site-nav-links a[aria-current="page"],
.site-nav-links a[aria-current="page"]:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}


/* Hero (Home and Workshops) */

.hero {
  position: relative;
  background: var(--color-bg);
}

/* The graphic's canvas is inserted as the hero's first child; keep the content above it */
.hero > :not(canvas) {
  position: relative;
  z-index: 1;
}

#landing-hero > canvas,
#workshops-hero > canvas {
  -webkit-mask-image: linear-gradient(black 75%, transparent 100%);
  mask-image: linear-gradient(black 75%, transparent 100%);
}

.vanta-canvas {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.hero-content {
  padding-top: clamp(80px, 10vw, 140px);
}

#workshops-hero .hero-content {
  padding-bottom: calc(var(--trusted-by-height) + var(--section-space));
}

.hero-content h1 {
  max-width: 760px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 56px);
  line-height: 1.14;
}

.hero-content h1 em {
  font-style: italic;
}

.hero-lead {
  margin: 20px 0 0;
  max-width: 620px;
  font-size: 20px;
  color: var(--color-text-supporting);
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}

.trusted-by {
  min-height: calc(var(--trusted-by-height) + var(--section-space));
  padding-top: 72px;
  padding-bottom: var(--section-space);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.trusted-by .label {
  line-height: 20px;
}

.trusted-by-logos {
  width: min(620px, 100%);
  height: var(--logo-row);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.trusted-by-logos img {
  display: block;
  width: auto;
  height: 30px;
  min-width: 0;
}

.trusted-by-logos .logo-oaf {
  height: 25px;
}

@media (max-width: 640px) {
  .trusted-by-logos {
    gap: 14px;
  }

  .trusted-by-logos img {
    height: 20px;
  }

  .trusted-by-logos .logo-oaf {
    height: 16px;
  }
}


/* Cards */

.card {
  border-radius: var(--radius-card);
  background: var(--color-card);
  padding: 28px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.card-client {
  font-weight: 600;
}

.card-years {
  color: var(--color-text-meta);
  white-space: nowrap;
}

/* Pinned to the bottom so cards in a row line up */
.card-footer {
  margin-top: auto;
}


/* Home: How we can help */

#services .grid {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.service-card {
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-card h3 {
  margin-top: 20px;
  font-size: 28px;
  line-height: 1.2;
}

.card-description {
  margin: 10px 0 0;
  color: var(--color-text-supporting);
}

.service-card .dot-list {
  margin: 20px 0 24px;
  font-size: 15px;
}

.service-card .card-footer {
  align-self: stretch;
  padding-top: 18px;
  border-top: var(--divider);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* 6px below the meta line, allowing for the link's touch padding */
.service-card .card-footer .text-link {
  margin-top: -6px;
}


/* People */

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 40px;
}

.people-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px 48px;
}

.person-summary {
  display: flex;
  align-items: center;
  gap: 18px;
}

.portrait {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 30%;
  flex-shrink: 0;
}

.person-name {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.person-line {
  margin: 2px 0 0;
  font-size: 15px;
  color: var(--color-text-supporting);
}

/* A name directly followed by its LinkedIn icon */
.person-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* A 16px icon with a 32px click area */
.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: -8px -8px -8px -2px;
  flex-shrink: 0;
  color: var(--color-accent);
}

.icon-link:hover {
  color: var(--color-text);
}


/* Home: Selected work */

.work-card {
  background: rgba(35, 21, 60, 0.6);
  display: flex;
  flex-direction: column;
}

.work-card:hover {
  background: rgba(35, 21, 60, 0.9);
}

.work-card .card-meta {
  width: 100%;
  align-items: center;
}

.work-card .card-client {
  margin-right: auto;
}

.work-card-title {
  display: block;
  margin-top: 14px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.work-card .card-footer {
  padding-top: 16px;
}


/* Testimonials */

.testimonials.grid {
  align-items: start;
}

.testimonial {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.section-raspberry .testimonial {
  background: var(--color-bg);
}

.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--color-card-hover);
}

.testimonial-name {
  font-size: 15px;
  font-weight: 600;
}

.testimonial-position {
  display: block;
  font-size: 13px;
  color: var(--color-text-meta);
}

.quote-mark {
  display: block;
  height: 32px;
  margin-top: 20px;
  font-family: var(--font-serif);
  font-size: 56px;
  line-height: 1;
  color: var(--color-quote-mark);
}

.testimonial blockquote {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text-supporting);
}

.testimonial blockquote p {
  margin: 0;
}

.testimonial-columns {
  columns: 2 380px;
  column-gap: 22px;
}

.testimonial-columns .testimonial {
  break-inside: avoid;
  margin-bottom: 22px;
}


/* Contact section and footer */

.closing {
  background: var(--gradient-contact);
  padding: var(--section-space) var(--gutter) 40px;
}

.contact {
  max-width: var(--content-width);
  margin: 0 auto;
  text-align: center;
}

.contact p {
  margin: 20px auto 0;
  max-width: 640px;
}

.contact-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px 28px;
}

.site-footer {
  max-width: var(--content-width);
  margin: 96px auto 0;
  padding-top: 28px;
  border-top: var(--divider);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  font-size: 13px;
  color: var(--color-text-supporting);
}

.closing-footer-only .site-footer {
  margin-top: 0;
}

.site-footer-logo {
  display: inline-flex;
}

.site-footer-logo img {
  display: block;
  height: 34px;
  width: auto;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 24px;
}

.site-footer-links a {
  padding: 12px 0;
  color: var(--color-text-supporting);
}

.site-footer-links a:hover {
  color: var(--color-text);
}

@media (max-width: 640px) {
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .site-footer-links span {
    padding-top: 12px;
  }
}


/* Projects */

.key-figures {
  margin-bottom: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
}

.key-figures > div {
  border-radius: var(--radius-card);
  background: var(--color-plum);
  padding: 28px;
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
}

.key-figures dt {
  font-size: 15px;
  color: var(--color-text-supporting);
}

.key-figures dd {
  margin: 0;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
}

.filters {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--color-outline);
  border-radius: 22px;
  background: transparent;
  color: var(--color-text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

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

.chip[aria-pressed="true"] {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-bg);
}

.project-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
}

.project-card {
  min-height: 176px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  background: var(--color-card-hover);
}

.card-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-card-title {
  margin-top: 10px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

.project-card .card-footer {
  padding-top: 18px;
}

.project-dialog {
  width: min(680px, calc(100% - 48px));
  max-width: none;
  max-height: 86vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius-card);
  background: var(--color-card);
  color: var(--color-text);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.project-dialog::backdrop {
  background: rgba(12, 7, 24, 0.72);
}

html:has(.project-dialog[open]) {
  overflow: hidden;
}

.project-dialog-body {
  max-height: 86vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 40px;
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dialog-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* Clear of the close button */
.project-dialog h2 {
  padding-right: 40px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.25;
}

/* The title receives focus when the dialog opens, for screen readers; it isn't interactive */
.project-dialog h2:focus {
  outline: none;
}

.project-facts {
  margin: 24px 0 0;
  padding: 18px 0;
  border-top: var(--divider);
  border-bottom: var(--divider);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
}

.project-facts > div {
  min-width: 110px;
}

.project-facts dd {
  margin: 4px 0 0;
  font-size: 15px;
}

.project-dialog h3.label {
  margin: 28px 0 8px;
}

.project-dialog p {
  margin: 0;
  line-height: 1.6;
}

.project-dialog .project-result {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .project-dialog {
    width: calc(100% - 32px);
    max-height: calc(100dvh - 48px);
  }

  .project-dialog-body {
    max-height: calc(100dvh - 48px);
    padding: 28px 22px;
  }
}


/* Workshops */

.workshop-card {
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.workshop-card h2 {
  margin-top: 20px;
  font-size: 28px;
  line-height: 1.2;
}

.workshop-tagline {
  margin: 10px 0 0;
  color: var(--color-text-supporting);
}

.workshop-audience {
  margin-top: 4px;
}

.workshop-card .dot-list {
  margin: 22px 0 26px;
}

.workshop-outcome {
  align-self: stretch;
  margin-top: auto;
  padding: 16px 18px;
  border-radius: var(--radius-small);
  background: var(--color-card);
}

.workshop-outcome p:last-child {
  margin: 4px 0 0;
  font-weight: 600;
}

/* Closing section: the offer card takes the place of the contact section */

.workshops-offer-section {
  max-width: var(--content-width);
  margin: 0 auto;
}

.offer-card {
  max-width: 560px;
  margin: 40px auto 0;
  padding: 40px;
  border-radius: var(--radius-card);
  background: var(--color-dark-button);
  box-shadow: 0 20px 50px rgba(20, 8, 30, 0.35);
}

.offer-price {
  margin: 12px 0 0;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
}

.offer-terms {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--color-text-supporting);
}

.offer-included {
  margin: 24px 0 0;
  padding: 22px 0 0;
  border-top: var(--divider);
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}

.offer-included li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.offer-included svg {
  flex-shrink: 0;
  color: var(--color-text-meta);
}

.offer-card .button {
  width: 100%;
  margin-top: 30px;
}

.offer-note {
  margin-top: 10px;
  text-align: center;
}

.offer-partnership {
  margin: 28px 0 0;
  text-align: center;
}

@media (max-width: 640px) {
  .offer-card {
    padding: 28px 22px;
  }

  .offer-included {
    grid-template-columns: 1fr;
  }
}


/* About */

.about-intro .page-title {
  max-width: 760px;
}

.about-intro .partners {
  margin-top: 56px;
}

.partners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.partner {
  display: flex;
  flex-direction: column;
}

.partner-head {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* The portraits are cut-outs, so the circle gets a background of its own */
.portrait-on-plum {
  width: 88px;
  height: 88px;
  background: var(--color-plum);
}

.partner h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.partner-role {
  margin: 2px 0 0;
  font-size: 15px;
  color: var(--color-text-meta);
}

.partner-bio {
  margin: 20px 0 20px;
}

.partner-bio p {
  margin: 0;
}

.partner-credentials {
  margin-top: auto;
  padding-top: 16px;
  border-top: var(--divider);
}

.steps {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 36px;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-plum);
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text-meta);
}

.step h3 {
  margin-top: 18px;
  font-size: 20px;
  font-weight: 600;
}

.step p {
  margin: 8px 0 0;
  color: var(--color-text-supporting);
}


/* Blog */

.blog-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  background: var(--color-card-hover);
}

.blog-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-card-body {
  padding: 28px;
}

.blog-card-body .card-years {
  margin: 0;
  white-space: normal;
}

.blog-card h2 {
  margin: 8px 0 8px;
  font-size: 20px;
  line-height: 1.3;
}

.blog-card h2 a {
  color: var(--color-text);
}

/* Makes the whole card clickable */
.blog-card h2 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.blog-card-body > p:last-child {
  margin: 0;
  font-size: 15px;
  color: var(--color-text-supporting);
}

.blog-article {
  max-width: 760px;
}

.blog-article h1 {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 56px);
  line-height: 1.15;
}

.blog-article-meta {
  margin: 20px 0 0;
  font-size: 15px;
  color: var(--color-text-meta);
}

.blog-article-image {
  display: block;
  width: 100%;
  margin: 28px 0;
  border-radius: var(--radius-card);
}

.blog-article-toc {
  margin-bottom: 40px;
  border-radius: var(--radius-card);
  background: var(--color-card);
  padding: 28px;
}

.blog-article-toc > p {
  margin: 0 0 12px;
  color: var(--color-text-supporting);
}

.blog-article-toc ol {
  margin: 0;
  padding-left: 20px;
}

.blog-article-toc li {
  margin: 6px 0;
}


/* Long-form text: blog articles and the imprint */

.container.prose {
  max-width: 760px;
}

/* Links inside running text stay underlined, as colour alone doesn't set them apart enough from the text */
.prose p a,
.prose li a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.prose h2 {
  margin: 48px 0 14px;
  font-size: 28px;
  line-height: 1.25;
}

.prose h3 {
  margin: 32px 0 10px;
  font-size: 20px;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 18px;
}

.prose li {
  margin: 6px 0;
}

.prose img {
  display: block;
  height: auto;
  margin: 28px 0;
  border-radius: var(--radius-card);
}

#imprint .page-title {
  margin-bottom: 8px;
}
