/* ═══════════════════════════════════════════════════════════════
   Luiza Theme — Luiza Samarova personal brand
   Cream · espresso · coral · rust · blush. IvyMode + Century Gothic Pro,
   Good Karma Smooth script accents (all self-hosted in public/fonts/).
   Switch themes: GRAVITY_TEMPLATE=luiza (the default in this project)

   Forked from the estate theme: same class vocabulary as every theme
   (npm run check:themes). The look comes from the tokens below plus the
   "Luiza refinements" at the end, which only restyle existing classes.
   ═══════════════════════════════════════════════════════════════ */

@font-face { font-family: 'IvyMode'; src: url('/fonts/IvyMode-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'IvyMode'; src: url('/fonts/IvyMode-SemiBold.woff2') format('woff2'); font-weight: 500 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'IvyMode'; src: url('/fonts/IvyMode-Italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Century Gothic Pro'; src: url('/fonts/CenturyGothicPro-Regular.woff2') format('woff2'); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Century Gothic Pro'; src: url('/fonts/CenturyGothicPro-Bold.woff2') format('woff2'); font-weight: 600 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Good Karma Smooth'; src: url('/fonts/GoodKarmaSmooth-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

/* ─── SECTION 1: DESIGN TOKENS ─────────────────────────────── */
:root {
  /* Palette */
  --color-bg:           #F0E6E1;
  --color-surface:      #F8F2EE;
  --color-surface-2:    #EFE3DB;
  --color-surface-3:    #E4CDC0;
  --color-text:         #2C1F1A;
  --color-text-muted:   #5E4A41;
  --color-text-faint:   #9A857A;
  --color-accent:       #2C1F1A;
  --color-accent-light: #A34C30;
  --color-accent-soft:  rgba(224,105,62,.10);
  --color-overlay:      rgba(44,31,26,.58);
  --color-accent-border:rgba(224,105,62,.38);
  --color-border:       rgba(44,31,26,.12);
  --color-border-hover: rgba(44,31,26,.28);
  --color-white:        #FFFFFF;
  --color-error:        #B42318;
  --color-success:      #2E7D4F;

  /* Typography — IvyMode + Century Gothic Pro (self-hosted) + IBM Plex Mono */
  --font-display: 'IvyMode', 'Playfair Display', Georgia, serif;
  --font-body:    'Century Gothic Pro', 'Century Gothic', 'Jost', system-ui, -apple-system, sans-serif;
  --font-mono:    'IBM Plex Mono', 'Fira Code', monospace;

  /* Type scale */
  --text-xs:   .75rem;
  --text-sm:   .875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.3rem;
  --text-2xl:  1.65rem;
  --text-3xl:  2.1rem;
  --text-4xl:  2.75rem;
  --text-5xl:  3.5rem;
  --text-6xl:  4.5rem;
  --text-7xl:  5.5rem;

  /* Line heights */
  --leading-tight:  1.05;
  --leading-snug:   1.25;
  --leading-normal: 1.6;
  --leading-loose:  1.85;

  /* Spacing */
  --space-1: .25rem;  --space-2: .5rem;   --space-3: .75rem;
  --space-4: 1rem;    --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem;    --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem;   --space-20: 5rem;   --space-24: 6rem;
  --space-section: 7rem;

  /* Layout */
  --container-max: 1320px;
  --container-pad: 1.75rem;
  --content-max:   720px;

  /* Visual — soft rounded corners, warm espresso shadows */
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   24px;
  --radius-xl:   32px;
  --radius-full: 9999px;
  --shadow-sm:   0 1px 3px rgba(44,31,26,.06);
  --shadow-md:   0 10px 30px rgba(44,31,26,.09);
  --shadow-lg:   0 24px 60px rgba(44,31,26,.14);
  --shadow-glow: 0 18px 44px rgba(44,31,26,.12);
  --transition:  .25s ease;
  --transition-slow: .5s ease;

  /* Nav */
  --nav-height: 78px;
}

/* ─── SECTION 2: RESET ──────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }
img, video { max-width: 100%; display: block; }
button { cursor: pointer; font: inherit; }
a { text-decoration: none; color: inherit; }

/* ─── SECTION 3: BASE ───────────────────────────────────────── */
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: var(--leading-tight);
  color: var(--color-text);
  font-weight: 400;  /* DM Serif Display looks better at normal weight */
}

h1 { font-size: clamp(var(--text-4xl), 6vw, var(--text-7xl)); }
h2 { font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl)); }
h3 { font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl)); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }

p { color: var(--color-text-muted); line-height: var(--leading-loose); }
strong { color: var(--color-text); font-weight: 600; }
.mono { font-family: var(--font-mono); }

/* ─── SECTION 4: LAYOUT ─────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section        { padding: var(--space-section) 0; }
.section--sm    { padding: var(--space-16) 0; }
.section--lg    { padding: calc(var(--space-section) * 1.5) 0; }

/* Surface backgrounds — light mode inverted */
.bg-base      { background: var(--color-bg); }
.bg-surface   { background: var(--color-surface-2); }
.bg-surface-2 { background: var(--color-surface-3); }

/* ─── SECTION 5: NAVIGATION ─────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(250,250,248,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition-slow);
}

.nav.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: -.01em;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav__logo-mark {
  width: 30px; height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav__links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--color-text);
}

.nav__cta { margin-left: var(--space-4); }

/* Mobile hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: var(--space-2);
}

.nav__hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--color-text);
  border-radius: var(--radius-full);
  transition: transform var(--transition), opacity var(--transition);
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-surface);
  z-index: 999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-16);
  border-right: none;
}

.nav__mobile.open { display: flex; }

.nav__mobile a {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  color: var(--color-text);
  font-weight: 400;
  transition: color var(--transition);
}

.nav__mobile a:hover { color: var(--color-accent-light); }

/* ─── SECTION 6: HERO ───────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
  /* Subtle dot grid — the Notion signature texture */
  background-image: radial-gradient(rgba(0,0,0,.07) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Remove dark-theme gradients */
.hero::before, .hero::after { display: none; }

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: var(--nav-height);
  padding-bottom: var(--space-24);
  max-width: 840px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--color-text-muted);
  background: var(--color-surface);
  margin-bottom: var(--space-6);
}

.hero__eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-accent-light);
}

.hero__title { margin-bottom: var(--space-6); color: var(--color-text); }
.hero__title em { font-style: italic; color: var(--color-accent-light); }

.hero__subtitle {
  font-size: clamp(var(--text-lg), 2vw, var(--text-xl));
  color: var(--color-text-muted);
  max-width: 580px;
  line-height: var(--leading-loose);
  margin-bottom: var(--space-10);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Page hero (interior pages) */
.page-hero {
  padding: calc(var(--nav-height) + var(--space-20)) 0 var(--space-16);
  text-align: center;
  background: var(--color-bg);
  background-image: radial-gradient(rgba(0,0,0,.06) 1px, transparent 1px);
  background-size: 28px 28px;
  position: relative;
  overflow: hidden;
}

.page-hero::before { display: none; }

.page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--color-text-muted);
  background: var(--color-surface);
  margin-bottom: var(--space-5);
}

