@import url('https://googleapis.com');

/* --- THEME VARIABLES & BASE STYLES --- */
:root {
  --purple: #7050a9;
  --purple-dark: #503582;
  --ink: #24212b;
  --muted: #6e6a75;
  --line: #e8e5eb;
  --paper: #fff;
  --soft: #f8f7fa;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--purple);
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

/* --- HEADER & NAVIGATION --- */
.site-header {
  height: 78px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: relative;
  z-index: 10;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--purple);
  border-radius: 50%;
  color: var(--purple);
  font-family: Georgia, serif;
  font-size: 23px;
  line-height: 1;
}

.brand-name {
  font-family: Manrope, sans-serif;
  font-weight: 750;
  font-size: 20px;
  letter-spacing: -0.65px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 31px;
  margin-left: auto;
}

.nav-link {
  font-size: 14px;
  color: #4c4853;
  transition: color 0.15s;
}

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

.header-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--purple);
  border: 1px solid #d9cfea;
  padding: 9px 14px;
  border-radius: 3px;
}

.menu-toggle {
  display: none;
  border: 0;
  background: none;
  padding: 7px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  margin: 5px;
}

/* --- HERO SECTION & BUTTONS --- */
.hero {
  padding: 88px 0 78px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 70px;
  align-items: center;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  color: var(--purple);
  font-weight: 700;
  margin: 0 0 18px;
}

.hero h1,
.page-heading h1 {
  font-family: Manrope, sans-serif;
  font-size: clamp(42px, 5.5vw, 70px);
  letter-spacing: -3.5px;
  line-height: 1.09;
  font-weight: 700;
  margin: 0 0 23px;
}

.hero h1 em {
  font-style: normal;
  color: var(--purple);
}

.hero-copy {
  font-size: 18px;
  max-width: 530px;
  color: var(--muted);
  margin: 0 0 30px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 3px;
  background: var(--purple);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.15s;
}

.button:hover {
  background: var(--purple-dark);
  color: #fff;
}

.text-link {
  font-weight: 600;
  color: var(--purple);
  font-size: 14px;
}

.hero-art {
  background: var(--soft);
  min-height: 355px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 3px;
}

.hero-art::before,
.hero-art::after {
  content: '';
  position: absolute;
  border: 1px solid #ddd5ea;
  border-radius: 50%;
}

.hero-art::before {
  width: 310px;
  height: 310px;
}

.hero-art::after {
  width: 220px;
  height: 220px;
}

.theta-large {
  font-family: Georgia, serif;
  font-size: 165px;
  color: #795ab1;
  line-height: 1;
  position: relative;
  z-index: 1;
  font-weight: 400;
}

.art-label {
  position: absolute;
  font-size: 12px;
  color: #777;
  letter-spacing: 0.6px;
}

.art-label.one {
  top: 42px;
  left: 36px;
}

.art-label.two {
  bottom: 35px;
  right: 32px;
}

/* --- GENERAL SECTIONS & GRIDS --- */
.section {
  padding: 70px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.section-head h2 {
  font-family: Manrope, sans-serif;
  font-size: 32px;
  letter-spacing: -1.2px;
  margin: 0;
  font-weight: 700;
}

.section-head p {
  color: var(--muted);
  margin: 7px 0 0;
}

.section-head .text-link {
  white-space: nowrap;
}

.class-grid,
.feature-grid,
.book-grid,
.video-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.class-card,
.feature-card,
.book-card,
.video-card,
.article-card {
  border: 1px solid var(--line);
  padding: 24px;
  background: #fff;
  transition: border-color 0.18s, transform 0.18s;
}

.class-card:hover,
.feature-card:hover,
.article-card:hover,
.book-card:hover {
  border-color: #c9b9e3;
  transform: translateY(-2px);
}

.class-number {
  font-size: 12px;
  color: var(--purple);
  letter-spacing: 1.2px;
  font-weight: 700;
}

.class-card h3,
.feature-card h3,
.article-card h3 {
  font-family: Manrope, sans-serif;
  font-size: 20px;
  letter-spacing: -0.5px;
  margin: 9px 0 8px;
}

.class-card p,
.feature-card p,
.article-card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 16px;
}

