/* Melanie's Emporium — Storybook Emporium theme
   Cherry red + sky blue + honey on warm cream. Grandstander / Figtree. */

:root {
  --cherry: #c13b2c;
  --cherry-deep: #93291d;
  --sky: #8fc9e8;
  --sky-pale: #e3f2fb;
  --honey: #e5a33c;
  --cream: #fbf5e9;
  --paper: #fffdf8;
  --ink: #33261d;
  --ink-soft: #6b5a4e;
  --line: #e8dcc8;
}

/* ---------- base ---------- */

body {
  font-family: "Figtree", system-ui, -apple-system, sans-serif;
  background-color: var(--cream);
  color: var(--ink);
  line-height: 1.7;
}

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

h1, h2, h3, h4 {
  font-family: "Grandstander", "Comic Sans MS", cursive;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

h1 { font-size: 2.3rem; color: var(--cherry-deep); margin-bottom: 1rem; }
h2 { font-size: 1.55rem; margin-top: 2.2rem; margin-bottom: 0.9rem; }
h3 { font-size: 1.2rem; margin-top: 1.6rem; margin-bottom: 0.7rem; color: var(--cherry); }

a { color: var(--cherry); text-decoration-color: rgba(193, 59, 44, 0.35); text-underline-offset: 3px; }
a:hover { color: var(--cherry-deep); }

::selection { background: var(--sky); color: var(--ink); }

/* ---------- masthead & awning ---------- */

.site-masthead { background: var(--paper); }

.masthead-brand {
  font-family: "Grandstander", cursive;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 2.9rem);
  color: var(--cherry);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.masthead-brand:hover { color: var(--cherry-deep); }

.masthead-tagline {
  color: var(--ink-soft);
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.awning-stripe {
  height: 14px;
  background: repeating-linear-gradient(
    45deg,
    var(--cherry) 0 18px,
    var(--paper) 18px 36px
  );
  border-top: 2px solid var(--cherry-deep);
  border-bottom: 2px solid var(--cherry-deep);
}

/* ---------- navigation ---------- */

.site-nav {
  background: var(--sky-pale);
  border-bottom: 1px solid var(--line);
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.site-nav .nav-link {
  font-family: "Grandstander", cursive;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active { color: var(--cherry); }

.site-nav .dropdown-menu {
  background: var(--paper);
  border: 2px solid var(--sky);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(51, 38, 29, 0.12);
}

.site-nav .dropdown-item { color: var(--ink); font-weight: 500; }
.site-nav .dropdown-item:hover { background: var(--sky-pale); color: var(--cherry-deep); }
.site-nav .dropdown-item.active { background: var(--cherry); color: var(--paper); }

.navbar-toggler { border-color: var(--sky); }

/* ---------- homepage hero ---------- */

.home-hero { position: relative; margin-bottom: 4.5rem; }

.home-hero-fig img {
  max-height: 480px;
  object-fit: cover;
  border-bottom: 4px solid var(--cherry-deep);
}

.home-hero-card {
  background: var(--paper);
  border: 2px solid var(--honey);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(51, 38, 29, 0.18);
  padding: 2rem 2.4rem;
  max-width: 860px;
  margin: -4.5rem auto 0;
  position: relative;
}

.home-hero-card h1 { margin-bottom: 0.8rem; font-size: 1.9rem; }

.lead-text { font-size: 1.08rem; color: var(--ink-soft); }

/* ---------- section labels & ticket cards ---------- */

.section-label {
  font-size: 1.7rem;
  position: relative;
  display: table;
  margin: 0 auto;
  padding: 0 1.2rem 0.3rem;
  border-bottom: 4px dotted var(--honey);
}

.ticket-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--paper);
  border: 2px dashed var(--cherry);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ticket-card:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: 0 12px 26px rgba(193, 59, 44, 0.16);
  color: var(--ink);
}

.ticket-title {
  font-family: "Grandstander", cursive;
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--cherry-deep);
  margin-bottom: 0.5rem;
}

.ticket-blurb { font-size: 0.95rem; color: var(--ink-soft); flex-grow: 1; }

.ticket-cta {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--cherry);
  margin-top: 0.9rem;
  letter-spacing: 0.04em;
}

