/* ============================================================
   Sewfunn Dandelion Lessons - Public site styles
   Matches the homepage mockup design
   ============================================================ */

:root {
  --brown: #412402;
  --brown-light: #633806;
  --brown-mid: #854F0B;
  --amber: #EF9F27;
  --amber-light: #FAC775;
  --cream: #FAEEDA;
  --cream-light: #FEFDFA;
  --page: #F5F2EA;
  --text: #2C2C2A;
  --text-muted: #5F5E5A;
  --text-faint: #888780;
  --border: #E6E2D6;
  --pink: #993556;
  --pink-light: #F4C0D1;
  --pink-bg: #FBEAF0;
}

/* ============================================================
   Page load fade-in (prevents flash of footer/placeholder while content loads)
   When body has data-loading="true", hide everything except the header.
   When JS finishes initial render, the attribute is removed and content fades in.
   ============================================================ */

body[data-loading="true"] .hero,
body[data-loading="true"] .page-hero,
body[data-loading="true"] .featured-section,
body[data-loading="true"] .upcoming-section,
body[data-loading="true"] .about-preview,
body[data-loading="true"] .gallery-section,
body[data-loading="true"] .mission-section,
body[data-loading="true"] .blog-preview-section,
body[data-loading="true"] .classes-tabs,
body[data-loading="true"] .classes-list,
body[data-loading="true"] .classes-calendar,
body[data-loading="true"] .class-detail,
body[data-loading="true"] .gallery-full-grid,
body[data-loading="true"] .about-narrative,
body[data-loading="true"] .julies-work-section,
body[data-loading="true"] .blog-list,
body[data-loading="true"] .blog-post,
body[data-loading="true"] .contact-content,
body[data-loading="true"] .site-footer {
  opacity: 0;
}

.hero, .page-hero, .featured-section, .upcoming-section, .about-preview,
.gallery-section, .mission-section, .blog-preview-section, .classes-tabs,
.classes-list, .classes-calendar, .class-detail, .gallery-full-grid, .about-narrative,
.julies-work-section, .blog-list, .blog-post, .contact-content, .site-footer {
  transition: opacity 0.25s ease-in;
}

/* ============================================================
   Reset + base
   ============================================================ */

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--cream-light);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
  margin: 0 0 16px;
}

p { margin: 0 0 16px; }

a {
  color: var(--brown-light);
  text-decoration: none;
}
a:hover { color: var(--brown); }

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

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

/* ============================================================
   Utility classes
   ============================================================ */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.3;
  text-align: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--brown);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--brown-light);
  color: var(--cream);
}

.btn-secondary {
  background: transparent;
  border-color: var(--brown-mid);
  color: var(--brown);
}
.btn-secondary:hover {
  background: var(--cream);
  color: var(--brown);
}

.btn-amber {
  background: var(--amber-light);
  color: var(--brown);
}
.btn-amber:hover {
  background: var(--amber);
}

.btn-amber-outline {
  background: transparent;
  border-color: var(--amber-light);
  color: var(--cream);
}
.btn-amber-outline:hover {
  background: var(--amber-light);
  color: var(--brown);
}

.btn-pink {
  background: var(--pink);
  color: var(--pink-bg);
}
.btn-pink:hover {
  background: #72243E;
}

.btn-pink-outline {
  background: transparent;
  border-color: var(--pink);
  color: var(--pink);
}
.btn-pink-outline:hover {
  background: var(--pink);
  color: var(--pink-bg);
}

/* ============================================================
   Site header (top nav)
   ============================================================ */

