/* Premium Editorial — ranjanasoni.com design system.
   Source: stitch_design/premium_editorial/DESIGN.md (Google Stitch export).
   Hand-authored from the spec — the export used Tailwind's CDN build, which
   is fine for a mockup but wrong for production (unpurged, external script).
   Replaces the earlier "Classical" system (_ds bundle + site.css). */

:root {
  /* — palette — */
  --deep-navy: #0f172a;
  --refined-gold: #b38b59;
  --champagne: #fbf9f6;
  --slate-gray: #475569;

  --surface: #fcf8fa;
  --surface-dim: #dcd9db;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f6f3f5;
  --surface-container: #f0edef;
  --surface-container-high: #eae7e9;

  --on-surface: #1b1b1d;
  --on-surface-variant: #45464d;
  --outline: #76777d;
  --outline-variant: #c6c6cd;

  --error: #ba1a1a;

  /* — type — */
  --font-display: 'EB Garamond', Georgia, serif;
  --font-body: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;

  /* — spacing — */
  --container-max: 1200px;
  --section-gap: 120px;
  --section-gap-tablet: 80px;
  --gutter: 32px;
  --margin-mobile: 24px;
  --stack-sm: 8px;
  --stack-md: 24px;
  --stack-lg: 48px;

  /* — shape — */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;

  /* — elevation — */
  --shadow-soft: 0 24px 48px -12px rgba(15, 23, 42, 0.06);
  --shadow-card: 0 12px 32px -8px rgba(15, 23, 42, 0.08);
}

html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--champagne);
  color: var(--deep-navy);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

::selection {
  background: rgba(179, 139, 89, 0.2);
  color: var(--refined-gold);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  color: var(--deep-navy);
}

p {
  margin: 0;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* — layout primitives — */
.pe-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--margin-mobile);
}
@media (min-width: 768px) {
  .pe-container { padding: 0 var(--gutter); }
}

.pe-section {
  padding: var(--section-gap) 0;
}
@media (max-width: 1023px) {
  .pe-section { padding: var(--section-gap-tablet) 0; }
}
@media (max-width: 640px) {
  .pe-section { padding: 56px 0; }
}

.pe-rule {
  height: 1px;
  border: 0;
  background: var(--slate-gray);
  opacity: 0.15;
  margin: 0;
}

/* — type scale — */
.pe-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--refined-gold);
  display: block;
}

.pe-display {
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.pe-headline-lg {
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.2;
}

.pe-headline-md {
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.3;
}

.pe-body-lg {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.6;
  color: var(--on-surface-variant);
}

.pe-body-md {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--on-surface-variant);
}

.pe-blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.4;
  color: var(--deep-navy);
}

em {
  color: var(--refined-gold);
  font-style: italic;
}

/* — nav — */
.pe-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 246, 0.8);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid rgba(71, 85, 105, 0.1);
}
.pe-nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--margin-mobile);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 768px) {
  .pe-nav-inner { padding: 0 var(--gutter); }
}
.pe-nav-brand {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--deep-navy);
}
.pe-nav-links {
  display: flex;
  align-items: center;
  gap: var(--stack-md);
}
.pe-nav-links a {
  font-size: 16px;
  color: var(--on-surface-variant);
  text-decoration: none;
  transition: color 0.2s ease;
}
.pe-nav-links a:hover,
.pe-nav-links a[aria-current='page'] {
  color: var(--refined-gold);
}
@media (max-width: 767px) {
  .pe-nav-links a:not(.pe-btn) { display: none; }
}

/* — buttons — */
.pe-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.15s ease, background 0.2s ease;
}
.pe-btn:active {
  transform: scale(0.97);
}
.pe-btn-primary {
  background: var(--deep-navy);
  color: #ffffff;
}
.pe-btn-primary:hover {
  box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.25);
}
.pe-btn-gold {
  background: var(--deep-navy);
  color: var(--refined-gold);
}
.pe-btn-gold:hover {
  box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.25);
}
.pe-btn-ghost {
  background: transparent;
  color: var(--refined-gold);
  border-color: var(--refined-gold);
}
.pe-btn-ghost:hover {
  background: rgba(179, 139, 89, 0.05);
}
.pe-btn-on-navy {
  background: var(--refined-gold);
  color: var(--deep-navy);
}
.pe-btn-on-navy:hover {
  background: #ffffff;
}

