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

  .site-header .nav-mobile {
    display: block;
    position: relative;
  }
}
}
@layer site-theme {
:root {
  --accent: #e5b964;
  --accent-text: #08080c;
  --background: #08080c;
  --text: #e8e6ee;
  --text-muted: #9a9aa6;
  --border: #1c1d25;
  --surface: #0d0e14;
  --button-bg: #e5b964;
  --button-text: #08080c;
  --shadow-color: #000000;
  --invert-bg: #13151f;
  --invert-text: #e8e6ee;
  --accent-2: #37235f;
  --accent-2-text: #e8e6ee;
  --accent-3: #fae4b5;
  --accent-3-text: #08080c;
  --success: #4ade80;
  --error: #f87171;
  --status-text: #08080c;
  --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: "Space Grotesk", "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: "JetBrains Mono", "Noto Sans Armenian", "Noto Sans Georgian", "Noto Sans Thai", "Noto Sans Hebrew", "Noto Sans Arabic", "Noto Sans Devanagari", "Noto Sans Bengali", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --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: 1rem;
  --font-size-md: calc(var(--font-size-md-value) * var(--k-font-size-md));
  --font-size-lg-value: 1.25rem;
  --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: 4rem;
  --font-size-2xl: calc(var(--font-size-2xl-value) * var(--k-font-size-2xl));
  --font-size-3xl-value: 5.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: 1rem;
  --radius-button: 160px;
  --measure: 44rem;
  --gap: 2rem;
  --shadow-sm: 0 0 0 1px color-mix(in srgb, var(--text) 4%, transparent);
  --shadow-md: 0 0 30px color-mix(in srgb, var(--accent) 8%, transparent);
  --shadow-lg: 0 0 50px color-mix(in srgb, var(--shadow-color) 80%, transparent);
  --focus: var(--accent);
  --topbar-height: 2.25rem;
  --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: obsidian with a faint violet and gold glow, gold selection --- */

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

body {
  background-color: var(--background);
  background-image:
    radial-gradient(circle at 50% 20%, color-mix(in srgb, var(--accent-2) 22%, transparent) 0, transparent 70%),
    radial-gradient(circle at 85% 60%, color-mix(in srgb, var(--accent) 7%, transparent) 0, transparent 50%);
  background-attachment: fixed;
  font-size: var(--font-size-md);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* Not buttons: this layer is above base.css, so a plain `a` here would beat the base button colours (gold text on
   the gold button). */
a:not(.button) {
  color: var(--accent);
}

.block-rich-text a:not(.button) {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

main {
  padding-block: 0;
}

/* 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: 0;
}

/* --- Header: an info bar, then a sticky glass row --- */

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

/* A header holding a sticky Section has no box of its own (base.css), so the glass goes on the Section. */
.site-header > .block-section-sticky {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--background) 70%, transparent);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

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

/* The info bar: small mono capitals, a gold line with a pulsing dot. */
.block-section.is-style-topbar {
  display: flex;
  align-items: center;
  min-height: var(--topbar-height);
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--text-muted);
  font-family: var(--font-meta);
  font-size: 0.6875rem;
  font-weight: 400;
  line-height: 1.5;
  text-transform: uppercase;
}

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

.is-style-topbar .block-rich-text {
  font-size: inherit;
}

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

.is-style-topbar .badge {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: inherit;
  font-weight: 500;
  letter-spacing: 0;
}

.is-style-topbar .badge-dot {
  background: var(--accent);
}

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

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

/* The main row: the brand, the menu in spaced mono capitals, then the call to action. */
.site-header-inner {
  flex-wrap: nowrap;
  gap: var(--space-6);
  min-height: 5rem;
  padding-block: var(--space-3);
}

.site-header-inner > .block-stack {
  align-items: center;
  gap: var(--space-4);
}

/* The logo tile when there is no logo image: a ring with the serif letter, as the mockup's N. */
.site-logo-tile {
  width: 2.75rem;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  box-shadow: 0 0 15px color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 300;
  transition:
    transform 0.5s,
    border-color 0.5s;
}

.site-header a:hover .site-logo-tile,
.site-logo-tile:hover {
  border-color: var(--accent);
  transform: scale(1.05);
}

.site-logo {
  height: 2.75rem;
}

.site-name {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-tagline {
  margin-block-start: 0.375rem;
  font-family: var(--font-meta);
  font-size: 0.5625rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.site-header-inner > .block-stack .block-stack {
  gap: 0;
}

/* From tablet width the brand keeps its width and the name and tagline stay on one line each. */
@media (min-width: 768px) {
  .site-header-inner > .block-stack {
    flex-shrink: 0;
  }

  .site-header .site-name,
  .site-header .site-tagline {
    text-wrap: nowrap;
  }
}

.site-header nav:not(.language-switcher) {
  display: flex;
  margin-inline: auto;
}

.site-header nav > ul {
  flex-wrap: nowrap;
  gap: var(--space-6);
  font-family: var(--font-meta);
  font-size: 0.6875rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.site-header nav > ul a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.language-switcher {
  font-family: var(--font-meta);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
}

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

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

@media (max-width: 767px) {
  .site-header-inner {
    gap: var(--space-4);
    min-height: 4rem;
  }

  .site-header-inner > .block-stack {
    margin-inline-end: auto;
  }

  .site-header nav:not(.language-switcher) {
    margin-inline: 0;
  }
}

/* The mobile menu (Step 94): a pill button and a glass panel. */
.nav-mobile-toggle {
  padding: var(--space-2) var(--space-4);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-meta);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

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

.nav-mobile .nav-mobile-list {
  min-width: 14rem;
  padding: var(--space-2);
  border-color: color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.nav-mobile .nav-mobile-list a {
  display: block;
  padding: var(--space-3) var(--space-4);
  color: var(--text-muted);
  font-family: var(--font-meta);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 1;
}

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

/* --- Headings: Cormorant Garamond, light --- */

.block-heading,
.post-title,
.blog-title,
.post-card-title,
.block-rich-text h2,
.block-rich-text h3,
.block-rich-text h4 {
  font-weight: 300;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}

h1.block-heading,
h1.post-title,
h1.blog-title {
  font-size: clamp(3rem, 8vw, var(--font-size-3xl));
  line-height: 1.04;
  letter-spacing: -0.02em;
}

h2.block-heading {
  font-size: clamp(1.875rem, 5vw, var(--font-size-xl));
  line-height: 1.1;
}

h3.block-heading {
  font-size: 1.5rem;
  line-height: 1.25;
}

h4.block-heading {
  font-size: 1.25rem;
}

.block-rich-text h2 {
  font-size: var(--font-size-xl);
}

.block-rich-text h3 {
  font-size: 1.5rem;
}

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

/* `*word*` in a heading: italic gold with a slow shimmer (still for visitors who ask for less motion). */
.block-heading em {
  display: inline;
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    color-mix(in srgb, var(--accent) 20%, var(--text)) 50%,
    var(--accent) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (prefers-reduced-motion: no-preference) {
  .block-heading em {
    animation: nocturne-shimmer 8s linear infinite;
  }
}

@keyframes nocturne-shimmer {
  from {
    background-position: -200% 0;
  }

  to {
    background-position: 200% 0;
  }
}

.block-rich-text blockquote {
  padding-inline-start: var(--space-5);
  border-inline-start: 1px solid var(--accent);
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-style: italic;
  font-weight: 300;
  line-height: 1.4;
}

/* --- Sections: hairline-ruled bands --- */

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

.block-section.is-style-surface {
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}

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

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

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

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

.block-columns-col > .block + .block {
  margin-block-start: var(--space-5);
}

.block-section-inner > .block-stack:first-child + .block {
  margin-block-start: var(--space-7);
}

/* A centred column (the console's head, kept to the measure) sits in the middle of its band, not at its start. */
.block-section-inner > .block-stack-column.block-stack-align-center {
  margin-inline: auto;
}

/* The hero: the violet glow sits a little stronger behind it. */
.block-section.is-style-ambient {
  padding-block: var(--space-8) calc(var(--space-8) + var(--space-5));
  overflow: hidden;
  background-image: radial-gradient(
    circle at 20% 30%,
    color-mix(in srgb, var(--accent-2) 22%, transparent) 0,
    transparent 60%
  );
}

.is-style-ambient .block-columns-col > .block + .block {
  margin-block-start: var(--space-6);
}

/* --- Buttons: pills in mono capitals --- */

.button {
  padding: var(--space-4) var(--space-6);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  font-family: var(--font-meta);
  font-size: var(--font-size-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    background-color 0.25s,
    color 0.25s,
    border-color 0.25s,
    box-shadow 0.25s;
}

.button:hover {
  filter: none;
  text-decoration: none;
}

.button-primary {
  border-color: var(--button-bg);
  font-weight: 600;
  box-shadow: 0 0 30px color-mix(in srgb, var(--accent) 25%, transparent);
}

.button-primary:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--button-bg) 80%, var(--accent-3));
}

.button-secondary {
  background: transparent;
  color: var(--accent);
  box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 8%, transparent);
}

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

.button-link {
  padding-inline: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: var(--accent);
  font-size: var(--font-size-xs);
  letter-spacing: 0.05em;
  text-transform: none;
  text-decoration: none;
}

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

.latest-posts-view-all {
  font-family: var(--font-meta);
  font-size: var(--font-size-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* --- Cards: hairline panels --- */

.block-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 65%, transparent);
  box-shadow: none;
}

.block-card-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
}

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

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

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

/* The shared variants, restated (this layer is above the base one): surface, muted, inverted, outlined and dots. */
.block-card.is-style-surface {
  background: var(--surface);
}

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

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

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

.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.5rem 0.5rem;
}

/* Glass: a translucent panel that takes a gold border on hover. */
.block-card.is-style-glass {
  background: color-mix(in srgb, var(--surface) 65%, transparent);
  border-color: color-mix(in srgb, var(--text) 8%, var(--background));
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  transition: border-color 0.3s;
}

.block-card.is-style-glass:hover {
  border-color: color-mix(in srgb, var(--accent) 25%, var(--background));
}

.is-style-glass > .block-card-inner {
  flex: 1;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-6);
}

.is-style-glass .block-heading {
  font-size: 1.5rem;
  line-height: 1.25;
  transition: color 0.3s;
}

.is-style-glass:hover .block-heading {
  color: var(--accent);
}

.is-style-glass .block-rich-text {
  font-size: var(--font-size-xs);
  font-weight: 300;
  line-height: 1.7;
}

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

.is-style-glass > .block-card-inner > .block-stack:first-child {
  align-items: stretch;
}

.is-style-glass .badge {
  padding: 0.125rem 0.5rem;
  border-radius: calc(var(--radius) / 4);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.625rem;
}

/* The hero's framed photo and the matching panels hold their content tight. */
.block-columns .is-style-glass > .block-card-inner > .block-image:only-child {
  margin: 0;
}

.block-image {
  margin: 0;
}

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

.block-image figcaption {
  font-family: var(--font-meta);
  font-size: var(--font-size-xs);
}

/*
 * Silver print and stage photo: a 3:4 frame, the picture darkened and high in contrast, a fade from the bottom and
 * the caption in the corner. A silver print is monochrome (as the mockup's archive prints); a stage
 * photo keeps its colour (the mockup's hero photo).
 */
.block-image.is-style-plate,
.block-image.is-style-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.block-image.is-style-plate::after,
.block-image.is-style-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--background), transparent 55%);
  pointer-events: none;
}

