/* =============================================================
   zejtun.com — Component Library
   ----------------------------------------------------------------
   Vanilla CSS, no framework. Portable to WordPress block patterns.
   All values reference design tokens from tokens.css.
   ============================================================= */


/* =========================================================
   1. RESET + ELEMENT BASELINE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--fs-18);
  line-height: var(--lh-body);
  font-weight: var(--fw-regular);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: var(--link-underline);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--dur-fast) var(--ease-standard),
              text-decoration-color var(--dur-fast) var(--ease-standard);
}
a:hover { color: var(--link-hover); text-decoration-color: var(--link-hover); }
::selection { background: var(--selection-bg); color: var(--selection-fg); }

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

hr {
  border: 0;
  border-top: var(--border-hairline) solid var(--border-subtle);
  margin: var(--space-6) 0;
}


/* =========================================================
   2. TYPOGRAPHY ROLES
   ========================================================= */
.t-display,
h1, h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-snug);
  margin: 0;
}

h1 {
  font-size: clamp(var(--fs-36), 5vw + 1rem, var(--fs-72));
  line-height: var(--lh-tight);
}
h2 {
  font-size: clamp(var(--fs-30), 3vw + 0.8rem, var(--fs-48));
}

h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--text-primary);
  margin: 0;
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-snug);
}
h3 { font-size: var(--fs-24); font-weight: var(--fw-semibold); }
h4 { font-size: var(--fs-20); font-weight: var(--fw-semibold); }
h5 { font-size: var(--fs-18); font-weight: var(--fw-semibold); }
h6 {
  font-size: var(--fs-14);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}

p { margin: 0 0 var(--space-4); }

.t-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--fs-12);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--accent-primary);
  margin: 0 0 var(--space-3);
  line-height: var(--lh-ui);
}
.t-eyebrow--olive { color: var(--accent-nature); }
.t-eyebrow--ink   { color: var(--text-secondary); }

.t-lead {
  font-size: var(--fs-20);
  line-height: 1.55;
  color: var(--text-secondary);
  font-weight: var(--fw-regular);
}

.t-caption {
  font-size: var(--fs-14);
  line-height: var(--lh-ui);
  color: var(--text-muted);
}

.t-label {
  font-size: var(--fs-14);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  color: var(--text-secondary);
}

.t-italic-accent {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--fw-regular);
}


/* =========================================================
   3. LAYOUT — CONTAINERS + GRID
   ========================================================= */
.container,
.container-wide,
.container-prose {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter-mobile);
}
.container        { max-width: var(--container-full); }
.container-wide   { max-width: var(--container-wide); }
.container-prose  { max-width: var(--container-prose); }

@media (min-width: 768px) {
  .container,
  .container-wide,
  .container-prose { padding-inline: var(--gutter-desktop); }
}

.stack > * + * { margin-top: var(--space-5); }
.stack-tight > * + * { margin-top: var(--space-3); }
.stack-loose > * + * { margin-top: var(--space-7); }

.grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}


/* =========================================================
   4. SITE HEADER + NAV
   WordPress: maps to "header" template part / block pattern.
   ========================================================= */
.site-header {
  background: var(--bg-page);
  border-bottom: var(--border-hairline) solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-block: var(--space-4);
}

.site-mark {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--text-primary);
}
.site-mark:hover { color: var(--text-primary); text-decoration: none; }

/* Festa-bunting mark: three short stacked rules in red */
.site-mark__rules {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  align-self: center;
}
.site-mark__rules span {
  display: block;
  width: 18px;
  height: 3px;
  background: var(--accent-primary);
  border-radius: 1px;
}
.site-mark__rules span:nth-child(2) { width: 12px; }
.site-mark__rules span:nth-child(3) { width: 18px; background: var(--accent-secondary); }

.site-mark__wordmark {
  font-family: var(--font-display);
  font-size: var(--fs-24);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
  color: var(--text-primary);
  line-height: 1;
}
.site-mark__tag {
  font-family: var(--font-sans);
  font-size: var(--fs-12);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--text-muted);
  margin-left: var(--space-2);
  align-self: center;
}

