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

  .site-header .nav-mobile {
    display: block;
    position: relative;
  }
}
}
@layer site-theme {
:root {
  --accent: #6d2e0b;
  --accent-text: #fdfbf7;
  --background: #fdfbf7;
  --text: #1c1917;
  --text-muted: #57534e;
  --border: #ded4c3;
  --surface: #f7f4ed;
  --button-bg: #141210;
  --button-text: #f7f4ed;
  --shadow-color: #1c1917;
  --invert-bg: #0c0a09;
  --invert-text: #ded4c3;
  --accent-2: #ede7dc;
  --accent-2-text: #26211a;
  --accent-3: #1c1917;
  --accent-3-text: #f7f4ed;
  --success: #3f6212;
  --error: #b91c1c;
  --status-text: #fdfbf7;
  --font-heading: "Cormorant Garamond", "Noto Serif", "Noto Serif Armenian", "Noto Serif Georgian", "Noto Serif Thai", "Noto Serif Hebrew", "Noto Naskh Arabic", "Noto Serif Devanagari", "Noto Serif Bengali", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --font-body: "Plus Jakarta Sans", "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-size-xs-value: 0.75rem;
  --font-size-xs: calc(var(--font-size-xs-value) * var(--k-font-size-xs));
  --font-size-sm-value: 0.875rem;
  --font-size-sm: calc(var(--font-size-sm-value) * var(--k-font-size-sm));
  --font-size-md-value: 1.0625rem;
  --font-size-md: calc(var(--font-size-md-value) * var(--k-font-size-md));
  --font-size-lg-value: 1.625rem;
  --font-size-lg: calc(var(--font-size-lg-value) * var(--k-font-size-lg));
  --font-size-xl-value: 3rem;
  --font-size-xl: calc(var(--font-size-xl-value) * var(--k-font-size-xl));
  --font-size-2xl-value: 3.5rem;
  --font-size-2xl: calc(var(--font-size-2xl-value) * var(--k-font-size-2xl));
  --font-size-3xl-value: 4.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: 6rem;
  --space-8: calc(var(--space-8-value) * var(--k-space-8));
  --radius: 0.125rem;
  --radius-button: 0px;
  --measure: 44rem;
  --gap: 1.5rem;
  --shadow-sm: 0 1px 2px 0 color-mix(in srgb, var(--shadow-color) 8%, transparent);
  --shadow-md: 0 12px 36px -10px color-mix(in srgb, var(--shadow-color) 10%, transparent), 0 2px 6px -1px color-mix(in srgb, var(--shadow-color) 4%, transparent);
  --shadow-lg: 0 20px 40px -15px color-mix(in srgb, var(--shadow-color) 45%, transparent);
  --focus: var(--accent);
  --font-meta: var(--font-body);
  --topbar-height: 2.75rem;
  --paper: var(--background);
  --paper-text: var(--text);
  --paper-muted: var(--text-muted);
  --paper-border: var(--border);
  --paper-surface: var(--surface);
  --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-lg: 0.95;
    --k-font-size-xl: 0.9;
    --k-font-size-2xl: 0.85;
    --k-font-size-3xl: 0.85;
    --k-space-5: 0.9;
    --k-space-6: 0.85;
    --k-space-7: 0.85;
    --k-space-8: 0.8;
  }
}
@media (max-width: 639px) {
  :root {
    --k-font-size-lg: 0.9;
    --k-font-size-xl: 0.85;
    --k-font-size-2xl: 0.78;
    --k-font-size-3xl: 0.7;
    --k-space-4: 0.9;
    --k-space-5: 0.8;
    --k-space-6: 0.75;
    --k-space-7: 0.7;
    --k-space-8: 0.65;
  }
}

/* --- Page: a faint dotted grain on the background --- */

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