.page-hero__title { color: var(--color-text); margin-bottom: var(--space-4); }

.page-hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ─── SECTION 7: CARDS / GRID ───────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: var(--space-5); }
.grid-3-fixed { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-2-fixed { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  border-color: var(--color-accent-border);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.card__icon {
  width: 44px; height: 44px;
  background: var(--color-accent-soft);
  border: 1px solid var(--color-accent-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  color: var(--color-accent-light);
  font-size: var(--text-xl);
}

.card__title {
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  font-weight: 400;
}

.card__body {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
}

/* ─── SECTION 8: BLOG ───────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-8);
}

.post-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.post-card:hover {
  border-color: var(--color-accent-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.post-card__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card__date {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-accent-light);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: var(--space-4);
}

.post-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-xl);
  color: var(--color-text);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-3);
  transition: color var(--transition);
}

.post-card:hover .post-card__title { color: var(--color-accent-light); }

.post-card__subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: var(--space-4);
}

.post-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-6);
}

.post-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent-light);
  transition: gap var(--transition);
}

.post-card__link:hover { gap: var(--space-3); }

/* Blog post prose */
.prose {
  max-width: var(--content-max);
  margin: 0 auto;
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
  font-size: var(--text-lg);
}

.prose h2 { font-size: var(--text-3xl); color: var(--color-text); margin: var(--space-12) 0 var(--space-4); font-weight: 400; }
.prose h3 { font-size: var(--text-2xl); color: var(--color-text); margin: var(--space-8) 0 var(--space-3); font-weight: 400; }
.prose p  { margin-bottom: var(--space-6); }
.prose strong { color: var(--color-text); }
.prose em { font-style: italic; color: var(--color-text); }
.prose a  { color: var(--color-accent-light); border-bottom: 1px solid var(--color-accent-border); transition: border-color var(--transition); }
.prose a:hover { border-color: var(--color-accent-light); }
.prose blockquote {
  border-left: 3px solid var(--color-text);
  padding-left: var(--space-6);
  color: var(--color-text);
  font-style: italic;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin: var(--space-8) 0;
}
.prose code {
  font-family: var(--font-mono);
  font-size: .875em;
  background: var(--color-surface-2);
  padding: .125em .375em;
  border-radius: var(--radius-sm);
  color: var(--color-accent-light);
  border: 1px solid var(--color-border);
}
.prose pre {
  background: #0d1117;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  overflow-x: auto;
  margin: var(--space-6) 0;
}
.prose pre code { background: none; border: none; padding: 0; color: #e6edf3; }

/* ─── SECTION 9: BUTTONS + FORMS ───────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: .875rem 2rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: .01em;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--color-text);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { box-shadow: var(--shadow-md); background: #333; }

.btn--accent {
  background: var(--color-text);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.btn--accent:hover {
  background: #2d2d2d;
  box-shadow: 0 8px 28px rgba(0,0,0,.2);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid rgba(0,0,0,.2);
}
.btn--outline:hover {
  border-color: var(--color-text);
  background: rgba(0,0,0,.04);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-4);
}
.btn--ghost:hover { color: var(--color-text); }

.btn--sm {
  padding: .5rem 1.125rem;
  font-size: var(--text-xs);
}

/* Forms */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
}

.form-input {
  padding: .75rem 1rem;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: var(--text-base);
  font-family: var(--font-body);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent-light);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.form-input::placeholder { color: var(--color-text-faint); }

.form-inline {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.form-inline .form-input { flex: 1; min-width: 200px; }

.form-msg { font-size: var(--text-sm); font-weight: 500; margin-top: var(--space-2); }
.form-msg--success { color: var(--color-success); }
.form-msg--error   { color: var(--color-error); }

/* ─── SECTION 9b: AUTH / PORTAL ──────────────────────────────── */
.auth-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + var(--space-12)) var(--space-6) var(--space-16);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
}

.auth-card--wide { max-width: 560px; }

.auth-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
}
.auth-card__header .auth-card__title { margin: 0; text-align: left; }

.auth-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
}
.auth-field__value { font-size: var(--text-base); color: var(--color-text); }

.auth-card__logo {
  width: 40px;
  height: 40px;
  margin: 0 auto var(--space-5);
  display: block;
  object-fit: contain;
}

.auth-card__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--color-text);
  text-align: center;
  margin-bottom: var(--space-2);
}

.auth-card__subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: var(--space-8);
}

.auth-alert {
  display: none;
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
}
.auth-alert--error   { background: color-mix(in srgb, var(--color-error) 12%, transparent);   color: var(--color-error);   border: 1px solid color-mix(in srgb, var(--color-error) 30%, transparent); }
.auth-alert--success { background: color-mix(in srgb, var(--color-success) 12%, transparent); color: var(--color-success); border: 1px solid color-mix(in srgb, var(--color-success) 30%, transparent); }
.auth-alert--info    { background: var(--color-accent-soft); color: var(--color-accent-light); border: 1px solid var(--color-accent-border); }

.auth-oauth { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-5); }
.auth-oauth .btn { width: 100%; }

.auth-divider {
  display: flex; align-items: center; gap: var(--space-3);
  margin: var(--space-5) 0;
  font-size: var(--text-xs); color: var(--color-text-faint);
  text-transform: uppercase; letter-spacing: .08em;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--color-border); }

.auth-submit { width: 100%; margin-top: var(--space-2); }

.auth-links { margin-top: var(--space-6); text-align: center; font-size: var(--text-sm); color: var(--color-text-muted); }
.auth-links a { color: var(--color-accent-light); text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }

/* Portal dashboard styling (.portal-*) now lives in /css/portal.css — shared
   across every theme so it isn't duplicated per theme. Linked directly by
   each theme's _portal_base.j2. */

/* ─── SECTION 10: FOOTER ────────────────────────────────────── */
.footer {
  background: var(--color-text);
  border-top: 1px solid rgba(0,0,0,.15);
  padding: var(--space-16) 0 var(--space-8);
  color: rgba(255,255,255,.5);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer__brand {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.footer__tagline {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.4);
  line-height: var(--leading-loose);
  max-width: 280px;
}

.footer__heading {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.4);
  margin-bottom: var(--space-4);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.35);
  transition: color var(--transition);
}

.footer__links a:hover { color: rgba(255,255,255,.8); }

.footer__newsletter {
  display: flex;
  gap: var(--space-2);
}
.footer__newsletter input {
  flex: 1;
  min-width: 0;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-sm);
  padding: .5rem .75rem;
  color: var(--color-white);
  font-size: var(--text-sm);
  font: inherit;
}
.footer__newsletter input::placeholder { color: rgba(255,255,255,.3); }
.footer__newsletter input:focus { outline: none; border-color: rgba(255,255,255,.4); }
.footer__newsletter button {
  background: var(--color-white);
  color: var(--color-text);
  border: none;
  border-radius: var(--radius-sm);
  padding: .5rem .9rem;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--transition);
  white-space: nowrap;
}
.footer__newsletter button:hover { opacity: .85; }
.footer__newsletter button:disabled { opacity: .5; cursor: default; }

