/* ============================================================
   Knox Historical Museum — Ghost Theme
   screen.css

   Table of Contents:
   1.  Custom Properties (Design Tokens)
   2.  Reset & Base
   3.  Typography
   4.  Layout Utilities
   5.  Buttons
   6.  Closed Notice Banner
   7.  Site Header & Navigation
   8.  Mobile Navigation
   9.  Hero Section
   10. Renovation Notice
   11. About Teaser
   12. Exhibits Section (Homepage)
   13. News Section
   14. Contact Strip
   15. Membership Section
   16. Post Cards (Grid)
   17. Post / Page Full Layout
   18. Archive Pages (Index, Tag, Author)
   19. Tag: Exhibits Gallery
   20. Author Profile
   21. Pagination
   22. Error Page
   23. Site Footer
   24. Ghost Content Styles
   25. Focus & Accessibility
   26. Print
   ============================================================ */


/* ============================================================
   1. Custom Properties
   ============================================================ */

:root {
  /* Brand Colors — Umber & Forest */
  --color-burgundy:        oklch(38% 0.080 42);    /* tobacco brown — primary, hero, header */
  --color-burgundy-dark:   oklch(27% 0.065 40);    /* dark umber — hover, deep surfaces */
  --color-burgundy-light:  oklch(50% 0.075 44);    /* mid umber — lighter accent */
  --color-navy:            oklch(22% 0.050 145);   /* hunter green — panels, alt sections */
  --color-navy-dark:       oklch(21% 0.040 36);    /* deepest surface — footer */
  --color-navy-light:      oklch(34% 0.060 145);   /* softer hunter green */
  --color-gold:            oklch(62% 0.090 68);    /* aged brass — accent */
  --color-gold-dark:       oklch(50% 0.085 65);    /* darker brass — labels */
  --color-gold-light:      oklch(75% 0.080 72);    /* light brass — on dark surfaces */

  /* Backgrounds — Limestone */
  --color-parchment:       oklch(92% 0.012 75);    /* warm limestone — primary reading surface */
  --color-parchment-dark:  oklch(87% 0.016 72);    /* darker limestone — alt sections */
  --color-parchment-darker:oklch(82% 0.020 70);    /* deepest limestone */
  --color-white:           oklch(97% 0.006 75);    /* near-white with warm tint */

  /* Text — warm ink */
  --color-text-primary:    oklch(18% 0.018 42);    /* near-black warm ink */
  --color-text-secondary:  oklch(35% 0.022 40);    /* secondary */
  --color-text-muted:      oklch(50% 0.018 38);    /* muted */
  --color-text-light:      oklch(64% 0.014 36);    /* light/placeholder */
  --color-text-inverse:    oklch(92% 0.012 75);    /* on dark surfaces */

  /* Borders — warm-tinted */
  --color-border:          oklch(78% 0.018 70);
  --color-border-light:    oklch(85% 0.012 72);
  --color-border-dark:     oklch(68% 0.025 68);

  /* Semantic */
  --color-link:            var(--color-burgundy);
  --color-link-hover:      var(--color-burgundy-dark);
  --color-focus:           var(--color-gold);

  /* Typography */
  --font-heading:          'Playfair Display', 'Georgia', 'Times New Roman', serif;
  --font-body:             'Lora', 'Georgia', serif;
  --font-ui:               system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Font Sizes (fluid scale) */
  --text-xs:    0.75rem;    /* 12px */
  --text-sm:    0.875rem;   /* 14px */
  --text-base:  1rem;       /* 16px */
  --text-md:    1.125rem;   /* 18px */
  --text-lg:    1.25rem;    /* 20px */
  --text-xl:    1.5rem;     /* 24px */
  --text-2xl:   1.875rem;   /* 30px */
  --text-3xl:   2.25rem;    /* 36px */
  --text-4xl:   3rem;       /* 48px */
  --text-5xl:   3.75rem;    /* 60px */

  /* Spacing */
  --space-1:    0.25rem;
  --space-2:    0.5rem;
  --space-3:    0.75rem;
  --space-4:    1rem;
  --space-5:    1.25rem;
  --space-6:    1.5rem;
  --space-8:    2rem;
  --space-10:   2.5rem;
  --space-12:   3rem;
  --space-16:   4rem;
  --space-20:   5rem;
  --space-24:   6rem;

  /* Layout */
  --container-max:         1200px;
  --container-narrow:      780px;
  --container-padding:     clamp(1rem, 4vw, 2rem);

  /* Borders */
  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    12px;
  --radius-full:  9999px;

  /* Shadows */
  --shadow-xs:    0 1px 2px oklch(21% 0.040 36 / 0.08);
  --shadow-sm:    0 2px 6px oklch(21% 0.040 36 / 0.10);
  --shadow-md:    0 4px 16px oklch(21% 0.040 36 / 0.12);
  --shadow-lg:    0 8px 32px oklch(21% 0.040 36 / 0.15);
  --shadow-xl:    0 16px 48px oklch(21% 0.040 36 / 0.20);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* Header */
  --header-height:     72px;
}