/* ---------- article content ---------- */

.content-article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.4rem, 4vw, 3rem);
  box-shadow: 0 6px 22px rgba(51, 38, 29, 0.07);
}

.home-article { max-width: 920px; margin: 0 auto; }

.content-article ul { padding-left: 1.3rem; }
.content-article li { margin-bottom: 0.5rem; }

.page-hero-fig {
  margin: 0 0 2rem;
  padding: 10px 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(51, 38, 29, 0.14);
  transform: rotate(-0.6deg);
}

.page-hero-fig img, .inline-fig img { border-radius: 4px; width: 100%; object-fit: cover; }

.inline-fig {
  margin: 2.2rem 0;
  padding: 10px 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(51, 38, 29, 0.14);
  transform: rotate(0.5deg);
}

/* ---------- directory sidebar ---------- */

.directory-card {
  background: var(--sky-pale);
  border: 2px solid var(--sky);
  border-radius: 16px;
  padding: 1.4rem 1.5rem;
  position: sticky;
  top: 1rem;
}

.dir-title {
  font-family: "Grandstander", cursive;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--cherry-deep);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 3px double var(--sky);
  padding-bottom: 0.5rem;
  margin-bottom: 0.9rem;
}

.dir-head {
  font-family: "Grandstander", cursive;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin: 1rem 0 0.3rem;
}

.dir-list { list-style: none; padding: 0; margin: 0; }

.dir-list li { padding: 0.16rem 0; font-size: 0.94rem; }

.dir-list a { text-decoration: none; color: var(--ink); }
.dir-list a:hover { color: var(--cherry); text-decoration: underline; }

.dir-list li.current a { color: var(--cherry-deep); font-weight: 700; }
.dir-list li.current::before { content: "▸ "; color: var(--cherry); }

/* ---------- buttons ---------- */

.btn-emporium {
  font-family: "Grandstander", cursive;
  font-weight: 700;
  background: var(--cherry);
  border: 2px solid var(--cherry-deep);
  color: var(--paper);
  border-radius: 999px;
  padding: 0.55rem 1.6rem;
}

.btn-emporium:hover { background: var(--cherry-deep); color: var(--paper); }

/* ---------- 404 ---------- */

.notfound { max-width: 640px; }

.nf-code {
  font-family: "Grandstander", cursive;
  font-weight: 800;
  font-size: clamp(4rem, 14vw, 7rem);
  color: var(--sky);
  margin-bottom: 0;
  line-height: 1;
}

/* ---------- footer ---------- */

.site-footer { background: #2e1f17; color: #e9ddcd; margin-top: 4rem; }

.awning-stripe-footer { border-top-color: var(--cherry-deep); }

.footer-brand {
  font-family: "Grandstander", cursive;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--honey);
  margin-bottom: 0.6rem;
}

.footer-blurb { font-size: 0.95rem; color: #cbbba6; }

.footer-head {
  font-family: "Grandstander", cursive;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sky);
  margin-bottom: 0.6rem;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: 0.14rem 0; }
.footer-links a { color: #e9ddcd; text-decoration: none; font-size: 0.93rem; }
.footer-links a:hover { color: var(--honey); text-decoration: underline; }

.footer-legal {
  border-top: 1px solid #4a382c;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #a89786;
  letter-spacing: 0.05em;
}

/* ---------- responsive ---------- */

@media (max-width: 991.98px) {
  .directory-card { position: static; margin-top: 1rem; }
  .home-hero-card { margin-top: -2.5rem; padding: 1.5rem 1.4rem; }
}

@media (max-width: 575.98px) {
  h1 { font-size: 1.8rem; }
  .masthead-tagline { font-size: 0.72rem; }
}