.footer__newsletter-msg {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
}
.footer__newsletter-msg--success { color: rgba(255,255,255,.7); }
.footer__newsletter-msg--error { color: var(--color-error); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__copy {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.25);
  font-family: var(--font-mono);
}

.footer__copy a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.25);
  transition: color var(--transition);
}
.footer__copy a:hover { color: rgba(255,255,255,.8); text-decoration-color: currentColor; }

/* ─── SECTION 11: UTILITIES ─────────────────────────────────── */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-accent { color: var(--color-accent-light); }
.text-muted  { color: var(--color-text-muted); }
.text-sm     { font-size: var(--text-sm); }
.text-faint  { color: var(--color-text-faint); }
.text-white  { color: var(--color-text); }
.italic      { font-style: italic; }

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Section label (eyebrow pill) */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--color-text-muted);
  background: var(--color-surface-2);
}

.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-12) 0;
}

/* "You're viewing local/demo data, not Adhara" callout — scheduling, could be reused by any
   future Adhara-backed feature that wants the same treatment. */
.demo-banner {
  background: var(--color-accent-soft);
  border: 1px solid var(--color-accent-border);
  color: var(--color-text);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-6);
}

/* Row of form submit/cancel/back buttons — forms, scheduling. Page-specific layouts (e.g. a
   stacked full-width pair) add a scoped override rather than redefining this from scratch. */
.form-actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

/* A form's demo/live-submission container — forms, contact. */
.demo-form {
  margin-top: var(--space-6);
}

/* Narrower container variant for single-column forms/reading content — forms, contact. */
.container--narrow {
  max-width: 640px;
}

/* Honeypot field — present in the DOM for bots, invisible to real users. The name `_hp` (used
   as the input's `name` attribute wherever this is dropped in) matches Adhara's own real
   backend honeypot key — see src/lib/adharaForms.ts. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.empty-state {
  text-align: center;
  padding: var(--space-20) var(--space-8);
  color: var(--color-text-faint);
}

.empty-state__icon { font-size: var(--text-5xl); margin-bottom: var(--space-4); opacity: .3; }
.empty-state__title { font-family: var(--font-display); font-size: var(--text-2xl); color: var(--color-text-muted); margin-bottom: var(--space-2); font-weight: 400; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color var(--transition), gap var(--transition);
}
.back-link:hover { color: var(--color-text); gap: var(--space-3); }

/* ─── SECTION 12: SHOWCASE COMPONENTS ──────────────────────── */

/* Gradient text — dark-to-blue */
.text-gradient {
  background: linear-gradient(135deg, #111111 0%, #1d4ed8 70%, #2563EB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero split layout */
.hero--split {
  min-height: 100svh;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
  background-image: radial-gradient(rgba(0,0,0,.07) 1px, transparent 1px);
  background-size: 28px 28px;
}
.hero-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-16);
  align-items: center;
  padding: var(--space-20) 0;
}
.hero-split__left  { display: flex; flex-direction: column; }
.hero-split__right { display: flex; justify-content: flex-end; }

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}
.float { animation: float 7s ease-in-out infinite; }

/* Blinking cursor */
@keyframes blink { to { opacity: 0; } }