.block-image.is-style-plate img,
.block-image.is-style-stage img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  filter: contrast(1.25) brightness(0.75);
  transition: transform 0.7s;
}

.block-image.is-style-plate img {
  filter: grayscale(1) contrast(1.4) brightness(0.8);
}

.block-image.is-style-plate:hover img,
.block-image.is-style-stage:hover img {
  transform: scale(1.05);
}

.block-image.is-style-plate figcaption,
.block-image.is-style-stage figcaption {
  position: absolute;
  z-index: 1;
  inset-block-end: var(--space-4);
  inset-inline: var(--space-4);
  margin: 0;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

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

/* --- Own variants --- */

/* Eyebrow: a small gold mono label in spaced capitals. */
.block-rich-text.is-style-eyebrow {
  color: var(--accent);
  font-family: var(--font-meta);
  font-size: var(--font-size-xs);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

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

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

/* Lead: the larger introduction under a heading. */
.block-rich-text.is-style-lead {
  color: var(--text-muted);
  font-size: var(--font-size-lg);
  font-weight: 300;
  line-height: 1.6;
}

.block-card .block-rich-text.is-style-lead p,
.block-rich-text.is-style-lead p {
  font-size: inherit;
  line-height: inherit;
}

.block-rich-text.is-style-lead {
  max-width: 36rem;
}

/* Mono line: a small note, in the muted colour. */
.block-rich-text.is-style-meta {
  color: var(--text-muted);
  font-family: var(--font-meta);
  font-size: var(--font-size-xs);
  line-height: 1.6;
}

.block-card .block-rich-text.is-style-meta {
  font-size: var(--font-size-xs);
}

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

/* Serif figure: a light serif number or phrase. */
.block-rich-text.is-style-figure {
  color: var(--text);
}

.block-rich-text.is-style-figure p {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1.1;
}

.block-card .block-rich-text.is-style-figure p {
  font-size: 2.25rem;
}

.block-card .block-rich-text.is-style-figure {
  font-size: inherit;
  color: var(--text);
}

/* Figures row: three figures above a hairline. */
.block-grid.is-style-stats,
.block-section .block-grid.is-style-stats {
  gap: var(--space-5);
  max-width: 32rem;
  padding-block-start: var(--space-6);
  border-top: 1px solid var(--border);
}

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

.is-style-stats .block-rich-text.is-style-figure p {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
}

.is-style-stats .block-rich-text.is-style-meta {
  font-size: 0.625rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Gold bullet list: mono lines with a gold dot. */
.block-rich-text.is-style-ledger ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-meta);
  font-size: var(--font-size-xs);
  line-height: 1.6;
}

.is-style-ledger li {
  display: flex;
  gap: var(--space-3);
  margin: 0;
  padding-block: var(--space-2);
  color: var(--text);
}

.is-style-ledger li::before {
  content: '\2022';
  color: var(--accent);
}

.is-style-ledger li p {
  margin: 0;
}

/* Spec row: a label and its value on one line under a hairline. */
.block-stack.is-style-spec {
  gap: var(--space-1) var(--space-4);
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--border);
}

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

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

