/*
 * Mindful:ON — Explore the work.
 * Every rule is scoped to .on-explore so it can drop into mindfulin.com without
 * touching existing styles. Colours and type come from the Brand Guidelines v2
 * palette (Backgrounds 60% · Brights 30% · Jewels 10%) and its four Google fonts.
 */

.on-explore {
  /* Palette 1 · Backgrounds & text */
  --on-cloud: #FFFFFD;
  --on-sand: #EEE9D6;
  --on-sky-tint: #E0EDF2;
  --on-mint-tint: #E6FBEE;
  --on-lilac-tint: #FCF7FF;
  --on-slate: #556881;
  --on-midnight: #160A37;
  /* Palette 2 · Brights (Midnight text only) */
  --on-sky: #A7DAEE;
  --on-periwinkle: #9EC5F6;
  --on-lilac: #E3CFF5;
  /* Palette 3 · Jewels (white text only) */
  --on-deep-teal: #035469;
  --on-emerald: #087A50;
  --on-plum: #4E2E73;

  --on-font-title: "Fraunces", Georgia, serif;
  --on-font-heading: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --on-font-section: "Lexend", "Segoe UI", system-ui, sans-serif;
  --on-font-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;

  --on-radius: 18px;
  --on-gap: clamp(16px, 3vw, 28px);

  background: var(--on-cloud);
  color: var(--on-midnight);
  font-family: var(--on-font-body);
  font-size: 1rem;           /* 16px minimum body text */
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

.on-explore *,
.on-explore *::before,
.on-explore *::after { box-sizing: border-box; }

.on-explore .on-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) 16px clamp(40px, 7vw, 88px);
}

.on-explore .on-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.on-explore p { margin: 0 0 .75em; max-width: 68ch; }
.on-explore ul[role="list"] { list-style: none; margin: 0; padding: 0; }

/* ---------- Hero ---------- */
.on-explore .on-hero {
  background: linear-gradient(135deg, var(--on-mint-tint) 0%, var(--on-sky) 62%, var(--on-periwinkle) 100%);
  border-radius: calc(var(--on-radius) + 6px);
  padding: clamp(28px, 6vw, 64px) clamp(20px, 5vw, 56px);
  margin-bottom: clamp(40px, 7vw, 72px);
}

.on-explore .on-eyebrow {
  font-family: var(--on-font-section);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .02em;
  margin-bottom: .9rem;
}

.on-explore .on-title {
  font-family: var(--on-font-title);
  font-weight: 600;
  font-size: clamp(2rem, 5.2vw, 3.4rem);   /* Fraunces only at 28pt+ */
  line-height: 1.08;
  margin: 0 0 1rem;
  max-width: 18ch;
  text-wrap: balance;
}

.on-explore .on-lede {
  font-size: clamp(1.06rem, 1.8vw, 1.25rem);
  max-width: 54ch;
  margin-bottom: 1.6rem;
}

.on-explore .on-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--on-gap);
  align-items: center;
}
.on-explore .on-face {
  width: 40px; height: 40px;
  vertical-align: middle;
  margin-right: 10px;
}
.on-explore .on-hero-art { margin: 0; text-align: center; }
.on-explore .on-hero-art img {
  display: block;
  width: clamp(160px, 22vw, 240px); height: auto;
  border-radius: var(--on-radius);
}
.on-explore .on-hero-art figcaption {
  font-family: var(--on-font-section);
  font-size: .9rem;
  margin-top: 8px;
  max-width: 240px;
}
@media (max-width: 720px) {
  .on-explore .on-hero { grid-template-columns: 1fr; }
  .on-explore .on-hero-art img { width: 160px; margin: 0 auto; }
  .on-explore .on-hero-art figcaption { margin-left: auto; margin-right: auto; }
}

.on-explore .on-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Blocks ---------- */
.on-explore .on-block { margin-bottom: clamp(44px, 7vw, 80px); }
.on-explore .on-block:focus { outline: none; }
.on-explore .on-block-head { margin-bottom: 20px; }

.on-explore .on-h2 {
  font-family: var(--on-font-heading);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.4vw, 2rem);
  line-height: 1.2;
  margin: 0 0 .4rem;
}

.on-explore .on-h3 {
  font-family: var(--on-font-section);
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1.3;
  margin: 0 0 .45rem;
}

.on-explore .on-sub { color: var(--on-slate); font-size: 1.04rem; }

/* ---------- Filter (only shown with 2+ real categories) ---------- */
.on-explore .on-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 20px; }
.on-explore .on-filter[hidden] { display: none; }
.on-explore .on-filter-label { font-family: var(--on-font-section); font-weight: 500; margin: 0; }
.on-explore .on-filter-group { display: flex; flex-wrap: wrap; gap: 8px; }

