/* WEP-CS-LAUNCH-004 — CreationSpace course landings */
:root {
  --cs-ink: #14110f;
  --cs-muted: #5c534c;
  --cs-accent: #7a5253;
  --cs-accent-deep: #5e3d3e;
  --cs-cream: #f3efe8;
  --cs-cream-2: #ebe4da;
  --cs-paper: #fffcf7;
  --cs-line: #ddd4c8;
  --cs-max: 740px;
  --cs-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --cs-hero-glow: rgba(122, 82, 83, 0.14);
  --cs-hero-end: #e4d9cc;
  --cs-chip-border: rgba(122, 82, 83, 0.38);
  --cs-week-accent: #7a5253;
}
body.course-watercolor {
  --cs-accent: #3f6b6a;
  --cs-accent-deep: #2f5251;
  --cs-hero-glow: rgba(63, 107, 106, 0.16);
  --cs-cream: #eef3f1;
  --cs-cream-2: #e2ebe8;
  --cs-hero-end: #d5e2de;
  --cs-chip-border: rgba(63, 107, 106, 0.4);
  --cs-week-accent: #3f6b6a;
  --cs-line: #cfdad6;
}
body.course-composition {
  --cs-accent: #8a4f3a;
  --cs-accent-deep: #6d3c2c;
  --cs-hero-glow: rgba(138, 79, 58, 0.15);
  --cs-cream: #f5efe8;
  --cs-cream-2: #ebe1d4;
  --cs-hero-end: #e2d3c2;
  --cs-chip-border: rgba(138, 79, 58, 0.42);
  --cs-week-accent: #8a4f3a;
  --cs-line: #e0d5c8;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
body {
  margin: 0;
  font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--cs-ink);
  background: var(--cs-paper);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cs-accent); }