.pe-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--refined-gold);
  text-decoration: none;
}
.pe-cta svg {
  transition: transform 0.3s ease;
  width: 18px;
  height: 18px;
}
.pe-cta:hover svg {
  transform: translateX(4px);
}
.pe-cta-navy {
  color: var(--deep-navy);
}
.pe-cta-navy:hover {
  color: var(--refined-gold);
}

/* — cards — */
.pe-card {
  background: var(--surface-container-lowest);
  border: 1px solid rgba(71, 85, 105, 0.05);
  border-radius: var(--radius-xl);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  padding: 32px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.pe-card:hover {
  box-shadow: var(--shadow-card);
}

.pe-panel-navy {
  background: var(--deep-navy);
  color: #ffffff;
  border-radius: var(--radius-3xl);
  padding: 48px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .pe-panel-navy { padding: 80px; }
}
.pe-panel-navy .pe-body-md,
.pe-panel-navy .pe-body-lg {
  color: rgba(255, 255, 255, 0.7);
}
.pe-panel-navy h2, .pe-panel-navy h3 {
  color: #ffffff;
}

/* — chips / labels — */
.pe-chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(179, 139, 89, 0.1);
  color: var(--refined-gold);
}
.pe-chip-outline {
  background: transparent;
  border: 1px solid var(--outline-variant);
  color: var(--on-surface-variant);
}

/* — numbered list motif — */
.pe-index-num {
  font-family: var(--font-display);
  font-size: 48px;
  color: rgba(179, 139, 89, 0.3);
  display: block;
  margin-bottom: var(--stack-sm);
  transition: color 0.4s ease;
}
.group:hover .pe-index-num,
.pe-card:hover .pe-index-num {
  color: var(--refined-gold);
}

/* — quote section — */
.pe-quote-section {
  background: var(--surface-container-low);
  position: relative;
  overflow: hidden;
}

/* — image frame — */
.pe-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.pe-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* — inputs — */
.pe-input {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--outline-variant);
  background: var(--surface-container-lowest);
  color: var(--deep-navy);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pe-input::placeholder {
  color: var(--outline);
}
.pe-input:focus {
  outline: none;
  border-color: var(--refined-gold);
  box-shadow: 0 0 0 3px rgba(179, 139, 89, 0.15);
}
.pe-field {
  display: block;
  margin-bottom: var(--stack-md);
}
.pe-field > span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-gray);
  margin-bottom: 8px;
}
.pe-input-on-navy {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.pe-input-on-navy::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* — footer — */
.pe-footer {
  background: var(--champagne);
  border-top: 1px solid rgba(71, 85, 105, 0.2);
}
.pe-footer-top {
  padding: 48px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--stack-md);
}
.pe-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}
.pe-footer-links a {
  font-size: 16px;
  color: var(--on-surface-variant);
  text-decoration: none;
  transition: color 0.2s ease;
}
.pe-footer-links a:hover {
  color: var(--refined-gold);
}
.pe-footer-bottom {
  padding: 24px 0;
  border-top: 1px solid rgba(71, 85, 105, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--stack-sm);
  opacity: 0.5;
  font-size: 12px;
}

/* — grids — */
.pe-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
@media (max-width: 767px) {
  .pe-grid-3 { grid-template-columns: 1fr; gap: var(--stack-lg); }
}

.pe-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
@media (max-width: 767px) {
  .pe-grid-2 { grid-template-columns: 1fr; }
}

.pe-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--stack-lg);
  align-items: center;
}
@media (max-width: 1023px) {
  .pe-hero-grid { grid-template-columns: 1fr; }
}