/* Panel footer: sits at the bottom of its panel under a hairline. */
.block-stack.is-style-foot {
  width: 100%;
  margin-block-start: auto;
  padding-block-start: var(--space-5);
  border-top: 1px solid var(--border);
  font-family: var(--font-meta);
  font-size: var(--font-size-xs);
}

/* Console: the large panel around the record, with a gold edge and a deep shadow. */
.block-card.is-style-console {
  border-color: color-mix(in srgb, var(--accent) 22%, var(--background));
  border-radius: calc(var(--radius) * 1.5);
  background: color-mix(in srgb, var(--surface) 65%, transparent);
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

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

@media (min-width: 640px) {
  .is-style-console > .block-card-inner {
    padding: var(--space-8) var(--space-7);
  }
}

.is-style-console .block-columns {
  align-items: center;
  gap: var(--space-7);
}

.is-style-console .block-heading {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  line-height: 1.15;
}

.is-style-console .block-columns-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.is-style-console .block-columns-col > .block {
  margin-block-start: 0;
}

.is-style-console .block-columns-col:first-child {
  align-items: center;
}

/* Record label: the disc itself, a dark vinyl with grooves, a gold ring and a label, turning slowly. */
.block-rich-text.is-style-disc {
  display: grid;
  place-items: center;
  width: min(100%, 18rem);
  aspect-ratio: 1;
  padding: 0;
  border: 4px solid var(--invert-bg);
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--background) 0, var(--background) 17%, transparent 18%),
    radial-gradient(circle, transparent 0, transparent 18%, color-mix(in srgb, var(--accent) 40%, transparent) 18%, transparent 20%),
    repeating-radial-gradient(circle, var(--surface) 0, var(--surface) 3px, var(--background) 4px, var(--background) 6px);
  box-shadow: var(--shadow-lg);
  color: var(--accent);
  font-family: var(--font-meta);
  text-align: center;
}

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