/* Terminal — stays dark for contrast (looks great on white) */
.terminal {
  background: #0d1117;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-family: var(--font-mono);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04),
    0 32px 80px rgba(0,0,0,.2),
    0 8px 24px rgba(0,0,0,.12);
  width: 100%;
  max-width: 520px;
}
.terminal__bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 1.25rem;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.terminal__dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.terminal__dot--red    { background: #FF5F57; }
.terminal__dot--yellow { background: #FEBC2E; }
.terminal__dot--green  { background: #28C840; }
.terminal__wintitle {
  flex: 1;
  text-align: center;
  font-size: .625rem;
  color: rgba(255,255,255,.3);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.terminal__body {
  padding: 1.25rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.terminal__line {
  font-size: var(--text-sm);
  line-height: 1.5;
  display: flex;
  align-items: baseline;
  gap: .75rem;
  flex-wrap: wrap;
}
.terminal__prompt { color: #2563EB; font-weight: 700; flex-shrink: 0; }  /* blue prompt instead of gold */
.terminal__cmd    { color: #e6edf3; overflow-wrap: anywhere; min-width: 0; }
.terminal__out    { padding-left: 1.25rem; color: rgba(255,255,255,.35); }
.terminal__out--ok  { padding-left: 1.25rem; color: #3fb950; }
.terminal__out--url { padding-left: 1.25rem; color: #58a6ff; }
.terminal__hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,.06);
  margin: .6rem 0;
}
.terminal__cursor {
  display: inline-block;
  width: 8px; height: 1em;
  background: #2563EB;
  vertical-align: text-bottom;
  border-radius: 1px;
  animation: blink .85s steps(2) infinite;
}

/* Code window — also stays dark */
.code-win {
  background: #0d1117;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.15), 0 4px 16px rgba(0,0,0,.1);
}
.code-win__bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.25rem;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.code-win__dots { display: flex; gap: .4rem; }
.code-win__dot  { width: 10px; height: 10px; border-radius: 50%; }
.code-win__filename {
  margin-left: .75rem;
  font-family: var(--font-mono);
  font-size: .625rem;
  color: rgba(255,255,255,.3);
  letter-spacing: .06em;
}
.code-win__body { padding: 1.5rem 1.75rem 2rem; overflow-x: auto; }
.code-win__body pre {
  font-family: var(--font-mono);
  font-size: .8125rem;
  line-height: 2;
  color: rgba(255,255,255,.55);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
}
.tok-comment  { color: rgba(255,255,255,.28); }
.tok-key      { color: #79b8ff; }
.tok-val      { color: #58a6ff; }   /* blue values instead of gold */
.tok-str      { color: #a5d6ff; }
.tok-dim      { color: rgba(255,255,255,.4); }
.tok-bright   { color: rgba(255,255,255,.85); }

/* Generic pill tab bar — originally the Quick Install terminal tabs, also reused by /gallery's category filter. */
.install-tabs { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-4); justify-content: center; }
.install-tab {
  padding: .5rem 1.1rem; border-radius: var(--radius-full); cursor: pointer;
  border: 1px solid var(--color-border); background: transparent;
  color: var(--color-text-muted); font-size: var(--text-sm); font-weight: 600;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.install-tab:hover { color: var(--color-text); border-color: var(--color-accent-light); }
.install-tab.is-active { background: var(--color-text); border-color: var(--color-text); color: var(--color-white); }

.code-win__copy {
  margin-left: auto; padding: .3rem .75rem; border-radius: var(--radius-sm); cursor: pointer;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.6); font-family: var(--font-mono); font-size: .6875rem;
  letter-spacing: .04em; transition: color .15s, border-color .15s, background .15s;
}
.code-win__copy:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.code-win__copy.is-copied { color: #3fb950; border-color: rgba(63,185,80,.4); background: rgba(63,185,80,.08); }

.install-pane { margin: 0; }
.install-pane--agent {
  font-family: var(--font-body); font-size: var(--text-sm); line-height: var(--leading-loose);
  white-space: normal; color: rgba(255,255,255,.72);
}

.install-flags { margin-top: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); }
.install-flags__title {
  font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase;
  letter-spacing: .1em; color: var(--color-text-faint); margin-bottom: var(--space-1);
}
.install-flags__row { display: flex; align-items: baseline; gap: var(--space-3); font-size: var(--text-sm); color: var(--color-text-muted); }
.install-flags__row code { color: var(--color-accent-light); flex-shrink: 0; min-width: 132px; }

@media (max-width: 480px) {
  .install-flags__row { flex-direction: column; gap: var(--space-1); }
  .install-flags__row code { min-width: 0; }
}

/* Stat strip */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-border);
  gap: 1px;
}
.stat-block {
  background: var(--color-surface);
  padding: var(--space-10) var(--space-8);
  text-align: center;
}
.stat-block__num {
  font-family: var(--font-display);
  font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
  font-weight: 400;
  color: var(--color-accent-light);
  line-height: 1;
  margin-bottom: var(--space-3);
}
.stat-block__label {
  font-size: var(--text-base);
  color: var(--color-text);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.stat-block__sub {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* Logo strip */
.logo-strip {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.logo-strip__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--color-text-faint);
  margin-right: var(--space-2);
}
.logo-pill {
  display: inline-flex;
  align-items: center;
  padding: .3rem .9rem;
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  border: 1.5px solid var(--color-border);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.logo-pill:hover {
  border-color: var(--color-accent-light);
  color: var(--color-accent-light);
  background: var(--color-accent-soft);
}

/* Philosophy band */
.philosophy-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: var(--space-24) var(--space-8);
  background: var(--color-text);
  border-top: none;
  border-bottom: none;
}
.philosophy-band::before { display: none; }
.philosophy-band__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  color: rgba(255,255,255,.9);
  line-height: var(--leading-snug);
  max-width: 860px;
  margin: 0 auto var(--space-6);
}
.philosophy-band__quote em {
  font-style: normal;
  color: #60a5fa;
}
.philosophy-band__attr {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: .2em;
  color: rgba(255,255,255,.3);
}

/* Step flow */
.step-list { display: flex; flex-direction: column; gap: var(--space-20); }
.step-item { display: grid; grid-template-columns: 64px 1fr; gap: var(--space-8); align-items: flex-start; }
.step-item__num {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-text);
  border: 1px solid var(--color-text);
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-white);
  flex-shrink: 0;
}
.step-item__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-2xl);
  color: var(--color-text);
  margin-top: var(--space-4);
  margin-bottom: var(--space-4);
}
.step-item__body {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-4);
}
.step-item__code {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: var(--space-2) var(--space-4);
  background: var(--color-text);
  border: 1px solid var(--color-text);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-white);
  white-space: normal;
  overflow-wrap: anywhere;
  margin-bottom: var(--space-2);
}

/* Decorative orb — very subtle on light bg */
.orb {
  position: absolute;
  border-radius: var(--radius-full);
  pointer-events: none;
  filter: blur(80px);
  z-index: 0;
}
.orb--gold { background: rgba(37,99,235,.06); }  /* blue tint instead of gold */
.orb--blue { background: rgba(37,99,235,.04); }

/* Split section layout */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

/* Feature cards */
.feat-card {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}
.feat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #2563EB, transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.feat-card:hover { border-color: var(--color-accent-border); box-shadow: var(--shadow-glow); transform: translateY(-4px); }
.feat-card:hover::before { opacity: 1; }
.feat-card__icon {
  width: 44px; height: 44px;
  background: var(--color-accent-soft);
  border: 1.5px solid var(--color-accent-border);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-accent-light);
  flex-shrink: 0;
}
.feat-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-lg);
  color: var(--color-text);
  line-height: var(--leading-snug);
}
.feat-card__body {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
  flex: 1;
}

.ic {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--color-accent-light);
  background: var(--color-accent-soft);
  border: 1px solid var(--color-accent-border);
  padding: 0.1em 0.4em;
  border-radius: 0.25rem;
}

/* Inside a centered block, rows of buttons / pills center too. */
.text-center .hero__actions,
.text-center .logo-strip { justify-content: center; }

/* ─── SECTION 13: RESPONSIVE ────────────────────────────────── */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --space-section: 4rem; }

  .nav__links,
  .nav__cta { display: none; }
  .nav__hamburger { display: flex; }

  .hero__content { padding-bottom: var(--space-16); }
  .hero-split { grid-template-columns: 1fr; }
  .hero-split__right { display: none; }

  .grid-2, .grid-3, .grid-4,
  .grid-2-fixed, .grid-3-fixed { grid-template-columns: 1fr; }

  .blog-grid { grid-template-columns: 1fr; }

  .stat-strip { grid-template-columns: 1fr; }
  .split-section { grid-template-columns: 1fr; }
  .step-item { grid-template-columns: 48px 1fr; gap: var(--space-4); }
  .step-item__num { width: 48px; height: 48px; font-size: var(--text-base); }


  .footer__grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer__bottom { flex-direction: column; text-align: center; }

  .btn { width: 100%; justify-content: center; }
  .hero__actions .btn { width: auto; }
  .form-inline { flex-direction: column; }
  .form-inline .btn { width: 100%; }
}

@media (max-width: 480px) {
  :root { --container-pad: 1rem; }
  h1 { font-size: var(--text-4xl); }
}

.bg-accent-soft { background: var(--color-accent-soft); }

/* Full-width button (form submit, stacked actions). */
.btn--block { width: 100%; justify-content: center; }

/* Intro line above the footer newsletter form. */
.footer__newsletter-intro { margin-bottom: var(--space-4); }

/* ─── SECTION 14: ESTATE REFINEMENTS ────────────────────────────
   Restyles existing classes only (no new selectors) so every page stays theme-agnostic. */
body { font-weight: 400; letter-spacing: .005em; }

h1, h2, h3, h4 { font-weight: 500; letter-spacing: -.012em; }
h1 { line-height: var(--leading-tight); }
h2 { line-height: 1.1; }

/* Buttons: square, letter-spaced caps */
.btn {
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 1.05rem 2.4rem;
}
.btn:hover { transform: none; }
.btn--primary { background: var(--color-text); color: var(--color-white); box-shadow: none; }
.btn--primary:hover { background: var(--color-accent-light); box-shadow: none; }
.btn--accent { background: var(--color-accent-light); color: var(--color-white); box-shadow: none; }
.btn--accent:hover { background: var(--color-text); box-shadow: none; }
.btn--outline { border: 1px solid var(--color-text); color: var(--color-text); }
.btn--outline:hover { background: var(--color-text); color: var(--color-white); border-color: var(--color-text); }
.btn--sm { padding: .7rem 1.4rem; font-size: .68rem; }

