/**
 * landing.css — body-content layouts for the marketing pages
 * ("What is a WebQuest", homepage). The classes here are authored
 * directly into the node body (Full HTML), not into a template.
 *
 * Loaded in global-css AFTER components.css. Scoped by .cwq-* classes
 * so it only affects pages that opt in by using the markup.
 */

/* ---- Lead / intro paragraph ---- */
.cwq-lead {
  font-size: var(--fs-body-lg);
  line-height: 1.65;
  color: var(--ink-muted);
}

/* ---- "Parts of a Webquest" section ---- */
.cwq-parts { margin: var(--section-gap) 0; }
.cwq-parts > h2 {
  font-size: var(--fs-headline-lg);   /* 32px — bigger than default body h2 */
  margin-bottom: 0.4rem;
}
.cwq-parts__intro {
  max-width: 60ch;
  margin: 0 0 var(--gutter);
  color: var(--secondary);
}

/* ---- Bento grid of the six parts ---- */
.cwq-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}
.cwq-card {
  position: relative;
  overflow: hidden;
  padding: var(--gutter);
  background: var(--surface);
  border: 1px solid var(--surface-variant);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.cwq-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--outline-variant);
}
/* faint green corner wash, like the mockup */
.cwq-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 56px;
  height: 56px;
  background: linear-gradient(225deg, var(--brand-tint), transparent 60%);
  pointer-events: none;
}
.cwq-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  padding: 0.45rem;
  color: var(--brand);
  background: var(--brand-tint);
  border-radius: var(--r-lg);
  font-size: 1.6rem;
}
.cwq-card__title {
  margin: 0 0 0.4rem;
  font-size: var(--fs-title);
}
.cwq-card__text {
  margin: 0;
  color: var(--ink-muted);
}

/* ---- Trailing readable prose column ---- */
.cwq-prose h2 { margin-top: 1.75em; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .cwq-bento { grid-template-columns: repeat(2, 1fr); }
  .cwq-parts { margin-top: var(--section-gap-mobile, 48px); }
}
@media (max-width: 600px) {
  .cwq-bento { grid-template-columns: 1fr; }
}





/* ===================================================================
   HOMEPAGE (node 5) — hero, steps, about
   Authored into the node body (Full HTML). Contained layout (no
   full-bleed bands) so it works inside the standard .wrapper.
   =================================================================== */

/* ---- Hero ---- */
.cwq-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--section-gap);
  padding: var(--section-gap) 0;
}
.cwq-hero__title {
  margin: 0;
  font-size: var(--fs-display);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.cwq-hero__title span { color: var(--secondary); }
.cwq-hero__lead {
  margin: 0;
  max-width: 34rem;
  font-size: var(--fs-body-lg);
  line-height: 1.6;
  color: var(--secondary);
}
.cwq-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}
.cwq-hero__media { position: relative; }
.cwq-hero__media img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-hover);
}
/* rotated tinted panel behind the hero image (mockup detail) */
.cwq-hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--brand-tint);
  border-radius: var(--r-xl);
  transform: rotate(-2deg) scale(1.04);
}

.cwq-about__media { position: relative; }

.cwq-about__media img {
  position: relative;
  z-index: 1;
}

.cwq-about__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--brand-tint);
  border-radius: var(--r-xl);
  transform: rotate(2deg) scale(1.04);
}

/* ---- Shared CTA buttons ---- */
.cwq-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--r-lg);
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.cwq-btn .material-symbols-outlined { font-size: 1.2rem; }
.cwq-btn--primary {
  background: var(--brand);
  color: var(--on-brand);
  border: 1px solid var(--brand);
  box-shadow: var(--shadow-sm);
}
.cwq-btn--primary:hover { background: var(--brand-hover); color: var(--on-brand); text-decoration: none; }
.cwq-btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--outline-variant);
}
.cwq-btn--ghost:hover { background: var(--surface-low); color: var(--ink); text-decoration: none; }

/* ---- Steps (contained white panel) ---- */
.cwq-steps {
  margin-top: var(--section-gap);
  padding: var(--section-gap) var(--margin-desktop);
  background: var(--surface);
  border: 1px solid var(--surface-variant);
  border-radius: var(--r-xl);
}
.cwq-steps__head { text-align: center; margin-bottom: 3rem; }
.cwq-steps__head h2 { font-size: var(--fs-headline-lg); margin: 0 0 0.5rem; }
.cwq-steps__head p { margin: 0; color: var(--secondary); font-size: var(--fs-body-lg); }
.cwq-steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}
.cwq-step {
  text-align: center;
  padding: 2rem;
  background: var(--surface-low);
  border: 1px solid var(--surface-variant);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.cwq-step:hover { box-shadow: var(--shadow); }
.cwq-step__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.25rem;
  color: var(--brand);
  background: var(--brand-tint);
  border-radius: 9999px;
  font-size: 1.75rem;
  font-variation-settings: 'FILL' 1;   /* filled glyph */
}
.cwq-step__title { margin: 0 0 0.5rem; font-size: var(--fs-headline-md); }
.cwq-step__text { margin: 0; color: var(--secondary); }

/* ---- About ("What Is a WebQuest?") ---- */
.cwq-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--section-gap);
  margin-top: var(--section-gap);
}
.cwq-about__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-hover);
}
.cwq-about__body > h2 { font-size: var(--fs-headline-lg); margin: 0 0 1rem; }
.cwq-about__body > p { color: var(--secondary); }

/* Quick characteristics box */
.cwq-traits {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--surface-variant);
  border-radius: var(--r-xl);
}
.cwq-traits h3 { margin: 0 0 1rem; font-size: var(--fs-headline-md); }
.cwq-traits__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.cwq-traits__list li { display: flex; align-items: flex-start; gap: 0.75rem; color: var(--secondary); }
.cwq-traits__list .material-symbols-outlined {
  flex: 0 0 auto;
  color: var(--brand);
  font-size: 1.25rem;
  margin-top: 0.1rem;
  font-variation-settings: 'FILL' 1;
}

/* ---- Homepage responsive ---- */
@media (max-width: 900px) {
  .cwq-hero,
  .cwq-about { grid-template-columns: 1fr; gap: var(--gutter); padding-top: 2rem; }
  .cwq-hero__media { order: -1; }          /* image above text on mobile */
  .cwq-steps__grid { grid-template-columns: 1fr; }
  .cwq-steps { padding: 3rem var(--margin-mobile); }
  .cwq-steps__head { margin-bottom: 2rem; }
}