@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 {
  --accent: #8a3b2b;
  --background: #fdfbf7;
  --text: #241f18;
  --text-muted: #6b6153;
  --border: #e6ddcc;
  --surface: #f4eee1;
  --button-text: #fdfbf7;
  --accent-text: #fdfbf7;
  --shadow-color: #241f18;
  --success: #23633b;
  --error: #a82a22;
  --status-text: #fdfbf7;
  --font-heading: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-size-xs-value: 0.8125rem;
  --font-size-xs: calc(var(--font-size-xs-value) * var(--k-font-size-xs));
  --font-size-sm-value: 0.9375rem;
  --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.25rem;
  --font-size-lg: calc(var(--font-size-lg-value) * var(--k-font-size-lg));
  --font-size-xl-value: 1.5rem;
  --font-size-xl: calc(var(--font-size-xl-value) * var(--k-font-size-xl));
  --font-size-2xl-value: 2rem;
  --font-size-2xl: calc(var(--font-size-2xl-value) * var(--k-font-size-2xl));
  --font-size-3xl-value: 2.75rem;
  --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: 4rem;
  --space-8: calc(var(--space-8-value) * var(--k-space-8));
  --radius: 0rem;
  --radius-button: 0px;
  --measure: 46rem;
  --gap: 1.5rem;
  --shadow-sm: 0 1px 2px 0 color-mix(in srgb, var(--shadow-color) 8%, transparent);
  --shadow-md: 0 4px 8px -2px color-mix(in srgb, var(--shadow-color) 12%, transparent), 0 2px 4px -2px color-mix(in srgb, var(--shadow-color) 8%, transparent);
  --shadow-lg: 0 12px 24px -6px color-mix(in srgb, var(--shadow-color) 18%, transparent), 0 4px 8px -4px color-mix(in srgb, var(--shadow-color) 10%, transparent);
  --button-bg: var(--accent);
  --invert-bg: var(--text);
  --invert-text: var(--background);
  --focus: var(--accent);
  --accent-2: var(--accent);
  --accent-2-text: var(--accent-text);
  --accent-3: var(--accent);
  --accent-3-text: var(--accent-text);
  --font-meta: var(--font-body);
  --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;
  }
}

/* Left-aligned, stacked header instead of the default's single row with the
   menu pushed to the right. */
.site-header-inner {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding-block: 1.5rem;
}

.site-name {
  margin-inline-end: 0;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.site-header nav > ul {
  padding-inline-start: 0;
}

/* The mobile menu (Step 94): the menu sits on the left under the name, so the panel opens from the button's start;
   square, with the theme's accent rule on top. */
.nav-mobile .nav-mobile-list {
  inset-inline-start: 0;
  inset-inline-end: auto;
  border-radius: 0;
  border-top: 3px solid var(--accent);
  box-shadow: var(--shadow-sm);
}

/* The accent drives the primary button here, not just links. */
.button-primary {
  background: var(--accent);
  color: var(--button-text);
}

/* An accent rule under the first Section on the page, as the theme's
   signature detail. Step 10 removed the old background-variant classes a
   Section used to carry (background is a style value now, not an enum), so
   this targets any first Section rather than only an unstyled one; only the
   page's own (Step 126: a first Section in a column, a card, the header or the
   footer is not the page's opening band and had the rule by accident). */
main > .block-section:first-child {
  border-bottom: 3px solid var(--accent);
}

/* Page rhythm (Step 126): the page's Sections are bands that meet edge to edge, the first one under the header and
   the last one on the footer (main's own padding in base CSS is 2.5rem above and 4rem below), so a band's colour
   never ends in a strip of page colour. */
main > .block-section:first-child {
  margin-block-start: -2.5rem;
}

main > .block-section:last-child {
  margin-block-end: -4rem;
}

main > .block-section + .block-section {
  margin-block-start: 0;
}

/* A heading's own text follows it closely; the 2rem between other blocks is too loose here. */
.block-heading + .block-rich-text {
  margin-block-start: var(--space-4);
}

/* The space after a text block is the page rhythm's, not its last paragraph's own bottom margin as well. */
.block-rich-text > :last-child {
  margin-block-end: 0;
}

/* A post, project or event keeps to the reading measure, centred, like the text it is (Step 126). */
.post-article {
  max-width: var(--measure);
  margin-inline: auto;
}

/* Signature accent rules for blog index and articles */
.blog-header {
  border-bottom: 3px solid var(--accent);
  padding-bottom: var(--space-4);
}

.post-article .post-header {
  border-bottom: 3px solid var(--accent);
  padding-bottom: var(--space-4);
}

.post-card {
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  padding-bottom: var(--space-5);
}

.post-card-cover-link,
.post-cover-image {
  border-radius: 0;
}

/* The card has no box here, so its text lines up with the picture's edge (Step 126). */
.post-card-content {
  padding: var(--space-4) 0 0;
}

/* --- Block variants (Step 96): the shared ones keep base.css's look, an outlined card ruled in text colour --- */

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

/* Own variants: an introduction paragraph in the heading font, and a drop cap on the first letter. */
.block-rich-text.is-style-lead p {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  line-height: 1.45;
}

.block-rich-text.is-style-dropcap > p:first-child::first-letter {
  float: left;
  margin-inline-end: 0.08em;
  padding-block-start: 0.06em;
  font-family: var(--font-heading);
  font-size: 3.4em;
  line-height: 0.82;
  color: var(--accent);
}

/* Step 126 variants: a small capitalised label above a heading, a large quotation, pictures cut to one shape so a
   row of them lines up, a card that is a rule over its text (no box), and two columns centred on each other. */
.block-rich-text.is-style-eyebrow p {
  margin: 0;
  font-family: var(--font-meta);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--accent);
}

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

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

.block-rich-text.is-style-pullquote p {
  font-family: var(--font-heading);
  font-size: var(--font-size-2xl);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.block-rich-text.is-style-pullquote > p:last-child {
  margin-block-end: 0;
}

.block-image.is-style-landscape img,
.block-image.is-style-portrait img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.block-image.is-style-landscape img {
  aspect-ratio: 3 / 2;
}

.block-image.is-style-portrait img {
  aspect-ratio: 4 / 5;
}

.block-card.is-style-ruled {
  background: transparent;
  border: 0;
  border-top: 3px solid var(--text);
  overflow: visible;
}

.block-card.is-style-ruled > .block-card-inner {
  padding: var(--space-4) 0 0;
}

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

.block-columns.is-style-middle {
  align-items: center;
}

/* --- Step 99 parts: a printed look, square and ruled --- */

.badge {
  background: transparent;
  border-color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--font-size-xs);
}

.tile {
  background: transparent;
  border: 1px solid var(--text);
  border-radius: 0;
  color: var(--text);
}

.button .tile {
  border: 0;
}

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

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

}