.pe-split-4-8 {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--stack-lg);
  align-items: start;
}
@media (max-width: 767px) {
  .pe-split-4-8 { grid-template-columns: 1fr; }
}

/* — long-form article — shared by AI Literacy and Conquering Within pieces — */
.pe-article-header {
  padding: 64px 0 48px;
}
.pe-article-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--on-surface-variant);
}
.pe-article-title {
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  max-width: 20ch;
}
.pe-article-standfirst {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.4;
  color: var(--on-surface-variant);
  max-width: 42rem;
}
.pe-article-cover {
  /* Capped: 21:9 across a wide window ran to 700px+, which swallowed the
     opening of the article. A cover is a band, not a screen. */
  aspect-ratio: 21 / 9;
  max-height: 360px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface-container);
  margin: 0 0 var(--section-gap-tablet);
}
.pe-article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pe-article-body {
  max-width: 42rem;
  margin: 0 auto;
  font-size: 19px;
  line-height: 1.75;
  color: var(--on-surface);
}
.pe-article-body > :first-child {
  margin-top: 0;
}
.pe-article-body p {
  margin: 0 0 28px;
}
/* Drop cap on the article's opening paragraph. */
.pe-article-body > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 76px;
  font-weight: 500;
  line-height: 0.8;
  float: left;
  padding: 8px 10px 0 0;
  color: var(--refined-gold);
}
.pe-article-body h1,
.pe-article-body h2 {
  font-size: 28px;
  line-height: 1.25;
  margin: 56px 0 20px;
}
.pe-article-body h3 {
  font-size: 22px;
  margin: 40px 0 16px;
}
.pe-article-body ul,
.pe-article-body ol {
  margin: 0 0 28px;
  padding-left: 1.3em;
}
.pe-article-body li {
  margin-bottom: 10px;
}
.pe-article-body a {
  color: var(--refined-gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pe-article-body img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin: var(--stack-lg) 0;
}
.pe-article-body hr {
  border: 0;
  height: 1px;
  background: var(--outline-variant);
  margin: var(--stack-lg) 0;
}
.pe-article-body blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  line-height: 1.4;
  color: var(--deep-navy);
  border-left: 3px solid var(--refined-gold);
  padding: 4px 0 4px 28px;
  margin: var(--stack-lg) 0;
}

.pe-byline {
  max-width: 42rem;
  margin: var(--section-gap-tablet) auto 0;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--surface-container-low);
  display: flex;
  align-items: center;
  gap: 16px;
}
.pe-byline img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.pe-byline-name {
  font-weight: 700;
  font-size: 15px;
}
.pe-byline-role {
  font-size: 13px;
  color: var(--on-surface-variant);
}

/* — fallback: an uploaded page shown whole, in an isolated frame — */
.pe-frame-shell {
  display: flex;
  flex-direction: column;
  height: 100dvh;
}
.pe-frame-bar {
  display: flex;
  align-items: center;
  gap: var(--stack-md);
  padding: 14px var(--margin-mobile);
  border-bottom: 1px solid var(--outline-variant);
  font-size: 14px;
  flex: none;
}
.pe-frame-bar a {
  text-decoration: none;
  color: var(--on-surface-variant);
}
.pe-frame-bar a:hover {
  color: var(--refined-gold);
}
.pe-frame-bar-meta {
  color: var(--on-surface-variant);
}
.pe-frame-open {
  margin-left: auto;
}
.pe-article-frame {
  display: block;
  width: 100%;
  border: 0;
  flex: 1 1 auto;
  min-height: 0;
  background: var(--champagne);
}