.card-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--purple);
}

.feature-card {
  background: var(--soft);
  border: 0;
  min-height: 220px;
}

.feature-card .mini-label {
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--purple);
  font-weight: 700;
}

.feature-card h3 {
  font-size: 23px;
  margin: 14px 0;
}

.feature-card p {
  max-width: 320px;
}

/* --- CALL TO ACTION (CTA) BAND --- */
.cta-band {
  padding: 54px 0;
  background: #f8f6fb;
}

.cta-band-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.cta-band h2 {
  font: 700 29px Manrope, sans-serif;
  letter-spacing: -1px;
  margin: 0 0 6px;
}

.cta-band p {
  color: var(--muted);
  margin: 0;
}

/* --- FOOTER --- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 45px;
}

.footer-top {
  padding: 48px 0;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--muted);
  margin: 13px 0;
}

.footer-links {
  display: flex;
  gap: 75px;
}

.footer-links div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links strong {
  font-size: 13px;
  margin-bottom: 6px;
}

.footer-links a {
  font-size: 13px;
  color: var(--muted);
}

.footer-bottom {
  padding: 17px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: #85818b;
  font-size: 12px;
}

/* --- INNER PAGES & CHAPTER LISTS --- */
.page-hero {
  padding: 65px 0 45px;
}

.page-heading h1 {
  font-size: 52px;
  letter-spacing: -2.5px;
  margin-bottom: 12px;
}

.page-heading p {
  max-width: 650px;
  color: var(--muted);
  font-size: 17px;
  margin: 0;
}

.content-wrap {
  max-width: 820px;
  margin: 0 auto;
}

.content-section {
  padding: 20px 0 55px;
}

.content-section h2 {
  font: 700 28px Manrope, sans-serif;
  letter-spacing: -0.8px;
  margin: 30px 0 12px;
}

.content-section h3 {
  font: 700 21px Manrope, sans-serif;
  margin: 24px 0 10px;
}

.content-section p,
.content-section li {
  color: #55515d;
}