.on-explore .on-chip {
  font: 500 .98rem/1 var(--on-font-section);
  color: var(--on-midnight);
  background: var(--on-cloud);
  border: 2px solid var(--on-deep-teal);
  border-radius: 999px;
  min-height: 44px;
  padding: 10px 16px;
  cursor: pointer;
}
.on-explore .on-chip[aria-pressed="true"] { background: var(--on-deep-teal); color: #fff; }
.on-explore .on-chip-n { opacity: .8; font-variant-numeric: tabular-nums; }

/* ---------- Cards ---------- */
.on-explore .on-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: var(--on-gap);
}
.on-explore .on-card[hidden] { display: none; }

.on-explore .on-card article {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--on-sky-tint);
  border-radius: var(--on-radius);
  padding: 22px 22px 20px;
}

.on-explore .on-badge {
  align-self: flex-start;
  font: 600 .8rem/1 var(--on-font-section);
  letter-spacing: .02em;
  border-radius: 999px;
  padding: 7px 12px;
  margin-bottom: 14px;
  border: 1.5px solid currentColor;
}
.on-explore .on-badge--published { background: var(--on-mint-tint); color: var(--on-midnight); border-color: var(--on-emerald); }
.on-explore .on-badge--sample    { background: var(--on-cloud);     color: var(--on-midnight); border-color: var(--on-deep-teal); }
.on-explore .on-badge--concept   { background: var(--on-lilac);     color: var(--on-midnight); border-color: var(--on-plum); border-style: dashed; }

.on-explore .on-meta {
  display: flex; flex-wrap: wrap; gap: 4px 0;
  font-family: var(--on-font-section);
  font-size: .92rem;
  color: var(--on-slate);
  margin-bottom: .8rem;
}
.on-explore .on-meta > * + *::before { content: "·"; padding: 0 .5em; }
.on-explore .on-meta time { font-variant-numeric: tabular-nums; color: var(--on-midnight); font-weight: 500; }

.on-explore .on-summary { flex: 1 0 auto; }
.on-explore .on-credit { font-size: .95rem; color: var(--on-slate); margin-bottom: .35rem; }
.on-explore .on-transcript { font-size: .95rem; margin-bottom: 1.1rem; }

.on-explore .on-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

/* ---------- Options ---------- */
.on-explore .on-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--on-gap);
  margin-bottom: 18px;
}
.on-explore .on-option {
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--on-cloud);
  border: 2px solid var(--on-sky);
  border-radius: var(--on-radius);
  padding: 22px;
}
.on-explore .on-option p { flex: 1 0 auto; }
.on-explore .on-note { color: var(--on-slate); }

/* ---------- Fine print ---------- */
.on-explore .on-fine {
  background: var(--on-sand);
  border-radius: var(--on-radius);
  padding: clamp(20px, 4vw, 32px);
  margin-bottom: 0;
}
.on-explore .on-fine-list { margin: 0; padding-left: 1.1em; }
.on-explore .on-fine-list li { margin-bottom: .6em; max-width: 78ch; }
.on-explore .on-fine-list li:last-child { margin-bottom: 0; }

/* ---------- Buttons & links ---------- */
.on-explore .on-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  border-radius: 999px;
  font: 600 1rem/1.2 var(--on-font-section);
  text-decoration: none;
  border: 2px solid var(--on-deep-teal);
  transition: background-color .3s ease, color .3s ease;
}
.on-explore .on-btn--primary { background: var(--on-deep-teal); color: #fff; }
.on-explore .on-btn--primary:hover { background: var(--on-midnight); border-color: var(--on-midnight); }
.on-explore .on-btn--quiet { background: var(--on-cloud); color: var(--on-deep-teal); }
.on-explore .on-btn--quiet:hover { background: var(--on-sky-tint); }

.on-explore a:not(.on-btn) { color: var(--on-deep-teal); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.on-explore a:not(.on-btn):hover { color: var(--on-midnight); }
.on-explore .on-link { font-family: var(--on-font-section); font-weight: 500; }
.on-explore .on-more { margin-top: 22px; }

.on-explore a:focus-visible,
.on-explore button:focus-visible {
  outline: 3px solid var(--on-midnight);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--on-cloud);
}

.on-explore .on-noscript { background: var(--on-sky-tint); padding: 16px; border-radius: var(--on-radius); }

@media (prefers-reduced-motion: reduce) {
  .on-explore * { transition: none !important; scroll-behavior: auto !important; }
}

@media (forced-colors: active) {
  .on-explore .on-btn, .on-explore .on-chip, .on-explore .on-badge { border: 2px solid ButtonText; }
  .on-explore .on-chip[aria-pressed="true"] { outline: 3px solid Highlight; }
}

/* Standalone preview only — the live site supplies its own page chrome. */
body.on-demo-host { margin: 0; background: #FFFFFD; }
