@layer site-base {
@media (max-width: 767px) {
  .site-header nav > ul.nav-list {
    display: none;
  }

  .site-header .nav-mobile {
    display: block;
    position: relative;
  }
}
}
@layer site-theme {
:root {
  --background: #f4eb4f;
  --surface: #fcfaf1;
  --text: #110f0a;
  --text-muted: #474230;
  --accent: #2850de;
  --accent-text: #fcfaf1;
  --border: #110f0a;
  --shadow-color: #110f0a;
  --invert-bg: #110f0a;
  --invert-text: #f4eb4f;
  --focus: #d300a9;
  --success: #05773b;
  --error: #c50710;
  --status-text: #fcfaf1;
  --font-heading: "Archivo Black", "Noto Sans", "Noto Sans Armenian", "Noto Sans Georgian", "Noto Sans Thai", "Noto Sans Hebrew", "Noto Sans Arabic", "Noto Sans Devanagari", "Noto Sans Bengali", "Arial Black", Impact, ui-sans-serif, system-ui, sans-serif;
  --font-body: "Archivo", "Noto Sans", "Noto Sans Armenian", "Noto Sans Georgian", "Noto Sans Thai", "Noto Sans Hebrew", "Noto Sans Arabic", "Noto Sans Devanagari", "Noto Sans Bengali", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-meta: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --font-size-xs-value: 0.875rem;
  --font-size-xs: calc(var(--font-size-xs-value) * var(--k-font-size-xs));
  --font-size-sm-value: 1.125rem;
  --font-size-sm: calc(var(--font-size-sm-value) * var(--k-font-size-sm));
  --font-size-md-value: 1.5rem;
  --font-size-md: calc(var(--font-size-md-value) * var(--k-font-size-md));
  --font-size-lg-value: 2rem;
  --font-size-lg: calc(var(--font-size-lg-value) * var(--k-font-size-lg));
  --font-size-xl-value: 2.75rem;
  --font-size-xl: calc(var(--font-size-xl-value) * var(--k-font-size-xl));
  --font-size-2xl-value: 3.75rem;
  --font-size-2xl: calc(var(--font-size-2xl-value) * var(--k-font-size-2xl));
  --font-size-3xl-value: 7.5rem;
  --font-size-3xl: calc(var(--font-size-3xl-value) * var(--k-font-size-3xl));
  --space-1-value: 0.25rem;
  --space-1: calc(var(--space-1-value) * var(--k-space-1));
  --space-2-value: 0.5rem;
  --space-2: calc(var(--space-2-value) * var(--k-space-2));
  --space-3-value: 0.75rem;
  --space-3: calc(var(--space-3-value) * var(--k-space-3));
  --space-4-value: 1rem;
  --space-4: calc(var(--space-4-value) * var(--k-space-4));
  --space-5-value: 1.5rem;
  --space-5: calc(var(--space-5-value) * var(--k-space-5));
  --space-6-value: 2rem;
  --space-6: calc(var(--space-6-value) * var(--k-space-6));
  --space-7-value: 3rem;
  --space-7: calc(var(--space-7-value) * var(--k-space-7));
  --space-8-value: 5rem;
  --space-8: calc(var(--space-8-value) * var(--k-space-8));
  --radius: 0rem;
  --radius-button: 2px;
  --measure: 42rem;
  --gap: 1.5rem;
  --bw: 3px;
  --sh: 6px;
  --pad: var(--space-7);
  --shadow-sm: 3px 3px 0 var(--shadow-color);
  --shadow-md: var(--sh) var(--sh) 0 var(--shadow-color);
  --shadow-lg: calc(var(--sh) * 2) calc(var(--sh) * 2) 0 var(--shadow-color);
  --button-bg: var(--accent);
  --button-text: var(--accent-text);
  --accent-2: var(--accent);
  --accent-2-text: var(--accent-text);
  --accent-3: var(--accent);
  --accent-3-text: var(--accent-text);
  --k-font-size-xs: 1;
  --k-font-size-sm: 1;
  --k-font-size-md: 1;
  --k-font-size-lg: 1;
  --k-font-size-xl: 1;
  --k-font-size-2xl: 1;
  --k-font-size-3xl: 1;
  --k-space-1: 1;
  --k-space-2: 1;
  --k-space-3: 1;
  --k-space-4: 1;
  --k-space-5: 1;
  --k-space-6: 1;
  --k-space-7: 1;
  --k-space-8: 1;
}
@media (max-width: 1023px) {
  :root {
    --k-font-size-xs: 0.97;
    --k-font-size-sm: 0.98;
    --k-font-size-md: 0.94;
    --k-font-size-lg: 0.9;
    --k-font-size-xl: 0.85;
    --k-font-size-2xl: 0.83;
    --k-font-size-3xl: 0.72;
    --k-space-5: 0.92;
    --k-space-6: 0.88;
    --k-space-7: 0.88;
    --k-space-8: 0.8;
  }
}
@media (max-width: 639px) {
  :root {
    --k-font-size-xs: 0.93;
    --k-font-size-sm: 0.94;
    --k-font-size-md: 0.875;
    --k-font-size-lg: 0.81;
    --k-font-size-xl: 0.73;
    --k-font-size-2xl: 0.67;
    --k-font-size-3xl: 0.5;
    --k-space-5: 0.83;
    --k-space-6: 0.75;
    --k-space-7: 0.75;
    --k-space-8: 0.6;
  }
}

/* --- Page shell: header / main / footer are direct children of body --- */

::selection {
  background: var(--accent);
  color: var(--accent-text);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-size: var(--font-size-sm);
  line-height: 1.5;
}

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

.skip-link:focus {
  background: var(--text);
  color: var(--background);
  border: 0;
  border-radius: 0;
  font-family: var(--font-heading);
  font-weight: 400;
  font-synthesis: none;
  text-transform: uppercase;
}

.site-header {
  border-bottom: var(--bw) solid var(--border);
}

.site-header .site-header-inner {
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: var(--space-5);
  max-width: none;
  margin-inline: 0;
  padding: var(--space-6) var(--space-5);
}

.site-logo {
  height: 3.25rem;
  border: var(--bw) solid var(--border);
}

.site-name {
  margin-inline-end: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 400;
  font-synthesis: none;
  font-size: var(--font-size-md);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.site-header nav > ul {
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-2);
}

.site-header nav > ul a {
  display: block;
  padding: var(--space-1) var(--space-3);
  background: var(--surface);
  color: var(--text);
  border: var(--bw) solid var(--border);
  font-family: var(--font-heading);
  font-weight: 400;
  font-synthesis: none;
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  text-decoration: none;
}

.site-header nav > ul a:hover {
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
}

.site-header nav > ul a[aria-current='page'] {
  background: var(--text);
  color: var(--background);
}

main.wrap {
  flex: 1;
  min-width: 0;
  max-width: none;
  margin-inline: 0;
  padding: var(--pad);
}

.site-footer {
  border-top: 0;
  padding: var(--space-6) var(--pad);
  background: var(--invert-bg);
  color: var(--invert-text);
  font-family: var(--font-meta);
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer .wrap {
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
  gap: var(--space-3) var(--space-6);
}

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

.site-footer-nav ul {
  gap: var(--space-2) var(--space-5);
}

.site-footer-nav a[aria-current='page'] {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

@media (min-width: 1024px) {
  body {
    display: grid;
    grid-template-columns: 15.5rem minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    grid-template-areas:
      'h m'
      'h f';
  }

  .site-header {
    grid-area: h;
    border-bottom: 0;
    border-right: var(--bw) solid var(--border);
  }

  .site-header nav > ul {
    flex-direction: column;
  }

  .site-header nav > ul a {
    font-size: var(--font-size-md);
  }

  main.wrap {
    grid-area: m;
  }

  .site-footer {
    grid-area: f;
  }
}

@media (max-width: 1023px) {
  .site-header .site-header-inner {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-3) var(--space-4);
  }

  .site-header nav {
    flex-basis: 100%;
  }
}

/* The mobile menu (Step 94): below 768px the main menu's button sits beside the name instead of on a row of its
   own (where :has is supported); a boxed button with a hard shadow, and a ruled panel of uppercase links. */
@media (max-width: 767px) {
  .site-header nav:has(> .nav-mobile) {
    flex-basis: auto;
    margin-inline-start: auto;
  }
}

.nav-mobile-toggle {
  padding: var(--space-2) var(--space-3);
  background: var(--surface);
  color: var(--text);
  border: var(--bw) solid var(--border);
  border-radius: 0;
  box-shadow: var(--sh) var(--sh) 0 var(--shadow-color);
  font-family: var(--font-heading);
  font-weight: 400;
  font-synthesis: none;
  font-size: var(--font-size-xs);
  text-transform: uppercase;
}

.nav-mobile[open] > .nav-mobile-toggle {
  background: var(--text);
  color: var(--background);
  border-color: var(--border);
  box-shadow: none;
  transform: translate(var(--sh), var(--sh));
}

.nav-mobile .nav-mobile-list {
  padding: 0;
  background: var(--surface);
  border: var(--bw) solid var(--border);
  border-radius: 0;
  box-shadow: var(--shadow-md);
}

.nav-mobile .nav-mobile-list li + li {
  border-top: var(--bw) solid var(--border);
}

.nav-mobile .nav-mobile-list a {
  padding: var(--space-3) var(--space-4);
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 400;
  font-synthesis: none;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  text-decoration: none;
}

.nav-mobile .nav-mobile-list a:hover {
  background: var(--accent);
  color: var(--accent-text);
}

.nav-mobile .nav-mobile-list a[aria-current='page'] {
  background: var(--text);
  color: var(--background);
}

@media (max-width: 639px) {
  :root {
    --sh: 4px;
    --pad: var(--space-5);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .button,
  .pagination a,
  .site-header nav > ul a,
  .nav-mobile-toggle,
  .post-card-tag,
  .post-tag {
    transition:
      transform 80ms,
      box-shadow 80ms,
      background-color 80ms,
      color 80ms;
  }
}

/* --- Rhythm, and sections as full-width bands inside the main area --- */

.block + .block {
  margin-block-start: var(--space-7);
}

/* The design's main column spaces its top-level pieces by the largest step;
   flex/grid/columns children are spaced by their own gap, so the rhythm
   (same specificity as base's reset, loaded later) is undone for them. */
main > .block + .block {
  margin-block-start: var(--space-8);
}

.block-grid > .block,
.block-stack > .block,
.block-columns > * > .block {
  margin-block-start: 0;
}

/* A page title and the line under it belong together. */
main > .block-heading + .block {
  margin-block-start: var(--space-6);
}

/* Inside a section band the owner's own Stack gaps do the spacing. */
.block-section-inner > .block + .block {
  margin-block-start: var(--space-6);
}

/* Prose rhythm inside a post body is tighter than the page rhythm. */
.post-body > .block + .block {
  margin-block-start: var(--space-4);
}

.block-columns {
  align-items: start;
}

@media (min-width: 640px) {
  .block-columns-2-1 {
    grid-template-columns: 1.5fr 1fr;
  }
}

.block-section {
  width: auto;
  max-width: none;
  margin-inline: calc(-1 * var(--pad));
  padding-inline: var(--pad);
  padding-block: var(--space-8);
  border-block: var(--bw) solid var(--border);
}

main > .block-section:first-child {
  margin-block-start: calc(-1 * var(--pad));
}

/* tone says which text colour reads on the owner's background; :where() keeps
   the owner's own text colour (a style value) able to win. */
:where(.block-section)[data-tone='dark'] {
  color: var(--invert-text);
}

:where(.block-section)[data-tone='light'] {
  color: var(--text);
}

.block-section[data-tone] .block-rich-text a:not(.button) {
  color: inherit;
}

.block-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--text);
  border: var(--bw) solid var(--border);
  box-shadow: var(--sh) var(--sh) 0 var(--shadow-color);
}

/* An image block is flush to the card's edges with a rule below it; every
   other child sits in the card's padding. The last child (a CTA) is pushed
   to the bottom so cards in a row line up. */
.block-card-inner {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-3);
  padding: 0;
}