.content-section a {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.chapter-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.chapter-list li {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.chapter-list a {
  font-weight: 600;
}

.chapter-list span {
  color: var(--muted);
  font-size: 13px;
}

.pill {
  display: inline-block;
  background: #f1edf8;
  color: var(--purple);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 2px;
}

/* --- BLOG & ARTICLE CARDS --- */
.blog-meta {
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0;
}

.article-card {
  padding: 0;
  overflow: hidden;
}

.article-card .article-body {
  padding: 20px;
}

.article-card h3 {
  margin-top: 0;
}

.article-card p {
  margin-bottom: 14px;
}

.article-card .article-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.article-card .card-link {
  display: inline-block;
  margin-top: 4px;
}

/* --- BOOKS & VIDEOS --- */
.book-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
}

.book-cover {
  width: 120px;
  height: 180px;
  flex-shrink: 0;
  background: #f2eef7;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: var(--purple);
  text-align: center;
  font-family: Manrope, sans-serif;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.25;
  letter-spacing: -0.3px;
  overflow: hidden;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.book-info {
  padding: 0;
  flex: 1;
}

.book-info h3 {
  font: 700 18px Manrope, sans-serif;
  margin: 0 0 6px;
  line-height: 1.3;
}

.book-info p {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 10px;
  line-height: 1.55;
}

.video-thumb {
  aspect-ratio: 16/9;
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  font-size: 42px;
}

.video-info {
  padding: 17px;
}

.video-info h3 {
  font: 700 18px Manrope, sans-serif;
  margin: 0 0 8px;
}

.video-info p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
}

/* --- SEARCH, BREADCRUMBS & EMPTY STATES --- */
.empty-note {
  border: 1px dashed #d8d2e1;
  padding: 24px;
  color: var(--muted);
  font-size: 14px;
}

.search-row {
  margin: 24px 0;
  max-width: 420px;
}

.search-row input {
width: 100%;
padding: 12px 14px;
border: 1px solid var(--line);
font: inherit;
border-radius: 3px;
}
.breadcrumbs {
font-size: 12px;
color: var(--muted);
margin-bottom: 18px;
}
.breadcrumbs a {
color: var(--purple);
}
/* --- BLOG ARTICLE PROSE & MARKDOWN --- */
.prose h1 {
font: 700 42px Manrope, sans-serif;
letter-spacing: -2px;
line-height: 1.2;
}
.prose h2 {
font: 700 26px Manrope, sans-serif;
letter-spacing: -0.8px;
margin-top: 38px;
}
.prose h3 {
font: 700 20px Manrope, sans-serif;
}
.prose p,
.prose li {
line-height: 1.85;
color: #504c57;
}
.prose blockquote {
border-left: 2px solid var(--purple);
padding-left: 18px;
color: var(--muted);
}
.prose img {
max-width: 100%;
height: auto;
}
.prose code {
background: #f5f3f7;
padding: 2px 5px;
border-radius: 2px;
}
.prose hr {
border: 0;
border-top: 1px solid var(--line);
margin: 32px 0;
}
.prose table {
border-collapse: collapse;
width: 100%;
}
.prose td,
.prose th {
border: 1px solid var(--line);
padding: 10px;
text-align: left;
}
.prose th {
background: var(--soft);
}
.related-links {
border-top: 1px solid var(--line);
margin-top: 35px;
padding-top: 20px;
}
.related-links a {
display: block;
padding: 7px 0;
color: var(--purple);
}
/* --- RESPONSIVE: TABLET (MAX 850PX) --- */
@media (max-width: 850px) {
.hero-grid {
grid-template-columns: 1fr;
gap: 32px;
}
.hero-art {
min-height: 290px;
}
.main-nav {
gap: 18px;
}
.header-cta {
display: none;
}
.class-grid,
.feature-grid,
.book-grid,
.video-grid,
.blog-grid {
grid-template-columns: repeat(2, 1fr);
}
.footer-links {
gap: 35px;
}
}
/* --- RESPONSIVE: MOBILE (MAX 620PX) --- */
@media (max-width: 620px) {
.site-header {
height: 68px;
}
.header-inner {
gap: 12px;
}
.brand-name {
font-size: 18px;
}
.main-nav {
display: none;
position: absolute;
top: 68px;
left: 0;
right: 0;
background: white;
border-bottom: 1px solid var(--line);
padding: 16px 24px 20px;
flex-direction: column;
align-items: flex-start;
gap: 13px;
}
.main-nav.open {
display: flex;
}
.menu-toggle {
display: block;
}
.hero {
padding: 55px 0 48px;
}
.hero h1 {
font-size: 44px;
letter-spacing: -2.3px;
}
.hero-copy {
font-size: 16px;
}
.hero-art {
min-height: 250px;
}
.theta-large {
font-size: 125px;
}
.section {
padding: 48px 0;
}
.section-head {
align-items: flex-start;
flex-direction: column;
}
.section-head h2 {
font-size: 27px;
}
.class-grid,
.feature-grid,
.book-grid,
.video-grid,
.blog-grid {
grid-template-columns: 1fr;
}
.page-hero {
padding: 45px 0 28px;
}
.page-heading h1 {
font-size: 40px;
letter-spacing: -1.8px;
}
.page-heading p {
font-size: 15px;
}
.footer-top {
flex-direction: column;
}
.footer-links {
gap: 45px;
}
.footer-bottom {
gap: 12px;
flex-direction: column;
}
.cta-band-inner {
flex-direction: column;
align-items: flex-start;
}
.content-section {
padding-bottom: 35px;
}
.prose h1 {
font-size: 35px;
}
}