/* Navigation: quiet, hairline, spaced caps */
.nav { background: rgba(247,243,236,.94); box-shadow: none; }
.nav.scrolled { box-shadow: 0 1px 0 var(--color-border); }
.nav__logo { font-size: 1.6rem; font-weight: 500; letter-spacing: .02em; }
.nav__logo-mark { display: none; } /* the wordmark stands alone */
.nav__links { gap: var(--space-10); }
.nav__links a { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; }

/* Eyebrows & labels: gold, tracked, no pill */
.hero__eyebrow, .page-hero__eyebrow, .section-label {
  border: none;
  background: none;
  padding: 0;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--color-accent-light);
}
.hero__eyebrow::before { display: none; }

/* Interior page heroes: calm, centered, gold hairline */
.page-hero {
  background: var(--color-surface-2);
  background-image: none;
  padding: calc(var(--nav-height) + var(--space-20)) 0 var(--space-16);
}
.page-hero::after {
  content: '';
  display: block;
  width: 56px;
  height: 1px;
  background: var(--color-accent-light);
  margin: var(--space-8) auto 0;
}
.page-hero__title { font-weight: 500; }
.page-hero__subtitle { font-size: var(--text-lg); max-width: 620px; }

/* Cards: hairline, no float */
.card { border-radius: var(--radius-lg); box-shadow: none; }
.card:hover { transform: none; box-shadow: var(--shadow-md); }
.card__title { font-size: var(--text-2xl); font-weight: 500; }

/* Forms: flat fields, gold focus */
.form-label { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--color-text-muted); }
.form-label .text-sm { font-size: inherit; letter-spacing: inherit; text-transform: none; font-weight: 400; color: var(--color-text-faint); }
.form-input { border-radius: var(--radius-sm); background: var(--color-surface); }
.form-input:focus { border-color: var(--color-accent-light); outline: none; box-shadow: 0 0 0 3px var(--color-accent-soft); }

/* Footer: deep espresso */
.footer { background: #17130F; border-top: none; }
.footer__brand { font-size: 1.7rem; letter-spacing: .02em; }

/* Blog cards */
.post-card { border-radius: var(--radius-lg); }
.post-card:hover { transform: none; }
.post-card__title { font-weight: 500; }

/* Blog post image (card + post header) */
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--color-surface-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.post-card:hover .post-card__media img { transform: scale(1.03); }
.post-hero__image { width: 100%; max-height: 520px; object-fit: cover; margin: 0 auto var(--space-10); display: block; }

/* ─── SECTION 15: LUIZA REFINEMENTS ─────────────────────────────
   Overrides the inherited estate refinements with Luiza's brand: cream + espresso,
   coral (#E0693E) as the "spark" colour, rust for readable accent text, pill buttons,
   soft rounded photography, script accents in Good Karma Smooth.
   Restyles existing classes only (no new selectors) — pages stay theme-agnostic. */
body { background: var(--color-bg); }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.015em; }

