/* Her Hearth — shop styles */
:root {
  --magenta: #e4137d;
  --magenta-deep: #c40c6a;
  --pink-hero: #e8167f;
  --plum: #2e0a2b;
  --plum-soft: #4a1745;
  --ink: #2a1027;
  --muted: #6d5868;
  --bg: #fcf1f7;
  --card: #ffffff;
  --line: #f1cfe1;
  --lavender: #ebe0f8;
  --radius: 14px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 2px; }

/* Announcement bar */
.topbar {
  background: var(--plum);
  color: #fff;
  text-align: center;
  font-size: 14px;
  padding: 7px 16px;
  letter-spacing: .01em;
}

/* Header */
.site-header {
  background: #fff4fa;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
.header-inner { display: flex; align-items: center; gap: 36px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo-mark { width: 54px; height: 42px; }
.logo-word { font-family: var(--serif); font-weight: 700; font-size: 34px; letter-spacing: -.02em; line-height: 1; color: var(--plum); }
.nav { display: flex; gap: 28px; align-items: center; }
.nav > a, .nav-drop > button {
  text-decoration: none; font-size: 15px; font-weight: 500; background: none; border: 0; padding: 6px 0; cursor: pointer;
}
.nav > a:hover, .nav-drop > button:hover, .nav a[aria-current="page"] { color: var(--magenta); }
.nav-drop { position: relative; }
.nav-drop > button::after { content: ""; display: inline-block; margin-left: 6px; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.drop-menu {
  position: absolute; top: calc(100% + 10px); left: -16px; min-width: 210px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px;
  box-shadow: 0 14px 40px rgba(46,10,43,.12); display: none;
}
.nav-drop.open .drop-menu { display: block; }
.drop-menu a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-size: 15px; }
.drop-menu a:hover { background: var(--bg); color: var(--magenta); }
.search {
  margin-left: auto; display: flex; align-items: center; gap: 10px;
  border: 1.5px solid #f09cc6; border-radius: 10px; padding: 0 14px; height: 42px; width: 270px; background: #fff;
}
.search svg { color: var(--magenta); flex-shrink: 0; }
.search input { border: 0; outline: 0; width: 100%; background: transparent; font-size: 15px; }
.search input::placeholder { color: #9b8796; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }

/* Hero */
.hero { background: var(--pink-hero); color: #fff; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px; min-height: 330px; }
.hero-copy { padding: 36px 0 40px; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 6px; }
.hero h1 {
  font-family: var(--serif); font-weight: 700; font-size: clamp(46px, 7vw, 80px);
  line-height: .95; letter-spacing: -.035em; margin: 0 0 18px;
}
.hero p.lede { font-size: 18px; margin: 0 0 26px; opacity: .95; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; cursor: pointer;
  border-radius: 10px; font-weight: 600; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn svg { transition: transform .15s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-dark { background: var(--plum); color: #fff; padding: 14px 30px; font-size: 17px; border: 0; box-shadow: 0 6px 18px rgba(46,10,43,.25); }
.btn-dark:hover { background: var(--plum-soft); }
.btn-pink { background: var(--magenta); color: #fff; padding: 9px 16px; font-size: 15px; border: 0; width: 100%; }
.btn-pink:hover { background: var(--magenta-deep); }
.btn-outline { border: 2px solid var(--plum); color: var(--plum); padding: 11px 48px; font-size: 16px; background: transparent; }
.btn-outline:hover { background: var(--plum); color: #fff; }

.hero-stack { position: relative; height: 330px; }
.hero-stack .cover {
  position: absolute; width: 36%; top: 22px; border-radius: 6px;
  box-shadow: 0 18px 40px rgba(70,0,40,.35);
}
.hero-stack .cover:nth-child(1) { left: 0; transform: rotate(-4deg); top: 34px; }
.hero-stack .cover:nth-child(2) { left: 32%; z-index: 2; transform: rotate(1.5deg); top: 18px; }
.hero-stack .cover:nth-child(3) { left: 64%; transform: rotate(5deg); top: 30px; }

/* Cover (image + overlaid title) */
.cover { container-type: inline-size; position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: #f7c6dd; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-label {
  position: absolute; top: 7%; left: 0; right: 0; text-align: center;
  font-size: max(7px, 3.6cqw); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--plum);
}
.cover-title {
  position: absolute; left: 7%; top: 14%; width: 62%; min-width: min-content;
  font-family: var(--serif); font-weight: 700; line-height: .95; letter-spacing: -.03em;
  font-size: var(--fs, 13cqw); color: var(--title, var(--magenta));
}
.cover.dark .cover-label { color: #fff; }

/* Shop section */
.shop { padding: 22px 0 40px; }
.shop h2 {
  font-family: var(--serif); font-weight: 700; font-size: clamp(36px, 5vw, 50px);
  letter-spacing: -.035em; line-height: 1.05; margin: 0 0 16px;
}
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.chip {
  border: 1.5px solid #f2a9cd; background: #fff; border-radius: 12px; padding: 9px 26px;
  font-size: 15px; font-weight: 500; cursor: pointer; flex: 0 1 auto; text-align: center;
}
.chip:hover { border-color: var(--magenta); color: var(--magenta); }
.chip[aria-pressed="true"] { background: var(--magenta); border-color: var(--magenta); color: #fff; }
.shop-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 12px; }
.shop-bar h3 { font-size: 16px; font-weight: 500; margin: 0; }
.shop-bar .count { color: var(--muted); font-weight: 400; }
.sort { position: relative; }
.sort select {
  appearance: none; border: 1.5px solid #f2a9cd; border-radius: 10px; background: #fff;
  padding: 7px 40px 7px 14px; font-size: 14px; cursor: pointer;
}
.sort::after { content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 5px 5px 12px;
  display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: 0 14px 30px rgba(196,12,106,.12); transform: translateY(-2px); }
.card .cover { border-radius: 5px; }
.card-body { padding: 12px 7px 0; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--magenta); margin: 0; }
.card-title { font-family: var(--serif); font-size: 19px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; margin: 3px 0 1px; }
.card-title a { text-decoration: none; }
.card-title a:hover { color: var(--magenta); }
.card-type { font-size: 13.5px; color: var(--muted); margin: 0 0 12px; }
.card .btn-pink { margin-top: auto; }
.empty { grid-column: 1 / -1; text-align: center; padding: 40px 20px; color: var(--muted); background: #fff; border-radius: 12px; border: 1px dashed var(--line); }
.browse { display: flex; justify-content: center; margin-top: 24px; }

/* Footer */
.site-footer { background: var(--lavender); padding: 26px 0; margin-top: 8px; }
.footer-inner { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-inner .logo-word { font-size: 30px; }
.footer-inner .logo-mark { width: 46px; height: 36px; }
.footer-tag { border-left: 1px solid #e58ab9; padding-left: 22px; font-size: 14px; }
.footer-links { margin-left: auto; display: flex; gap: 32px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--magenta); }
.footer-fine { font-size: 12.5px; color: var(--muted); margin-top: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Inner pages */
.page-hero { background: var(--pink-hero); color: #fff; padding: 46px 0 40px; }
.page-hero h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(38px, 6vw, 60px); letter-spacing: -.035em; line-height: 1; margin: 0 0 10px; }
.page-hero p { margin: 0; opacity: .95; font-size: 17px; }
.legal { padding: 40px 0 56px; }
.legal-body { max-width: 760px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 40px; }
.legal-body h2 { font-family: var(--serif); font-size: 24px; letter-spacing: -.02em; margin: 32px 0 8px; line-height: 1.2; }
.legal-body h2:first-of-type { margin-top: 8px; }
.legal-body h3 { font-size: 17px; margin: 20px 0 4px; }
.legal-body p, .legal-body li { font-size: 16px; }
.legal-body ul { padding-left: 22px; }
.legal-body a { color: var(--magenta-deep); }
.legal-meta { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.callout { background: var(--bg); border-left: 4px solid var(--magenta); padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 18px 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.toc a { display: inline-block; font-size: 13.5px; padding: 5px 12px; border-radius: 999px; background: var(--bg); text-decoration: none; border: 1px solid var(--line); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.panel h2 { font-family: var(--serif); font-size: 26px; letter-spacing: -.02em; margin: 0 0 6px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 14.5px; }
.field input, .field select, .field textarea {
  border: 1.5px solid #f2bcd7; border-radius: 10px; padding: 11px 14px; background: #fff; font-size: 15.5px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--magenta); outline: none; box-shadow: 0 0 0 3px rgba(228,19,125,.15); }
.field textarea { min-height: 150px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.check input { margin-top: 4px; accent-color: var(--magenta); }
.form-note { font-size: 14px; color: var(--muted); margin-top: 12px; }
.form-status { margin-top: 14px; font-size: 15px; font-weight: 500; color: var(--magenta-deep); }
.info-list { list-style: none; padding: 0; margin: 14px 0 0; }
.info-list li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.info-list strong { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--magenta); }

/* Course detail */
.course { padding: 40px 0 56px; }
.course-grid { display: grid; grid-template-columns: 420px 1fr; gap: 44px; align-items: start; }
.course-grid .cover { border-radius: 10px; box-shadow: 0 18px 40px rgba(196,12,106,.18); }
.course h1 { font-family: var(--serif); font-size: clamp(34px, 5vw, 52px); letter-spacing: -.035em; line-height: 1.02; margin: 6px 0 12px; }
.course .summary { font-size: 18px; color: var(--muted); margin: 0 0 22px; }
.course .learn-h { font-size: 17px; font-family: var(--sans); margin: 0; }
.course ul.learn { padding-left: 20px; margin: 8px 0 26px; }
.course ul.learn li { margin-bottom: 6px; }
.course .price { font-family: var(--serif); font-size: 30px; font-weight: 700; margin: 0 0 14px; }
.course .btn-pink { width: auto; padding: 14px 30px; font-size: 17px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--magenta); }
.course .fine { font-size: 13.5px; color: var(--muted); margin-top: 18px; }

@media (min-width: 1100px) { .chip { flex: 1 1 auto; } }

/* Responsive */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .header-inner { gap: 22px; }
  .search { width: 200px; }
}
@media (max-width: 860px) {
  .nav, .search { display: none; }
  .menu-btn { display: block; }
  .site-header.open .nav {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 72px; left: 0; right: 0; background: #fff4fa; padding: 12px 20px 18px; border-bottom: 1px solid var(--line);
  }
  .site-header.open .search { display: flex; position: absolute; top: calc(72px + 150px); left: 20px; right: 20px; width: auto; }
  .site-header.open .nav { padding-bottom: 76px; }
  .drop-menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 10px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 8px; }
  .hero-stack { height: 300px; max-width: 520px; width: 100%; margin: 0 auto 24px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid, .course-grid { grid-template-columns: 1fr; }
  .course-grid > .cover { max-width: 420px; }
  .footer-links { margin-left: 0; gap: 20px; }
  .legal-body { padding: 26px 22px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .logo-word { font-size: 28px; }
  .logo-mark { width: 44px; height: 34px; }
  .hero-stack { height: 220px; }
  .chip { padding: 8px 14px; font-size: 14px; flex: 0 1 auto; }
  .grid { gap: 10px; }
  .card-title { font-size: 17px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-tag { border-left: 0; padding-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