body {
  background-image: radial-gradient(color-mix(in srgb, var(--text) 5%, transparent) 1px, transparent 1px);
  background-size: 24px 24px;
  font-size: var(--font-size-md);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

main {
  padding-block: 0 var(--space-8);
}

/* A page made of Sections: bands meet edge to edge, the last one meets the footer. */
main > .block-section + .block-section {
  margin-block-start: 0;
}

main > .block-section:last-child {
  margin-block-end: calc(-1 * var(--space-8));
}

/* --- Header: sticky, frosted, tall; tracked uppercase menu --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--background) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

/* The default header (Step 103): the main row is a sticky Section, so the info bar above it scrolls away and the row
   stays, frosted (base CSS gives the header no box of its own then; the hairline is the band's own). */
.site-header > .block-section-sticky {
  background: color-mix(in srgb, var(--background) 90%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* A Section holding a header or footer bar takes no band padding (the bar has its own, as in base CSS). */
.block-section:has(> .block-section-inner > .wrap) {
  padding-block: 0;
}

/* The brand: the name over the tagline (a tracked uppercase line in the mockup), taking the free space before the
   menu like the name alone does. */
.site-header-inner > .block-stack {
  gap: var(--space-1);
  margin-inline-end: auto;
}

.site-tagline {
  color: var(--text-muted);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

/* The letter tile when there is no logo image: a dark square with the serif letters, as in the mockup. */
.site-logo-tile {
  border-radius: var(--radius);
  background: var(--invert-bg);
  color: var(--invert-text);
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

/* The info bar: a dark strip of small text, its colours re-pointed like an inverted band. */
.block-section.is-style-topbar {
  --background: var(--invert-bg);
  --text: var(--invert-text);
  --text-muted: color-mix(in srgb, var(--invert-text) 72%, var(--invert-bg));
  --border: color-mix(in srgb, var(--invert-text) 14%, var(--invert-bg));
  --surface: color-mix(in srgb, var(--invert-text) 12%, var(--invert-bg));
  display: flex;
  align-items: center;
  min-height: var(--topbar-height);
  padding-block: var(--space-1);
  border-bottom: 1px solid var(--border);
  background: var(--invert-bg);
  color: var(--text-muted);
  font-size: var(--font-size-xs);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.is-style-topbar .block-stack {
  gap: var(--space-1) var(--space-4);
}

.is-style-topbar .block-rich-text p {
  margin: 0;
}

.is-style-topbar .block-rich-text a {
  color: var(--text);
  text-decoration-color: color-mix(in srgb, var(--invert-text) 40%, transparent);
  text-underline-offset: 0.3em;
}

.is-style-topbar .block-rich-text a:hover {
  color: var(--accent-2);
}

.is-style-topbar .badge {
  padding: 0.15em 0.6em;
  border-color: var(--surface);
  background: var(--surface);
  color: var(--text);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

@media (max-width: 767px) {
  .block-section.is-style-topbar {
    padding-block: var(--space-2);
    text-align: center;
  }

  .is-style-topbar .block-stack {
    justify-content: center;
  }
}

/* The main row: name on the left, the menu centred, the language switcher and the call to action on the right. */
.site-header-inner > nav:not(.language-switcher) {
  margin-inline-end: auto;
}

.site-header-inner > .block-button {
  flex-shrink: 0;
}

.site-header-inner .button {
  padding: var(--space-3) var(--space-5);
}

.site-header-inner {
  flex-wrap: nowrap;
  gap: var(--space-6);
  min-height: 6rem;
  padding-block: var(--space-3);
}

.site-logo {
  height: 2.75rem;
}

.site-name {
  font-size: var(--font-size-lg);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
}

.site-header nav > ul {
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-header nav > ul a {
  color: var(--text);
  transition: color 0.15s;
}

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

.language-switcher ul {
  gap: var(--space-3);
  letter-spacing: 0.08em;
}

.language-switcher a[aria-current] {
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 767px) {
  .site-header-inner {
    flex-wrap: wrap;
    gap: var(--space-3) var(--space-5);
    min-height: 0;
    padding-block: var(--space-4);
  }
}

/* One row from 768px, as in the mockup: it never wraps (a long menu wrapped inside its own box and pushed the row
   wider than the page). It makes room step by step instead: no call to action below 1200px (the info bar and the
   menu have the link), then the menu button below 1100px (the theme's `menuCollapseWidth`). Six short menu items
   fit the full row at 1200px. */
@media (min-width: 768px) {
  .site-header-inner .site-name,
  .site-header-inner .site-tagline,
  .site-header nav > ul.nav-list {
    text-wrap: nowrap;
  }

  .site-header nav > ul.nav-list {
    flex-wrap: nowrap;
    gap: var(--space-5);
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .site-header-inner > .block-button {
    display: none;
  }
}

/* The mobile menu (Step 94): a dark button with a tracked uppercase label that turns walnut on hover, and a
   bone panel of tracked uppercase links divided by hairlines. */
.nav-mobile-toggle {
  padding: var(--space-2) var(--space-4);
  background: var(--button-bg);
  color: var(--button-text);
  border-color: var(--button-bg);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background-color 0.15s, border-color 0.15s;
}

.nav-mobile-toggle:hover,
.nav-mobile[open] > .nav-mobile-toggle {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

.nav-mobile .nav-mobile-list {
  min-width: 14rem;
  padding: var(--space-2) var(--space-4);
  background: var(--background);
  border-color: var(--border);
  box-shadow: var(--shadow-lg);
}

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

.nav-mobile .nav-mobile-list a {
  padding: var(--space-3) 0;
  color: var(--text);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 1;
}

.nav-mobile .nav-mobile-list a:hover,
.nav-mobile .nav-mobile-list a[aria-current='page'] {
  color: var(--accent);
  text-decoration: none;
}

/* --- Headings: light, tight serif --- */

.block-heading,
.post-title,
.blog-title,
.post-card-title,
.block-rich-text h2,
.block-rich-text h3,
.block-rich-text h4 {
  font-weight: 500;
  letter-spacing: -0.02em;
}

h1.block-heading,
h1.post-title,
h1.blog-title {
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 400;
}

h2.block-heading {
  line-height: 1.12;
}

.block-rich-text h2 {
  font-size: var(--font-size-lg);
  line-height: 1.15;
}

.block-rich-text h3 {
  font-size: calc(var(--font-size-lg) * 0.82);
  line-height: 1.2;
}

.block-rich-text h4 {
  font-size: var(--font-size-md);
}

.block-rich-text p,
.block-rich-text li {
  line-height: 1.75;
}

.block-rich-text em {
  font-family: var(--font-heading);
  font-size: 1.12em;
}

/* A pull quote: large italic serif with a walnut rule. */
.block-rich-text blockquote {
  padding-inline-start: var(--space-5);
  border-inline-start: 2px solid var(--accent);
  color: var(--text);
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-style: italic;
  line-height: 1.35;
}

/* --- Sections: full-bleed bands with a hairline between them --- */

.block-section {
  padding-block: var(--space-8);
  border-bottom: 1px solid var(--border);
}

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

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

.block-section[data-tone='dark'] {
  border-bottom-color: transparent;
}

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

/* Body copy in a band is the muted colour, as in the mockup; an introduction keeps its distance from the grid or
   columns below it. */
.block-section .block-rich-text {
  color: var(--text-muted);
}

.block-section-inner > .block + .block-grid,
.block-section-inner > .block + .block-columns {
  margin-block-start: var(--space-7);
}

.block-section .block-grid {
  gap: var(--space-6);
}

.block-section .block-columns {
  gap: var(--space-6) var(--space-7);
}

.block-rich-text li::marker {
  color: var(--accent);
}

.block-section.is-style-inverted .block-rich-text li::marker {
  color: var(--accent-2);
}

/* --- Buttons: square, small, tracked uppercase --- */

.button {
  font-family: var(--font-body);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: var(--space-4) var(--space-6);
  transition:
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}

.button:hover {
  filter: none;
}

.button-primary {
  box-shadow: var(--shadow-sm);
}

.button-primary:hover {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: var(--shadow-md);
}

.button-secondary {
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--text-muted) 55%, var(--border));
}

.button-secondary:hover {
  background: color-mix(in srgb, var(--border) 65%, transparent);
}

.button-link {
  padding-inline: 0;
  letter-spacing: 0.14em;
}

.latest-posts-view-all {
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* --- Cards: bordered panels with the soft wood-card shadow --- */

.block-card {
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.block-card-inner {
  padding: var(--space-6);
}

/* On a surface band a card takes the page colour, so it still reads as a panel. */
:where(.block-section.is-style-surface) .block-card {
  background: var(--background);
}

/* Inside a card: bold serif titles, smaller copy, tighter rhythm. */
.block-card .block-heading {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.block-card .block-rich-text {
  font-size: var(--font-size-sm);
}

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

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

.block-card .block-rich-text p + p {
  margin-block-start: var(--space-2);
}

.block-image img {
  display: block;
  border-radius: var(--radius);
}

.block-image figcaption {
  font-size: var(--font-size-xs);
  letter-spacing: 0.04em;
}

.block-divider {
  border-top-color: var(--border);
}

/* --- Archives and posts --- */

.blog-header {
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border);
}

.blog-index,
.post-article {
  padding-block: var(--space-7) 0;
}

.post-article > .post-header,
.post-article > .post-body {
  max-width: var(--measure);
  margin-inline: auto;
}

.post-card {
  background: var(--background);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.2s;
}

.post-card:hover {
  box-shadow: var(--shadow-lg);
}

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

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

.post-card-tag,
.post-tag {
  border-radius: 999px;
  background: var(--surface);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pagination a {
  border-radius: var(--radius-button);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.post-fields {
  padding-block: var(--space-4);
  border-block: 1px solid var(--border);
}

/* --- Forms: light fields, brown focus --- */

.form-field label {
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.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 {
  background: var(--background);
  border-color: var(--border);
  padding: var(--space-3) var(--space-4);
}

.form-field input:focus-visible,
.form-field textarea:focus-visible,
.form-field select:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.form-success {
  background: var(--success);
  border-color: var(--success);
  color: var(--status-text);
}

.form-error {
  background: var(--error);
  border-color: var(--error);
  color: var(--status-text);
}

/* --- Footer: dark band --- */

.site-footer {
  background: var(--invert-bg);
  color: var(--invert-text);
  border-top: 0;
  padding-block: var(--space-7);
  font-size: var(--font-size-sm);
}

.site-footer .wrap {
  align-items: center;
  gap: var(--space-4) var(--space-6);
}

.site-footer a {
  color: var(--invert-text);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.15s;
}

.site-footer a:hover {
  opacity: 1;
  text-decoration: underline;
}

.site-footer-nav ul {
  gap: var(--space-2) var(--space-5);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* The four-column footer (Walnut's layout): the colours inside are re-pointed like an inverted band, so text,
   badges and lines read on the dark; the main band sits above the footer line with a hairline between. */
.site-footer:has(> .block-section) {
  --background: var(--invert-bg);
  --text: var(--invert-text);
  --text-muted: color-mix(in srgb, var(--invert-text) 70%, var(--invert-bg));
  --border: color-mix(in srgb, var(--invert-text) 14%, var(--invert-bg));
  --surface: color-mix(in srgb, var(--invert-text) 10%, var(--invert-bg));
  padding-block-start: 0;
}

.site-footer > .block-section {
  padding-block: var(--space-8) var(--space-7);
  margin-block-end: var(--space-6);
  border-bottom: 1px solid var(--border);
}

.site-footer .block-columns {
  gap: var(--space-6);
}

.site-footer .block-columns-col > .block + .block,
.site-footer .block-heading + nav {
  margin-block-start: var(--space-4);
}

.site-footer .block-heading {
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-footer .block-rich-text {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  line-height: 1.7;
}

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

.site-footer .site-name {
  display: inline-block;
  color: var(--text);
  font-size: var(--font-size-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
  opacity: 1;
}

.site-footer .block-columns nav ul {
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.site-footer .badge {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.site-footer:has(> .block-section) .site-footer-text {
  color: var(--text-muted);
  font-size: var(--font-size-xs);
}

/* --- Block variants (Step 96): the shared ones in sand, charcoal and the wood grain --- */

.block-card.is-style-muted,
.block-section.is-style-muted {
  background: var(--accent-2);
  color: var(--accent-2-text);
}

.block-card.is-style-muted {
  box-shadow: none;
}

.block-card.is-style-inverted {
  background: var(--invert-bg);
  box-shadow: var(--shadow-lg);
}

.block-section.is-style-inverted {
  border-bottom-color: transparent;
}

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

.block-card.is-style-dots,
.block-section.is-style-dots {
  background-image: radial-gradient(color-mix(in srgb, var(--text) 14%, transparent) 1px, transparent 1px);
  background-size: 0.375rem 0.375rem;
}

/* `*word*` in a heading: the serif's italic in walnut (the text colour on a dark band). */
.block-heading em {
  font-style: italic;
  color: var(--accent);
}

.block-section[data-tone='dark'] .block-heading em,
.is-style-inverted .block-heading em {
  color: inherit;
}

/* Own variants. Eyebrow: a small tracked label in walnut above a heading (a light tan on dark bands). */
.block-rich-text.is-style-eyebrow {
  color: var(--accent);
  font-size: var(--font-size-xs);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.block-rich-text.is-style-eyebrow p {
  margin: 0;
}

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

/* In a Stack the gap already spaces it. */
.block-stack > .block-rich-text.is-style-eyebrow + .block {
  margin-block-start: 0;
}

.block-card .block-rich-text.is-style-eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.is-style-inverted .block-rich-text.is-style-eyebrow,
.block-section[data-tone='dark'] .block-rich-text.is-style-eyebrow,
.site-footer .block-rich-text.is-style-eyebrow {
  color: color-mix(in srgb, var(--accent) 25%, var(--invert-text));
}

/* Key figure: the first paragraph large in the serif, the next a tracked caption. */
.block-rich-text.is-style-stat p {
  margin: 0;
}

.block-rich-text.is-style-stat p:first-child {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: 600;
  line-height: 1.2;
}

.block-rich-text.is-style-stat p + p {
  margin-block-start: var(--space-1);
  font-size: var(--font-size-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* A row of key figures under a hairline. */
.block-stack.is-style-stats {
  gap: var(--space-5) var(--space-7);
  padding-block-start: var(--space-6);
  border-top: 1px solid var(--border);
}

/* Columns aligned to their middle or bottom (a hero beside its picture, a heading beside its introduction). */
.block-columns.is-style-middle {
  align-items: center;
}

.block-columns.is-style-bottom {
  align-items: end;
}

.block-rich-text.is-style-lead p {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  line-height: 1.4;
}

.block-card.is-style-ticket {
  border: 1px dashed color-mix(in srgb, var(--text-muted) 60%, var(--border));
  box-shadow: none;
  outline: 1px solid var(--border);
  outline-offset: 0.375rem;
}

/* Panel: a flat bordered card whose border darkens on hover (services, materials, practical details). */
.block-card.is-style-panel {
  background: var(--surface);
  box-shadow: none;
  transition: border-color 0.2s;
}

:where(.block-section.is-style-surface) .block-card.is-style-panel {
  background: var(--background);
}

.block-card.is-style-panel:hover {
  border-color: var(--text);
}

.block-card.is-style-panel > .block-card-inner {
  padding: var(--space-6);
}

/* Numbered step: no frame, a dark square tile with the number in the serif. */
.block-card.is-style-step {
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.block-card.is-style-step > .tile {
  width: 3rem;
  height: 3rem;
  margin: 0 0 var(--space-4);
  border-color: var(--button-bg);
  background: var(--button-bg);
  color: var(--button-text);
  font-style: normal;
  font-weight: 700;
  font-size: 1.25rem;
}

.block-card.is-style-step > .block-card-inner {
  padding: 0;
}

/* Quote panel: a tall charcoal panel shading into walnut, its text at the bottom (where a photo would be). The
   walnut tone is the background colour (Step 104), so a card overlay fading from the bottom (the hero pattern's,
   which replaces the gradient below) shades it the same way, and a background photo covers it. */
.block-card.is-style-quote {
  --text: var(--accent-3-text);
  --text-muted: color-mix(in srgb, var(--accent-3-text) 72%, var(--accent-3));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 28rem;
  border-color: var(--accent-3);
  background: color-mix(in srgb, var(--accent) 45%, var(--accent-3));
  background-image: linear-gradient(to top, var(--accent-3) 35%, color-mix(in srgb, var(--accent) 45%, var(--accent-3)));
  color: var(--text);
  box-shadow: var(--shadow-md);
}

.block-card.is-style-quote > .block-card-inner {
  padding: var(--space-6);
}

.block-card.is-style-quote .block-rich-text.is-style-eyebrow {
  color: var(--text-muted);
}

.block-card.is-style-quote .block-rich-text.is-style-lead {
  color: var(--text);
}

/* Floating note: a small card that overlaps the block above it (a certificate over the hero's picture). */
.block-card.is-style-float {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  max-width: 20rem;
  padding: var(--space-4);
  margin-block-start: calc(-1 * var(--space-6));
  margin-inline-start: calc(-1 * var(--space-5));
  background: var(--background);
  box-shadow: var(--shadow-lg);
}

.block-card.is-style-float > .tile {
  margin: 0;
}

.block-card.is-style-float > .block-card-inner {
  padding: 0;
}

.block-card.is-style-float .block-heading {
  font-family: var(--font-body);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0;
}

.block-card.is-style-float > .block-card-inner > .block + .block {
  margin-block-start: var(--space-1);
}

.block-card.is-style-float .block-rich-text {
  font-size: var(--font-size-xs);
  line-height: 1.5;
}

@media (max-width: 639px) {
  .block-card.is-style-quote {
    min-height: 20rem;
  }

  .block-card.is-style-float {
    margin-inline-start: var(--space-4);
  }
}

/* Paper: a light card that stays light on a dark band (the contact form), with the page's own colours. */
.block-card.is-style-paper {
  --background: var(--paper);
  --text: var(--paper-text);
  --text-muted: var(--paper-muted);
  --border: var(--paper-border);
  --surface: var(--paper-surface);
  border-color: var(--paper);
  background: var(--paper);
  color: var(--paper-text);
  box-shadow: var(--shadow-lg);
}

.block-card.is-style-paper > .block-card-inner {
  padding: var(--space-7) var(--space-6);
}

.block-card.is-style-paper .form-submit {
  width: 100%;
}

/* --- Step 99 parts: tracked uppercase labels, square tiles, serif titles --- */

.badge {
  border-color: var(--accent-2);
  background: var(--accent-2);
  color: var(--accent-2-text);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: var(--font-size-xs);
  font-weight: 600;
}

/* The badge's dot pulses softly, as in the mockup (not for visitors who ask for less motion). */
.badge-dot {
  background: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
  .badge-dot {
    animation: walnut-pulse 2s ease-in-out infinite;
  }
}

@keyframes walnut-pulse {
  50% {
    opacity: 0.35;
  }
}

.tile {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
  font-size: var(--font-size-lg);
}

.button .tile {
  border: 0;
  background: transparent;
  color: inherit;
  font-style: normal;
}

.accordion-title {
  font-size: var(--font-size-lg);
  font-weight: 500;
}

.accordion-title::after {
  color: var(--accent);
}

}
