:root {
  --bg: #f6efe4;
  --bg-alt: #efe4d3;
  --paper: #fffaf3;
  --ink: #2a221b;
  --muted: #5c5148;
  --clay: #9a4332;
  --clay-dark: #7a3326;
  --pine: #3f5c4a;
  --pine-dark: #2d4436;
  --sand: #c4a574;
  --sun: #e8c48a;
  --line: #e6d9c8;
  --footer: #1f1a16;
  --footer-text: #ece3d6;
  --footer-muted: #b5a898;
  --max: 1180px;
  --narrow: 740px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 14px 40px rgba(42, 34, 27, 0.1);
  --shadow-sm: 0 6px 18px rgba(42, 34, 27, 0.07);
  --font-display: "Fraunces", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --space: 1.25rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font: 1.125rem/1.65 var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  min-height: 100%;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--pine); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--pine-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 4vw + 1rem, 3.6rem); margin: 0 0 0.4em; }
h2 { font-size: clamp(1.6rem, 2vw + 1rem, 2.15rem); margin: 0 0 0.5em; }
h3 { font-size: 1.3rem; margin: 0 0 0.4em; }

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--clay);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

.wrap { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
.narrow { width: min(var(--narrow), calc(100% - 2rem)); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 243, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  min-width: 0;
}
.logo img { width: 40px; height: 40px; flex: none; border-radius: 10px; }
.logo:hover { color: var(--ink); }
.logo span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.site-nav { display: flex; align-items: center; gap: 0.25rem 1.5rem; }
.site-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--clay);
  border-bottom-color: var(--clay);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.35rem;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 24px;
  height: 20px;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

main { padding: 0 0 4.5rem; }
main:has(.related),
main:has(> .section:last-child),
main:has(> .section-alt:last-child) { padding-bottom: 0; }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.1rem 0 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--clay);
  color: #fffaf3;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  border: 2px solid var(--clay);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--clay-dark); border-color: var(--clay-dark); color: #fffaf3; }
.btn-ghost {
  background: transparent;
  color: var(--clay);
}
.btn-ghost:hover { background: var(--clay); color: #fffaf3; }
.btn-on-dark {
  background: transparent;
  color: #fffaf3;
  border-color: rgba(255, 250, 243, 0.75);
}
.btn-on-dark:hover { background: #fffaf3; color: var(--ink); border-color: #fffaf3; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 0.6rem;
}
.eyebrow-light { color: var(--sun); }

.lead { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }

.section { padding: 4.25rem 0; }
.section-alt { background: var(--bg-alt); }
.section-heading { margin-bottom: 1.75rem; }
.section-more { margin: 1.75rem 0 0; font-weight: 600; }
.section-more a { text-decoration: none; color: var(--clay); }
.section-more a:hover { color: var(--clay-dark); text-decoration: underline; }

/* Hero */
.hero {
  position: relative;
  min-height: min(78vh, 740px);
  display: flex;
  align-items: flex-end;
  color: #fffaf3;
  margin: 0 0 0;
  overflow: hidden;
}
.hero-media,
.hero-overlay { position: absolute; inset: 0; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}
.hero-overlay {
  background:
    linear-gradient(180deg, rgba(20, 14, 10, 0.12) 0%, rgba(20, 14, 10, 0.2) 40%, rgba(20, 14, 10, 0.78) 100%),
    linear-gradient(90deg, rgba(20, 14, 10, 0.4) 0%, rgba(20, 14, 10, 0.08) 55%, transparent 100%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0 3.5rem;
}
.hero h1 {
  color: #fffaf3;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
  margin-bottom: 0.3em;
}
.hero .lead {
  color: #f3e9dc;
  max-width: 34rem;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.3);
}

/* Page intro (interior) */
.page-intro {
  padding: 3rem 0 2.25rem;
}
.page-intro h1 { margin-bottom: 0.3em; }

/* Post + location cards */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}
.post-card,
.place-card,
.featured-card,
.location-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.post-card-media,
.place-card-media,
.featured-card-media,
.location-card-media,
.location-photo,
.about-photo,
.split-band-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--bg-alt);
}
.post-card-media,
.place-card-media { aspect-ratio: 3 / 2; }
.post-card-media img,
.place-card-media img,
.featured-card-media img,
.location-card-media img,
.location-photo img,
.about-photo img,
.split-band-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.hero-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.post-card:hover .post-card-media img,
.place-card:hover .place-card-media img,
.featured-card:hover .featured-card-media img {
  transform: scale(1.04);
}
.post-card-body,
.place-card-body,
.featured-card-body,
.location-card-body { padding: 1.25rem 1.3rem 1.4rem; }
.post-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-title,
.featured-card-body h3,
.place-card h2,
.place-card h3 { margin: 0 0 0.4em; font-size: 1.28rem; }
.post-card-title a,
.featured-card-body h3 a,
.place-card h2 a,
.place-card h3 a {
  color: var(--ink);
  text-decoration: none;
}
.post-card-title a:hover,
.featured-card-body h3 a:hover,
.place-card h2 a:hover,
.place-card h3 a:hover { color: var(--clay); }

.post-card-excerpt { color: var(--muted); font-size: 1.02rem; }
.post-card-more { margin-top: auto; padding-top: 0.9rem; }
.post-card-more a {
  font-weight: 700;
  color: var(--clay);
  text-decoration: none;
}
.post-card-more a:hover { text-decoration: underline; }

.meta, .small, .crumbs { color: var(--muted); font-size: 0.95rem; }
.meta { margin: 0 0 0.55rem; }
.meta-tag { color: var(--pine); font-weight: 600; text-decoration: none; }
.meta-tag:hover { text-decoration: underline; }
.crumbs { margin: 0 0 1rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--clay); }
.crumbs span[aria-hidden] { margin: 0 0.35em; color: var(--sand); }

