/* ==========================================================================
   ExploMentor — inner pages
   Blog, article, about, contact. Builds on styles.css
   ========================================================================== */

/* ------------------------------------------------------------------ page hero */

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.6rem, 6vw, 4.4rem) clamp(2.2rem, 4.5vw, 3.4rem);
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -45%;
  right: -8%;
  width: 46vw;
  height: 46vw;
  min-width: 300px;
  min-height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(200, 250, 90, 0.5), transparent 62%);
  filter: blur(14px);
  pointer-events: none;
}

.page-hero--dark {
  background: var(--ink);
  color: var(--cream);
  border-bottom-color: var(--line-dark);
}

.page-hero--dark::before {
  background: radial-gradient(circle at 40% 40%, rgba(108, 76, 241, 0.55), transparent 62%);
}

.page-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 54rem;
}

.page-hero h1 {
  margin: 0.15rem 0 0.5rem;
  text-wrap: balance;
}

.page-hero p {
  max-width: 44rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.page-hero--dark p {
  color: rgba(250, 247, 242, 0.68);
}

.page-hero--dark .ital {
  color: var(--lime);
}

/* breadcrumbs */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.crumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.crumbs li + li::before {
  content: "/";
  color: var(--muted-light);
}

.crumbs a {
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--violet);
}

.page-hero--dark .crumbs {
  color: rgba(250, 247, 242, 0.6);
}

.page-hero--dark .crumbs a:hover {
  color: var(--lime);
}

/* ------------------------------------------------------------------ blog list */

.post-grid {
  display: grid;
  gap: 1.3rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
  text-decoration: none;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease),
    border-color 0.45s var(--ease);
}

.post-card:hover,
.post-card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--violet-line);
  box-shadow: var(--shadow-md);
}

.post-card__thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--ink);
}

.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.post-card:hover .post-card__thumb img {
  transform: scale(1.05);
}

.post-card__thumb--type {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 20%, rgba(108, 76, 241, 0.85), transparent 65%),
    var(--ink);
}

.post-card__thumb--type span {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-style: italic;
  color: var(--lime);
  text-align: center;
  padding: 0 1rem;
}

.post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(1.2rem, 2.2vw, 1.6rem);
}

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.8rem;
  margin-bottom: 0.7rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.post-card__meta .tag {
  padding: 0.22rem 0.6rem;
  border-radius: var(--r-pill);
  background: var(--violet-soft);
  color: var(--violet);
}

.post-card h2,
.post-card h3 {
  margin-bottom: 0.45rem;
  font-size: 1.42rem;
  color: var(--ink);
  line-height: 1.1;
}

.post-card p {
  margin: 0 0 1.3rem;
  font-size: 0.94rem;
  color: var(--muted);
}

.post-card .read-more {
  margin-top: auto;
}

/* featured post */

.post-featured {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
  margin-bottom: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--white);
  text-decoration: none;
  transition: box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}

.post-featured:hover {
  border-color: var(--violet-line);
  box-shadow: var(--shadow-md);
}

.post-featured__media {
  min-height: 100%;
  background: radial-gradient(circle at 25% 20%, rgba(200, 250, 90, 0.9), transparent 60%),
    linear-gradient(140deg, #6c4cf1, #14121f);
}

.post-featured__media span {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 2rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-style: italic;
  line-height: 1.05;
  color: var(--cream);
  text-align: center;
}

.post-featured__body {
  padding: clamp(1.6rem, 3.4vw, 2.8rem);
}

.post-featured h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 0.5rem;
}

.post-featured p {
  color: var(--muted);
}

/* -------------------------------------------------------------------- article */

.article {
  padding-block: clamp(2rem, 4vw, 3.2rem) clamp(3rem, 6vw, 5rem);
}

.article__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(1.8rem, 4vw, 3.4rem);
  align-items: start;
}

.prose {
  max-width: 44rem;
  font-size: 1.04rem;
  color: #2c2740;
}

.prose > * + * {
  margin-top: 1.1rem;
}

.prose h2 {
  margin-top: 2.4rem;
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  color: var(--ink);
}

.prose h3 {
  margin-top: 1.8rem;
  font-size: 1.25rem;
  color: var(--ink);
}

.prose p,
.prose li {
  line-height: 1.75;
}

.prose ul,
.prose ol {
  padding-left: 1.3rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.prose a {
  color: var(--violet);
  font-weight: 600;
}

.prose strong {
  color: var(--ink);
}

.prose blockquote {
  margin: 1.8rem 0;
  padding: 1.2rem 1.4rem;
  border-left: 4px solid var(--lime);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--lime-soft);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--ink);
}

.prose blockquote p {
  margin: 0;
}

.prose figure {
  margin: 1.8rem 0;
}

.prose figcaption {
  margin-top: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--muted);
}

.prose code {
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  background: var(--cream-2);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
}

.prose hr {
  margin: 2.4rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}

/* callout */

.callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  margin: 1.6rem 0;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--violet-line);
  border-radius: var(--r-md);
  background: var(--violet-soft);
  font-size: 0.95rem;
}

.callout__icon {
  font-size: 1.1rem;
  line-height: 1.4;
}

.callout p {
  margin: 0;
}

.callout strong {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
}