.site-nav {
  display: none;
  gap: var(--space-5);
}
.site-nav a {
  font-size: var(--fs-14);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  text-decoration: none;
  padding: var(--space-2) 0;
  position: relative;
}
.site-nav a:hover {
  color: var(--accent-primary);
}
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent-primary);
}

@media (min-width: 1024px) {
  .site-nav { display: flex; }
  .site-header__menu-btn { display: none; }
}

.site-header__menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: var(--border-hairline) solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
}


/* =========================================================
   5. HEROES
   ========================================================= */
.hero {
  padding-block: var(--space-8) var(--space-7);
  border-bottom: var(--border-hairline) solid var(--border-subtle);
}

/* 5a. Homepage hero */
.hero-home {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-home { grid-template-columns: 1.1fr 1fr; gap: var(--space-9); }
}
.hero-home__headline {
  font-size: clamp(var(--fs-48), 5vw + 1rem, var(--fs-72));
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--space-5);
}
.hero-home__lead {
  max-width: 38ch;
  margin-bottom: var(--space-6);
}
.hero-home__illustration {
  aspect-ratio: 4 / 3;
  background: var(--bg-surface-warm);
  border: var(--border-hairline) solid var(--border-default);
  border-radius: var(--radius-sm);
}

/* 5b. Pillar hero */
.hero-pillar {
  text-align: left;
  padding-block: var(--space-8);
  background: var(--bg-surface-warm);
  border-bottom: var(--border-rule) solid var(--accent-primary);
  position: relative;
  overflow: hidden;
}
.hero-pillar__bunting {
  height: 24px;
  margin-bottom: var(--space-6);
  background:
    linear-gradient(135deg, transparent 49%, var(--accent-primary) 49% 51%, transparent 51%) 0 0 / 24px 24px repeat-x,
    linear-gradient(225deg, transparent 49%, var(--accent-primary) 49% 51%, transparent 51%) 0 0 / 24px 24px repeat-x;
  /* Decorative — accessibility note: aria-hidden on the element */
  opacity: 0.18;
}
.hero-pillar__title {
  font-size: clamp(var(--fs-48), 5vw + 1rem, var(--fs-60));
  margin-bottom: var(--space-4);
}
.hero-pillar__desc {
  max-width: 56ch;
  font-size: var(--fs-20);
  color: var(--text-secondary);
}

/* 5c. Article hero */
.hero-article {
  padding-block: var(--space-7) var(--space-6);
}
.hero-article__headline {
  font-size: clamp(var(--fs-36), 4vw + 0.8rem, var(--fs-60));
  margin-bottom: var(--space-5);
}
.hero-article__dek {
  font-size: var(--fs-20);
  color: var(--text-secondary);
  max-width: 60ch;
  margin-bottom: var(--space-6);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--fw-regular);
  line-height: 1.45;
}
.hero-article__byline {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-14);
  color: var(--text-muted);
  border-top: var(--border-hairline) solid var(--border-subtle);
  border-bottom: var(--border-hairline) solid var(--border-subtle);
  padding-block: var(--space-3);
  flex-wrap: wrap;
}
.hero-article__byline strong {
  color: var(--text-primary);
  font-weight: var(--fw-semibold);
}
.hero-article__byline .sep { color: var(--border-default); }
.hero-article__media {
  margin-top: var(--space-7);
  aspect-ratio: 16 / 9;
  background: var(--bg-surface-warm);
  border: var(--border-hairline) solid var(--border-default);
  border-radius: var(--radius-sm);
}


/* =========================================================
   6. ARTICLE CARDS
   WordPress: maps to a "Post" block pattern with variants.
   ========================================================= */