.block-rich-text.is-style-disc p {
  max-width: 5rem;
  font-size: 0.5625rem;
  letter-spacing: 0.15em;
  line-height: 1.5;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: no-preference) {
  .block-rich-text.is-style-disc {
    animation: nocturne-spin 12s linear infinite;
  }

  .block-rich-text.is-style-disc p {
    animation: nocturne-spin 12s linear infinite reverse;
  }
}

@keyframes nocturne-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Readout: the distortion figure beside an equalizer drawn in CSS (six gold bars that breathe). */
.block-card.is-style-readout {
  border-radius: calc(var(--radius) * 0.75);
}

.is-style-readout > .block-card-inner {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-4);
}

.is-style-readout > .block-card-inner::before {
  content: '';
  flex: none;
  width: 3rem;
  height: 2rem;
  background:
    linear-gradient(var(--accent), var(--accent)) 0 100% / 0.25rem 0.25rem no-repeat,
    linear-gradient(var(--accent), var(--accent)) 0.5rem 100% / 0.25rem 1rem no-repeat,
    linear-gradient(var(--accent), var(--accent)) 1rem 100% / 0.25rem 0.5rem no-repeat,
    linear-gradient(var(--accent), var(--accent)) 1.5rem 100% / 0.25rem 1.5rem no-repeat,
    linear-gradient(var(--accent), var(--accent)) 2rem 100% / 0.25rem 0.75rem no-repeat,
    linear-gradient(var(--accent), var(--accent)) 2.5rem 100% / 0.25rem 1.75rem no-repeat;
  border-radius: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  .is-style-readout > .block-card-inner::before {
    animation: nocturne-eq 1.2s ease-in-out infinite;
  }
}