/* ============================================================
   2. Reset & Base
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.7;
  color: var(--color-text-primary);
  background-color: var(--color-parchment);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
video,
iframe {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-link-hover);
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

address {
  font-style: normal;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 9999;
  padding: var(--space-3) var(--space-6);
  background: var(--color-navy);
  color: var(--color-white);
  text-decoration: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-family: var(--font-ui);
  font-weight: 600;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* ============================================================
   3. Typography
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-navy);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl)); }
h2 { font-size: clamp(var(--text-xl), 3vw, var(--text-3xl)); }
h3 { font-size: clamp(var(--text-lg), 2.5vw, var(--text-2xl)); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-md); }

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

p:last-child {
  margin-bottom: 0;
}

strong, b {
  font-weight: 700;
}

em, i {
  font-style: italic;
}

blockquote {
  border-left: 4px solid var(--color-gold);
  padding-left: var(--space-6);
  margin: var(--space-8) 0;
  font-style: italic;
  color: var(--color-text-secondary);
}

blockquote p:last-child {
  margin-bottom: 0;
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-12) 0;
}

/* Section typography helpers */
.section-label {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
  color: var(--color-navy);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-md);
  color: var(--color-text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}


/* ============================================================
   4. Layout Utilities
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section-padding {
  padding-block: var(--space-20);
}

.section-padding--alt {
  background-color: var(--color-parchment-dark);
}

.section-padding--dark {
  background-color: var(--color-navy);
  color: var(--color-text-inverse);
}


/* ============================================================
   5. Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

/* Primary — burgundy filled */
.btn--primary {
  background-color: var(--color-burgundy);
  color: var(--color-white);
  border-color: var(--color-burgundy);
}

.btn--primary:hover,
.btn--primary:focus {
  background-color: var(--color-burgundy-dark);
  border-color: var(--color-burgundy-dark);
  color: var(--color-white);
}

/* Outline — navy border */
.btn--outline {
  background-color: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn--outline:hover,
.btn--outline:focus {
  background-color: var(--color-navy);
  color: var(--color-white);
}

/* Ghost — for use on dark/image backgrounds */
.btn--ghost {
  background-color: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.75);
}

.btn--ghost:hover,
.btn--ghost:focus {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--color-white);
  color: var(--color-white);
}

/* Gold accent */
.btn--gold {
  background-color: var(--color-gold);
  color: var(--color-navy-dark);
  border-color: var(--color-gold);
}

.btn--gold:hover,
.btn--gold:focus {
  background-color: var(--color-gold-dark);
  border-color: var(--color-gold-dark);
  color: var(--color-navy-dark);
}

/* Sizes */
.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}


/* ============================================================
   6. Closed Notice Banner
   ============================================================ */

.closed-notice-banner {
  background-color: var(--color-burgundy);
  color: var(--color-white);
  padding: var(--space-3) 0;
}

.closed-notice-banner .container {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.closed-notice-icon {
  font-size: var(--text-lg);
  flex-shrink: 0;
  line-height: 1.7;
}

.closed-notice-text {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  line-height: 1.6;
  margin: 0;
}

.closed-notice-text a {
  color: var(--color-gold-light);
  font-weight: 600;
}

.closed-notice-text a:hover {
  color: var(--color-white);
}


/* ============================================================
   7. Site Header & Navigation
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-parchment);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: var(--space-6);
}

/* Branding */
.site-branding {
  flex-shrink: 0;
}

.site-logo-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.site-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.site-logo-text {
  display: flex;
  flex-direction: column;
}

.site-logo-name {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-sm), 2vw, var(--text-lg));
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-navy);
  letter-spacing: -0.01em;
}

.site-logo-location {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-top: 2px;
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-wrap: wrap;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-navy);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--color-burgundy);
  background-color: oklch(38% 0.080 42 / 0.06);
}