.block-card-inner > .block {
  margin-block: 0;
}

.block-card-inner > .block:not(.block-image) {
  margin-inline: var(--space-5);
}

.block-card-inner > .block:first-child:not(.block-image) {
  margin-block-start: var(--space-5);
}

.block-card-inner > .block-image + .block {
  margin-block-start: var(--space-5);
}

.block-card-inner > .block:last-child:not(.block-image) {
  margin-block-end: var(--space-5);
}

.block-card-inner > .block-button {
  margin-block-start: auto;
  padding-block-start: var(--space-2);
  align-self: flex-start;
}

.block-card .block-image {
  margin: 0;
}

.block-card .block-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 0;
  border-bottom: var(--bw) solid var(--border);
  box-shadow: none;
}

/* The line under the image is meta text: mono, uppercase. */
.block-card-inner > .block-image + .block-rich-text {
  font-family: var(--font-meta);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.block-card .block-heading {
  overflow-wrap: normal;
  hyphens: none;
}

.block-card .block-button .button {
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-xs);
  box-shadow: 3px 3px 0 var(--shadow-color);
}

/* --- Headings --- */

.block-heading,
.post-title,
.blog-title,
.post-card-title,
.block-rich-text h2,
.block-rich-text h3,
.block-rich-text h4 {
  font-weight: 400;
  font-synthesis: none;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.block-heading {
  line-height: 0.92;
  letter-spacing: -0.02em;
}

h1.block-heading {
  line-height: 0.86;
  letter-spacing: -0.035em;
}

h2.block-heading {
  font-size: var(--font-size-2xl);
}

h3.block-heading {
  line-height: 0.95;
  letter-spacing: -0.01em;
}

/* --- Rich text --- */

.block-rich-text h2 {
  font-size: var(--font-size-lg);
  line-height: 1;
  letter-spacing: 0;
}

.block-rich-text h3 {
  font-size: var(--font-size-md);
  line-height: 1;
}

.block-rich-text h4 {
  font-size: var(--font-size-sm);
  line-height: 1.1;
}

.block-rich-text ul {
  list-style: square;
}

.block-rich-text a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}