/* — search — */
.pe-search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 480px;
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--outline-variant);
  background: var(--surface-container-lowest);
}
.pe-search-box:focus-within {
  border-color: var(--refined-gold);
  box-shadow: 0 0 0 3px rgba(179, 139, 89, 0.15);
}
.pe-search-icon {
  display: flex;
  color: var(--outline);
  flex-shrink: 0;
}
.pe-search-icon svg {
  width: 18px;
  height: 18px;
}
.pe-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: none;
  font: inherit;
  font-size: 16px;
  color: var(--deep-navy);
}
.pe-search-input:focus {
  outline: none;
}
.pe-search-input::-webkit-search-cancel-button {
  display: none;
}
.pe-search-clear {
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--refined-gold);
  cursor: pointer;
}
.pe-search-count {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--on-surface-variant);
}

/* — post / article cards — */
.pe-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 900px) {
  .pe-post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .pe-post-grid { grid-template-columns: 1fr; }
}

.pe-post {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-xl);
  padding: 24px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.pe-post:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}
.pe-post-meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--refined-gold);
  margin-bottom: 12px;
}
.pe-post-title {
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 12px;
}
.pe-post-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--on-surface-variant);
  flex: 1;
}
.pe-post-more {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--deep-navy);
}

.pe-post-lead {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 48px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 40px;
  border-radius: var(--radius-3xl);
  background: var(--surface-container-lowest);
  box-shadow: var(--shadow-card);
}
@media (max-width: 767px) {
  .pe-post-lead { grid-template-columns: 1fr; padding: 24px; }
}
.pe-post-lead .pe-post-title {
  font-size: clamp(26px, 3vw, 36px);
}

/* — workshops — */
.pe-track-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-gray);
}

.pe-workshop {
  border-radius: var(--radius-2xl);
  background: var(--surface-container-lowest);
  border: 1px solid rgba(71, 85, 105, 0.05);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  padding: 40px;
  margin-bottom: 24px;
}
.pe-workshop-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--stack-lg);
}
@media (max-width: 800px) {
  .pe-workshop-head { grid-template-columns: 1fr; }
}
.pe-workshop-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--refined-gold);
  display: block;
  margin-bottom: 12px;
}
.pe-workshop-title {
  font-size: 28px;
  margin-bottom: 20px;
}
.pe-workshop-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pe-workshop-body p {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--on-surface-variant);
}
.pe-venue-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.pe-venue-list li {
  font-size: 14px;
  color: var(--on-surface);
  position: relative;
  padding-left: 14px;
}
.pe-venue-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--refined-gold);
}

.pe-materials {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--outline-variant);
}
.pe-material-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}
.pe-dl {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--outline-variant);
  text-decoration: none;
  color: var(--deep-navy);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.pe-dl:hover {
  border-color: var(--refined-gold);
  background: rgba(179, 139, 89, 0.05);
}
.pe-dl svg {
  width: 16px;
  height: 16px;
  color: var(--refined-gold);
  flex-shrink: 0;
}
.pe-dl-kind {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--outline);
}

/* — contact — */
.pe-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: var(--stack-lg);
  align-items: start;
}
@media (max-width: 900px) {
  .pe-contact-grid { grid-template-columns: 1fr; }
}
.pe-contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 var(--stack-md);
}
@media (max-width: 560px) {
  .pe-contact-form-row { grid-template-columns: 1fr; }
}
.pe-contact-sidebar > * + * {
  margin-top: 20px;
}
.pe-contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(71, 85, 105, 0.08);
  background: var(--surface-container-lowest);
}
.pe-contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(179, 139, 89, 0.1);
  color: var(--refined-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pe-contact-icon svg {
  width: 18px;
  height: 18px;
}
.pe-contact-k {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  margin-bottom: 4px;
}
.pe-contact-v {
  font-weight: 700;
  text-decoration: none;
  color: var(--deep-navy);
}

/* — mobile nav — */
.pe-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--deep-navy);
  cursor: pointer;
}
.pe-nav-toggle svg {
  width: 24px;
  height: 24px;
}
@media (max-width: 767px) {
  .pe-nav-toggle { display: flex; }
}
.pe-nav-mobile {
  display: none;
}
@media (max-width: 767px) {
  .pe-nav-mobile {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px var(--margin-mobile) 24px;
    border-top: 1px solid rgba(71, 85, 105, 0.1);
  }
  .pe-nav-mobile a:not(.pe-btn) {
    padding: 12px 4px;
    font-size: 17px;
    color: var(--on-surface-variant);
    text-decoration: none;
    border-bottom: 1px solid rgba(71, 85, 105, 0.06);
  }
  .pe-nav-mobile a[aria-current='page'] {
    color: var(--refined-gold);
  }
}