@keyframes nocturne-eq {
  50% {
    background-size:
      0.25rem 1.5rem,
      0.25rem 0.5rem,
      0.25rem 1.75rem,
      0.25rem 0.25rem,
      0.25rem 1.25rem,
      0.25rem 0.5rem;
  }
}

.is-style-readout .block-stack {
  align-items: flex-end;
  gap: var(--space-1);
  text-align: end;
}

.is-style-readout .block-rich-text strong {
  color: var(--accent);
}

/* Track row: one record of the list; the first is the loaded one. */
.block-stack.is-style-track,
.block-stack.is-style-track-on {
  gap: var(--space-1) var(--space-4);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 0.75);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  font-family: var(--font-meta);
  transition: border-color 0.2s;
}

.block-stack.is-style-track:hover,
.block-stack.is-style-track-on:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--background));
}

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

.is-style-track .block-rich-text p,
.is-style-track-on .block-rich-text p {
  margin: 0;
}

.is-style-track .block-rich-text:first-child,
.is-style-track-on .block-rich-text:first-child {
  color: var(--text);
}

.is-style-track .block-rich-text:last-child,
.is-style-track-on .block-rich-text:last-child {
  color: var(--text-muted);
  font-size: 0.6875rem;
  text-transform: uppercase;
}

.block-stack.is-style-track-on {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--background));
}

.is-style-track-on .block-rich-text:last-child {
  color: var(--accent);
}