.nav-item--active .nav-link,
.nav-link[aria-current="page"] {
  color: var(--color-burgundy);
  background-color: oklch(38% 0.080 42 / 0.08);
}

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

/* Scrolled state — applied by JS after the user scrolls past 20px */
.site-header--scrolled {
  box-shadow: var(--shadow-md);
}

/* Hamburger button (hidden on desktop) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
}

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

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-navy);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  transform-origin: center;
}

/* Hamburger open state */
.nav-hamburger[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-hamburger[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ============================================================
   8. Mobile Navigation
   ============================================================ */

@media (max-width: 900px) {
  .nav-hamburger {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-navy);
    border-top: 2px solid var(--color-burgundy);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-4);
    overflow-y: auto;
    z-index: 99;
    box-shadow: var(--shadow-xl);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-link {
    padding: var(--space-4) var(--space-4);
    font-size: var(--text-base);
    color: var(--color-parchment);
    border-bottom: 1px solid oklch(92% 0.012 75 / 0.15);
    border-radius: 0;
  }

  .nav-link:hover,
  .nav-item--active .nav-link,
  .nav-link[aria-current="page"] {
    color: var(--color-gold);
    background-color: oklch(92% 0.012 75 / 0.08);
  }

  .nav-item:last-child .nav-link {
    border-bottom: none;
  }
}


/* ============================================================
   9. Hero Section
   ============================================================ */

.hero {
  position: relative;
}

.hero-bg {
  position: relative;
  min-height: clamp(460px, 65vh, 700px);
  background-color: var(--color-navy-dark);
  background-image: var(--hero-image, none);
  background-size: cover;
  background-position: center 30%;
  display: flex;
  align-items: flex-end;
}

.hero-bg--no-image {
  background: linear-gradient(
    135deg,
    var(--color-navy-dark) 0%,
    var(--color-navy) 40%,
    var(--color-burgundy-dark) 100%
  );
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    oklch(21% 0.040 36 / 0.92) 0%,
    oklch(21% 0.040 36 / 0.65) 40%,
    oklch(21% 0.040 36 / 0.30) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: var(--space-16);
  padding-top: var(--space-16);
}

.hero-text {
  max-width: 680px;
}

.hero-eyebrow {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: var(--space-3);
}

.hero-title {
  font-size: clamp(var(--text-3xl), 6vw, var(--text-5xl));
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: var(--space-4);
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-md), 2vw, var(--text-xl));
  font-style: italic;
  color: oklch(92% 0.012 75 / 0.90);
  margin-bottom: var(--space-3);
}

.hero-byline {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: oklch(92% 0.012 75 / 0.65);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}


/* ============================================================
   10. Renovation Notice
   ============================================================ */

.renovation-notice {
  background-color: var(--color-parchment-darker);
  border-top: 3px solid var(--color-burgundy);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-10) 0;
}

.renovation-notice-inner {
  display: flex;
  gap: var(--space-6);
  align-items: flex-start;
}

.renovation-notice-icon {
  flex-shrink: 0;
  color: var(--color-burgundy);
  margin-top: var(--space-1);
}

.renovation-notice-body {
  flex: 1;
}

.renovation-notice-heading {
  font-size: var(--text-xl);
  color: var(--color-burgundy);
  margin-bottom: var(--space-3);
}

.renovation-notice-text {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
}

.renovation-notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

@media (max-width: 640px) {
  .renovation-notice-inner {
    flex-direction: column;
  }
}


/* ============================================================
   10b. Announcement Section
   ============================================================ */

.announcement-section {
  background: var(--color-parchment-dark);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.announcement-inner {
  max-width: var(--container-narrow);
}

.announcement-title {
  font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
  line-height: 1.25;
}

.announcement-excerpt {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-6);
}

.announcement-content {
  color: var(--color-text-primary);
  margin-bottom: var(--space-8);
}


/* ============================================================
   11. About Teaser
   ============================================================ */

.about-teaser-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.about-teaser-text .section-label {
  display: block;
}

.about-teaser-text .section-title {
  text-align: left;
}

.about-teaser-lead {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  font-style: italic;
  margin-bottom: var(--space-5);
  line-height: 1.6;
}

.about-teaser-btn {
  margin-top: var(--space-6);
}

.decoration-frame {
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  position: relative;
}

.decoration-frame::before {
  content: '';
  position: absolute;
  inset: var(--space-3);
  border: 1px solid var(--color-gold-light);
  border-radius: var(--radius-sm);
  pointer-events: none;
}