.block-rich-text a:hover {
  background: var(--accent);
  color: var(--accent-text);
  text-decoration-color: transparent;
}

.block-rich-text blockquote {
  margin: var(--space-4) 0;
  padding: var(--space-5);
  background: var(--surface);
  color: var(--text);
  border: var(--bw) solid var(--border);
  box-shadow: var(--sh) var(--sh) 0 var(--accent);
  font-family: var(--font-heading);
  font-weight: 400;
  font-synthesis: none;
  font-size: var(--font-size-lg);
  line-height: 1.05;
  text-transform: uppercase;
}

.block-section[data-tone='dark'] .block-rich-text blockquote {
  margin: 0;
  padding: 0;
  background: none;
  color: inherit;
  border: 0;
  box-shadow: none;
  font-size: var(--font-size-xl);
  line-height: 1;
  text-wrap: balance;
}

/* The line right after a pull quote in a dark band is its attribution. */
.block-section[data-tone='dark'] .block-rich-text:has(blockquote) + .block-rich-text {
  font-family: var(--font-meta);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.block-rich-text li + li {
  margin-block-start: var(--space-1);
}

.block-rich-text li p {
  margin: 0;
}

.block-rich-text pre {
  background: var(--surface);
  color: var(--text);
  border: var(--bw) solid var(--border);
  border-radius: var(--radius);
}

.block-rich-text code {
  font-family: var(--font-meta);
}

.block-rich-text hr,
.block-divider {
  height: 1rem;
  margin-inline: 0;
  border: 0;
  border-block: var(--bw) solid var(--border);
  background: repeating-linear-gradient(-45deg, var(--text) 0 3px, transparent 3px 10px);
}

.post-article .block-rich-text {
  max-width: 40em;
  line-height: 1.6;
}

/* --- Images, gallery, embed --- */

.block-image img,
.block-embed iframe {
  display: block;
  border: var(--bw) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--sh) var(--sh) 0 var(--shadow-color);
}