/* Script accent: <em> inside a hero / section title or the quote band */
.hero__title em,
.philosophy-band__quote em {
  font-family: 'Good Karma Smooth', 'Brush Script MT', cursive;
  font-style: normal;
  font-weight: 400;
  color: #E0693E;
  letter-spacing: 0;
}
.hero__title em { font-size: 1.12em; line-height: .9; }
/* Highlighted words in section titles: upright, semibold, coral → rust gradient (as on the podcast site) */
h2 em {
  font-style: normal;
  font-weight: 600;
  background: linear-gradient(100deg, #E0693E 0%, #A34C30 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.text-gradient {
  background: linear-gradient(120deg, #E0693E 0%, #A34C30 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons: warm pills */
.btn { border-radius: var(--radius-full); letter-spacing: .16em; font-weight: 600; }
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: #CF5C33; color: var(--color-white); }
.btn--accent:hover { background: var(--color-text); }
.btn--primary:hover { background: #CF5C33; }
.btn--outline { border: 1.5px solid var(--color-text); }

/* Navigation */
.nav { background: rgba(240,230,225,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav__logo { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; letter-spacing: .01em; }
.nav__links a { font-weight: 600; }

/* Eyebrows: rust, tracked */
.hero__eyebrow, .page-hero__eyebrow, .section-label { color: var(--color-accent-light); font-weight: 600; }

/* Split hero with portrait */
.hero--split {
  background-color: var(--color-bg);
  background-image:
    radial-gradient(circle at 88% 18%, rgba(224,105,62,.20), transparent 42%),
    radial-gradient(circle at 8% 92%, rgba(211,178,160,.35), transparent 40%);
  background-size: auto;
}
.hero-split__right { position: relative; justify-content: center; }
/* Fit hero in one screen: the portrait scales with the viewport height, text centers beside it. */
.hero--split { min-height: 100svh; }
.hero-split { grid-template-columns: 1.15fr .85fr; gap: var(--space-12); padding: var(--space-10) 0 var(--space-12); }
.hero-split__left { justify-content: center; }
.hero-split__left .hero__title { font-size: clamp(var(--text-4xl), 5.4vw, var(--text-7xl)); margin-bottom: var(--space-5); }
.hero-split__left .hero__subtitle { font-size: var(--text-lg); max-width: 540px; margin-bottom: var(--space-8); }
.hero-split__left .hero__eyebrow { margin-bottom: var(--space-5); }
.hero-split__right img {
  position: relative;
  width: min(100%, 420px, calc((100svh - var(--nav-height) - 140px) * .8));
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 70px rgba(44,31,26,.22);
}
.hero-split__right::before {
  content: '';
  position: absolute;
  width: min(100%, 420px, calc((100svh - var(--nav-height) - 140px) * .8));
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #E0693E, #D3B2A0);
  transform: rotate(3deg) translate(14px, 10px);
  opacity: .9;
}

.split-section img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 25%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

/* Cards: warm surface, coral icon chip, link pinned to the bottom, lift on hover */
.card, .feat-card, .post-card { border-radius: var(--radius-lg); }
.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #FBF7F4;
  border: 1px solid rgba(163,76,48,.14);
  box-shadow: 0 1px 2px rgba(44,31,26,.04);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.bg-surface .card { background: var(--color-bg); }
a.card { color: inherit; }
.card:hover { transform: translateY(-4px); border-color: rgba(224,105,62,.45); box-shadow: 0 18px 40px rgba(44,31,26,.10); }
.card__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-full);
  background: rgba(224,105,62,.12);
  border: 1px solid rgba(224,105,62,.28);
  color: #CF5C33;
}
.card:hover .card__icon { background: #CF5C33; border-color: #CF5C33; color: var(--color-white); }
.card__title { font-size: var(--text-2xl); font-weight: 600; }
.card__body { font-size: var(--text-base); }
.card .post-card__link { margin-top: auto; padding-top: var(--space-6); }
/* Keyboard focus in brand coral (no browser-blue ring after a mouse click) */
a:focus-visible, .btn:focus-visible { outline: 2px solid #E0693E; outline-offset: 3px; }
a:focus:not(:focus-visible) { outline: none; }
.card .step-item__num { width: 52px; height: 52px; font-size: var(--text-lg); margin-bottom: var(--space-6); }
.card .step-item__title { font-size: var(--text-2xl); margin: var(--space-4) 0 var(--space-3); }
a.logo-pill { border-color: rgba(224,105,62,.45); color: var(--color-text); transition: background var(--transition), color var(--transition); }
a.logo-pill:hover { background: #CF5C33; border-color: #CF5C33; color: var(--color-white); }
/* Hero podcast "now playing" card: cover art, label + show name, coral play button */
.hero-split__left a.logo-pill {
  gap: var(--space-4);
  padding: var(--space-2) var(--space-3) var(--space-2) var(--space-2);
  border-radius: 22px;
  background: rgba(251,247,244,.85);
  border: 1px solid rgba(163,76,48,.18);
  box-shadow: 0 10px 30px rgba(44,31,26,.08);
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.hero-split__left a.logo-pill:hover { background: rgba(251,247,244,.95); color: var(--color-text); border-color: rgba(224,105,62,.5); transform: translateY(-2px); box-shadow: 0 16px 36px rgba(44,31,26,.14); }
.hero-split__left a.logo-pill img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; }
.hero-split__left a.logo-pill > span:not(.card__icon) { display: flex; flex-direction: column; gap: 2px; padding-right: var(--space-4); }
.hero-split__left a.logo-pill .post-card__date { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; margin: 0; }
.hero-split__left a.logo-pill strong { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; line-height: 1.1; }
.hero-split__left a.logo-pill .card__icon { width: 40px; height: 40px; margin: 0; background: #CF5C33; border-color: #CF5C33; color: var(--color-white); transition: background var(--transition), transform var(--transition); }
.hero-split__left a.logo-pill:hover .card__icon { background: var(--color-text); border-color: var(--color-text); transform: scale(1.06); }
.feat-card::before { background: linear-gradient(90deg, transparent, #E0693E, transparent); }
.feat-card__icon {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: #E0693E;
  border-radius: var(--radius-full);
}
.feat-card__title { font-size: var(--text-2xl); font-weight: 600; }
.feat-card__body { font-size: var(--text-base); }
.post-card__media { aspect-ratio: 16 / 10; }
.post-card__date { color: var(--color-accent-light); font-family: var(--font-body); font-weight: 600; }

/* Stats & chips */
.stat-strip { grid-template-columns: repeat(4, 1fr); }
.stat-block__num { color: #E0693E; font-weight: 600; }
.stat-block { background: var(--color-surface); }
.logo-pill { font-family: var(--font-body); font-size: var(--text-sm); background: var(--color-surface); }
.logo-strip__label { font-family: var(--font-body); font-weight: 600; color: var(--color-accent-light); }

/* Journey timeline */
.step-list { gap: var(--space-12); }
.step-item__num {
  background: var(--color-text);
  border-color: var(--color-text);
  color: #E0693E;
  font-family: var(--font-display);
  border-radius: var(--radius-full);
}
.step-item__title { font-weight: 600; margin-top: var(--space-2); }
.step-item__body { font-size: var(--text-base); }
.step-item__code {
  background: var(--color-accent-soft);
  border-color: var(--color-accent-border);
  color: var(--color-accent-light);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
}

/* Quote band */
.philosophy-band { background: var(--color-text); }
.philosophy-band__quote { font-family: var(--font-display); font-style: normal; color: #F0E6E1; }
.philosophy-band__attr { color: rgba(240,230,225,.5); font-family: var(--font-body); }

/* Decorative orbs */
.orb--gold { background: rgba(224,105,62,.16); }
.orb--blue { background: rgba(211,178,160,.28); }

/* Footer: espresso */
.footer { background: var(--color-text); }
.footer__brand { font-family: var(--font-display); font-weight: 600; }
.footer__links a { color: rgba(240,230,225,.55); }
.footer__links a:hover { color: #E0693E; }

@media (max-width: 768px) {
  .hero-split { padding: var(--space-10) 0 var(--space-16); }
  .hero-split { grid-template-columns: 1fr; }
  .hero-split__right { display: flex; order: -1; }
  .hero-split__right img, .hero-split__right::before { width: min(100%, 300px); }
  .split-section img { aspect-ratio: 1 / 1; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}

/* .split-section--fit: the photo is exactly as tall as the text beside it on desktop
   (its column stretches to the text's height and the photo fills it, cropped).
   Stacked layouts on mobile go back to the normal photo. */
.split-section--fit { align-items: stretch; }
.split-section--fit > :has(> img) { position: relative; min-height: 22rem; }
.split-section--fit > :has(> img) > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 768px) {
  .split-section--fit > :has(> img) { min-height: 0; }
  .split-section--fit > :has(> img) > img { position: static; height: auto; }
}

/* A play/icon chip at the start of a button (e.g. "Explore my podcast"). */
.btn .card__icon { width: 30px; height: 30px; margin: -.4rem .35rem -.4rem -1.35rem; border-radius: var(--radius-full); background: #CF5C33; border-color: #CF5C33; color: var(--color-white); flex-shrink: 0; }
/* On mobile, the fit-split's photo sits inside the text: after the heading and first paragraph. */
@media (max-width: 768px) {
  .split-section--fit { gap: 0; }
  .split-section--fit > :not(:has(> img)) { display: contents; }
  .split-section--fit > :not(:has(> img)) > * { order: 3; }
  .split-section--fit > :not(:has(> img)) > :nth-child(-n+3) { order: 1; }
  .split-section--fit > :has(> img) { order: 2; margin: var(--space-2) 0 var(--space-8); }
}

/* .section--dark: a section on the dark brand background (light text, darker cards). */
.section--dark { background: var(--color-text); color: var(--color-bg); }
.section--dark h2, .section--dark h3 { color: var(--color-bg); }
.section--dark p { color: var(--color-text-faint); }
.section--dark .feat-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
.section--dark .feat-card__title { color: var(--color-bg); }
.section--dark .feat-card__body { color: var(--color-text-faint); }
.section--dark { background: #2A201C; }
.section--dark .section-label { color: #E0693E; }
.section--dark p, .section--dark .feat-card__body { color: rgba(240,230,225,.62); }
.section--dark .feat-card { background: #322722; border-color: rgba(240,230,225,.07); }
.section--dark .feat-card:hover { border-color: rgba(224,105,62,.4); box-shadow: none; }
.section--dark .feat-card__icon { width: auto; height: auto; background: none; border: none; border-radius: 0; justify-content: flex-start; font-size: 3.5rem; line-height: 1; color: #C8653F; }
.section--dark .feat-card__title { color: #F0E6E1; font-weight: 400; }

/* Reading width: paragraphs never run wider than ~62 characters per line.
   Centered blocks keep them centered. A paragraph with hand-placed line breaks (<br>) is left alone. */
main p { max-width: 62ch; }
.text-center p { margin-inline: auto; }
main p:has(br) { max-width: none; }

/* Titles break into even, balanced lines instead of leaving one word on its own. */
h1, h2, h3 { text-wrap: balance; }

/* .talk-card: a bold speaking-topic card (number, small tag, title, line). */
.talk-card { position: relative; overflow: hidden; background: var(--color-text); color: var(--color-bg); border-color: transparent; }
.talk-card .card__title { color: var(--color-bg); }
.talk-card .card__body { color: var(--color-text-faint); }
.talk-card__no { font-family: var(--font-display); font-size: 2.5rem; line-height: 1; opacity: .5; }
.talk-card__tag { font-size: var(--text-xs); letter-spacing: .2em; text-transform: uppercase; opacity: .75; }
.card.talk-card {
  min-height: 21rem; padding: 7.5rem var(--space-8) var(--space-8); gap: var(--space-3); justify-content: flex-start;
  background: linear-gradient(160deg, #E0693E 0%, #A34C30 55%, #5A2A1C 100%);
  box-shadow: 0 18px 40px rgba(163,76,48,.22);
  transition: transform var(--transition), box-shadow var(--transition);
}
.talk-card:nth-child(2) { background: linear-gradient(160deg, #D98A63 0%, #B9532F 50%, #7E3923 100%); }
.talk-card:nth-child(3) { background: linear-gradient(160deg, #CF5C33 0%, #7E3923 60%, #2C1F1A 100%); }
.talk-card:nth-child(4) { background: linear-gradient(160deg, #A34C30 0%, #5A2A1C 55%, #2C1F1A 100%); }
.talk-card:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 26px 50px rgba(163,76,48,.32); border-color: transparent; }
.talk-card__no {
  position: absolute; top: var(--space-4); right: var(--space-6);
  font-size: 6.5rem; color: #F0E6E1; opacity: .16; pointer-events: none;
}
.talk-card__tag { color: #F0E6E1; font-weight: 600; font-size: .68rem; opacity: .85; }
.talk-card .card__title { color: #FFFFFF; font-size: var(--text-2xl); font-weight: 600; line-height: 1.1; }
.talk-card .card__body { color: rgba(255,255,255,.82); }

/* Handwritten sign-off line under the footer tagline. */
.footer__sign { margin-top: var(--space-6); font-size: var(--text-xl); color: var(--color-accent-light); }

/* Menu: lighter and airier, the active section in coral (as on the podcast site). */
.nav__links { gap: var(--space-12); }
.nav__links a { font-weight: 400; font-size: .8rem; letter-spacing: .28em; color: #5E4A41; }
.nav__links a:hover, .nav__links a.active { color: #E0693E; }

/* Footer (as on the podcast site): brand + tagline + script sign-off, then Explore / Listen / Connect. */
.footer { padding: var(--space-20) 0 var(--space-10); background: #2A201C; }
.footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--space-12); margin-bottom: var(--space-16); }
.footer__brand { font-size: 2rem; font-weight: 600; color: #F0E6E1; }
.footer__tagline { max-width: 26rem; font-size: var(--text-base); color: rgba(240,230,225,.62); }
.footer__sign { font-family: 'Good Karma Smooth', 'Brush Script MT', cursive; font-size: 2.1rem; line-height: 1.1; color: #E0693E; }
.footer__heading { font-family: var(--font-body); font-weight: 600; font-size: .72rem; letter-spacing: .3em; color: rgba(240,230,225,.5); margin-bottom: var(--space-6); }
.footer__links { gap: var(--space-4); }
.footer__links a { font-size: var(--text-base); color: rgba(240,230,225,.85); }
.footer__links a:hover { color: #E0693E; }
.footer__bottom { border-top-color: rgba(240,230,225,.12); }
.footer__copy { font-family: var(--font-body); font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: rgba(240,230,225,.45); }
.footer__copy a { text-decoration: none; }
.footer__copy a:hover { color: #E0693E; }

/* Quote band (as on the podcast site): handwritten "+", upright title, gradient word, script signature. */
.philosophy-band { background: #2A201C; padding: var(--space-24) var(--space-8); }
.philosophy-band::before {
  content: '+'; display: block; position: static; inset: auto; width: auto; height: auto; background: none;
  font-family: 'Good Karma Smooth', 'Brush Script MT', cursive; font-size: 9rem; line-height: .6;
  color: #F0E6E1; margin-bottom: var(--space-8); filter: none; opacity: 1;
}
.philosophy-band__quote { text-wrap: balance; max-width: 24ch; font-weight: 600; font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.1; letter-spacing: -.01em; color: #F0E6E1; }
.philosophy-band__quote em {
  font-family: var(--font-display); font-style: normal; font-weight: 600; font-size: 1em; line-height: inherit;
  background: linear-gradient(100deg, #E0693E 0%, #A34C30 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.philosophy-band__attr {
  font-family: 'Good Karma Smooth', 'Brush Script MT', cursive; text-transform: none; letter-spacing: 0;
  font-size: clamp(1.8rem, 2.6vw, 2.4rem); color: #E0693E;
}
@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
  .footer__bottom { align-items: flex-start; text-align: left; }
}

/* Buttons at the end of a card line up along the bottom of the row. */
.post-card__body > .hero__actions:last-child { margin-top: auto; }

/* .img--top: a cropped photo keeps its top in frame (heads stay in shot). */
img.img--top { object-position: center 8%; }

/* Divider: a thin coral line that fades out at both ends, with generous space around it. */
.divider { border: none; height: 1px; background: linear-gradient(90deg, transparent, rgba(224,105,62,.55) 20%, rgba(163,76,48,.55) 80%, transparent); margin: var(--space-8) 0 var(--space-16); }

/* Carousel: a row of cards that scrolls sideways (swipe, trackpad or the arrow buttons). */
.carousel__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-6); margin-bottom: var(--space-8); }
.carousel__nav { display: flex; gap: var(--space-3); flex-shrink: 0; }
.carousel__btn { width: 48px; height: 48px; border-radius: var(--radius-full); border: 1.5px solid var(--color-text); background: transparent; color: var(--color-text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background var(--transition), color var(--transition), border-color var(--transition), opacity var(--transition); }
.carousel__btn:hover { background: var(--color-text); color: var(--color-bg); }
.carousel__btn:disabled { opacity: .3; cursor: default; background: transparent; color: var(--color-text); }
.carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--space-5)) / 3.25); gap: var(--space-5); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: var(--space-2) 0 var(--space-4); }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }
@media (max-width: 768px) { .carousel__track { grid-auto-columns: 82%; } }
.carousel__btn:hover { background: #CF5C33; border-color: #CF5C33; color: #FFFFFF; }
.carousel__btn:disabled:hover { border-color: var(--color-text); }

/* Play chip on a filled coral button: white chip, coral triangle. */
.btn--accent .card__icon { background: #FFFFFF; border-color: #FFFFFF; color: #CF5C33; }
.btn--accent:hover .card__icon { color: var(--color-text); }

/* .img--low: a cropped photo keeps its lower half in frame (for a subject sitting low in the shot). */
img.img--low { object-position: center 42%; }

/* A row of buttons pushed to the right edge (left again once the layout stacks on mobile). */
.hero__actions--end { justify-content: flex-end; }
@media (max-width: 768px) { .hero__actions--end { justify-content: flex-start; } }

/* .card-compact: a smaller card (tighter padding, smaller icon and title). */
.card-compact { padding: var(--space-6); gap: var(--space-2); }
.card-compact .card__icon { width: 38px; height: 38px; margin-bottom: var(--space-2); }
.card-compact .card__title { font-size: var(--text-lg); }
.card-compact .card__body { font-size: var(--text-sm); }

/* Header buttons sit together on the right. */
.nav__ctas { display: flex; align-items: center; gap: var(--space-3); }
.nav__ctas .nav__cta { margin-left: 0; }

/* On narrower laptop screens the menu tightens so both header buttons fit. */
@media (max-width: 1280px) { .nav__links { gap: var(--space-6); } .nav__links a { letter-spacing: .2em; } }

/* ═════ MOBILE PASS ═════ */
@media (max-width: 768px) {
  /* Menu overlay: readable sizes, starts below the header, scrolls if needed. */
  .nav__mobile { justify-content: flex-start; align-items: stretch; gap: var(--space-2); padding: 6.5rem var(--space-8) var(--space-10); overflow-y: auto; }
  .nav__mobile a { font-size: 1.9rem; line-height: 1.2; padding: var(--space-2) 0; border-bottom: 1px solid var(--color-border); }
  .nav__mobile .btn { font-family: var(--font-body); font-size: .74rem; letter-spacing: .18em; font-weight: 600; text-transform: uppercase; padding: 1rem 1.5rem; border-bottom: 1.5px solid var(--color-text); margin-top: var(--space-4); }
  .nav__mobile .btn--accent { border-bottom-color: transparent; color: #FFFFFF; }

  /* Long card lists become swipeable rows instead of tall stacks. */
  .grid-3-fixed, .grid-4:has(> .talk-card), .section--dark .grid-3 {
    display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%;
    gap: var(--space-4); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--container-pad, 1.25rem)); padding: var(--space-2) var(--container-pad, 1.25rem) var(--space-4);
    scroll-padding-inline: var(--container-pad, 1.25rem);
  }
  .grid-3-fixed::-webkit-scrollbar, .grid-4:has(> .talk-card)::-webkit-scrollbar, .section--dark .grid-3::-webkit-scrollbar { display: none; }
  .grid-3-fixed > *, .grid-4:has(> .talk-card) > *, .section--dark .grid-3 > * { scroll-snap-align: start; }
  .card.talk-card { min-height: 0; padding-top: 6rem; }
  .talk-card__no { font-size: 5rem; }

  /* Pills: smaller, so two fit on a line. */
  span.logo-pill { font-size: .78rem; padding: .45rem .9rem; }
  .logo-strip { gap: var(--space-2); }

  /* Hand-placed line breaks in paragraphs give way to normal wrapping on phones. */
  main p br { display: none; }
}

/* Mobile buttons: smaller, and a pair of buttons sits side by side. */
@media (max-width: 768px) {
  .hero__actions { gap: var(--space-2); }
  .hero__actions .btn { padding: .8rem 1.1rem; font-size: .64rem; letter-spacing: .13em; }
  .hero__actions:has(> .btn:nth-child(2):last-child) { flex-wrap: nowrap; }
  .hero__actions:has(> .btn:nth-child(2):last-child) > .btn { flex: 1 1 auto; min-width: 0; white-space: nowrap; padding-inline: .8rem; letter-spacing: .08em; }
  .btn .card__icon { width: 24px; height: 24px; margin: -.3rem .25rem -.3rem -.6rem; }
}

/* .hide-mobile: shown on desktop and tablet, hidden on phones. */
@media (max-width: 768px) { .hide-mobile { display: none !important; } }

/* Small header button with a play chip. */
.btn--sm .card__icon { width: 22px; height: 22px; margin: -.3rem .3rem -.3rem -.75rem; }

/* Journey path: coral dashed arrows lead from one stop to the next.
   Desktop: the 3x3 grid snakes (row 1 left→right, down, row 2 right→left, down, row 3 left→right).
   Mobile: one swipeable row, arrows point right. */
.journey-path { gap: 3.5rem 4rem; }
.journey-path > * { position: relative; overflow: visible; }
.journey-path > :not(:last-child)::after {
  content: ''; position: absolute; width: 3rem; height: 1.25rem; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 20'%3E%3Cpath d='M2 10h37' stroke='%23E0693E' stroke-width='2' stroke-dasharray='4 4' fill='none'/%3E%3Cpath d='M36 3.5l8 6.5-8 6.5' stroke='%23E0693E' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  top: 3.6rem; right: -3.5rem;
}
@media (min-width: 769px) {
  .journey-path > :nth-child(4) { grid-column: 3; grid-row: 2; }
  .journey-path > :nth-child(5) { grid-column: 2; grid-row: 2; }
  .journey-path > :nth-child(6) { grid-column: 1; grid-row: 2; }
  .journey-path > :nth-child(7) { grid-column: 1; grid-row: 3; }
  .journey-path > :nth-child(8) { grid-column: 2; grid-row: 3; }
  .journey-path > :nth-child(9) { grid-column: 3; grid-row: 3; }
  /* Row 2 runs right to left */
  .journey-path > :nth-child(4)::after, .journey-path > :nth-child(5)::after { right: auto; left: -3.5rem; transform: scaleX(-1); }
  /* End of a row: drop down to the stop below */
  .journey-path > :nth-child(3)::after, .journey-path > :nth-child(6)::after {
    top: auto; right: auto; left: calc(50% - 1.5rem); bottom: -2.375rem; transform: rotate(90deg);
  }
}
@media (max-width: 768px) {
  .journey-path { gap: 2.75rem; }
  .journey-path > :not(:last-child)::after { right: -2.6rem; width: 2.4rem; }
}

/* Logo: Luiza's name in the handwritten Good Karma script, coral (as on the podcast logo). */
.nav__logo { font-family: 'Good Karma Smooth', 'Brush Script MT', cursive; font-weight: 400; font-size: 2.1rem; line-height: 1; letter-spacing: 0; color: #2C1F1A; }
@media (max-width: 768px) { .nav__logo { font-size: 1.8rem; } }

/* Small second line under the logo name. */
.nav__logo-sub { display: block; font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; }
.nav__logo { display: inline-flex; flex-direction: column; align-items: flex-start; color: #2C1F1A; }
.nav__logo-sub {
  font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .06em; line-height: 1;
  color: #2C1F1A; margin: -.75rem 0 0 4.4rem; white-space: nowrap;
}
.nav__logo-sub em { font-family: 'Good Karma Smooth', 'Brush Script MT', cursive; font-style: normal; font-weight: 400; font-size: 1.9em; line-height: .5; letter-spacing: 0; color: #E0693E; margin-left: .2rem; vertical-align: -.05em; }
@media (max-width: 768px) { .nav__logo-sub { margin-left: 3.75rem; } }