.decoration-inner {
  padding: var(--space-8);
  background-color: var(--color-parchment-dark);
  border-radius: var(--radius-sm);
  text-align: center;
}

.decoration-quote {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-navy);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.decoration-attribution {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin: 0;
}

@media (max-width: 900px) {
  .about-teaser-inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
}


/* ============================================================
   12. Exhibits Section (Homepage)
   ============================================================ */

.exhibits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.exhibit-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border-light);
}

.exhibit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.exhibit-card-image-link {
  display: block;
}

.exhibit-card-image-wrapper {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background-color: var(--color-parchment-darker);
}

.exhibit-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.exhibit-card:hover .exhibit-card-image {
  transform: scale(1.04);
}

.exhibit-card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, oklch(21% 0.040 36 / 0.35), transparent);
  pointer-events: none;
}

.exhibit-card-content {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.exhibit-card-title {
  font-size: var(--text-lg);
  color: var(--color-navy);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.exhibit-card-link {
  color: inherit;
  text-decoration: none;
}

.exhibit-card-link:hover {
  color: var(--color-burgundy);
}

.exhibit-card-description {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.6;
  flex: 1;
  margin-bottom: var(--space-4);
}

.exhibit-card-explore {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-burgundy);
  text-decoration: none;
  margin-top: auto;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.exhibit-card-explore:hover {
  color: var(--color-burgundy-dark);
}

.exhibits-section-cta {
  text-align: center;
}

@media (max-width: 900px) {
  .exhibits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .exhibits-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   13. News Section
   ============================================================ */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.news-section-cta {
  text-align: center;
}

.no-posts-notice {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-text-muted);
  font-style: italic;
  padding: var(--space-10);
}

@media (max-width: 900px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   14. Contact Strip
   ============================================================ */

.contact-strip {
  background-color: var(--color-navy);
  padding: var(--space-12) 0;
  color: var(--color-text-inverse);
}

.contact-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}

.contact-strip-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.contact-strip-icon {
  flex-shrink: 0;
  color: var(--color-gold);
  margin-top: 3px;
}

.contact-strip-heading {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: var(--space-2);
}

.contact-strip-content p {
  font-size: var(--text-sm);
  color: oklch(92% 0.012 75 / 0.85);
  margin-bottom: var(--space-1);
  line-height: 1.4;
}

.contact-strip-content address {
  font-size: var(--text-sm);
  color: oklch(92% 0.012 75 / 0.85);
  line-height: 1.6;
}

.contact-strip-link {
  font-size: var(--text-sm);
  color: var(--color-gold-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-strip-link:hover {
  color: var(--color-white);
}

.contact-strip-closed {
  font-size: var(--text-sm);
  color: oklch(92% 0.012 75 / 0.85);
}

.contact-strip-hours {
  font-size: var(--text-sm);
}

.contact-strip-hours div {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
}

.contact-strip-hours dt {
  color: oklch(92% 0.012 75 / 0.7);
  min-width: 90px;
}

.contact-strip-hours dd {
  color: oklch(92% 0.012 75 / 0.85);
}

@media (max-width: 1024px) {
  .contact-strip-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8) var(--space-10);
  }
}

@media (max-width: 580px) {
  .contact-strip-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   15. Membership Section
   ============================================================ */

.membership-section {
  background: linear-gradient(
    135deg,
    var(--color-parchment-dark) 0%,
    var(--color-parchment) 100%
  );
  padding: var(--space-20) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.membership-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.membership-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow var(--transition-base);
}

.membership-card:hover {
  box-shadow: var(--shadow-md);
}

.membership-card--featured {
  background: var(--color-navy);
  border-color: var(--color-gold);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-lg);
}

.membership-card-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-gold);
  color: var(--color-navy-dark);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.membership-card-header {
  margin-bottom: var(--space-5);
}

.membership-tier-name {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: inherit;
}

.membership-card--featured .membership-tier-name {
  color: var(--color-gold-light);
}

.membership-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
}

.membership-price-amount {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-burgundy);
  line-height: 1;
}

.membership-card--featured .membership-price-amount {
  color: var(--color-gold);
}

.membership-price-period {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.membership-card--featured .membership-price-period {
  color: oklch(92% 0.012 75 / 0.6);
}

.membership-benefits {
  list-style: none;
  flex: 1;
  margin-bottom: var(--space-6);
}

.membership-benefits li {
  position: relative;
  padding-left: var(--space-5);
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.membership-card--featured .membership-benefits li {
  color: oklch(92% 0.012 75 / 0.80);
}

.membership-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-weight: 700;
}

.membership-btn {
  align-self: stretch;
  text-align: center;
}

.membership-card--featured .membership-btn.btn--primary {
  background-color: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-navy-dark);
}