.card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: var(--border-hairline) solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform var(--dur-normal) var(--ease-standard),
              box-shadow var(--dur-normal) var(--ease-standard);
  text-decoration: none;
  color: inherit;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: inherit;
}
.card:focus-visible {
  outline-offset: 4px;
}
.card__media {
  aspect-ratio: 4 / 3;
  background: var(--bg-surface-warm);
  border-bottom: var(--border-hairline) solid var(--border-subtle);
}
.card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}
.card__headline {
  font-family: var(--font-display);
  font-size: var(--fs-24);
  font-weight: var(--fw-bold);
  line-height: 1.25;
  letter-spacing: var(--ls-snug);
  color: var(--text-primary);
  margin: 0;
}
.card:hover .card__headline { color: var(--accent-primary); }
.card__excerpt {
  color: var(--text-secondary);
  font-size: var(--fs-16);
  line-height: 1.55;
  margin: 0;
}
.card__meta {
  margin-top: auto;
  padding-top: var(--space-3);
  font-size: var(--fs-14);
  color: var(--text-muted);
  display: flex;
  gap: var(--space-3);
  align-items: center;
}
.card__meta .sep { color: var(--border-default); }

/* Variants */
.card--gold {
  background: var(--bg-surface-gold);
  border-color: var(--gold-200);
}
.card--gold .card__media { background: var(--gold-200); border-bottom-color: var(--gold-200); }

.card--dark {
  background: var(--bg-surface-dark);
  border-color: var(--ink-700);
  color: var(--text-on-dark);
}
.card--dark .card__headline { color: var(--text-on-dark); }
.card--dark:hover .card__headline { color: var(--gold-300); }
.card--dark .card__excerpt { color: var(--limestone-200); }
.card--dark .card__meta { color: var(--limestone-300); }
.card--dark .card__media { background: var(--ink-600); border-bottom-color: var(--ink-600); }
.card--dark .t-eyebrow { color: var(--gold-300); }


/* =========================================================
   7. BREADCRUMB
   ========================================================= */
.breadcrumb {
  font-size: var(--fs-14);
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  margin-bottom: var(--space-5);
}
.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--accent-primary); text-decoration: underline; }
.breadcrumb__sep { color: var(--border-default); }
.breadcrumb [aria-current="page"] { color: var(--text-primary); }


/* =========================================================
   8. IN-ARTICLE ELEMENTS
   ========================================================= */

/* Pull quote */
.pullquote {
  border-left: var(--border-emphasis) solid var(--accent-primary);
  padding: var(--space-3) 0 var(--space-3) var(--space-5);
  margin: var(--space-7) 0;
}
.pullquote__text {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-24), 2vw + 1rem, var(--fs-30));
  font-style: italic;
  font-weight: var(--fw-regular);
  line-height: 1.35;
  color: var(--text-primary);
  margin: 0 0 var(--space-3);
}
.pullquote__attribution {
  font-size: var(--fs-14);
  color: var(--text-muted);
  font-style: normal;
}

/* Callout — info (limestone) */
.callout {
  background: var(--bg-surface-warm);
  border: var(--border-hairline) solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: var(--space-5) var(--space-6);
  margin: var(--space-6) 0;
}
.callout__label {
  font-size: var(--fs-12);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--text-secondary);
  margin: 0 0 var(--space-2);
}
.callout p:last-child { margin-bottom: 0; }

/* Callout — local tip (gold) */
.callout--tip {
  background: var(--bg-surface-gold);
  border-color: var(--gold-300);
  border-left: var(--border-emphasis) solid var(--accent-secondary);
  padding-left: var(--space-5);
}
.callout--tip .callout__label {
  color: var(--gold-700);
}

/* Figure with caption */
.figure {
  margin: var(--space-7) 0;
}
.figure__media {
  aspect-ratio: 16 / 9;
  background: var(--bg-surface-warm);
  border: var(--border-hairline) solid var(--border-default);
  border-radius: var(--radius-sm);
}
.figure figcaption,
.figure__caption {
  font-family: var(--font-sans);
  font-size: var(--fs-14);
  color: var(--text-muted);
  margin-top: var(--space-3);
  padding-left: var(--space-3);
  border-left: 2px solid var(--border-subtle);
  line-height: 1.45;
}

/* Related articles block */
.related {
  background: var(--bg-surface-warm);
  border-block: var(--border-hairline) solid var(--border-subtle);
  padding-block: var(--space-7);
  margin-block: var(--space-8) 0;
}
.related__title {
  font-family: var(--font-sans);
  font-size: var(--fs-12);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--text-muted);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-5);
}


/* =========================================================
   9. AUTHOR BIO
   ========================================================= */