.site-header {
  background: var(--cream-light);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo {
  height: 135px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.site-nav a {
  font-size: 14px;
  color: var(--text);
  font-weight: 400;
}
.site-nav a:hover { color: var(--brown); }
.site-nav a.active { color: var(--brown); font-weight: 500; }

.donate-link {
  background: var(--brown);
  color: var(--cream) !important;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}
.donate-link:hover {
  background: var(--brown-light);
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
}

/* ============================================================
   Hero (homepage)
   ============================================================ */

.hero {
  padding: 80px 24px 64px;
  text-align: center;
  background: var(--cream);
}

.hero h1 {
  font-size: 46px;
  color: var(--brown);
  margin: 0 0 16px;
  line-height: 1.1;
}

.hero-tagline {
  font-size: 17px;
  color: var(--brown-light);
  max-width: 480px;
  margin: 0 auto 28px;
  line-height: 1.5;
}

/* ============================================================
   Romans 5:3-5 scripture quote at the bottom of the donate band
   Sits on the dark mission-section background, so text is light.
   ============================================================ */
.mission-scripture {
  margin: 36px auto 0;
  max-width: 620px;
  text-align: center;
  font-family: 'Fraunces', Georgia, serif;
  color: rgba(255, 255, 255, 0.86);
  padding: 24px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mission-scripture blockquote {
  margin: 0 0 10px;
  padding: 0;
  font-style: italic;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
  border: 0;
}

.mission-scripture figcaption {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
}
/* ============================================================
   Mission band (top of homepage, just under the hero)
   ============================================================ */
.mission-band {
  background: var(--cream-light);
  padding: 56px 24px 60px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.mission-band .eyebrow {
  display: block;
  margin-bottom: 18px;
}

.mission-band-lead {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  line-height: 1.6;
  color: var(--brown);
  margin: 0 auto 22px;
  max-width: 760px;
}

.mission-band-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 auto;
  max-width: 680px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   Page hero (smaller, for inner pages)
   ============================================================ */

.page-hero {
  padding: 60px 24px 48px;
  text-align: center;
  background: var(--cream);
}

.page-hero h1 {
  font-size: 38px;
  color: var(--brown);
  margin: 0 0 12px;
}

.page-hero p {
  font-size: 16px;
  color: var(--brown-light);
  max-width: 540px;
  margin: 0 auto;
}

/* ============================================================
   Up Next + Wednesday Sewing Days side-by-side
   ============================================================ */

.featured-section {
  padding: 56px 24px;
  background: var(--cream-light);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.featured-card {
  background: var(--cream-light);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.featured-card-image {
  aspect-ratio: 16 / 10;
  background: var(--amber-light);
  display: block;
  width: 100%;
  object-fit: cover;
}

/* ============================================================
   Open Sew Wednesdays flyer card
   Replaces the old text-based Wednesday Sewing Days block.
   Uses the square Instagram-style flyer as the entire visual.
   ============================================================ */
.wednesday-flyer-card {
  /* Same border/bg/radius as featured-card; just override the image area */
}

.wednesday-flyer-link {
  display: block;
  line-height: 0; /* prevent inline-image whitespace under the img */
}

.wednesday-flyer-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;   /* matches the source */
  object-fit: cover;
}

.wednesday-flyer-body {
  padding: 20px 26px 24px;
  text-align: center;
}

.wednesday-flyer-body .featured-card-buttons {
  justify-content: center;
  margin: 0;
}

.featured-card-body {
  padding: 24px 26px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.featured-card-eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--brown-mid);
  margin-bottom: 6px;
  font-weight: 500;
}

.featured-card-eyebrow.eyebrow-pink {
  color: var(--pink);
}

.featured-card h2 {
  font-size: 23px;
  margin: 0 0 12px;
  line-height: 1.2;
  color: var(--text);
}

.featured-card-summary {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 16px;
}

.featured-card-details {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 6px 12px;
  font-size: 13px;
  margin-bottom: 20px;
  color: var(--text);
}

.featured-card-details dt {
  color: var(--text-faint);
}

.featured-card-buttons {
  margin-top: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ============================================================
   Upcoming classes strip
   ============================================================ */

.upcoming-section {
  padding: 40px 24px 56px;
  background: var(--cream-light);
  border-top: 1px solid var(--border);
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-size: 22px;
  margin: 0;
  color: var(--text);
}

.section-header a {
  font-size: 13px;
  color: var(--brown-mid);
}

.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.class-card {
  background: var(--cream-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
}
.class-card:hover {
  border-color: var(--amber);
  transform: translateY(-1px);
}

.class-card-image {
  aspect-ratio: 3 / 2;
  width: 100%;
  background: var(--amber-light);
  object-fit: cover;
  display: block;
}

.class-card-body { padding: 14px 16px 16px; }

.class-card-eyebrow {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--brown-mid);
  margin-bottom: 4px;
  font-weight: 500;
  text-transform: uppercase;
}

.class-card-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 4px;
  line-height: 1.25;
}

.class-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================================
   About preview (homepage)
   ============================================================ */

.about-preview {
  padding: 64px 24px;
  background: var(--page);
  border-top: 1px solid var(--border);
}

.about-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.about-preview-image {
  aspect-ratio: 4 / 5;
  background: var(--amber-light);
  border-radius: 8px;
  overflow: hidden;
}
.about-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-preview h2 {
  font-size: 30px;
  margin: 0 0 16px;
  color: var(--text);
}

.about-preview p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 14px;
}

/* ============================================================
   Gallery preview (homepage student work)
   ============================================================ */

.gallery-section {
  padding: 56px 24px 64px;
  background: var(--cream-light);
}

.gallery-section .section-header { text-align: center; flex-direction: column; gap: 4px; align-items: center; }
.gallery-section .section-header h2 { font-size: 26px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-tile {
  aspect-ratio: 1;
  background: var(--amber-light);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}
.gallery-tile:hover img { transform: scale(1.04); }

/* Full gallery page - 3 cols, bigger, with captions */
.gallery-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-item {
  background: var(--cream-light);
}

.gallery-item-image {
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--cream);
}
.gallery-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item-caption {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 4px;
  line-height: 1.3;
}

.gallery-item-meta {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
.gallery-item-meta a {
  color: var(--brown-mid);
  border-bottom: 0.5px solid var(--brown-mid);
}
.gallery-item-attribution {
  font-style: italic;
}

/* ============================================================
   Mission section
   ============================================================ */

.mission-section {
  padding: 64px 24px;
  background: var(--brown);
  color: var(--cream);
  text-align: center;
}

.mission-eyebrow { color: var(--amber-light); }

.mission-text {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  line-height: 1.5;
  max-width: 580px;
  margin: 0 auto 24px;
  color: var(--cream);
}

.mission-address {
  font-size: 13px;
  color: var(--amber-light);
  margin-bottom: 28px;
}

.mission-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   Blog preview (homepage)
   ============================================================ */

.blog-preview-section {
  padding: 56px 24px;
  background: var(--cream-light);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.blog-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-card-image {
  aspect-ratio: 3 / 2;
  background: var(--amber-light);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}
.blog-card-image img {
  width: 100%; height: 100%; object-fit: cover;
}

.blog-card-eyebrow {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.blog-card-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

/* ============================================================
   About page (full)
   ============================================================ */

.about-narrative {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px;
}

.about-narrative .pull-quote {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 19px;
  color: var(--brown-light);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 32px;
}

.about-narrative h2 {
  font-size: 26px;
  margin: 24px 0 16px;
}

.about-narrative p {
  font-size: 16px;
  line-height: 1.75;
}

.julies-work-section {
  background: var(--page);
  padding: 64px 24px;
  border-top: 1px solid var(--border);
}

.julies-work-header {
  text-align: center;
  margin-bottom: 36px;
}
.julies-work-header h2 {
  font-size: 30px;
  margin-bottom: 12px;
}
.julies-work-header p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ============================================================
   Class detail page
   ============================================================ */

.class-detail {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.class-detail-back {
  display: inline-block;
  font-size: 13px;
  color: var(--brown-mid);
  margin-bottom: 24px;
}

.class-detail-image {
  aspect-ratio: 16 / 9;
  background: var(--amber-light);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 32px;
}
.class-detail-image img {
  width: 100%; height: 100%; object-fit: cover;
}

.class-detail-header {
  margin-bottom: 32px;
}

.class-detail h1 {
  font-size: 36px;
  margin: 8px 0 12px;
}

.class-detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px 32px;
  padding: 20px 24px;
  background: var(--cream);
  border-radius: 8px;
  margin-bottom: 32px;
}

.class-detail-meta dt {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--brown-mid);
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.class-detail-meta dd {
  font-size: 14px;
  color: var(--text);
  margin: 0;
}

.class-detail-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 36px;
}
.class-detail-body p { margin-bottom: 16px; }
.class-detail-body ul, .class-detail-body ol { margin-bottom: 16px; padding-left: 24px; }
.class-detail-body li { margin-bottom: 6px; }
.class-detail-body strong { font-weight: 600; }

.class-detail-signup {
  background: var(--cream);
  padding: 28px 32px;
  border-radius: 10px;
  text-align: center;
}
.class-detail-signup h3 {
  margin: 0 0 12px;
  font-size: 20px;
}
.class-detail-signup p {
  margin-bottom: 18px;
  color: var(--text);
}

/* ============================================================
   Classes list page
   ============================================================ */

/* ============================================================
   Class calendar (top of /classes.html)
   ============================================================ */
.classes-calendar {
  max-width: 1100px;
  margin: 24px auto 36px;
  padding: 0 24px;
}

.calendar-mount {
  background: var(--cream-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px 22px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.calendar-month-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  color: var(--brown);
  font-weight: 500;
}

.calendar-header-right {
  display: flex;
  gap: 8px;
}

.calendar-nav-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--brown);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.4;
}
.calendar-nav-btn:hover {
  background: var(--cream);
  border-color: var(--brown-light);
}
.calendar-nav-today {
  font-size: 12px;
  padding: 6px 12px;
  color: var(--brown-mid);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.calendar-weekday {
  background: var(--cream);
  color: var(--brown-mid);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 4px;
  font-weight: 500;
}

.calendar-cell {
  background: #FEFDFA;
  min-height: 96px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.calendar-cell-other-month {
  background: var(--cream);
}

.calendar-cell-other-month .calendar-cell-day {
  color: var(--text-faint);
}

.calendar-cell-past {
  background: #FAF7F0;
}

.calendar-cell-today {
  background: #FFF6E3;
}
.calendar-cell-today .calendar-cell-day {
  color: var(--amber-dark, #854F0B);
  font-weight: 600;
}

.calendar-cell-day {
  font-size: 12px;
  color: var(--brown-mid);
  font-weight: 500;
  text-align: right;
  padding: 0 2px 2px;
}

.calendar-entry {
  display: block;
  background: var(--amber-light, #F4E4C1);
  color: var(--brown);
  text-decoration: none;
  font-size: 11px;
  line-height: 1.25;
  padding: 3px 6px;
  border-radius: 4px;
  border-left: 2px solid var(--amber, #B8893D);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s;
}
.calendar-entry:hover, .calendar-entry:focus {
  background: var(--amber, #E0C998);
  transform: translateX(2px);
  outline: none;
}

.calendar-entry-past {
  background: #ECE6D8;
  color: var(--text-muted);
  border-left-color: #C2B89E;
}

.calendar-entry-title {
  font-weight: 500;
}

.calendar-overflow {
  background: transparent;
  border: none;
  color: var(--brown-mid);
  font-size: 10px;
  text-align: left;
  padding: 1px 6px;
  cursor: pointer;
  font-family: inherit;
}
.calendar-overflow:hover {
  color: var(--brown);
  text-decoration: underline;
}

/* Tooltip / preview popover */
.calendar-tooltip {
  position: absolute;
  display: none;
  background: #FEFDFA;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(20, 12, 4, 0.12);
  padding: 0;
  width: 280px;
  max-width: calc(100vw - 24px);
  z-index: 1000;
  font-size: 14px;
  overflow: hidden;
}

.calendar-tooltip-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--cream);
  overflow: hidden;
}
.calendar-tooltip-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.calendar-tooltip-body {
  padding: 12px 14px 14px;
}

.calendar-tooltip-date {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--brown-mid);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.calendar-tooltip-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 17px;
  color: var(--brown);
  margin-bottom: 6px;
  line-height: 1.2;
}

.calendar-tooltip-summary {
  font-size: 13px;
  color: var(--text-muted);
  margin: 6px 0 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.calendar-tooltip-link {
  display: inline-block;
  color: var(--brown);
  font-weight: 500;
  font-size: 13px;
  text-decoration: none;
  padding: 4px 0;
}
.calendar-tooltip-link:hover { text-decoration: underline; }

.calendar-tooltip-overflow-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}
.calendar-tooltip-overflow-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--brown);
  font-size: 13px;
}
.calendar-tooltip-overflow-item:hover {
  background: var(--cream);
}
.calendar-tooltip-overflow-time {
  color: var(--text-faint);
  font-size: 12px;
}

.classes-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  margin: 32px auto 28px;
  max-width: 1100px;
  padding: 0 24px;
}

.classes-tab {
  padding: 12px 0;
  font-size: 15px;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  text-decoration: none;
}
.classes-tab.active {
  color: var(--brown);
  border-bottom-color: var(--amber);
  font-weight: 500;
}

.classes-list {
  max-width: 1100px;
  margin: 0 auto 64px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ============================================================
   Blog list + single post
   ============================================================ */

.blog-list {
  max-width: 1100px;
  margin: 32px auto 64px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-post {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}
.blog-post h1 {
  font-size: 36px;
  margin-bottom: 8px;
}
.blog-post-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.blog-post-image {
  aspect-ratio: 16 / 9;
  background: var(--amber-light);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 32px;
}
.blog-post-image img {
  width: 100%; height: 100%; object-fit: cover;
}
.blog-post-body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
}
.blog-post-body p { margin-bottom: 18px; }
.blog-post-body img { margin: 24px 0; border-radius: 6px; }

/* ============================================================
   Contact page
   ============================================================ */

.contact-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 32px;
}
.contact-block h3 {
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--brown-mid);
  text-transform: uppercase;
  margin: 0 0 12px;
}
.contact-block p { font-size: 15px; line-height: 1.7; }

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--text);
  color: #D3D1C7;
  padding: 40px 24px 32px;
}

.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 32px;
}

