/* ============================================================
   Emily Barrera — site styles
   Palette & type live in :root so they're easy to tweak.
   ============================================================ */
:root {
  /* ── Palette drawn from Emily's watercolor rug ──
     plum brand · berry accent · seafoam calm · gold highlight · warm paper.
     (Historical var names kept; values remapped to the rug palette.) */
  --sage:        #6f4d7d;   /* PRIMARY brand — dusty plum/violet */
  --sage-dark:   #4f3659;   /* deep plum */
  --clay:        #a83a6d;   /* ACCENT — deep magenta/berry */
  --cream:       #f4f1ea;   /* page background — warm paper */
  --cream-soft:  #eae2d6;
  --ink:         #352d38;   /* body text — deep plum-charcoal */
  --ink-soft:    #6f6672;
  --line:        #e3dace;
  --white:       #fffdf9;

  /* Rug supporting tones */
  --green:       #7ea593;   /* seafoam field */
  --green-deep:  #5c8271;
  --gold:        #b98f3f;   /* ochre highlight */
  --berry-deep:  #872c56;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Nunito Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --maxw: 1080px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(52, 50, 44, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-dark); text-decoration: none; }
a:hover { color: var(--clay); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; color: var(--ink); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 720px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 241, 231, 0.9);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.brand-tag { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); }
.site-nav { display: flex; gap: 1.6rem; }
.site-nav a { font-size: 0.95rem; color: var(--ink); font-weight: 600; }
.site-nav a:hover { color: var(--clay); }

.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav-burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.25s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 0.8rem 1.6rem; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; transition: transform 0.15s ease, background 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--sage); color: var(--white); }
.btn-primary:hover { background: var(--sage-dark); color: var(--white); }
.btn-ghost { border: 1.5px solid var(--sage); color: var(--sage-dark); }
.btn-ghost:hover { background: var(--sage); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  /* Watercolor wash echoing the rug — seafoam, gold, berry, plum blended */
  background:
    radial-gradient(85% 70% at 12% 18%, rgba(126,165,147,0.38), transparent 60%),
    radial-gradient(75% 70% at 88% 8%, rgba(185,143,63,0.22), transparent 55%),
    radial-gradient(85% 85% at 78% 100%, rgba(168,58,109,0.20), transparent 55%),
    radial-gradient(70% 70% at 35% 95%, rgba(111,77,125,0.22), transparent 60%),
    linear-gradient(180deg, #edf1ec, var(--cream));
  padding: 5.5rem 0 4.5rem;
}
.hero-wrap { max-width: 820px; }
.hero-eyebrow { letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.78rem; color: var(--sage); font-weight: 700; margin: 0 0 1rem; }
.hero-title { font-size: clamp(2.4rem, 6vw, 4rem); margin: 0 0 1.2rem; letter-spacing: -0.01em; }
.hero-lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 620px; margin: 0 0 2rem; }
.hero-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 4rem 0; }
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin: 0 0 2rem; }
.section-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.text-link { font-weight: 700; color: var(--clay); }

/* Offerings grid */
.offerings { background: var(--white); }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; }
.offer-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.6rem; transition: transform 0.2s, box-shadow 0.2s;
}
.offer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.offer-card h3 { font-size: 1.35rem; margin: 0 0 0.5rem; color: var(--sage-dark); }
.offer-card p { margin: 0; color: var(--ink-soft); }

/* Feature split */
.feature-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center; }
.feature-text p { color: var(--ink-soft); font-size: 1.08rem; }
.feature-media {
  min-height: 320px; border-radius: var(--radius);
  /* Abstract rug-like blend */
  background:
    radial-gradient(55% 55% at 25% 22%, rgba(185,143,63,0.55), transparent 60%),
    radial-gradient(60% 60% at 82% 30%, rgba(126,165,147,0.6), transparent 58%),
    radial-gradient(65% 65% at 70% 88%, rgba(168,58,109,0.55), transparent 55%),
    linear-gradient(135deg, var(--sage), var(--sage-dark));
  box-shadow: var(--shadow);
}

/* Journal previews / cards */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; }
.post-card {
  display: block; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem; transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card h3 { margin: 0.3rem 0 0.6rem; font-size: 1.3rem; }
.post-card-meta, .post-row-meta { font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--sage); font-weight: 700; margin: 0; }
.post-card-excerpt { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }

/* ---------- Pages / prose ---------- */
.page, .post { padding: 3.5rem 0; }
.page-head, .post-head { margin-bottom: 2rem; }
.page-head h1, .post-head h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 0.5rem; }
.page-subtitle, .post-subtitle { font-size: 1.15rem; color: var(--ink-soft); margin: 0; }
.post-meta { font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--sage); font-weight: 700; margin: 0 0 0.6rem; }
.post-hero { border-radius: var(--radius); margin: 0 0 2rem; box-shadow: var(--shadow); }

.prose { font-size: 1.08rem; color: var(--ink); }
.prose h3 { font-size: 1.5rem; margin: 2.2rem 0 0.6rem; color: var(--sage-dark); }
.prose p { margin: 0 0 1.2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: 0.35rem 0; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.prose a { color: var(--clay); text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; overflow-x: auto; display: block; }
.prose th, .prose td { text-align: left; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--sans); font-weight: 700; color: var(--sage-dark); }
.prose blockquote { border-left: 3px solid var(--clay); margin: 1.5rem 0; padding: 0.3rem 0 0.3rem 1.2rem; color: var(--ink-soft); font-style: italic; }

/* Journal list */
.posts-list { display: flex; flex-direction: column; gap: 0.5rem; }
.post-row { display: block; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.post-row h2 { margin: 0.3rem 0 0.5rem; font-size: 1.5rem; }
.post-row-excerpt { color: var(--ink-soft); margin: 0; }
.post-foot { margin-top: 2.5rem; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; font-weight: 600; }

/* ---------- Schedule page ---------- */
.status-banner {
  display: flex; align-items: flex-start; gap: 0.9rem;
  border-radius: var(--radius); padding: 1.1rem 1.4rem; margin: 0 0 1.2rem;
  border: 1px solid var(--line);
}
.status-banner strong { font-family: var(--serif); font-size: 1.15rem; }
.status-banner p { margin: 0.2rem 0 0; color: var(--ink-soft); }
.status-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 0.45rem; flex: none; }
.status-in { background: #e8efe9; border-color: #c3d8ca; }
.status-in .status-dot { background: var(--green-deep); box-shadow: 0 0 0 4px rgba(92,130,113,0.18); }
.status-out { background: #f7edda; border-color: #e7d2a6; }
.status-out .status-dot { background: var(--gold); box-shadow: 0 0 0 4px rgba(185,143,63,0.18); }
.away-note {
  background: #f7edda; border: 1px solid #e7d2a6; border-radius: 10px;
  padding: 0.7rem 1.1rem; margin: 0 0 0.8rem; color: var(--ink); font-size: 0.97rem;
}

/* View toggle (Month / Week) */
.view-toggle {
  display: inline-flex; gap: 0.25rem; background: var(--cream-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.25rem; margin: 0 0 1.5rem;
}
.vt-btn {
  border: none; background: transparent; cursor: pointer; font-family: var(--sans);
  font-weight: 700; font-size: 0.9rem; color: var(--ink-soft);
  padding: 0.45rem 1.2rem; border-radius: 999px; transition: background 0.15s, color 0.15s;
}
.vt-btn.is-active { background: var(--sage); color: var(--white); }

/* Month calendar */
.cal-wrap { margin-bottom: 1rem; }
.cal-head { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin: 0 0 1rem; }
.cal-head h2 { font-size: 1.5rem; margin: 0; min-width: 12rem; text-align: center; }
.cal-nav {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--white); color: var(--sage); font-size: 1.4rem; line-height: 1; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.cal-nav:hover { background: var(--sage); color: var(--white); border-color: var(--sage); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.4rem; }
.cal-wd {
  text-align: center; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--sage); padding: 0.3rem 0;
}
.cal-cell {
  min-height: 78px; background: var(--white); border: 1px solid var(--line);
  border-radius: 10px; padding: 0.35rem 0.35rem 0.4rem; display: flex; flex-direction: column; gap: 0.2rem;
}
.cal-cell.cal-empty { background: transparent; border: none; }
.cal-num { font-size: 0.8rem; font-weight: 700; color: var(--ink-soft); }
.cal-today { border-color: var(--sage); box-shadow: 0 0 0 2px var(--sage) inset; }
.cal-today .cal-num { color: var(--sage); }
.cal-chip {
  font-size: 0.68rem; font-weight: 700; color: #fff; line-height: 1.2;
  padding: 0.12rem 0.35rem; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cal-off { font-size: 0.66rem; font-style: italic; color: var(--clay); }
.cal-hint { text-align: center; color: var(--ink-soft); font-size: 0.82rem; margin: 1rem 0 0; }

@media (max-width: 620px) {
  .cal-grid { gap: 0.25rem; }
  .cal-cell { min-height: 58px; padding: 0.25rem; border-radius: 8px; }
  .cal-num { font-size: 0.72rem; }
  .cal-chip { font-size: 0.6rem; padding: 0.1rem 0.2rem; }
  .cal-head h2 { font-size: 1.25rem; min-width: 9rem; }
}

/* Activity legend */
.legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; margin: 0 0 1.5rem; }
.legend-item { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--ink-soft); }
.legend-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }

