/* HeatherLesson — site stylesheet */
:root {
  --heather: #7b5ea7;
  --heather-dark: #4e3a73;
  --heather-soft: #efe9f7;
  --sage: #4f8a72;
  --sage-soft: #e5f1eb;
  --ink: #1f1b2d;
  --muted: #5d5770;
  --bg: #fbfafd;
  --card: #ffffff;
  --line: #e6e0ef;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(46, 31, 77, 0.08);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Lora", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--heather-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--heather); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.25; color: var(--ink); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 12px; top: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-size: 1.45rem; font-weight: 600; }
.brand strong { color: var(--heather); font-weight: 700; }
.brand svg { width: 34px; height: 34px; flex: none; }
.site-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: .98rem;
}
.site-nav a:hover { background: var(--heather-soft); color: var(--heather-dark); }
.site-nav a[aria-current="page"] { background: var(--heather); color: #fff; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 44px; height: 44px; padding: 0; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; margin: auto; }

@media (max-width: 760px) {
  .nav-toggle { display: grid; place-items: center; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 10px 16px 16px; }
  .site-nav a { padding: 12px 14px; border-radius: 10px; }
}

/* Buttons */
.btn {
  display: inline-block; background: var(--heather); color: #fff; text-decoration: none;
  padding: 12px 24px; border-radius: 999px; font-weight: 600; border: 2px solid var(--heather);
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--heather-dark); border-color: var(--heather-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--heather-dark); }
.btn-ghost:hover { background: var(--heather-soft); color: var(--heather-dark); border-color: var(--heather); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Hero */
.hero { padding: 64px 0 56px; background: radial-gradient(circle at 85% 20%, var(--heather-soft), transparent 55%), radial-gradient(circle at 5% 90%, var(--sage-soft), transparent 45%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--sage); margin-bottom: 12px; }
.lead { font-size: 1.15rem; color: var(--muted); }
@media (max-width: 860px) {
  .hero { padding: 40px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Page header (inner pages) */
.page-head { padding: 48px 0 32px; background: linear-gradient(180deg, var(--heather-soft), var(--bg)); }
.breadcrumbs { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: var(--line); color: #a49bb8; }
.breadcrumbs a { color: var(--muted); }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-intro { color: var(--muted); max-width: 720px; margin-bottom: 32px; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } .section { padding: 48px 0; } }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); font-size: .97rem; }
.card h3 a { text-decoration: none; color: var(--ink); }
.card h3 a:hover { color: var(--heather); }
.card .more { margin-top: auto; font-weight: 600; text-decoration: none; }
.card img { aspect-ratio: 1200 / 630; object-fit: cover; width: 100%; background: var(--heather-soft); }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--sage); margin-bottom: 8px; }
.meta { font-size: .85rem; color: var(--muted); margin-bottom: 0; }

.topic-card { padding: 24px; }
.topic-card img { width: 56px; height: 56px; aspect-ratio: auto; background: none; margin-bottom: 14px; }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.feature-list li { background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--heather); border-radius: 12px; padding: 18px 20px; }
.feature-list strong { display: block; font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 4px; }

.values { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; padding: 0; list-style: none; }
.values li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.values strong { display: block; color: var(--heather-dark); font-family: var(--font-head); font-size: 1.1rem; }

/* CTA */
.cta { background: var(--heather-dark); color: #fff; padding: 56px 0; }
.cta h2 { color: #fff; }
.cta p { color: #ddd3ee; max-width: 640px; }
.cta .btn { background: #fff; color: var(--heather-dark); border-color: #fff; }
.cta .btn:hover { background: var(--heather-soft); }

/* Article */
.post-meta { color: var(--muted); font-size: .95rem; }
.post-cover { margin: 0 auto 8px; }
.post-cover img { border-radius: var(--radius); width: 100%; box-shadow: var(--shadow); }
.prose { padding-top: 32px; padding-bottom: 32px; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; color: var(--heather-dark); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .55em; }
.note { background: var(--sage-soft); border-left: 4px solid var(--sage); border-radius: 10px; padding: 16px 20px; font-size: .97rem; }
.related { padding: 32px 0 72px; }

/* Forms */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.form-row { margin-bottom: 16px; }
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 11px 14px; color: var(--ink);
  border: 1px solid #cfc6de; border-radius: 10px; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 3px solid var(--heather-soft); border-color: var(--heather); }
textarea { min-height: 150px; resize: vertical; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* Topic chips */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips a { display: inline-block; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.chips a:hover { border-color: var(--heather); background: var(--heather-soft); }

/* Footer */
.site-footer { background: #1f1b2d; color: #c9c2d9; padding: 56px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .brand strong { color: #c6aef0; }
.site-footer h3 { color: #fff; font-size: 1rem; font-family: var(--font-body); text-transform: uppercase; letter-spacing: .1em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #c9c2d9; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid #3a3350; margin-top: 36px; padding-top: 20px; font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