/* Membership key: a gunmetal card with a gold edge and gloss, in a credit-card shape. */
.block-card.is-style-keycard {
  max-width: 26rem;
  margin-inline: auto;
  aspect-ratio: 1.586;
  border-color: color-mix(in srgb, var(--accent) 40%, var(--background));
  border-radius: calc(var(--radius) * 1.25);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--text) 10%, transparent) 0, transparent 45%),
    linear-gradient(145deg, var(--invert-bg), color-mix(in srgb, var(--accent-2) 55%, var(--background)));
  box-shadow: var(--shadow-lg);
  color: var(--invert-text);
}

.is-style-keycard > .block-card-inner {
  justify-content: space-between;
  gap: var(--space-4);
  height: 100%;
  padding: var(--space-6);
}

.is-style-keycard > .block-card-inner::before {
  content: '';
  position: absolute;
  inset-block-start: var(--space-6);
  inset-inline-end: var(--space-6);
  width: 2.5rem;
  height: 1.75rem;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  border-radius: 0.375rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 30%, transparent), transparent);
}

.block-card.is-style-keycard {
  position: relative;
}

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

.is-style-keycard .block-rich-text.is-style-meta {
  color: color-mix(in srgb, var(--invert-text) 60%, var(--invert-bg));
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.is-style-keycard .block-rich-text.is-style-figure p {
  font-family: var(--font-meta);
  font-size: var(--font-size-md);
  letter-spacing: 0.05em;
  color: var(--accent);
}

/* --- Badges: pills or square tags in mono capitals --- */

.badge {
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--accent);
  font-size: var(--font-size-xs);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tile {
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 50%;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 300;
}

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

.accordion-item {
  border-color: var(--border);
}

.accordion-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 300;
}

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

/* --- 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 {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 65%, transparent);
  transition: border-color 0.3s;
}

.post-card:hover {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--background));
}

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

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

.post-card-tag,
.post-tag {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) / 4);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-meta);
  font-size: 0.625rem;
  text-transform: uppercase;
}

.pagination a {
  border-radius: 999px;
  font-family: var(--font-meta);
  font-size: var(--font-size-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

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

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

/* --- Forms: mono labels, rounded dark fields, gold focus --- */

.form-field label {
  color: var(--text-muted);
  font-family: var(--font-meta);
  font-size: var(--font-size-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.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);
  border-color: var(--border);
  border-radius: calc(var(--radius) * 0.75);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-meta);
  font-size: var(--font-size-xs);
}

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

.block-form .button-primary,
.form-submit {
  width: 100%;
  justify-content: center;
  padding-block: var(--space-4);
}

.form-success {
  border-color: var(--success);
  border-radius: calc(var(--radius) * 0.75);
  background: color-mix(in srgb, var(--success) 15%, var(--surface));
  color: var(--success);
  font-family: var(--font-meta);
  font-size: var(--font-size-xs);
}

.form-error {
  border-color: var(--error);
  border-radius: calc(var(--radius) * 0.75);
  background: color-mix(in srgb, var(--error) 15%, var(--surface));
  color: var(--error);
  font-family: var(--font-meta);
  font-size: var(--font-size-xs);
}

/* --- Footer: hairline, mono --- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--background);
  color: var(--text-muted);
  padding-block: var(--space-7);
  font-family: var(--font-meta);
  font-size: var(--font-size-xs);
}

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

.site-footer > .wrap:first-child {
  padding-block-end: var(--space-6);
  border-bottom: 1px solid var(--border);
}

.site-footer > .wrap + .wrap {
  padding-block-start: var(--space-6);
}

.site-footer > .wrap:first-child .block-stack {
  gap: var(--space-4);
}

.site-footer .site-logo-tile {
  width: 2rem;
  font-size: 1.125rem;
}

.site-footer .site-name {
  font-size: var(--font-size-lg);
  letter-spacing: 0.2em;
  color: var(--text);
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

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

.site-footer-nav ul {
  gap: var(--space-2) var(--space-6);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer-text {
  font-size: 0.625rem;
  text-transform: uppercase;
}

}