/* article header + footer bits */

.article__title {
  margin: 0.2rem 0 0.7rem;
  font-size: clamp(2rem, 4.4vw, 3rem);
  text-wrap: balance;
}

.article__standfirst {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 42rem;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1rem;
  margin: 1.4rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--muted);
}

.byline img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.byline strong {
  color: var(--ink);
}

.article__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.tag-pill {
  padding: 0.32rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--muted);
  transition: all 0.3s var(--ease);
}

.tag-pill:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

/* sidebar */

.sidebar {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 1.2rem;
}

.side-card {
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
}

.side-card h2 {
  margin-bottom: 0.8rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.side-card ul {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-card a {
  display: flex;
  gap: 0.6rem;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  color: var(--ink);
}

.side-card a:hover {
  color: var(--violet);
}

.side-card img {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
}

.side-card--cta {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.side-card--cta h2 {
  color: rgba(250, 247, 242, 0.6);
}

.side-card--cta p {
  font-size: 0.92rem;
  color: rgba(250, 247, 242, 0.7);
}

/* --------------------------------------------------------------------- about */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.8rem, 4vw, 3.6rem);
  align-items: start;
}

.about-portrait {
  position: relative;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.about-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-lg);
}

.about-portrait figcaption {
  padding: 0.9rem 0.5rem 0.2rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--muted);
}

.value-list {
  display: grid;
  gap: 0.9rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.value-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.value-list li:hover {
  transform: translateY(-3px);
  border-color: var(--violet-line);
}

.value-list .num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--violet);
  font-size: 1.1rem;
}

.value-list strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink);
}

.value-list p {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* timeline */

.timeline {
  position: relative;
  display: grid;
  gap: 1.4rem;
  margin: 0;
  padding: 0 0 0 1.6rem;
  list-style: none;
  border-left: 2px solid var(--line);
}

.timeline li {
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 0.45rem;
  left: calc(-1.6rem - 7px);
  width: 12px;
  height: 12px;
  border: 2px solid var(--cream);
  border-radius: 50%;
  background: var(--violet);
}

.timeline time {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
}

.timeline h3 {
  margin-bottom: 0.2rem;
  font-size: 1.18rem;
}

.timeline p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* faq */

.faq {
  display: grid;
  gap: 0.7rem;
}

.faq details {
  padding: 1.05rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.faq details[open] {
  border-color: var(--violet-line);
  box-shadow: var(--shadow-sm);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--cream-2);
  font-size: 1rem;
  color: var(--ink);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.faq details[open] summary::after {
  content: "−";
  background: var(--lime);
  transform: rotate(180deg);
}

.faq p {
  margin: 0.7rem 0 0;
  font-size: 0.94rem;
  color: var(--muted);
}

/* ------------------------------------------------------------------- contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}

.form-card {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.field label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--violet);
  box-shadow: 0 0 0 4px var(--violet-soft);
}

.field .hint {
  font-size: 0.78rem;
  color: var(--muted-light);
}

.form-note {
  margin: 0.9rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.form-status {
  margin: 0.9rem 0 0;
  padding: 0.8rem 1rem;
  border-radius: var(--r-sm);
  background: var(--lime-soft);
  font-size: 0.9rem;
  color: #3f5200;
}

.form-status[hidden] {
  display: none;
}

/* contact channels */

.channel-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.channel-list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  text-decoration: none;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.channel-list a:hover {
  transform: translateY(-3px);
  border-color: var(--violet-line);
  box-shadow: var(--shadow-sm);
}

.channel-list .ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--cream-2);
  font-size: 1.05rem;
}

.channel-list strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--ink);
}

.channel-list span {
  font-size: 0.84rem;
  color: var(--muted);
}

.channel-list .go {
  color: var(--muted-light);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}

.channel-list a:hover .go {
  transform: translateX(3px);
  color: var(--violet);
}

/* ------------------------------------------------------- 404 / misc helpers */

.error-page {
  display: grid;
  place-items: center;
  min-height: 62vh;
  padding-block: clamp(2.4rem, 6vw, 4rem);
  text-align: center;
}

.error-page h1 {
  font-size: clamp(3.4rem, 12vw, 7rem);
  line-height: 0.9;
  color: var(--ink);
}

.error-page p {
  max-width: 34rem;
  margin-inline: auto;
  color: var(--muted);
}

.error-page .hero-actions {
  justify-content: center;
  margin-bottom: 0;
}

.section--tight .post-grid {
  padding-top: 0;
}

/* centred CTA with actions in a row */
.cta {
  text-align: center;
}

.cta .btn {
  margin-top: 0.4rem;
}

.cta p {
  margin-inline: auto;
  max-width: 42rem;
}

@media (max-width: 960px) {
  .article__layout,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .post-featured {
    grid-template-columns: 1fr;
  }

  .post-featured__media {
    min-height: 200px;
  }
}

@media (max-width: 560px) {
  .post-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding-block: 2rem 1.8rem;
  }

  .byline {
    gap: 0.5rem 0.75rem;
  }

  .article__foot {
    gap: 0.5rem;
  }

  .prose {
    font-size: 1rem;
  }

  .prose blockquote {
    font-size: 1.12rem;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }
}