.author-bio {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-5);
  align-items: start;
  padding: var(--space-6);
  background: var(--bg-surface);
  border: var(--border-hairline) solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin: var(--space-7) 0;
}
.author-bio__avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-warm);
  border: var(--border-hairline) solid var(--border-default);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  color: var(--accent-primary);
  font-size: var(--fs-30);
  flex-shrink: 0;
}
.author-bio__name {
  font-family: var(--font-display);
  font-size: var(--fs-20);
  font-weight: var(--fw-bold);
  margin: 0 0 var(--space-2);
}
.author-bio__role {
  font-size: var(--fs-14);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  margin: 0 0 var(--space-3);
}
.author-bio__text {
  font-size: var(--fs-16);
  color: var(--text-secondary);
  margin: 0 0 var(--space-3);
}
.author-bio__social {
  display: flex;
  gap: var(--space-4);
  font-size: var(--fs-14);
}
.author-bio__social a {
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--border-default);
  padding-bottom: 1px;
}
.author-bio__social a:hover { color: var(--accent-primary); border-bottom-color: var(--accent-primary); }


/* =========================================================
   10. PAGINATION / LOAD MORE
   ========================================================= */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-8) 0;
  list-style: none;
  padding: 0;
}
.pagination a,
.pagination__item {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding-inline: var(--space-3);
  font-size: var(--fs-14);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  text-decoration: none;
  border: var(--border-hairline) solid var(--border-default);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
}
.pagination a:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
  text-decoration: none;
}
.pagination [aria-current="page"] {
  background: var(--text-primary);
  color: var(--text-on-dark);
  border-color: var(--text-primary);
}

.load-more {
  display: block;
  margin: var(--space-8) auto;
}


/* =========================================================
   11. NEWSLETTER SIGNUP
   ========================================================= */
.newsletter {
  background: var(--bg-surface-dark);
  color: var(--text-on-dark);
  padding: var(--space-8) var(--space-6);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  /* decorative gold rule */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--accent-primary) 0 33%,
    var(--accent-secondary) 33% 66%,
    var(--accent-primary) 66% 100%
  );
}
.newsletter__inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.newsletter__title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(var(--fs-30), 3vw + 0.5rem, var(--fs-36));
  line-height: 1.2;
  margin: 0 0 var(--space-3);
  color: var(--text-on-dark);
}
.newsletter__desc {
  color: var(--limestone-200);
  font-size: var(--fs-18);
  margin: 0 0 var(--space-6);
}
.newsletter__form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}
.newsletter__form .input { min-width: 220px; flex: 1 1 240px; max-width: 340px; }
.newsletter__note {
  font-size: var(--fs-14);
  color: var(--limestone-300);
  margin-top: var(--space-4);
}


/* =========================================================
   12. FOOTER
   ========================================================= */
.site-footer {
  background: var(--ink-700);
  color: var(--limestone-200);
  padding-block: var(--space-8) var(--space-6);
  margin-top: var(--space-9);
}
.site-footer__grid {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr; }
}
.site-footer__title {
  font-family: var(--font-sans);
  font-size: var(--fs-12);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--gold-300);
  margin: 0 0 var(--space-4);
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.site-footer a {
  color: var(--limestone-200);
  text-decoration: none;
  font-size: var(--fs-16);
}
.site-footer a:hover {
  color: var(--gold-300);
  text-decoration: underline;
}
.site-footer__about {
  max-width: 32ch;
  font-size: var(--fs-16);
  color: var(--limestone-200);
}
.site-footer__credit {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--ink-600);
  font-size: var(--fs-14);
  color: var(--limestone-300);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
}


/* =========================================================
   13. BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  font-weight: var(--fw-semibold);
  line-height: 1;
  letter-spacing: 0;
  border: var(--border-hairline) solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-standard),
              color var(--dur-fast) var(--ease-standard),
              border-color var(--dur-fast) var(--ease-standard),
              transform var(--dur-fast) var(--ease-standard);
  min-height: 44px; /* touch target */
}
.btn:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--ink-700);
  color: var(--text-on-dark);
  border-color: var(--ink-700);
}
.btn--primary:hover {
  background: var(--ink-800);
  color: var(--text-on-dark);
  text-decoration: none;
}

