:root {
  --astro-parchment: #f3ead6;
  --astro-parchment-light: #fbf7ed;
  --astro-ink: #29231c;
  --astro-brown: #4b3525;
  --astro-brass: #a68145;
  --astro-brass-light: #c6a566;
  --astro-charcoal: #20201e;
  --astro-danger: #9b3d32;
  --astro-success: #52735a;
  --astro-border: rgba(108, 76, 38, .32);
  --astro-shadow-sm: 0 8px 24px rgba(45, 34, 21, .14);
  --astro-shadow-md: 0 18px 50px rgba(34, 25, 16, .22);
  --astro-radius-sm: 8px;
  --astro-radius-md: 14px;
  --astro-radius-lg: 24px;
  --astro-transition: 180ms ease;
  --astro-container: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--astro-ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(198,165,102,.18), transparent 26rem),
    linear-gradient(180deg, #ece0c6 0%, var(--astro-parchment) 38%, #eee2ca 100%);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .23;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(75,53,37,.028) 0, rgba(75,53,37,.028) 1px, transparent 1px, transparent 4px),
    repeating-linear-gradient(90deg, rgba(75,53,37,.018) 0, rgba(75,53,37,.018) 1px, transparent 1px, transparent 6px);
}
a { color: var(--astro-brown); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: #6b4c2e; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .65em;
  color: var(--astro-brown);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  line-height: 1.05;
}
h1 { font-size: clamp(2.4rem, 5vw, 5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3.6rem); }
h3 { font-size: clamp(1.45rem, 2.4vw, 2.2rem); }
p { margin: 0 0 1em; }
button, input, textarea, select { font: inherit; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.astro-site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.astro-main { flex: 1; }
.astro-container { width: min(calc(100% - 40px), var(--astro-container)); margin-inline: auto; }
.astro-container--content { max-width: 980px; }
.astro-container--narrow { max-width: 760px; }

.astro-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  color: #f9f0dc;
  background: rgba(32, 32, 30, .93);
  border-bottom: 1px solid rgba(198,165,102,.44);
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
  backdrop-filter: blur(14px);
}
.admin-bar .astro-header { top: 32px; }
.astro-header__inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.astro-brand { display: inline-flex; align-items: center; gap: 12px; color: #f7ead0; text-decoration: none; }
.astro-brand:hover { color: #fff5df; }
.astro-brand__name { font: 700 clamp(1.55rem, 2.4vw, 2.15rem)/1 "Cormorant Garamond", Georgia, serif; letter-spacing: .035em; }
.astro-brand__mark { position: relative; width: 38px; aspect-ratio: 1; border: 1.5px solid var(--astro-brass-light); border-radius: 50%; box-shadow: inset 0 0 0 5px rgba(198,165,102,.08); }
.astro-brand__mark::before, .astro-brand__mark::after, .astro-brand__mark span::before, .astro-brand__mark span::after { content: ""; position: absolute; background: var(--astro-brass-light); opacity: .9; }
.astro-brand__mark::before { width: 1px; height: 48px; left: 50%; top: -6px; }
.astro-brand__mark::after { height: 1px; width: 48px; left: -6px; top: 50%; }
.astro-brand__mark span::before { width: 1px; height: 34px; left: 50%; top: 1px; transform: rotate(45deg); transform-origin: center; }
.astro-brand__mark span::after { width: 1px; height: 34px; left: 50%; top: 1px; transform: rotate(-45deg); transform-origin: center; }
.astro-header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.astro-link { color: #f5ead6; text-decoration: none; font-weight: 600; }
.astro-link:hover { color: #fff; }
.astro-button,
.wp-element-button,
button:not(.astro-nav-toggle),
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .7rem 1.15rem;
  border: 1px solid #8f6c35;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #b28c4e, #8e6933);
  box-shadow: 0 7px 18px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.22);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--astro-transition), box-shadow var(--astro-transition), filter var(--astro-transition);
}
.astro-button:hover, .wp-element-button:hover, button:not(.astro-nav-toggle):hover, input[type="submit"]:hover {
  color: #fff;
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.26);
}
.astro-button--ghost { color: #f3e6cb; background: transparent; border-color: rgba(198,165,102,.62); box-shadow: none; }
.astro-nav-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; }
.astro-nav-toggle span:not(.screen-reader-text) { display: block; width: 24px; height: 2px; margin: 5px auto; background: #f7ead0; }

.astro-page { min-height: 65vh; padding: clamp(48px, 7vw, 96px) 0; }
.astro-page--home { padding: 0; }
.astro-page--centered { display: grid; place-items: center; }
.astro-content { font-size: 1.04rem; }
.astro-content--flush > *:first-child { margin-top: 0; }
.astro-content--card, .astro-empty-state {
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--astro-border);
  border-radius: var(--astro-radius-lg);
  background: rgba(251,247,237,.9);
  box-shadow: var(--astro-shadow-md);
}
.astro-page-header { margin-bottom: 2.5rem; text-align: center; }
.astro-kicker { color: var(--astro-brass); font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.astro-empty-state { text-align: center; }

.astro-footer { color: #e8dcc5; background: var(--astro-charcoal); border-top: 1px solid rgba(198,165,102,.38); }
.astro-footer__inner { min-height: 120px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.astro-footer p { margin: 0; }
.astro-footer a { color: #dbc18e; }
.astro-footer__credit { font-size: .9rem; opacity: .9; }

/* WordPress and plugin surfaces */
.entry-content > :where(.alignwide) { width: min(calc(100vw - 40px), 1200px); max-width: none; margin-inline: calc(50% - min(50vw - 20px, 600px)); }
.entry-content > :where(.alignfull) { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); }
.astro-content table, .wp-block-table table { width: 100%; border-collapse: collapse; background: rgba(251,247,237,.84); }
.astro-content th, .astro-content td { padding: .85rem 1rem; border: 1px solid var(--astro-border); }
.astro-content th { color: var(--astro-brown); background: rgba(166,129,69,.12); }
input[type="text"], input[type="email"], input[type="url"], input[type="number"], input[type="date"], input[type="time"], input[type="password"], textarea, select {
  width: 100%;
  min-height: 46px;
  padding: .72rem .85rem;
  border: 1px solid rgba(75,53,37,.34);
  border-radius: 10px;
  color: var(--astro-ink);
  background: rgba(255,252,245,.94);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.05);
}
textarea { min-height: 140px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(166,129,69,.22); border-color: var(--astro-brass); }

/* Existing Astrolabe plugin helpers */
[class*="astrolabe-home"], [class*="astro-home"] { isolation: isolate; }
.astrolabe-home__hero, .astro-home__hero, .astrolabe-hero {
  min-height: min(760px, calc(100vh - 78px));
}
.astrolabe-festival-card, .festival-card, .astro-festival-card {
  transition: transform var(--astro-transition), box-shadow var(--astro-transition), filter var(--astro-transition);
}
.astrolabe-festival-card:hover, .festival-card:hover, .astro-festival-card:hover {
  transform: translateY(-4px);
  filter: brightness(1.015);
}

@media (max-width: 900px) {
  .astro-nav-toggle { display: block; }
  .astro-header__actions {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    padding: 18px 20px 22px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(32,32,30,.98);
    border-bottom: 1px solid rgba(198,165,102,.42);
  }
  .astro-header__actions.is-open { display: flex; }
  .astro-header__actions .astro-button, .astro-header__actions .astro-link { width: 100%; text-align: center; justify-content: center; padding: .75rem 1rem; }
  .astro-footer__inner { padding-block: 32px; flex-direction: column; text-align: center; }
}
@media (max-width: 782px) { .admin-bar .astro-header { top: 0; } }
@media (max-width: 560px) {
  .astro-container { width: min(calc(100% - 24px), var(--astro-container)); }
  .astro-header__inner { min-height: 68px; }
  .astro-brand__mark { width: 32px; }
  .astro-brand__name { font-size: 1.7rem; }
  .astro-page { padding-block: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