.featured-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  margin-bottom: 1.5rem;
  min-height: 320px;
}
.featured-card-media { min-height: 280px; }
.featured-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}
.featured-card-body h3 { font-size: clamp(1.5rem, 2vw + 1rem, 2rem); }

.location-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.place-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}
.place-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.place-card-body .btns { margin-top: auto; }
.place-card-name { font-weight: 600; margin-bottom: 0.35rem; }

/* Location callout in posts */
.location-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-sm);
}
.location-card-media { min-height: 100%; aspect-ratio: auto; }
.location-card h3 { margin-top: 0; }

.location-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem 2rem;
  align-items: start;
}
.location-photo {
  border-radius: var(--radius);
  grid-column: 1 / -1;
  aspect-ratio: 16 / 7;
  box-shadow: var(--shadow-sm);
}
.location-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
  box-shadow: var(--shadow-sm);
}
.location-panel h2 { margin-top: 0; }
.location-panel h3 { margin-top: 1.3rem; font-size: 1.05rem; letter-spacing: 0.04em; text-transform: uppercase; font-family: var(--font-sans); font-weight: 700; color: var(--clay); }
.hours-list { list-style: none; padding: 0; margin: 0 0 0.5rem; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
}
.location-map { min-width: 0; }
.location-map h2 { margin-top: 0; }
.map { width: 100%; height: 360px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-alt); }

/* Split / about */
.split-band {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.split-band-media,
.about-photo {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.split-band-media { aspect-ratio: 4 / 3; }
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}
.about-photo { aspect-ratio: 4 / 3; margin: 0; }

/* Article */
.post-hero { padding: 2.4rem 0 0; }
.post-hero h1 { margin-bottom: 0.25em; }
.post-hero-img-wrap { margin-top: 1.6rem; }
.hero-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  height: auto;
}

.prose { font-size: 1.14rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 0.3em; }
.prose table {
  border-collapse: collapse;
  width: 100%;
  display: block;
  overflow-x: auto;
  font-size: 1rem;
  background: var(--paper);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.prose th, .prose td { border: 1px solid var(--line); padding: 0.7rem 0.85rem; text-align: left; }
.prose th { background: var(--bg-alt); font-weight: 700; }
.prose blockquote {
  margin: 1.4em 0;
  padding: 0.2em 0 0.2em 1.1em;
  border-left: 3px solid var(--sand);
  color: var(--muted);
  font-style: italic;
}
.prose em { color: var(--muted); }

.tags { margin-top: 2rem; }
.tags a, .tag-cloud a {
  display: inline-block;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--pine-dark);
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.tags a:hover, .tag-cloud a:hover { border-color: var(--clay); color: var(--clay); }
.tag-cloud { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.7rem; }
.tag-cloud-lg a { padding: 0.5rem 1rem; font-size: 1.05rem; }

.related { margin-top: 3.5rem; padding-top: 3rem; background: var(--bg-alt); padding-bottom: 3.5rem; }
.related .section-heading { margin-bottom: 1.4rem; }
.post .related { margin-left: 0; }

.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  font-weight: 700;
}
.pager a { text-decoration: none; color: var(--clay); }
.pager a:hover { text-decoration: underline; }

.not-found { padding: 4.5rem 0 2rem; text-align: center; }
.not-found .lead { margin-left: auto; margin-right: auto; }
.not-found .btns { justify-content: center; }

/* Footer */
.site-footer {
  background: var(--footer);
  color: var(--footer-text);
  padding: 3.25rem 0 2rem;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--sun); }
.logo-footer { color: #fffaf3; margin-bottom: 0.8rem; }
.logo-footer:hover { color: #fffaf3; }
.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2.5rem;
  align-items: start;
}
.footer-brand p { color: var(--footer-muted); max-width: 22rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.85rem 1.1rem; margin-top: 1rem; font-weight: 600; }
.footer-links a { text-decoration: none; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  font-size: 0.98rem;
}
.nap p { margin: 0.4rem 0 0; color: var(--footer-muted); }
.disclosure {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
  color: var(--footer-muted);
  max-width: 70rem;
}
.site-footer .small { color: #9b9084; margin-top: 1rem; }
.site-footer .small a { color: #d9cfc3; }

@media (max-width: 960px) {
  .location-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .featured-card,
  .split-band,
  .about-layout,
  .location-layout,
  .footer-top { grid-template-columns: 1fr; }
  .featured-card-media { aspect-ratio: 16 / 9; min-height: 0; }
  .location-photo { aspect-ratio: 16 / 9; }
  .location-card { grid-template-columns: 1fr; }
  .location-card-media { aspect-ratio: 16 / 9; }
}

@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1rem 1.1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    box-shadow: var(--shadow-sm);
  }
  .nav-open .site-nav { display: flex; }
  .site-nav a {
    padding: 0.75rem 0.4rem;
    border-bottom: 1px solid var(--line);
  }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); }
  .hero { min-height: min(70vh, 620px); }
  .hero-copy { padding: 4.5rem 0 2.4rem; }
}

@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .wrap { width: min(var(--max), calc(100% - 1.5rem)); }
  .post-grid,
  .location-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
  .page-intro { padding: 2.2rem 0 1.5rem; }
  .featured-card-body,
  .post-card-body,
  .place-card-body { padding: 1.15rem 1.1rem 1.25rem; }
  .logo { font-size: 1.05rem; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .post-card-media img,
  .place-card-media img,
  .featured-card-media img,
  .nav-toggle-bar { transition: none; }
}