/* Day selector tabs */
.day-tabs {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.5rem;
  margin: 0 0 1.5rem;
}
.day-tab {
  display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 0.7rem 0.3rem; cursor: pointer; font-family: var(--sans);
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.day-tab:hover { transform: translateY(-2px); border-color: var(--sage); }
.tab-day { font-weight: 700; font-size: 0.9rem; color: var(--ink); letter-spacing: 0.02em; }
.tab-state {
  font-size: 0.72rem; color: var(--ink-soft);
  min-width: 1.6em; height: 1.6em; line-height: 1.6em; text-align: center;
  border-radius: 999px; padding: 0 0.4em; background: var(--cream-soft);
}
.day-tab.is-active { background: var(--sage); border-color: var(--sage); }
.day-tab.is-active .tab-day { color: var(--white); }
.day-tab.is-active .tab-state { background: rgba(255,255,255,0.25); color: var(--white); }
/* Off days: muted, so on/off reads at a glance */
.day-tab.is-off { background: transparent; border-style: dashed; opacity: 0.72; }
.day-tab.is-off .tab-day { color: var(--ink-soft); }
.day-tab.is-off .tab-state { background: transparent; color: var(--ink-soft); font-style: italic; }
.day-tab.is-off.is-active { background: var(--ink-soft); border-style: solid; opacity: 1; }
.day-tab.is-off.is-active .tab-day, .day-tab.is-off.is-active .tab-state { color: var(--white); }

/* Day panel + class rows */
.panel-day { font-size: 1.6rem; margin: 0 0 1rem; }
.panel-rest { color: var(--ink-soft); font-style: italic; padding: 1.5rem 0; }
.class-row {
  display: flex; align-items: center; gap: 1.2rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.3rem; margin-bottom: 0.8rem; transition: box-shadow 0.2s, transform 0.15s;
}
.class-row:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.class-time { text-align: center; flex: none; min-width: 84px; padding-right: 1.1rem; border-right: 1px solid var(--line); }
.ct-time { display: block; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--sage-dark); }
.ct-dur { display: block; font-size: 0.75rem; color: var(--ink-soft); margin-top: 0.15rem; }
.class-info { flex: 1 1 auto; }
.class-info h3 { font-size: 1.2rem; margin: 0 0 0.25rem; }
.class-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0; }
.type-badge { font-size: 0.74rem; font-weight: 700; padding: 0.18rem 0.7rem; border-radius: 999px; }
.meta-chip {
  font-size: 0.75rem; color: var(--ink-soft); background: var(--cream-soft);
  padding: 0.15rem 0.6rem; border-radius: 999px;
}
.schedule-cta { margin-top: 1.8rem; color: var(--ink-soft); }

@media (max-width: 620px) {
  .day-tabs { grid-template-columns: repeat(7, 1fr); gap: 0.3rem; }
  .day-tab { padding: 0.55rem 0.1rem; border-radius: 10px; }
  .tab-day { font-size: 0.78rem; }
  .class-row { flex-wrap: wrap; gap: 0.8rem; padding: 1rem; }
  .class-time { min-width: auto; padding-right: 0.9rem; }
  .class-book { width: 100%; text-align: center; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--sage-dark); color: var(--cream); padding: 3rem 0 2rem; margin-top: 2rem; }
.footer-wrap { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: flex-start; }
.site-footer .brand-name { color: var(--white); font-size: 1.3rem; }
.footer-brand p { color: rgba(246,241,231,0.75); margin: 0.4rem 0 0; max-width: 320px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-links a { color: var(--cream); font-weight: 600; }
.footer-links a:hover { color: var(--clay); }
.footer-copy { width: 100%; color: rgba(246,241,231,0.6); font-size: 0.85rem; margin: 1.5rem 0 0; border-top: 1px solid rgba(246,241,231,0.15); padding-top: 1.2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav-burger { display: flex; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 0.5rem 1.5rem 1rem;
    max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
  }
  .nav-toggle:checked ~ .site-nav { max-height: 320px; }
  .site-nav a { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .feature-wrap { grid-template-columns: 1fr; }
  .feature-media { min-height: 220px; order: -1; }
}