.cs-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px clamp(16px, 4vw, 28px);
  background: rgba(255, 252, 247, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cs-line);
}
.cs-top__brand {
  font-weight: 300;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--cs-ink);
  font-size: 1rem;
  line-height: 1;
}
.cs-top__brand span {
  font-weight: 700;
  letter-spacing: 0.04em;
}
.cs-top__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: flex-end;
  font-size: 0.95rem;
}
.cs-top__nav a {
  text-decoration: none;
  color: var(--cs-ink);
  font-weight: 300;
}
.cs-top__nav a:hover { color: var(--cs-accent); }
.cs-top__nav a[aria-current="page"] {
  color: var(--cs-accent);
  font-weight: 600;
}
.cs-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 9vw, 84px) clamp(16px, 4vw, 28px) clamp(40px, 7vw, 64px);
  background:
    radial-gradient(1100px 420px at 8% -20%, var(--cs-hero-glow), transparent 58%),
    linear-gradient(168deg, var(--cs-cream) 0%, var(--cs-cream-2) 52%, var(--cs-hero-end) 100%);
  border-bottom: 1px solid var(--cs-line);
}
/* Owner artwork parallax plane (Tilda-compatible fixed cover behavior) */
.cs-hero--parallax {
  min-height: clamp(420px, 72vh, 720px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: #1a1612;
}
.cs-hero__parallax {
  position: absolute;
  inset: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed; /* established site parallax pattern */
  transform: translateZ(0);
  z-index: 0;
}
.cs-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(18,14,10,0.78) 0%, rgba(18,14,10,0.35) 48%, rgba(18,14,10,0.25) 100%);
  pointer-events: none;
}
.cs-hero--parallax .cs-hero__inner {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(28px, 5vw, 48px);
}
.cs-hero--parallax .cs-tag,
.cs-hero--parallax .cs-eyebrow,
.cs-hero--parallax .cs-lede,
.cs-hero--parallax .cs-meta {
  color: rgba(255,255,255,0.92);
}
.cs-hero--parallax h1 { color: #fff; }
@media (max-width: 900px) {
  .cs-hero__parallax { background-attachment: scroll; } /* mobile: avoid fixed jank */
}
.cs-hero__inner { max-width: var(--cs-max); margin: 0 auto; }
.cs-tag {
  display: inline-block;
  margin: 0 0 14px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cs-accent-deep);
  font-weight: 600;
}
.cs-eyebrow {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--cs-muted);
  font-weight: 300;
  letter-spacing: 0.01em;
}
.cs-hero h1 {
  margin: 0;
  font-size: clamp(2.15rem, 6vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--cs-ink);
}
.cs-lede {
  margin: 18px 0 0;
  max-width: 36rem;
  font-size: clamp(1.08rem, 2.3vw, 1.28rem);
  color: #2a2420;
  font-weight: 300;
  line-height: 1.45;
}
.cs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.cs-meta li {
  padding: 7px 13px;
  border: 1px solid var(--cs-chip-border);
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--cs-accent-deep);
  background: rgba(255, 252, 247, 0.62);
}
.cs-main {
  max-width: var(--cs-max);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 52px) clamp(16px, 4vw, 28px) 80px;
}
.cs-main h2 {
  margin: 40px 0 14px;
  font-size: clamp(1.3rem, 2.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--cs-ink);
}
.cs-main h2:first-of-type { margin-top: 10px; }
.cs-main p { margin: 0 0 14px; color: #2c2622; font-size: 1.02rem; }
.cs-main ul { margin: 0 0 18px; padding-left: 1.15em; }
.cs-main li { margin: 0 0 10px; font-size: 1.02rem; }
.cs-weeks {
  display: grid;
  gap: 12px;
  margin: 10px 0 24px;
}
.cs-week {
  padding: 18px 18px 18px 16px;
  border: 1px solid var(--cs-line);
  border-left: 3px solid var(--cs-week-accent);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.25s var(--cs-ease), transform 0.25s var(--cs-ease), box-shadow 0.25s var(--cs-ease);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .cs-week:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(20, 17, 15, 0.05);
  }
}
.cs-week strong {
  display: block;
  margin-bottom: 6px;
  color: var(--cs-accent-deep);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cs-author {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin: 8px 0 8px;
  padding: 20px;
  background: var(--cs-cream);
  border-radius: 14px;
  border: 1px solid var(--cs-line);
}
.cs-author img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #fff;
}
.cs-author strong { display: block; font-size: 1.1rem; }
.cs-author .role { color: var(--cs-muted); font-size: 0.92rem; margin: 3px 0 10px; }
.cs-author .bio { margin: 0; font-size: 0.96rem; color: #2c2622; }
.cs-cta {
  margin-top: 48px;
  padding: clamp(24px, 4vw, 32px);
  border-radius: 16px;
  border: 1px solid var(--cs-line);
  background: linear-gradient(180deg, #fff 0%, var(--cs-cream) 100%);
  box-shadow: 0 14px 36px rgba(20, 17, 15, 0.06);
}
.cs-cta h2 {
  margin: 0 0 10px;
  font-size: 1.45rem;
}
.cs-cta__note {
  font-size: 0.94rem;
  color: var(--cs-muted);
  margin: 0 0 20px;
  max-width: 36rem;
}
.cs-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cs-actions--hero { margin-top: 22px; }
.cs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--cs-accent);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: background 0.2s var(--cs-ease), transform 0.2s var(--cs-ease), box-shadow 0.2s var(--cs-ease);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--cs-accent) 28%, transparent);
}
.cs-btn:hover { background: var(--cs-accent-deep); }
.cs-btn:active { transform: translateY(1px); }
.cs-btn--ghost {
  background: transparent;
  color: var(--cs-accent) !important;
  border-color: var(--cs-accent);
  box-shadow: none;
  font-weight: 600;
}
.cs-btn--ghost:hover { background: color-mix(in srgb, var(--cs-accent) 10%, transparent); }
.cs-foot {
  max-width: var(--cs-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 28px) 52px;
  font-size: 0.86rem;
  color: var(--cs-muted);
}
/* /shtr/ featured pair — align with Tilda t853 family (no bordered promo cards) */
.cs-featured-courses {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}
.cs-featured-courses__row {
  list-style: none;
  margin: 40px 0 10px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
  row-gap: 36px;
  box-sizing: border-box;
}
.cs-featured-course {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  min-width: 0;
}
.cs-featured-course__media {
  display: block;
  position: relative;
  width: 100%;
  margin: 0 0 20px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  text-decoration: none;
  background: #e8e2d8;
}
.cs-featured-course__img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.cs-featured-course__title {
  margin: 0 0 10px;
  font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: #000;
}
.cs-featured-course__link {
  color: #000 !important;
  text-decoration: none;
}
.cs-featured-course__link:hover {
  color: #7a5253 !important;
}
.cs-featured-course__descr {
  margin: 0 0 18px;
  font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.45;
  color: #000;
  max-width: 36em;
}
.cs-featured-course__btn-wrap { margin: 0; }
.cs-featured-course__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 20px;
  border: 1px solid #000;
  border-radius: 5px;
  background: #fff;
  color: #000 !important;
  text-decoration: none;
  font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  box-shadow: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
@media (hover: hover) {
  .cs-featured-course__btn:hover,
  .cs-featured-course__btn:focus-visible {
    color: #fff !important;
    background: #7a5253;
    border-color: #7a5253;
  }
}
@media (max-width: 960px) {
  .cs-featured-courses__row {
    column-gap: 28px;
    padding: 0 16px;
  }
}
@media (max-width: 720px) {
  .cs-featured-courses__row {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 40px;
    margin-top: 28px;
    padding: 0 20px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .cs-hero__inner {
    animation: cs-rise 0.55s var(--cs-ease) both;
  }
  .cs-cta {
    animation: cs-rise 0.6s var(--cs-ease) 0.05s both;
  }
}
@keyframes cs-rise {
  from { transform: translateY(8px); opacity: 0.92; }
  to { transform: translateY(0); opacity: 1; }
}
@media (max-width: 768px) {
  .cs-top { padding-top: 14px; padding-bottom: 14px; }
  .cs-main { padding-bottom: 64px; }
}
@media (max-width: 640px) {
  .cs-top { flex-direction: column; align-items: flex-start; }
  .cs-author { flex-direction: column; align-items: center; text-align: center; }
  .cs-actions { flex-direction: column; }
  .cs-btn, .cs-btn--ghost { width: 100%; }
}
@media (max-width: 375px) {
  .cs-hero h1 { font-size: 1.95rem; }
  .cs-meta li { font-size: 0.82rem; }
}