.site-footer h3 {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #888780;
  text-transform: uppercase;
  margin: 0 0 12px;
  font-weight: 500;
}

.site-footer .footer-brand {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 16px;
  color: var(--cream);
  margin-bottom: 10px;
}

.site-footer p {
  font-size: 13px;
  line-height: 1.6;
  color: #B4B2A9;
  margin: 0 0 6px;
}

.site-footer a {
  color: #D3D1C7;
  display: block;
  font-size: 13px;
  line-height: 2;
  text-decoration: none;
}
.site-footer a:hover { color: var(--cream); }

.footer-bottom {
  border-top: 1px solid #444441;
  padding-top: 20px;
  margin-top: 32px;
  text-align: center;
  font-size: 12px;
  color: #888780;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   Empty / loading / error states
   ============================================================ */

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
  font-size: 14px;
  grid-column: 1 / -1;
}

.empty-state-icon {
  font-size: 32px;
  margin-bottom: 12px;
  opacity: 0.4;
}

.loading {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
  font-size: 14px;
  grid-column: 1 / -1;
}

/* ============================================================
   Lightbox
   ============================================================ */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(44, 44, 42, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px 24px;
}
.lightbox.open { display: flex; }
.lightbox-content {
  max-width: 900px;
  width: 100%;
  text-align: center;
}
.lightbox-image {
  max-height: 70vh;
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
}
.lightbox-caption {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  color: var(--cream);
  margin: 0 0 6px;
}
.lightbox-meta {
  font-size: 13px;
  color: var(--amber-light);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 28px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  line-height: 1;
}