.membership-card--featured .membership-btn.btn--primary:hover {
  background-color: var(--color-gold-dark);
  border-color: var(--color-gold-dark);
}

.membership-paypal {
  text-align: center;
  margin: var(--space-6) auto var(--space-10);
  max-width: 560px;
}

.membership-paypal-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
}

.membership-paypal-controls {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.membership-paypal-select {
  flex: 1;
  min-width: 220px;
  padding: 0.6rem 0.875rem;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-text-primary);
  cursor: pointer;
}

.membership-paypal-select:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.membership-paypal-btn {
  white-space: nowrap;
}

.membership-note {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
  padding: var(--space-6);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.membership-note p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}

.membership-note a {
  color: var(--color-burgundy);
}

@media (max-width: 1100px) {
  .membership-tiers {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .membership-tiers {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   16. Post Cards
   ============================================================ */

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.post-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.post-card-image-link {
  display: block;
}

.post-card-image-wrapper {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--color-parchment-darker);
}

.post-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.post-card:hover .post-card-image {
  transform: scale(1.04);
}

.post-card-content {
  padding: var(--space-5) var(--space-5) var(--space-4);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
}

.post-card-tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  text-decoration: none;
  background: oklch(62% 0.090 68 / 0.12);
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
}

.post-card-tag:hover {
  background: oklch(62% 0.090 68 / 0.25);
  color: var(--color-gold-dark);
}

.post-card-title {
  font-size: var(--text-lg);
  line-height: 1.3;
  margin-bottom: var(--space-3);
  flex: 1;
}

.post-card-title-link {
  color: var(--color-navy);
  text-decoration: none;
}

.post-card-title-link:hover {
  color: var(--color-burgundy);
}

.post-card-excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-4);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border-light);
}

.post-card-date {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
}

.post-card-read-more {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-burgundy);
  text-decoration: none;
  white-space: nowrap;
}

.post-card-read-more:hover {
  color: var(--color-burgundy-dark);
}

@media (max-width: 900px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   17. Post / Page Full Layout
   ============================================================ */

/* Feature image */
.post-feature-image-wrapper {
  width: 100%;
  background: var(--color-parchment-darker);
  position: relative;
  overflow: hidden; /* contain ::after overlay within wrapper bounds */
}

/* Subtle bottom-fade overlay — ties the feature image into the dark-green
   brand palette without obscuring subject matter. Mirrors the hero-overlay
   color family at a much lower opacity ceiling. */
.post-feature-image-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    oklch(21% 0.040 36 / 0.55) 0%,
    oklch(21% 0.040 36 / 0.20) 35%,
    oklch(21% 0.040 36 / 0.00) 70%
  );
  pointer-events: none; /* overlay must never block image clicks/links */
}

.post-feature-image {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  display: block;
}

.post-feature-image-caption {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-4);
  background: var(--color-parchment-dark);
  font-style: italic;
}

/* Post container */
.post-container {
  max-width: var(--container-narrow);
  padding-top: var(--space-12);
  padding-bottom: var(--space-16);
}

/* Post header */
.post-header {
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 2px solid var(--color-gold);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.post-tag {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  text-decoration: none;
  background: oklch(62% 0.090 68 / 0.12);
  padding: 3px var(--space-3);
  border-radius: var(--radius-full);
  border: 1px solid oklch(62% 0.090 68 / 0.25);
  transition: background var(--transition-fast);
}

.post-tag:hover {
  background: oklch(62% 0.090 68 / 0.25);
  color: var(--color-gold-dark);
}

.post-title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  color: var(--color-navy);
  line-height: 1.15;
  margin-bottom: var(--space-5);
}

.post-excerpt {
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin-bottom: var(--space-5);
}

.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.post-author {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.post-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-border);
}

.post-author-name {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  text-decoration: none;
}

.post-author-name:hover {
  color: var(--color-burgundy);
}