/* — milestone cards — matches the Stitch source exactly: gradient card,
   faint icon watermark top-right, centred content, thin gold divider. */
.pe-milestone-card {
  position: relative;
  overflow: hidden;
  padding: 48px 32px;
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(179, 139, 89, 0.2);
  background: linear-gradient(135deg, var(--champagne) 0%, #ffffff 100%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: border-color 0.4s ease;
}
.pe-milestone-card:hover {
  border-color: var(--refined-gold);
}
.pe-milestone-icon {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  color: var(--refined-gold);
  opacity: 0.08;
}
.pe-milestone-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--refined-gold);
  margin-bottom: 20px;
}
.pe-milestone-title {
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--deep-navy);
}
.pe-milestone-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--on-surface-variant);
  max-width: 26ch;
}
.pe-milestone-rule {
  margin-top: 32px;
  width: 96px;
  height: 1px;
  background: rgba(179, 139, 89, 0.3);
}

/* — programme cards — the Speaking page's session grid. Mixed sizes, with a
     dark accent card, matching the source design's rhythm. */
.pe-program-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: start;
}
@media (max-width: 860px) {
  .pe-program-grid { grid-template-columns: 1fr; }
}

.pe-program {
  position: relative;
  border-radius: var(--radius-2xl);
  background: var(--surface-container-lowest);
  border: 1px solid rgba(71, 85, 105, 0.06);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  padding: 40px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.pe-program:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}
.pe-program-num {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1;
  color: rgba(179, 139, 89, 0.35);
  display: block;
  margin-bottom: 20px;
}
.pe-program-title {
  font-size: 24px;
  line-height: 1.25;
  margin-bottom: 16px;
}
.pe-program-body p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--on-surface-variant);
  margin-bottom: 12px;
}
.pe-program-highlights {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pe-program-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--on-surface-variant);
}
.pe-program-highlights svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--refined-gold);
}

/* Dark accent variant — one card carries the section's weight. */
.pe-program-dark {
  background: var(--deep-navy);
  border-color: transparent;
}
.pe-program-dark .pe-program-title { color: #fff; }
.pe-program-dark .pe-program-num { color: rgba(255, 255, 255, 0.2); }
.pe-program-dark .pe-program-body p,
.pe-program-dark .pe-program-highlights li {
  color: rgba(255, 255, 255, 0.7);
}
.pe-program-dark .pe-chip-outline {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}
.pe-program-dark .pe-track-label { color: rgba(255, 255, 255, 0.5); }
.pe-program-dark .pe-venue-list li { color: rgba(255, 255, 255, 0.75); }
.pe-program-dark .pe-materials { border-top-color: rgba(255, 255, 255, 0.15); }
.pe-program-dark .pe-dl {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.pe-program-dark .pe-dl:hover {
  border-color: var(--refined-gold);
  background: rgba(255, 255, 255, 0.05);
}
.pe-program-dark .pe-dl-kind { color: rgba(255, 255, 255, 0.45); }

/* — "work with me" service list — numbered lines on the navy panel — */
.pe-service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.pe-service-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.pe-service-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.pe-service-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--refined-gold);
  flex-shrink: 0;
}

/* — outlined subscribe — the original design's button: serif face, gold
     hairline border, transparent ground. Used for the masthead Subscribe. */
.pe-btn-outline {
  /* Type matches the nav links beside it — same family, size and weight. */
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0;
  color: var(--deep-navy);
  background: transparent;
  border: 1px solid var(--refined-gold);
  border-radius: var(--radius-md);
  padding: 10px 26px;
}
.pe-btn-outline:hover {
  background: rgba(179, 139, 89, 0.1);
  box-shadow: none;
}
.pe-btn-outline:active {
  background: rgba(179, 139, 89, 0.18);
}