.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--text-primary);
}
.btn--secondary:hover {
  background: var(--text-primary);
  color: var(--text-on-dark);
  text-decoration: none;
}

.btn--accent {
  background: var(--accent-primary);
  color: var(--text-on-red);
  border-color: var(--accent-primary);
}
.btn--accent:hover {
  background: var(--accent-primary-hover);
  color: var(--text-on-red);
  text-decoration: none;
}
.btn--accent:focus-visible { outline-color: var(--focus-ring-on-red); }

.btn--tertiary {
  background: transparent;
  color: var(--text-primary);
  border: 0;
  padding-inline: 0;
  text-decoration: underline;
  text-decoration-color: var(--accent-primary);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}
.btn--tertiary:hover {
  color: var(--accent-primary);
  text-decoration-color: var(--accent-primary);
}
.btn--tertiary .btn__arrow {
  transition: transform var(--dur-fast) var(--ease-standard);
}
.btn--tertiary:hover .btn__arrow { transform: translateX(3px); }

.btn[disabled],
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


/* =========================================================
   14. FORMS
   ========================================================= */
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field__label {
  font-family: var(--font-sans);
  font-size: var(--fs-14);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
}
.field__hint {
  font-size: var(--fs-14);
  color: var(--text-muted);
}
.input,
.textarea,
.select {
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  line-height: var(--lh-ui);
  color: var(--text-primary);
  background: var(--field-bg);
  border: var(--border-hairline) solid var(--field-border);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  width: 100%;
  min-height: 44px;
  transition: border-color var(--dur-fast) var(--ease-standard),
              box-shadow var(--dur-fast) var(--ease-standard);
}
.input::placeholder,
.textarea::placeholder { color: var(--field-placeholder); }
.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--field-border-focus);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.textarea { min-height: 120px; resize: vertical; }
.select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%232D1810' stroke-width='2' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-7);
}

.checkbox {
  display: inline-flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
  font-size: var(--fs-16);
  color: var(--text-primary);
}
.checkbox input {
  appearance: none;
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border: var(--border-hairline) solid var(--field-border);
  border-radius: var(--radius-sm);
  background: var(--field-bg);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  transition: background var(--dur-fast) var(--ease-standard),
              border-color var(--dur-fast) var(--ease-standard);
}
.checkbox input:checked {
  background: var(--text-primary)
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'><path fill='none' stroke='%23FFF8EC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2 7l3.5 3.5L12 4'/></svg>")
    center / 14px no-repeat;
  border-color: var(--text-primary);
}
.checkbox input:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.field--error .input,
.field--error .textarea,
.field--error .select { border-color: var(--error); }
.field__msg-error {
  color: var(--error);
  font-size: var(--fs-14);
  display: flex; align-items: center; gap: var(--space-2);
}
.field--success .input,
.field--success .textarea,
.field--success .select { border-color: var(--success); }
.field__msg-success {
  color: var(--success);
  font-size: var(--fs-14);
}


/* =========================================================
   15. TAGS / CATEGORY PILLS
   ========================================================= */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: var(--bg-surface-warm);
  border: var(--border-hairline) solid var(--border-default);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: var(--fs-12);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--text-secondary);
  text-decoration: none;
  line-height: 1;
  min-height: 28px;
}
.tag:hover {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--text-on-dark);
  text-decoration: none;
}
.tag--accent { color: var(--accent-primary); border-color: var(--festa-200); background: var(--festa-50); }
.tag--accent:hover { background: var(--accent-primary); border-color: var(--accent-primary); color: var(--text-on-red); }
.tag--olive  { color: var(--olive-700); border-color: var(--olive-200); background: var(--olive-50); }
.tag--olive:hover  { background: var(--olive-600); border-color: var(--olive-600); color: var(--limestone-100); }
.tag--gold   { color: var(--gold-700); border-color: var(--gold-300); background: var(--gold-100); }
.tag--gold:hover   { background: var(--gold-700); border-color: var(--gold-700); color: var(--limestone-100); }