.post-date {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.post-reading-time {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Post footer */
.post-footer {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.post-footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  margin-bottom: var(--space-5);
}

.post-footer-tags-label {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.post-tag--footer {
  font-size: var(--text-xs);
  padding: 2px var(--space-2);
}

.post-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.post-share-label {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.post-share-link {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.post-share-link--facebook {
  background: #1877F2;
  color: white;
}

.post-share-link--facebook:hover {
  background: #0d65d9;
  color: white;
}

.post-share-link--email {
  background: var(--color-parchment-dark);
  color: var(--color-navy);
  border: 1px solid var(--color-border);
}

.post-share-link--email:hover {
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

/* Related posts */
.related-posts {
  background: var(--color-parchment-dark);
  border-top: 1px solid var(--color-border);
}

.post-grid--related {
  margin-top: var(--space-8);
}


/* ============================================================
   18. Archive Pages
   ============================================================ */

.archive-page {
  min-height: 60vh;
}

.archive-header {
  background: var(--color-navy);
  color: var(--color-text-inverse);
  padding: var(--space-16) 0;
  position: relative;
  overflow: hidden;
}

.archive-header--has-image {
  background-image: var(--archive-bg-image, none);
  background-size: cover;
  background-position: center;
}

.archive-header-overlay {
  position: absolute;
  inset: 0;
  background: oklch(21% 0.040 36 / 0.80);
}

.archive-header-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.archive-header-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-gold);
  margin-bottom: var(--space-4);
}

.exhibits-archive-title {
  text-transform: capitalize;
}

.archive-title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  color: var(--color-white);
  margin-bottom: var(--space-3);
}

.archive-description {
  font-size: var(--text-md);
  color: oklch(92% 0.012 75 / 0.80);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: var(--space-3);
  line-height: 1.6;
}

.archive-post-count {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--color-gold-light);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.archive-content {
  padding-top: var(--space-12);
  padding-bottom: var(--space-16);
}

.no-posts {
  text-align: center;
  padding: var(--space-16) 0;
  color: var(--color-text-muted);
  font-style: italic;
}


/* ============================================================
   19. Tag: Exhibits Gallery
   ============================================================ */

.exhibits-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.exhibit-gallery-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.exhibit-gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.exhibit-gallery-card-image-wrapper {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-parchment-darker);
}

.exhibit-gallery-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.exhibit-gallery-card:hover .exhibit-gallery-card-image {
  transform: scale(1.05);
}

.exhibit-gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    oklch(21% 0.040 36 / 0.40) 0%,
    transparent 60%
  );
  pointer-events: none;
}

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

.exhibit-gallery-card-title {
  font-size: var(--text-lg);
  color: var(--color-navy);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.exhibit-gallery-card-link {
  color: inherit;
  text-decoration: none;
}

.exhibit-gallery-card-link:hover {
  color: var(--color-burgundy);
}

.exhibit-gallery-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

@media (max-width: 900px) {
  .exhibits-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .exhibits-gallery-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   20. Author Profile
   ============================================================ */

.author-header {
  background: var(--color-navy);
}

.author-header-content {
  display: flex;
  gap: var(--space-8);
  align-items: center;
}

.author-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--color-gold);
}

.author-info {
  max-width: 560px;
}

.author-name {
  margin-bottom: var(--space-3);
}

.author-bio {
  color: oklch(92% 0.012 75 / 0.80);
  margin-bottom: var(--space-3);
}

.author-location {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: oklch(92% 0.012 75 / 0.60);
  margin-bottom: var(--space-2);
}

.author-website {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--color-gold-light);
  word-break: break-all;
  margin-bottom: var(--space-3);
  display: block;
}

@media (max-width: 640px) {
  .author-header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-5);
  }
}


/* ============================================================
   21. Pagination
   ============================================================ */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.pagination a,
.pagination .page-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.pagination a {
  color: var(--color-navy);
  border: 1px solid var(--color-border);
  background: var(--color-white);
}

.pagination a:hover {
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

.pagination .page-number {
  color: var(--color-text-muted);
  font-weight: 400;
  background: transparent;
  border: none;
}


/* ============================================================
   22. Error Page
   ============================================================ */

.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: var(--space-20) 0;
}

.error-container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-12);
  align-items: start;
}

.error-content {
  text-align: center;
}

.error-archive-decoration {
  margin-bottom: var(--space-6);
}

.error-number {
  font-family: var(--font-heading);
  font-size: clamp(6rem, 14vw, 10rem);
  font-weight: 700;
  color: var(--color-border-dark);
  line-height: 1;
  display: block;
  letter-spacing: -0.04em;
}

.error-title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl));
  color: var(--color-navy);
  margin-bottom: var(--space-4);
}

.error-description {
  font-size: var(--text-md);
  color: var(--color-text-secondary);
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
  line-height: 1.6;
}