/* — justified body copy — hyphenation is what keeps a justified rag from
     opening rivers of whitespace, so the two ship together. Headings, labels,
     buttons and narrow card excerpts stay ragged-right on purpose. */
.pe-body-lg,
.pe-body-md,
.pe-article-body,
.pe-program-body p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Centred blocks keep their alignment — justify would fight the layout. */
.pe-center,
.pe-center .pe-body-lg,
.pe-center .pe-body-md {
  text-align: center;
  hyphens: manual;
  -webkit-hyphens: manual;
}

/* — "Inner Climb" alternate layout (preview) — cinematic, photography-led.
     Scoped with .pe-ic- so it can be deleted cleanly if not chosen. */
.pe-ic-hero {
  position: relative;
  height: 78vh;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--surface-container-high);
}
.pe-ic-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pe-ic-hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.72) 0%, rgba(15,23,42,0.15) 55%, transparent 100%);
}
.pe-ic-hero-inner { position: relative; z-index: 2; padding: 0 var(--margin-mobile) 64px; color: #fff; }
.pe-ic-hero-inner h1 { color: #fff; font-size: clamp(38px, 5vw, 68px); line-height: 1.05; margin-bottom: 16px; }
.pe-ic-hero-inner p { color: rgba(255,255,255,0.8); font-size: 18px; max-width: 46ch; margin: 0 auto; }

/* alternating image / text bands */
.pe-ic-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 0;
}
@media (max-width: 860px) { .pe-ic-split { grid-template-columns: 1fr; } }
.pe-ic-split-text { padding: clamp(40px, 6vw, 96px); display: flex; flex-direction: column; justify-content: center; }
.pe-ic-split-media { min-height: 380px; position: relative; overflow: hidden; background: var(--surface-container); }
.pe-ic-split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }

.pe-ic-stat-row { display: flex; gap: 48px; margin-top: 40px; }
.pe-ic-stat-num { font-family: var(--font-display); font-size: 34px; color: var(--refined-gold); line-height: 1; }
.pe-ic-stat-label {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--on-surface-variant); margin-top: 6px;
}

/* peaks grid */
.pe-ic-peaks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 40px; }
@media (max-width: 900px) { .pe-ic-peaks { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pe-ic-peaks { grid-template-columns: 1fr; } }
.pe-ic-peak-num {
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; color: var(--refined-gold); display: block; margin-bottom: 14px;
}
.pe-ic-peak h3 { font-size: 22px; margin-bottom: 6px; }
.pe-ic-peak-alt {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--outline); margin-bottom: 14px;
}
.pe-ic-peak p { font-size: 15px; line-height: 1.6; color: var(--on-surface-variant); text-align: justify; hyphens: auto; }

/* full-bleed dark band */
.pe-ic-band { position: relative; overflow: hidden; background: var(--deep-navy); color: #fff; }
.pe-ic-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.28; filter: grayscale(1); }
.pe-ic-band-inner { position: relative; z-index: 2; padding: clamp(56px, 8vw, 120px) 0; }
.pe-ic-band h2 { color: #fff; }
.pe-ic-band p { color: rgba(255,255,255,0.75); }

/* field notes */
.pe-ic-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 800px) { .pe-ic-notes { grid-template-columns: 1fr; } }
.pe-ic-note {
  font-family: var(--font-display); font-style: italic;
  font-size: 21px; line-height: 1.5; color: var(--deep-navy);
  border-left: 2px solid var(--refined-gold); padding-left: 24px;
}

/* — blog index: featured post + bento grid — */
.pe-featured {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--gutter);
  align-items: center;
  background: var(--surface-container-lowest);
  padding: clamp(24px, 3vw, 48px);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.05);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