/* ============================================================
   Responsive (mobile)
   ============================================================ */

@media (max-width: 900px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream-light);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    z-index: 100;
  }
  .site-nav.open { display: flex; }
  .mobile-nav-toggle { display: block; }
  .site-header { position: relative; }
  .site-logo { height: 95px; }

  .hero h1 { font-size: 32px; }
  .page-hero h1 { font-size: 28px; }
  .mission-band { padding: 40px 20px 44px; }
  .mission-band-lead { font-size: 18px; }
  .mission-band-body { font-size: 15px; }
  .mission-scripture { margin-top: 28px; padding: 20px 8px 0; }
  .mission-scripture blockquote { font-size: 14px; }

  .featured-grid { grid-template-columns: 1fr; }

  .upcoming-grid,
  .blog-grid,
  .classes-list,
  .blog-list,
  .gallery-full-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .about-preview-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .site-footer-inner { grid-template-columns: 1fr 1fr; }

  /* Calendar tightens on mobile - shorter cells, dots-only entries */
  .classes-calendar { padding: 0 12px; }
  .calendar-mount { padding: 14px 12px 16px; }
  .calendar-month-title { font-size: 18px; }
  .calendar-cell { min-height: 56px; padding: 3px; }
  .calendar-cell-day { font-size: 11px; padding: 0; }
  .calendar-weekday { font-size: 10px; padding: 6px 2px; }
  .calendar-entry {
    /* On small screens collapse the title to a colored bar */
    font-size: 0;
    padding: 0;
    height: 5px;
    border-radius: 3px;
    border-left: 0;
    background: var(--amber, #B8893D);
  }
  .calendar-entry-past {
    background: #C2B89E;
  }
  .calendar-overflow { font-size: 9px; padding: 0 2px; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .site-footer-inner { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .hero { padding: 56px 20px 48px; }
  .hero h1 { font-size: 28px; }
  .hero-tagline { font-size: 15px; }
  .featured-section,
  .upcoming-section,
  .about-preview,
  .gallery-section,
  .mission-section,
  .blog-preview-section {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ============================================================
   Footer button overrides
   The .site-footer a rule applies a light gray color to all links
   in the footer, which clobbers the .btn-amber's brown text.
   Re-establish the button colors with specificity that wins.
   ============================================================ */
.site-footer a.btn,
.site-footer .btn {
  color: var(--brown);
  display: inline-block;
  line-height: 1.3;
}
.site-footer a.btn-primary,
.site-footer .btn-primary {
  color: var(--cream);
}
.site-footer a.btn-amber-outline,
.site-footer .btn-amber-outline {
  color: var(--cream);
}

/* ============================================================
   Donation QR code in the mission band
   ============================================================ */
.mission-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 28px auto 8px;
}
.mission-qr img {
  width: 132px;
  height: 132px;
  background: white;
  border-radius: 8px;
  padding: 6px;
  display: block;
}
.mission-qr-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
  margin: 0;
}



/* ============================================================
   Footer button overrides v2 - stronger contrast.
   Previous fix used --brown (#412402) but it still read low-contrast
   against the amber-light background. Going near-black + bold weight
   with !important so nothing can override it.
   ============================================================ */
.site-footer a.btn-amber,
.site-footer .btn-amber {
  color: #1A1100 !important;
  font-weight: 700 !important;
  background: #F0B450 !important;  /* slightly stronger amber for contrast */
}
.site-footer a.btn-amber:hover,
.site-footer .btn-amber:hover {
  background: #E89F2A !important;
  color: #1A1100 !important;
}

/* ============================================================
   class-card-image-fit-override
   The square Wednesday flyer (and any portrait/square photo) gets
   chopped off by the default 3:2 cover crop. Switching to contain
   shows the whole image with a soft cream background for letterbox.
   ============================================================ */
.class-card-image {
  object-fit: contain !important;
  background: var(--cream-light) !important;
}

/* ============================================================
   About page narrative with sticky photo
   Two-column grid: photo in left column (sticky as you scroll),
   the bio in right column. Stacks vertically on mobile.
   ============================================================ */
.about-narrative.has-photo,
.about-narrative {
  /* Override the prior centered narrow layout */
  max-width: 1100px !important;
  padding: 48px 24px 64px !important;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
}

/* By default, everything inside about-narrative goes in the RIGHT column */
.about-narrative > * {
  grid-column: 2;
}

/* The photo aside is the exception - it lives in the LEFT column */
.about-narrative-photo {
  grid-column: 1 !important;
  grid-row: 1;
  position: sticky;
  top: 24px;
  align-self: start;
}

.about-narrative-photo img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

@media (max-width: 760px) {
  .about-narrative {
    grid-template-columns: 1fr !important;
    gap: 24px;
    padding: 32px 20px 48px !important;
  }
  .about-narrative > * {
    grid-column: 1;
  }
  .about-narrative-photo {
    grid-column: 1 !important;
    position: static;
    max-width: 280px;
  }
}

/* ============================================================
   about-narrative-row-gap-tighten
   Keep horizontal column gap but kill the vertical row gap so
   paragraphs use their natural margins for spacing.
   ============================================================ */
.about-narrative {
  row-gap: 0 !important;
  column-gap: 56px !important;
}
.about-narrative .pull-quote {
  margin-bottom: 16px !important;
}
.about-narrative h2 {
  margin: 12px 0 8px !important;
}
.about-narrative p {
  margin: 0 0 12px !important;
}
.about-narrative p:last-child {
  margin-bottom: 0 !important;
}

/* ============================================================
   class-detail-image-contain
   The class detail page hero defaults to aspect-ratio: 16/9 with
   object-fit: cover, which crops square or portrait flyers hard
   top-and-bottom. Switch to contain and loosen the aspect ratio
   a bit so a square image doesn't sit in a massive letterbox.
   Background matches the card surface so the letterbox area
   reads as intentional padding, not empty space.
   ============================================================ */
.class-detail-image {
  aspect-ratio: 4 / 3 !important;
  background: var(--amber-light) !important;
}
.class-detail-image img {
  object-fit: contain !important;
  background: var(--amber-light);
}

/* ============================================================
   card-image-pillarbox-blend
   When object-fit: contain leaves vertical bars (square image in
   a 3:2 frame), match those bars to the card body color so they
   read as part of the card instead of as a yellow border.
   ============================================================ */
.class-card-image,
.featured-card-image {
  background: var(--cream-light) !important;
}

/* ============================================================
   featured-card-image-bg-nuke
   The featured card on the homepage was showing a yellow
   (--amber-light) pillarbox when its image used object-fit: contain.
   Force the container AND any injected <img> to transparent so the
   card body's cream shows through.
   ============================================================ */
.featured-card-image,
.featured-card-image img,
.featured-card-image > div {
  background: transparent !important;
  background-color: transparent !important;
}

/* Make the card body color visible behind any letterbox bars */
.featured-card {
  background: var(--cream-light) !important;
}

/* ============================================================
   class-detail-image-bg-nuke
   The 16:9 hero frame on /class/[slug] pages was showing yellow
   pillarbox bars when displaying square images (Wednesday flyer).
   Force transparent on the container and child img so the page
   background shows through cleanly.
   ============================================================ */
.class-detail-image,
.class-detail-image img {
  background: transparent !important;
  background-color: transparent !important;
}

/* ============================================================
   calendar-tooltip-image-fit
   Tooltip preview image was cropping the square Wednesday flyer.
   Use contain so the whole image shows, and transparent background
   so the letterbox bars match the tooltip body color (#FEFDFA).
   ============================================================ */
.calendar-tooltip-image {
  background: transparent !important;
  background-color: transparent !important;
}
.calendar-tooltip-image img {
  object-fit: contain !important;
  background: transparent !important;
}

/* ============================================================
   lightbox-center-fix
   Make sure the clicked gallery photo and its caption/meta/
   description sit dead-center horizontally and vertically in
   the overlay, regardless of image proportions.
   ============================================================ */
.lightbox.open {
  align-items: center !important;
  justify-content: center !important;
}
.lightbox-content {
  text-align: center !important;
  margin: 0 auto !important;
  max-width: 900px !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}
.lightbox-image {
  display: block !important;
  margin: 0 auto 20px !important;
  max-width: 100% !important;
  max-height: 70vh !important;
}
.lightbox-caption,
.lightbox-meta,
.lightbox-description {
  text-align: center !important;
  width: 100% !important;
  max-width: 700px !important;
}

/* ============================================================
   wednesday-single-btn-center
   The Wednesday card used to have two buttons side-by-side
   ("Reserve a spot" + "Email Julie"). Now it has only one
   ("Email Julie to Reserve a Spot"); center it horizontally
   regardless of the wrapper layout (block, flex, etc.).
   ============================================================ */
.wednesday-single-btn {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: max-content !important;
  max-width: 100% !important;
}

/* ============================================================
   more-classes-placeholder-fit
   The "more classes coming soon" placeholder photo is portrait
   while the card frame is landscape (16:10). Default cover-crop
   shows only the middle of the photo. Use contain so the whole
   photo is visible; the bg-nuke rule already makes side bars
   blend with the card body.
   ============================================================ */
.featured-card-image[src*="more-classes-coming-soon"] {
  object-fit: contain !important;
}
