/* /learn/ — technique showcase layout.
   Reuses root design tokens (--color-bg, --color-text, fonts) from styles.css.
   Black gallery wall, off-white text, serif headings, gold accent. */

.learn-wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* Top bar — minimal, logo back to home + Try Now */
.learn-topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(235,231,219,0.08);
}
.learn-topbar img { height: 30px; width: auto; opacity: 0.92; }
.learn-topbar .cta-button { padding: 9px 24px; font-size: 0.72rem; }

/* Breadcrumb */
.breadcrumb {
  font-family: var(--font-sans); font-size: 0.78rem; letter-spacing: 0.04em;
  text-transform: uppercase; color: #8c887d; padding: 40px 0 0;
}
.breadcrumb a { color: #8c887d; text-decoration: none; border-bottom: 1px solid transparent; }
.breadcrumb a:hover { color: var(--color-text); border-bottom-color: rgba(235,231,219,0.4); }
.breadcrumb span { color: #5c594f; margin: 0 8px; }

/* Article header */
.article-head { padding: 18px 0 8px; }
.article-head h1 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4rem); letter-spacing: -0.02em; line-height: 1.1;
}
.article-head h1 em {
  font-style: italic;
  background: linear-gradient(90deg,#E8B830,#D4882A,#C96B30,#D4A030,#E8B830);
  background-size: 400% 100%; -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.definition {
  font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.6;
  color: #c9c4b6; margin-top: 1.5rem; font-weight: 400;
}

/* Hero figure — gallery wall room */
.hero-figure { margin: 56px 0; }
.hero-figure .plate {
  display: flex; gap: 16px; align-items: stretch; justify-content: center;
  flex-wrap: wrap;
}
.hero-figure .plate img.artwork {
  display: block; max-width: 100%; height: auto; border-radius: 4px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.6);
}
.hero-figure figcaption {
  font-family: var(--font-sans); font-size: 0.82rem; line-height: 1.5;
  color: #8c887d; text-align: center; margin-top: 18px; letter-spacing: 0.01em;
}
.hero-figure figcaption .artist { color: var(--color-text); }

/* Value study — grayscale painting + value mosaic + color mosaic, height-matched */
.value-study { margin: 2.5rem 0; }
.value-study .study-row {
  display: flex; gap: 16px; align-items: flex-end; justify-content: center; flex-wrap: wrap;
}
.value-study .study-item { text-align: center; }
.value-study .study-item img {
  display: block; height: 230px; width: auto; max-width: 100%;
  border-radius: 4px; box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.value-study .study-label {
  display: block; font-family: var(--font-sans); font-size: 0.7rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: #8c887d; margin-top: 10px;
}
.value-study figcaption {
  font-family: var(--font-sans); font-size: 0.85rem; line-height: 1.6;
  color: #8c887d; margin-top: 22px; max-width: 480px; margin-left: auto; margin-right: auto; text-align: center;
}
.value-study figcaption b { color: var(--color-text); font-weight: 400; }

/* Solo mosaic — single proportion mosaic given room (color study) */
.solo-mosaic { margin: 2.5rem 0; text-align: center; }
/* Palette mosaic stacked directly under the hero painting (one-two) */
.solo-mosaic.under-hero { margin-top: 6rem; margin-bottom: 5rem; }
.solo-mosaic img {
  display: block; width: 340px; max-width: 80%; height: auto; margin: 0 auto;
  border-radius: 4px; box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.solo-mosaic figcaption {
  font-family: var(--font-sans); font-size: 0.85rem; line-height: 1.6;
  color: #8c887d; margin-top: 18px; max-width: 460px; margin-left: auto; margin-right: auto;
}
.solo-mosaic figcaption b { color: var(--color-text); font-weight: 400; }

/* Product demo card — ArtSensei applied to a real painting */
.product-demo {
  margin: 3rem 0; padding: 28px 28px 30px; border: 1px solid rgba(235,231,219,0.12);
  border-radius: 12px; background: rgba(235,231,219,0.02);
}
.product-demo .demo-kicker {
  font-family: var(--font-sans); font-weight: 300; font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: #8c887d; margin-bottom: 16px; text-align: center;
}
.demo-hero {
  display: block; width: 100%; height: auto; border-radius: 4px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.6);
}
.demo-hero.portrait {
  width: auto; max-width: 460px; max-height: 640px; margin-left: auto; margin-right: auto;
}
.demo-derived {
  display: flex; gap: 14px; justify-content: center; align-items: flex-end;
  flex-wrap: wrap; margin-top: 38px;
}
.demo-derived .study-item img {
  height: 150px; width: auto; max-width: 100%; border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
/* Centered proportional palette inside the demo card, label underneath */
.demo-palette { margin: 42px auto 0; text-align: center; }
.demo-palette img {
  display: block; width: 300px; max-width: 80%; height: auto; margin: 0 auto;
  border-radius: 4px; box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
.demo-palette figcaption {
  font-family: var(--font-sans); font-size: 0.85rem; line-height: 1.55;
  color: #8c887d; margin-top: 14px; max-width: 420px; margin-left: auto; margin-right: auto;
}
.palette-name {
  display: block; font-family: var(--font-sans); font-size: 0.7rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text);
  margin-bottom: 7px;
}

.product-demo .demo-claim {
  font-family: var(--font-sans); font-weight: 400; font-size: 1rem; line-height: 1.6;
  letter-spacing: -0.005em; color: #d8d3c4; margin-top: 22px; text-align: center;
  max-width: 540px; margin-left: auto; margin-right: auto;
}
.demo-claim a {
  color: #E8C25A; text-decoration: none;
  border-bottom: 1px solid rgba(232,194,90,0.35); white-space: nowrap;
}
.demo-claim a:hover { border-bottom-color: #E8C25A; }
@media (max-width: 600px) {
  .demo-derived .study-item img { height: 110px; }
}

/* Body prose — the treatment */
.treatment p {
  font-family: var(--font-serif); font-size: 1.18rem; line-height: 1.75;
  margin-bottom: 1.5rem; color: var(--color-text);
}
.treatment p .lead-line {
  font-style: italic;
  color: #D88E32;
  background-image: linear-gradient(100deg, #E6A93A 0%, #D4882A 45%, #C96B30 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Four-pigment palette strip above the H1 on artist-palette pages */
.palette-strip {
  display: flex;
  flex-direction: row;
  margin: 0 0 2.2rem;
  border-radius: 2px;
  overflow: hidden;
}
.palette-strip span {
  flex: 1;
  height: 16px;
}
.treatment h2 {
  font-family: var(--font-sans); font-weight: 300; font-size: 1.65rem;
  letter-spacing: -0.01em; margin: 3rem 0 1.2rem; color: var(--color-text);
}

/* Inline CTA — declarative, ArtSensei as subject */
.inline-cta {
  margin: 3rem 0; padding: 28px 32px; text-align: center;
  border: 1px solid rgba(232,184,48,0.22); border-radius: 10px;
  background: linear-gradient(180deg, rgba(232,184,48,0.05), rgba(0,0,0,0));
}

/* CTA buttons on /learn — show the full gold gradient (site default hides it
   behind a 600% background-size). Scoped here so the homepage button is untouched. */
.learn-topbar .cta-button,
.inline-cta .cta-button {
  background-image: linear-gradient(120deg, #A8862A 0%, #946020 45%, #8A4E25 100%);
  background-size: 100% 100%;
}
.inline-cta p {
  font-family: var(--font-serif); font-size: 1.25rem;
  line-height: 1.5; color: #d8d3c4; margin: 0 0 18px;
}
.inline-cta a.cta-button { padding: 16px 44px; font-size: 0.85rem; }

/* FAQ — visible + schema-backed */
.faq { margin: 4rem 0 2rem; }
.faq h2 {
  font-family: var(--font-sans); font-weight: 300; font-size: 1.65rem;
  margin-bottom: 1.5rem; color: var(--color-text);
}
.faq details {
  border-top: 1px solid rgba(235,231,219,0.12); padding: 18px 0;
}
.faq details:last-child { border-bottom: 1px solid rgba(235,231,219,0.12); }
.faq summary {
  font-family: var(--font-sans); font-size: 1.05rem; color: var(--color-text);
  cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: #8c887d; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p {
  font-family: var(--font-serif); font-size: 1.08rem; line-height: 1.7;
  color: #c9c4b6; margin-top: 14px;
}

/* Related / footer nav within /learn */
.learn-foot { margin: 4rem 0 0; padding-top: 2rem; border-top: 1px solid rgba(235,231,219,0.12); }
.learn-foot a { color: #8c887d; text-decoration: none; font-family: var(--font-sans); font-size: 0.9rem; }
.learn-foot a:hover { color: var(--color-text); }

/* Article meta: visible credential + recency (AEO E-E-A-T + recency signals) */
.article-meta { margin-top: 1.5rem; font-family: var(--font-sans); font-weight: 300; font-size: 0.8rem; line-height: 1.5; color: #8c887d; }
.article-meta .sep { margin: 0 0.55em; opacity: 0.5; }

/* Related cluster links (topical authority for LLM traversal) */
.learn-related { margin: 3rem 0 0; padding-top: 2rem; border-top: 1px solid rgba(235,231,219,0.12); }
.learn-related h2 { font-family: var(--font-sans); font-weight: 300; font-size: 0.78rem; letter-spacing: 0.09em; text-transform: uppercase; color: #8c887d; margin: 0 0 0.85rem; }
.learn-related a { display: block; color: var(--color-text); text-decoration: none; font-family: var(--font-serif); font-size: 1.05rem; line-height: 1.45; padding: 0.35rem 0; }
.learn-related a:hover { color: #E8C25A; }
.learn-related a .r-desc { display: block; font-family: var(--font-sans); font-weight: 300; font-size: 0.85rem; color: #8c887d; }

/* Hub page */
.hub-head { padding: 80px 0 24px; text-align: center; }
.hub-head h1 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(2.8rem, 7vw, 4.5rem); letter-spacing: -0.02em; line-height: 1.15;
}
.hub-head h1 em {
  font-style: italic;
  background: linear-gradient(90deg,#E8B830,#D4882A,#C96B30,#D4A030,#E8B830);
  background-size: 400% 100%; -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.hub-head p {
  font-family: var(--font-serif); font-size: 1.25rem; color: #c9c4b6;
  max-width: 560px; margin: 1.5rem auto 0; line-height: 1.6;
}
.hub-cat { margin: 3.5rem 0; }
.hub-cat h2 {
  font-family: var(--font-sans); font-weight: 300; font-size: 1.1rem;
  text-transform: uppercase; letter-spacing: 0.08em; color: #8c887d;
  border-bottom: 1px solid rgba(235,231,219,0.12); padding-bottom: 12px; margin-bottom: 4px;
}
.hub-link {
  display: flex; align-items: baseline; gap: 14px; justify-content: space-between;
  padding: 20px 0; border-bottom: 1px solid rgba(235,231,219,0.07);
  text-decoration: none;
}
.hub-link:hover .hub-link-title { color: #E8C25A; }
.hub-link-title { font-family: var(--font-serif); font-size: 1.5rem; color: var(--color-text); transition: color .2s; }
.hub-link-desc { font-family: var(--font-sans); font-size: 0.92rem; color: #8c887d; text-align: right; max-width: 60%; }
.hub-soon .hub-link-title { color: #5c594f; }
.hub-soon .hub-link-desc::after { content: "soon"; }

@media (max-width: 600px) {
  .hub-link { flex-direction: column; gap: 4px; }
  .hub-link-desc { text-align: left; max-width: 100%; }
  .value-study .study-row { gap: 28px; }
  .value-study .study-item img { height: auto; width: 100%; max-width: 240px; }
}