.error-suggestions {
  background: var(--color-parchment-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
  text-align: left;
  max-width: 360px;
  margin-inline: auto;
}

.error-suggestions-title {
  font-size: var(--text-base);
  color: var(--color-navy);
  margin-bottom: var(--space-4);
}

.error-suggestions-list {
  list-style: none;
}

.error-suggestion-link {
  display: block;
  padding: var(--space-2) 0;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--color-burgundy);
  border-bottom: 1px solid var(--color-border-light);
}

.error-suggestion-link:hover {
  color: var(--color-burgundy-dark);
}

.error-suggestions-list li:last-child .error-suggestion-link {
  border-bottom: none;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.error-contact {
  background: var(--color-navy);
  color: var(--color-text-inverse);
  padding: var(--space-8);
  border-radius: var(--radius-md);
}

.error-contact p {
  font-size: var(--text-sm);
  color: oklch(92% 0.012 75 / 0.80);
  margin-bottom: var(--space-3);
  line-height: 1.5;
}

.error-contact-link {
  color: var(--color-gold-light);
  font-weight: 600;
  display: block;
  word-break: break-all;
}

.error-contact-link:hover {
  color: var(--color-white);
}

@media (max-width: 800px) {
  .error-container {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   23. Site Footer
   ============================================================ */

.site-footer {
  background-color: var(--color-navy-dark);
  color: oklch(92% 0.012 75 / 0.80);
  margin-top: auto;
}

.footer-main {
  padding: var(--space-16) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr 1.5fr;
  gap: var(--space-10);
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-gold-light);
  margin-bottom: var(--space-4);
  letter-spacing: 0.01em;
}

.footer-tagline {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
}

.footer-description {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: oklch(92% 0.012 75 / 0.65);
}

.footer-address {
  font-size: var(--text-sm);
  line-height: 1.8;
  color: oklch(92% 0.012 75 / 0.70);
}

.footer-address p {
  margin-bottom: var(--space-3);
}

.footer-contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
}

.footer-link {
  font-size: var(--text-sm);
  color: oklch(92% 0.012 75 / 0.75);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-gold-light);
}

.hours-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.hours-row {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hours-day {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: oklch(92% 0.012 75 / 0.50);
}

.hours-time {
  font-size: var(--text-sm);
  color: oklch(92% 0.012 75 / 0.80);
}

.footer-closed-note {
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: oklch(92% 0.012 75 / 0.55);
  font-style: italic;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.footer-nav-list a {
  font-size: var(--text-sm);
  color: oklch(92% 0.012 75 / 0.75);
  text-decoration: none;
}

.footer-nav-list a:hover {
  color: var(--color-gold-light);
}

.footer-social-heading {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: oklch(92% 0.012 75 / 0.45);
  margin-bottom: var(--space-3);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-family: var(--font-ui);
  font-weight: 600;
  color: oklch(92% 0.012 75 / 0.75);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.social-link:hover {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.30);
  background: rgba(255, 255, 255, 0.06);
}

.social-icon {
  flex-shrink: 0;
}

/* Footer bottom bar */
.footer-bottom {
  padding: var(--space-5) 0;
  background-color: rgba(0, 0, 0, 0.20);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer-copyright {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: oklch(92% 0.012 75 / 0.45);
  margin: 0;
}

.footer-ghost-credit {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: oklch(92% 0.012 75 / 0.35);
  margin: 0;
}

.footer-ghost-credit a {
  color: oklch(92% 0.012 75 / 0.50);
}

.footer-ghost-credit a:hover {
  color: oklch(92% 0.012 75 / 0.80);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

@media (max-width: 580px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}


/* ============================================================
   24. Ghost Content Styles (rendered post body)
   ============================================================ */

.gh-content {
  font-size: var(--text-md);
  line-height: 1.75;
  color: var(--color-text-primary);
}

.gh-content > * + * {
  margin-top: var(--space-6);
}

.gh-content h1,
.gh-content h2,
.gh-content h3,
.gh-content h4,
.gh-content h5,
.gh-content h6 {
  margin-top: var(--space-10);
  margin-bottom: var(--space-3);
}

.gh-content h2 {
  font-size: clamp(var(--text-xl), 2.5vw, var(--text-2xl));
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border-light);
}

.gh-content h3 {
  font-size: var(--text-xl);
}

.gh-content p {
  margin-bottom: var(--space-5);
}

.gh-content a {
  color: var(--color-burgundy);
  text-decoration: underline;
}

.gh-content a:hover {
  color: var(--color-burgundy-dark);
}

.gh-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin-inline: auto;
  box-shadow: var(--shadow-sm);
}

.gh-content figure {
  margin: var(--space-8) 0;
}

.gh-content figcaption {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
  padding-top: var(--space-2);
  font-style: italic;
}

.gh-content blockquote {
  border-left: 4px solid var(--color-gold);
  padding-left: var(--space-6);
  margin: var(--space-8) 0;
  font-style: italic;
  color: var(--color-text-secondary);
  font-size: var(--text-lg);
}

.gh-content ul,
.gh-content ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-5);
}