/* =========================================================
   16. PILLAR ENTRY (homepage tile)
   ========================================================= */
.pillar-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 768px) {
  .pillar-list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .pillar-list { grid-template-columns: repeat(4, 1fr); }
}
.pillar-tile {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
  background: var(--bg-surface);
  border: var(--border-hairline) solid var(--border-subtle);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur-fast) var(--ease-standard),
              background var(--dur-fast) var(--ease-standard);
  position: relative;
}
.pillar-tile::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent-primary);
  border-top-left-radius: var(--radius-sm);
  border-bottom-left-radius: var(--radius-sm);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-standard);
}
.pillar-tile:hover {
  border-color: var(--text-primary);
  text-decoration: none;
  color: inherit;
}
.pillar-tile:hover::before { opacity: 1; }
.pillar-tile__num {
  font-family: var(--font-display);
  font-size: var(--fs-14);
  color: var(--text-muted);
  font-weight: var(--fw-regular);
}
.pillar-tile__title {
  font-family: var(--font-display);
  font-size: var(--fs-20);
  font-weight: var(--fw-bold);
  line-height: 1.25;
  color: var(--text-primary);
  margin: 0;
}
.pillar-tile__desc {
  font-size: var(--fs-14);
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}
.pillar-tile--olive::before { background: var(--accent-nature); }
.pillar-tile--gold::before  { background: var(--accent-secondary); }


/* =========================================================
   17. SECTION HEADER (used on home + pillar pages)
   ========================================================= */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: var(--border-rule) solid var(--text-primary);
}
.section-header__title {
  font-family: var(--font-display);
  font-size: var(--fs-30);
  font-weight: var(--fw-bold);
  margin: 0;
}
.section-header__link {
  font-size: var(--fs-14);
  font-weight: var(--fw-medium);
  text-decoration: none;
  white-space: nowrap;
}


/* =========================================================
   18. ARTICLE BODY (prose)
   ========================================================= */
.prose {
  font-size: var(--fs-18);
  line-height: var(--lh-body);
  color: var(--text-primary);
}
.prose > * + * { margin-top: var(--space-4); }
.prose p { font-size: var(--fs-18); }
.prose h2 {
  margin-top: var(--space-8);
  font-size: var(--fs-36);
}
.prose h3 {
  margin-top: var(--space-7);
  font-size: var(--fs-24);
}
.prose ul, .prose ol {
  padding-left: var(--space-5);
  font-size: var(--fs-18);
}
.prose li + li { margin-top: var(--space-2); }
.prose blockquote {
  margin: var(--space-6) 0;
  padding-left: var(--space-5);
  border-left: 3px solid var(--border-default);
  color: var(--text-secondary);
  font-style: italic;
}
.prose a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: var(--link-underline);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
.prose a:hover {
  color: var(--link-hover);
  text-decoration-color: var(--link-hover);
}
.prose figure { margin: var(--space-7) 0; }
.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-inset);
  padding: 0.1em 0.4em;
  border-radius: var(--radius-sm);
}


/* =========================================================
   19. UTILITIES
   ========================================================= */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -40px;
  left: var(--space-4);
  background: var(--text-primary);
  color: var(--text-on-dark);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: var(--fw-semibold);
  z-index: var(--z-modal);
}
.skip-link:focus { top: var(--space-4); color: var(--text-on-dark); }

.divider {
  border: 0;
  height: 1px;
  background: var(--border-subtle);
  margin: var(--space-7) 0;
}
.divider--strong {
  height: 2px;
  background: var(--text-primary);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* =========================================================
   APPENDED 2.0.3 — UX/UI polish pass
   ========================================================= */

/* Mobile menu: when .site-nav.is-open, show as full-width drop-down panel
   under the header. Above 1024px, the existing media query takes over and
   nav becomes inline-flex so .is-open is irrelevant. */
@media (max-width: 1023px) {
  .site-nav.is-open {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--bg-page);
    border-bottom: var(--border-hairline) solid var(--border-default);
    padding: var(--space-3) var(--space-5);
    box-shadow: 0 8px 24px rgba(45, 24, 16, 0.08);
    z-index: 100;
  }
  .site-nav.is-open a {
    padding: var(--space-3) 0;
    border-bottom: var(--border-hairline) solid var(--border-subtle);
  }
  .site-nav.is-open a:last-child { border-bottom: 0; }
  .site-header { position: relative; }
}