.block-image figcaption {
  margin-block-start: var(--space-2);
  font-family: var(--font-meta);
  font-size: var(--font-size-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.block-gallery {
  gap: var(--space-3);
}

.block-gallery .block-image img,
.post-body .block-image img,
.post-body .block-embed iframe {
  box-shadow: none;
}

.block-gallery .block-image {
  margin: 0;
}

/* Body media sits in the reading column like the text. */
.post-body .block-image,
.post-body .block-gallery,
.post-body .block-embed {
  max-width: 40em;
}

@media (max-width: 639px) {
  .block-gallery:not(.block-grid-cols-1) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* The rail takes 248px, so wide grids drop a column until there is room. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .block-grid-cols-4,
  .block-grid-cols-5,
  .block-grid-cols-6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* --- Buttons --- */

.button {
  display: inline-flex;
  align-items: center;
  padding: var(--space-3) var(--space-5);
  border: var(--bw) solid var(--border);
  border-radius: var(--radius-button);
  box-shadow: var(--sh) var(--sh) 0 var(--shadow-color);
  font-family: var(--font-heading);
  font-weight: 400;
  font-synthesis: none;
  font-size: var(--font-size-sm);
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
}

.button:hover {
  filter: none;
  transform: translate(calc(var(--sh) - 2px), calc(var(--sh) - 2px));
  box-shadow: 2px 2px 0 var(--shadow-color);
}

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

.button-secondary {
  background: var(--surface);
  color: var(--text);
}

.button-secondary:hover {
  background: var(--text);
  color: var(--surface);
}

.button-link {
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  color: inherit;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: none;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}

.button-link:hover {
  transform: none;
  box-shadow: none;
  background: var(--accent);
  color: var(--accent-text);
}

/* --- Blog index --- */

.blog-index {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
}

.blog-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  margin-block-end: 0;
  padding-block-end: var(--space-6);
  border-bottom: var(--bw) solid var(--border);
}

.blog-title {
  font-size: var(--font-size-3xl);
  line-height: 0.85;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

/* The label ("Posts tagged") is small meta text above the large tag name. */
.blog-title-label {
  display: block;
  margin-block-end: var(--space-2);
  color: var(--text-muted);
  font-family: var(--font-meta);
  font-size: var(--font-size-xs);
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.blog-title-tag {
  display: block;
}

/* The back link sits above the title. */
.blog-tag-meta {
  order: -1;
  margin: 0;
}

.blog-back-link {
  color: var(--text);
  font-family: var(--font-meta);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.blog-back-link:hover {
  background: var(--accent);
  color: var(--accent-text);
  text-decoration-color: transparent;
}

.blog-empty {
  color: var(--text-muted);
}

/* --- Post cards (blog index and Latest posts) --- */

@media (min-width: 640px) {
  .post-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.post-card {
  background: var(--surface);
  color: var(--text);
  border: var(--bw) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--sh) var(--sh) 0 var(--shadow-color);
}

.post-card-cover-link {
  aspect-ratio: 4 / 3;
  border-bottom: var(--bw) solid var(--border);
  background: var(--surface);
}

.post-card-content {
  padding: var(--space-5);
  gap: var(--space-3);
}

.post-card-date,
.post-date {
  color: var(--text);
  font-family: var(--font-meta);
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-card-date {
  margin-block-end: 0;
}

/* On the blog index (an ordered list whose start is the first post's global
   number) each card gets a "No. 01" chip beside its date. The list item must
   stay display:list-item for the counter to follow the list's start. */
.post-list > li {
  display: list-item;
}

.post-list {
  align-items: start;
}

.post-list .post-card-content {
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: start;
  align-items: center;
  gap: var(--space-3);
}

.post-list .post-card-content::before {
  content: '\2116  ' counter(list-item, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1;
  padding-inline: var(--space-2);
  background: var(--text);
  color: var(--surface);
  font-family: var(--font-meta);
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-list .post-card-date {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}

.post-list .post-card-content > :not(.post-card-date) {
  grid-column: 1 / -1;
}

.post-card-title {
  margin: 0;
  line-height: 0.95;
  letter-spacing: 0;
}

.latest-posts-grid .post-card-title {
  font-size: var(--font-size-md);
  line-height: 1;
}

.post-card-title a:hover {
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
}

.post-card-excerpt {
  font-size: var(--font-size-sm);
}

.post-card-tags {
  margin-block-start: auto;
  padding-block-start: var(--space-2);
}

.post-card-tag,
.post-tag {
  padding: 2px var(--space-3);
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-meta);
  font-size: var(--font-size-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.post-tag {
  background: var(--surface);
}

.post-card-tag:hover,
.post-tag:hover {
  background: var(--text);
  color: var(--surface);
  border-color: var(--border);
}

.latest-posts-footer {
  text-align: left;
}

.latest-posts-view-all {
  padding: var(--space-3) var(--space-5);
  background: var(--surface);
  color: var(--text);
  border: var(--bw) solid var(--border);
  border-radius: var(--radius-button);
  box-shadow: var(--sh) var(--sh) 0 var(--shadow-color);
  font-family: var(--font-heading);
  font-weight: 400;
  font-synthesis: none;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
}

.latest-posts-view-all:hover {
  background: var(--text);
  color: var(--surface);
  text-decoration: none;
  transform: translate(calc(var(--sh) - 2px), calc(var(--sh) - 2px));
  box-shadow: 2px 2px 0 var(--shadow-color);
}

.latest-posts-empty {
  border: var(--bw) dashed var(--text-muted);
  border-radius: var(--radius);
}

/* --- Pagination --- */

.pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: var(--space-3);
  margin-block-start: 0;
  padding-block: 0 var(--sh);
  padding-inline: 0 var(--sh);
}

.pagination-prev {
  grid-column: 1;
  justify-self: start;
}

.pagination-info {
  grid-column: 2;
}

.pagination-next {
  grid-column: 3;
  justify-self: end;
}

/* No previous/next page: a dashed, inert stand-in keeps the pill centred. */
.pagination .pagination-disabled {
  display: inline-flex;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  background: none;
  color: var(--text-muted);
  border: var(--bw) dashed var(--text-muted);
  border-radius: var(--radius-button);
  font-family: var(--font-heading);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  color: var(--text);
  border: var(--bw) solid var(--border);
  border-radius: var(--radius-button);
  box-shadow: var(--sh) var(--sh) 0 var(--shadow-color);
  font-family: var(--font-heading);
  font-weight: 400;
  font-synthesis: none;
  font-size: var(--font-size-xs);
  text-transform: uppercase;
}

.pagination a:hover {
  background: var(--text);
  color: var(--surface);
  border-color: var(--border);
  transform: translate(calc(var(--sh) - 2px), calc(var(--sh) - 2px));
  box-shadow: 2px 2px 0 var(--shadow-color);
}

.pagination .pagination-next {
  background: var(--accent);
  color: var(--accent-text);
}

.pagination .pagination-next:hover {
  background: var(--text);
  color: var(--surface);
}

.pagination-prev::before {
  content: '\2190\00a0' / '';
}

.pagination-next::after {
  content: '\00a0\2192' / '';
}

.pagination-info {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  background: var(--surface);
  color: var(--text);
  border: var(--bw) solid var(--border);
  border-radius: 999px;
  font-family: var(--font-meta);
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- Single post --- */

.post-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  margin-block-end: var(--space-7);
}

.post-title {
  order: 2;
  margin: 0;
  max-width: 16ch;
  font-size: var(--font-size-2xl);
  line-height: 0.9;
  letter-spacing: -0.025em;
}

.post-date {
  order: 1;
  margin: 0;
  padding: var(--space-1) var(--space-3);
  background: var(--text);
  color: var(--background);
}

.post-tags {
  order: 3;
  margin-block-start: 0;
}

.post-cover {
  margin-block-end: var(--space-7);
}

.post-cover-image {
  border: var(--bw) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--sh) var(--sh) 0 var(--shadow-color);
}

.post-body {
  margin-block-start: 0;
}

/* --- Forms --- */

.block-form .form {
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--surface);
  color: var(--text);
  border: var(--bw) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--sh) var(--sh) 0 var(--shadow-color);
}

.form-field label {
  font-family: var(--font-heading);
  font-weight: 400;
  font-synthesis: none;
  font-size: var(--font-size-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-required {
  margin-inline-start: 0.25em;
  color: var(--accent);
  font-family: var(--font-body);
  font-weight: 700;
}

.form-field input[type='text'],
.form-field input[type='email'],
.form-field input[type='tel'],
.form-field input[type='date'],
.form-field textarea,
.form-field select {
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  color: var(--text);
  border: var(--bw) solid var(--border);
  border-radius: var(--radius-button);
  font-size: var(--font-size-sm);
}

.form-field textarea {
  min-height: 140px;
}

.form-field select {
  appearance: none;
  padding-inline-end: var(--space-7);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text) 50%), linear-gradient(135deg, var(--text) 50%, transparent 50%);
  background-position:
    calc(100% - 1.4rem) 55%,
    calc(100% - 1.05rem) 55%;
  background-size: 0.35rem 0.35rem;
  background-repeat: no-repeat;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible,
.form-field select:focus-visible {
  outline: var(--bw) solid var(--focus);
  outline-offset: 3px;
}

.form-field input:user-invalid,
.form-field textarea:user-invalid,
.form-field select:user-invalid {
  border-color: var(--error);
  box-shadow: var(--sh) var(--sh) 0 var(--error);
}

.form-field:has(:user-invalid) label {
  color: var(--error);
}

.form-field-checkbox label {
  align-items: center;
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  letter-spacing: 0;
  text-transform: none;
}

.form-field-checkbox input[type='checkbox'] {
  appearance: none;
  display: grid;
  place-content: center;
  flex: none;
  width: 1.625rem;
  height: 1.625rem;
  margin: 0;
  background: var(--surface);
  border: var(--bw) solid var(--border);
  border-radius: var(--radius-button);
}

.form-field-checkbox input[type='checkbox']:checked {
  background: var(--accent);
}

.form-field-checkbox input[type='checkbox']:checked::before {
  content: '';
  width: 0.4rem;
  height: 0.8rem;
  margin-block-start: -0.15rem;
  border: solid var(--accent-text);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.form-success,
.form-error {
  padding: var(--space-3) var(--space-4);
  color: var(--status-text);
  border: var(--bw) solid var(--border);
  border-radius: 0;
  font-weight: 700;
}

.form-success {
  background: var(--success);
}

.form-error {
  background: var(--error);
}

.form-placeholder {
  border: var(--bw) dashed var(--text-muted);
  border-radius: var(--radius);
}

/* --- Block variants (Step 96): the shared ones with this theme's rules, hard shadows and halftone dots --- */

.block-card.is-style-muted,
.block-section.is-style-muted {
  background: color-mix(in srgb, var(--text) 7%, var(--background));
}

.block-card.is-style-inverted {
  background: var(--invert-bg);
  color: var(--invert-text);
  border-color: var(--invert-bg);
}

.block-section.is-style-inverted {
  border-block-color: var(--invert-bg);
}

.block-card.is-style-outlined {
  background: transparent;
  box-shadow: none;
}

.block-card.is-style-dots,
.block-section.is-style-dots {
  background-color: var(--surface);
  background-image: radial-gradient(color-mix(in srgb, var(--text) 24%, transparent) 1.2px, transparent 1.7px);
  background-size: 0.75rem 0.75rem;
}

.block-section.is-style-dots {
  background-color: var(--background);
}

/* `*word*` in a heading: the spot colour, upright. */
.block-heading em {
  font-style: normal;
  color: var(--accent);
}

/* Own variants: a mono uppercase label over a heading, and a heading set in a stamped box. */
.block-rich-text.is-style-eyebrow {
  font-family: var(--font-meta);
  font-size: var(--font-size-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.block-rich-text.is-style-eyebrow + .block-heading {
  margin-block-start: var(--space-2);
}

.block-heading.is-style-stamp {
  display: table;
  padding: 0.12em 0.3em 0.08em;
  background: var(--accent);
  color: var(--accent-text);
  border: var(--bw) solid var(--border);
  box-shadow: var(--sh) var(--sh) 0 var(--shadow-color);
}

.block-heading.is-style-stamp em {
  color: inherit;
}

/* --- Step 99 parts: hard borders, the offset shadow, mono labels --- */

.badge {
  border: var(--bw) solid var(--border);
  border-radius: 0;
  box-shadow: 3px 3px 0 var(--shadow-color);
  font-family: var(--font-meta);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge-dot {
  border-radius: 0;
}

.tile {
  border: var(--bw) solid var(--border);
  border-radius: 0;
  background: var(--accent);
  color: var(--accent-text);
  font-family: var(--font-meta);
  font-weight: 400;
}

.button .tile {
  border: 0;
  background: transparent;
  color: inherit;
}

.accordion-item {
  border-bottom: var(--bw) solid var(--border);
}

.accordion-item:first-child {
  border-top: var(--bw) solid var(--border);
}

.accordion-title {
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.accordion-title::after {
  color: var(--text);
  font-family: var(--font-meta);
}

}