.gh-content ul {
  list-style: disc;
}

.gh-content ol {
  list-style: decimal;
}

.gh-content li {
  margin-bottom: var(--space-2);
  line-height: 1.65;
}

.gh-content pre {
  background: var(--color-navy-dark);
  color: var(--color-parchment);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-size: var(--text-sm);
  line-height: 1.6;
}

.gh-content code {
  background: var(--color-parchment-darker);
  color: var(--color-burgundy);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
  font-family: 'Courier New', Courier, monospace;
}

.gh-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

.gh-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
}

.gh-content th {
  background: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gh-content td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border-light);
  vertical-align: top;
}

.gh-content tr:nth-child(even) td {
  background: var(--color-parchment-dark);
}

.gh-content hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-12) 0;
}

/* Koenig wide/full width cards — required by Ghost gscan */
.gh-content .kg-width-wide {
  margin-left: calc(50% - 50vw + 3rem);
  margin-right: calc(50% - 50vw + 3rem);
  max-width: none;
  width: auto;
}

.gh-content .kg-width-full {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: none;
  width: 100vw;
}

/* Gallery card in posts */
.gh-content .kg-gallery-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: var(--space-8) 0;
}

.gh-content .kg-gallery-row {
  display: flex;
  gap: var(--space-2);
}

.gh-content .kg-gallery-image {
  flex: 1;
}

.gh-content .kg-gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  border-radius: var(--radius-sm);
}

/* Bookmark card */
.gh-content .kg-bookmark-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: var(--space-8) 0;
}

.gh-content .kg-bookmark-container {
  display: flex;
  text-decoration: none;
  color: inherit;
}

.gh-content .kg-bookmark-content {
  flex: 1;
  padding: var(--space-5);
}

.gh-content .kg-bookmark-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-2);
}

.gh-content .kg-bookmark-description {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
}

.gh-content .kg-bookmark-metadata {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.gh-content .kg-bookmark-thumbnail {
  width: 140px;
  flex-shrink: 0;
}

.gh-content .kg-bookmark-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Video embed */
.gh-content .kg-video-card {
  margin: var(--space-8) 0;
}

.gh-content .kg-embed-card {
  margin: var(--space-8) 0;
}

.gh-content .kg-embed-card iframe {
  max-width: 100%;
}

/* Callout */
.gh-content .kg-callout-card {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-md);
  margin: var(--space-8) 0;
  background: oklch(62% 0.090 68 / 0.10);
  border: 1px solid oklch(62% 0.090 68 / 0.30);
}

.gh-content .kg-callout-emoji {
  font-size: var(--text-xl);
  flex-shrink: 0;
}

.gh-content .kg-callout-text {
  flex: 1;
  font-size: var(--text-base);
}


/* ============================================================
   25. Focus & Accessibility
   ============================================================ */

/* Ensure focus is always visible */
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

/* Remove default focus ring only when :focus-visible supported */
:focus:not(:focus-visible) {
  outline: none;
}

/* High contrast skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 9999;
  padding: var(--space-3) var(--space-6);
  background: var(--color-navy);
  color: var(--color-white);
  text-decoration: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-family: var(--font-ui);
  font-weight: 600;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

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

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}


/* ============================================================
   26. Print
   ============================================================ */

@media print {
  .site-header,
  .site-footer,
  .closed-notice-banner,
  .renovation-notice,
  .post-share,
  .related-posts,
  .membership-section,
  .hero-actions,
  nav {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-family: Georgia, serif;
  }

  a {
    color: black;
    text-decoration: underline;
  }

  .post-container {
    max-width: 100%;
    padding: 0;
  }

  h1, h2, h3, h4, h5, h6 {
    color: black;
    page-break-after: avoid;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  p, blockquote {
    orphans: 3;
    widows: 3;
  }
}