/* Subtle internal-link styling in editorial prose: underlined on hover,
   in body text colour at rest. Keeps reading flow clean while still
   signalling the link affordance. */
.entry-content a:not(.btn):not(.pillar-tile):not(.card) {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--border-default);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--dur-fast) var(--ease-standard),
              text-decoration-color var(--dur-fast) var(--ease-standard);
}
.entry-content a:not(.btn):not(.pillar-tile):not(.card):hover {
  color: var(--accent-primary);
  text-decoration-color: var(--accent-primary);
  text-decoration-thickness: 2px;
}

/* Tighter hero on the homepage — give the H1 + lead room to breathe
   without pushing the rest of the page too far down. */
.entry-content > h1:first-of-type {
  margin-top: 0;
  margin-bottom: var(--space-4);
}
.entry-content > .is-style-eyebrow:first-of-type {
  margin-bottom: var(--space-3);
}
.entry-content > .is-style-lead {
  margin-bottom: var(--space-6);
}

/* Section header for "Start here" on homepage */
.home-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin: var(--space-8) 0 var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--text-primary);
}
.home-section-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-32);
  font-weight: var(--fw-bold);
}
.home-section-header__hint {
  font-size: var(--fs-14);
  color: var(--text-muted);
  font-style: italic;
}

/* Ensure the about block at the bottom of the homepage feels like a
   distinct, signed-off footer block. */
.home-about-card {
  margin-top: var(--space-8);
  padding: var(--space-6);
  background: var(--bg-surface-warm);
  border-left: 3px solid var(--accent-primary);
  border-radius: var(--radius-sm);
}
.home-about-card h2 {
  margin-top: 0;
}
.home-about-card .home-about-card__signoff {
  margin-top: var(--space-4);
  font-style: italic;
  color: var(--text-secondary);
  font-size: var(--fs-14);
}


/* =========================================================
   APPENDED 2.0.4 — final polish
   ========================================================= */

/* Force-hide hamburger menu button on desktop. The original media query at
   line 256 sets display:none at >=1024px, but our new HTML structure may
   inherit other display rules. !important guarantees the result. */
@media (min-width: 1024px) {
  .site-header__menu-btn { display: none !important; }
}
@media (max-width: 1023px) {
  .site-nav { display: none; }
  .site-nav.is-open { display: flex; }
}

/* Pillar tiles: ensure no link decoration leaks onto the tile or any of
   its child elements. The .entry-content link rule's :not(.pillar-tile)
   excludes the tile itself but the underline can leak via default styles. */
a.pillar-tile,
a.pillar-tile:hover,
a.pillar-tile:focus,
.pillar-tile,
.pillar-tile *,
.pillar-tile h3,
.pillar-tile p,
.pillar-tile span {
  text-decoration: none !important;
}
a.pillar-tile { color: inherit; }

/* Card link (article grid card) — same protection */
a.card,
.card *,
.card h2,
.card .wp-block-post-title a,
.card .wp-block-post-title {
  text-decoration: none !important;
}


/* =========================================================
   APPENDED 2.0.4 — final polish
   ========================================================= */

/* Force-hide the hamburger menu button on desktop. The earlier media query
   sometimes loses the cascade fight depending on stylesheet ordering, so
   this ensures the button is hidden on >=1024px viewports unconditionally. */
@media (min-width: 1024px) {
  .site-header__menu-btn { display: none !important; }
  .site-nav { display: flex !important; }
}

/* Strip every form of text-decoration from .pillar-tile and .card, plus
   their descendants, so the editorial-link underline rule above can't leak
   in via cascade. The tile/card hover state changes border colour and
   .card__headline colour, never the decoration. */
.pillar-tile,
.pillar-tile *,
.card,
.card * {
  text-decoration: none !important;
}
.pillar-tile:hover,
.pillar-tile:focus,
.pillar-tile:hover *,
.pillar-tile:focus * {
  text-decoration: none !important;
}