@media (max-width: 860px) { .pe-featured { grid-template-columns: 1fr; } }
.pe-featured-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.pe-featured h2 {
  font-size: clamp(28px, 3.4vw, 44px); line-height: 1.15; margin-bottom: 20px;
  transition: color 0.2s ease;
}
.pe-featured:hover h2 { color: var(--refined-gold); }
.pe-featured-media {
  height: 400px; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface-container); position: relative;
}
@media (max-width: 860px) { .pe-featured-media { height: 260px; } }
.pe-featured-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.pe-featured:hover .pe-featured-media img { transform: scale(1.05); }

.pe-time {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(71, 85, 105, 0.7);
}

/* bento grid */
.pe-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
@media (max-width: 1000px) { .pe-bento { grid-template-columns: repeat(2, 1fr); gap: 40px; } }
@media (max-width: 640px) { .pe-bento { grid-template-columns: 1fr; gap: 40px; } }

.pe-entry {
  display: flex; flex-direction: column; height: 100%;
  text-decoration: none; color: inherit;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pe-entry:hover { transform: translateY(-8px); }
.pe-entry-media {
  aspect-ratio: 4 / 3; width: 100%; margin-bottom: 28px;
  overflow: hidden; border-radius: var(--radius-lg);
  background: var(--surface-container);
}
.pe-entry-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.pe-entry:hover .pe-entry-media img { transform: scale(1.1); }
.pe-entry-body { flex: 1; }
.pe-entry h3 {
  font-size: 24px; line-height: 1.25; margin: 12px 0;
  transition: color 0.2s ease;
}
.pe-entry:hover h3 { color: var(--refined-gold); }
.pe-entry-excerpt {
  font-size: 15px; line-height: 1.6; color: var(--on-surface-variant);
  text-align: justify; hyphens: auto;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.pe-entry-foot {
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid rgba(71, 85, 105, 0.12);
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--refined-gold);
}

/* variant: no cover image — a rule down the left instead */
.pe-entry-quiet .pe-entry-body { border-left: 2px solid rgba(179, 139, 89, 0.25); padding-left: 28px; }

/* variant: the personal thread */
.pe-entry-accent {
  background: var(--champagne);
  border: 1px solid rgba(179, 139, 89, 0.25);
  border-radius: var(--radius-xl);
  padding: 32px;
}
.pe-entry-accent .pe-entry-excerpt { font-style: italic; }

/* category filter chips */
.pe-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.pe-filter {
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em;
  padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--outline-variant);
  background: transparent; color: var(--on-surface-variant);
  cursor: pointer; transition: all 0.2s ease;
}
.pe-filter:hover { border-color: var(--refined-gold); color: var(--refined-gold); }
.pe-filter[aria-pressed='true'] {
  background: var(--deep-navy); border-color: var(--deep-navy); color: #fff;
}
.pe-filter-count { opacity: 0.55; margin-left: 6px; font-weight: 400; }

/* — code in article prose — needed once the writing turned technical. — */
.pe-article-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.06);
  color: var(--deep-navy);
  hyphens: none;
  word-break: break-word;
}
.pe-article-body pre {
  background: var(--deep-navy);
  color: rgba(255, 255, 255, 0.92);
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin: 0 0 28px;
  line-height: 1.6;
}
.pe-article-body pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: 14px;
  white-space: pre;
}
/* Ordered lists carrying commands read better with a little room. */
.pe-article-body ol li { margin-bottom: 14px; }
.pe-article-body li code { white-space: nowrap; }

/* A lead article with no cover uses the full card width — better than
   leaving an empty panel where the image would have been. */
.pe-featured-plain { grid-template-columns: 1fr; }
.pe-featured-plain h2 { max-width: 24ch; }
/* Without the image column the text would otherwise run the full card width. */
.pe-featured-plain .pe-body-lg { max-width: 62ch; }

/* Date line on a session card, between title and venue chips. */
.pe-program-date {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--refined-gold);
  margin-bottom: 16px;
}
.pe-program-dark .pe-program-date { color: var(--refined-gold); }
