/*
Theme Name:  EIFRF
Theme URI:   https://www.eifrf-articles.org/
Author:      European Interreligious Forum for Religious Freedom
Author URI:  https://www.eifrf-articles.org/
Description: Institutional theme for the European Interreligious Forum for Religious Freedom (EIFRF). Dark, editorial design with centered hero and minimal navigation — inspired by leading FoRB advocacy organisations.
Version:     2.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eifrf
Tags:        custom-logo, custom-menu, featured-images, translation-ready, dark, accessibility-ready
*/

/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */
:root {
  --bg:          #131929;
  --bg-card:     #1a2235;
  --bg-input:    #1c2540;
  --bg-hover:    #202d45;
  --cyan:        #27c4d8;
  --cyan-dark:   #1ea8ba;
  --white:       #ffffff;
  --muted:       rgba(255,255,255,0.60);
  --muted-less:  rgba(255,255,255,0.80);
  --border:      rgba(255,255,255,0.10);
  --border-cyan: rgba(39,196,216,0.35);

  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.125rem;
  --text-lg:   1.25rem;
  --text-xl:   1.5rem;
  --text-2xl:  2rem;
  --text-3xl:  2.75rem;
  --text-4xl:  3.5rem;

  --max-w: 1200px;
  --content-w: 760px;
  --radius: 6px;
  --radius-lg: 12px;
  --radius-pill: 100px;

  --transition: 180ms ease;
}

/* ==========================================================================
   RESET
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: 1.7;
  color: var(--muted-less);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; }

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */
.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 9999;
  padding: 0.5rem 1rem; background: var(--cyan); color: var(--bg);
  font-weight: 600; font-size: var(--text-sm); border-radius: var(--radius);
  transition: top var(--transition);
}
.skip-link:focus { top: 1rem; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.container { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: 1.5rem; }
.container--narrow { max-width: 820px; }
#page { min-height: 100vh; display: flex; flex-direction: column; }
#content { flex: 1; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0.875rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: rgba(19,25,41,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

/* Logo */
.site-header__logo a { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.site-header__logo img,
.site-header__logo .custom-logo { width: 40px; height: 40px; object-fit: contain; }
.site-header__logo-placeholder {
  width: 40px; height: 40px; border: 2px solid var(--cyan);
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-weight: 700; font-size: 0.75rem;
  color: var(--cyan); letter-spacing: 0.05em; flex-shrink: 0;
  line-height: 1;
}
.site-header__site-name {
  font-size: var(--text-sm); font-weight: 600; color: var(--white);
  line-height: 1.2; display: none;
}

/* Navigation */
.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.site-nav__list { display: flex; align-items: center; gap: 0.125rem; list-style: none; }
.site-nav__list a {
  display: block;
  padding: 0.375rem 0.75rem;
  font-size: var(--text-sm);
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.site-nav__list a:hover,
.site-nav__list .current-menu-item > a { color: var(--white); background: rgba(255,255,255,0.06); }
.site-nav__list .current-menu-item > a { color: var(--cyan); background: transparent; }

/* Language */
.language-selector { margin-left: 0.5rem; padding-left: 0.75rem; border-left: 1px solid var(--border); }
.language-selector ul { display: flex; gap: 0.25rem; list-style: none; }
.language-selector a,
.language-selector__current {
  font-size: var(--text-xs); font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.08em; color: rgba(255,255,255,0.5);
  padding: 0.25rem 0.375rem; border-radius: 4px; transition: color var(--transition);
}
.language-selector a:hover { color: var(--cyan); }
.language-selector .current a { color: var(--cyan); }

/* Mobile toggle */
.site-nav__toggle {
  display: none;
  flex-direction: column; gap: 5px; padding: 0.5rem;
  color: rgba(255,255,255,0.8);
}
.site-nav__toggle-bar { width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: all var(--transition); }

/* ==========================================================================
   HERO (front-page)
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 5rem;
}

.hero__label {
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 1.5rem;
}

.hero__image-card {
  width: 100%;
  max-width: 460px;
  margin: 0 auto 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 48px rgba(0,0,0,0.5);
}
.hero__image-card img { width: 100%; height: auto; display: block; }
.hero__image-placeholder {
  width: 100%;
  max-width: 460px;
  height: 240px;
  margin: 0 auto 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: var(--text-sm);
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, var(--text-4xl));
  font-weight: 700;
  font-style: italic;
  line-height: 1.15;
  color: var(--cyan);
  max-width: 680px;
  margin: 0 auto 1.5rem;
}

.hero__subtitle {
  font-size: var(--text-md);
  color: var(--muted-less);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--white);
  background: transparent;
  transition: all var(--transition);
  text-decoration: none;
}
.hero__cta:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(39,196,216,0.08);
}

/* ==========================================================================
   INTERIOR PAGE HEADER
   ========================================================================== */
.page-header {
  padding: 8rem 0 3rem;
}
.page-header__back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--text-sm);
  color: var(--cyan);
  margin-bottom: 1.5rem;
  transition: gap var(--transition);
  text-decoration: none;
}
.page-header__back:hover { gap: 0.625rem; }
.page-header__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}
.page-header__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, var(--text-3xl));
  font-weight: 700;
  font-style: italic;
  color: var(--cyan);
  line-height: 1.15;
  max-width: 700px;
  margin-bottom: 1.25rem;
}
.page-header__desc {
  font-size: var(--text-md);
  color: var(--muted-less);
  max-width: 560px;
  line-height: 1.7;
}

/* Breadcrumb */
.breadcrumbs { margin-bottom: 0.75rem; }
.breadcrumbs__list {
  display: flex; gap: 0.5rem; flex-wrap: wrap; list-style: none;
  font-size: var(--text-sm); color: var(--muted);
}
.breadcrumbs__item::before { content: '/'; margin-right: 0.5rem; color: var(--border); }
.breadcrumbs__item:first-child::before { display: none; }
.breadcrumbs__item a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs__item--current { color: var(--muted); }

/* ==========================================================================
   CONTENT SECTIONS
   ========================================================================== */
.section { padding-block: 4rem; }
.section-title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 700;
  font-style: italic;
  color: var(--cyan);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.section-label {
  font-size: var(--text-xs); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--cyan); margin-bottom: 0.5rem;
}

/* ==========================================================================
   ARTICLE CARDS
   ========================================================================== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.content-card:hover {
  border-color: var(--border-cyan);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.content-card__image img { width: 100%; height: 180px; object-fit: cover; }
.content-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: 0.625rem; }
.content-card__meta { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.content-card__title {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  flex: 1;
}
.content-card__title a { color: inherit; text-decoration: none; }
.content-card__title a:hover { color: var(--cyan); }
.content-card__excerpt { font-size: var(--text-sm); color: var(--muted); line-height: 1.65; flex: 1; }
.content-card__date { font-size: var(--text-xs); color: var(--muted); }

/* ==========================================================================
   BADGES
   ========================================================================== */
.content-type-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-pill);
  background: rgba(39,196,216,0.15);
  color: var(--cyan);
  border: 1px solid var(--border-cyan);
}
.language-badge {
  display: inline-block;
  padding: 2px 7px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-pill);
  color: var(--muted);
  border: 1px solid var(--border);
}

/* ==========================================================================
   ARTICLE SINGLE
   ========================================================================== */
.article-layout {
  padding-bottom: 5rem;
}
.article__header { margin-bottom: 2.5rem; }
.article__title {
  font-family: var(--font-serif);
  font-size: clamp(1.875rem, 3.5vw, var(--text-3xl));
  font-weight: 700;
  font-style: italic;
  color: var(--cyan);
  line-height: 1.15;
  margin: 1rem 0 1.25rem;
}
.article__meta-bar {
  display: flex; align-items: center; gap: 1rem;
  flex-wrap: wrap; font-size: var(--text-sm); color: var(--muted);
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.article__excerpt {
  font-size: var(--text-lg);
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--muted-less);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.article__featured-image { margin-bottom: 2.5rem; }
.article__featured-image img { border-radius: var(--radius-lg); width: 100%; }
.article__image-caption { font-size: var(--text-sm); color: var(--muted); margin-top: 0.625rem; font-style: italic; }
.article__tools { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2rem; }
.article__footer {
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0.625rem;
  font-size: var(--text-sm);
}
.article__topics a, .article__countries a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }

/* Prose */
.prose { font-size: var(--text-md); line-height: 1.75; color: var(--muted-less); }
.prose h2 { font-family: var(--font-serif); font-size: var(--text-2xl); font-style: italic; color: var(--cyan); margin-top: 2.5rem; margin-bottom: 1rem; line-height: 1.2; }
.prose h3 { font-family: var(--font-serif); font-size: var(--text-xl); font-style: italic; color: var(--white); margin-top: 2rem; margin-bottom: 0.75rem; }
.prose h4 { font-size: var(--text-lg); font-weight: 600; color: var(--white); margin-top: 1.5rem; margin-bottom: 0.5rem; }
.prose p { margin-bottom: 1.25rem; }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.prose ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose blockquote {
  border-left: 3px solid var(--cyan);
  padding: 0.75rem 1.5rem;
  margin-block: 2rem;
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--white);
}
.prose blockquote p { margin: 0; }
.prose figure { margin-block: 2rem; }
.prose figure img { border-radius: var(--radius-lg); }
.prose figcaption { font-size: var(--text-sm); color: var(--muted); margin-top: 0.5rem; font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; margin-block: 2rem; font-size: var(--text-sm); }
.prose th { background: var(--bg-input); color: var(--white); text-align: left; padding: 0.75rem 1rem; font-weight: 600; border-bottom: 2px solid var(--cyan); }
.prose td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
.prose tr:nth-child(even) td { background: var(--bg-card); }
.prose hr { border: none; border-top: 1px solid var(--border); margin-block: 2.5rem; }
.prose strong { color: var(--white); font-weight: 600; }

/* ==========================================================================
   TRANSLATIONS
   ========================================================================== */
.translations {
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius);
  margin-block: 1.5rem;
}
.translations__title { font-size: var(--text-sm); color: var(--muted); margin-bottom: 0.5rem; }
.translations__list { display: flex; flex-wrap: wrap; gap: 0.625rem; list-style: none; }
.translations__list a { font-size: var(--text-sm); color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   RELATED ARTICLES
   ========================================================================== */
.related-articles { padding-top: 3rem; border-top: 1px solid var(--border); margin-top: 3rem; }
.related-articles__title { font-family: var(--font-serif); font-size: var(--text-xl); font-style: italic; color: var(--cyan); margin-bottom: 1.5rem; }

/* ==========================================================================
   ARCHIVE / BLOG HEADER
   ========================================================================== */
.archive-intro {
  padding: 8rem 0 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}
.archive-count { font-size: var(--text-sm); color: var(--muted); margin-top: 2rem; }

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.nav-links { display: flex; align-items: center; justify-content: center; gap: 0.375rem; padding-top: 3rem; }
.page-numbers {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--text-sm); color: var(--muted);
  text-decoration: none;
  transition: all var(--transition);
}
.page-numbers:hover { border-color: var(--cyan); color: var(--cyan); }
.page-numbers.current { background: var(--cyan); border-color: var(--cyan); color: var(--bg); font-weight: 600; }
.page-numbers.dots { border: none; }
.prev.page-numbers, .next.page-numbers { width: auto; padding-inline: 1rem; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 1.375rem;
  font-size: var(--text-sm); font-weight: 500;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
}
.btn--primary { background: var(--cyan); color: var(--bg); border-color: var(--cyan); }
.btn--primary:hover { background: var(--cyan-dark); border-color: var(--cyan-dark); }
.btn--outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn--outline:hover { border-color: var(--cyan); color: var(--cyan); }
.btn--ghost { background: var(--bg-card); color: var(--white); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn--small { padding: 0.375rem 0.875rem; font-size: var(--text-xs); }

/* ==========================================================================
   SEARCH FORM
   ========================================================================== */
.search-form { display: flex; gap: 0.5rem; }
.search-field {
  flex: 1; padding: 0.625rem 1rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--white); font-size: var(--text-sm);
}
.search-field::placeholder { color: var(--muted); }
.search-field:focus { outline: none; border-color: var(--cyan); }
.search-submit {
  padding: 0.625rem 1.25rem;
  background: var(--cyan); color: var(--bg);
  border: none; border-radius: var(--radius);
  font-size: var(--text-sm); font-weight: 600;
  cursor: pointer; transition: background var(--transition);
}
.search-submit:hover { background: var(--cyan-dark); }

/* ==========================================================================
   WIDGETS / SIDEBAR
   ========================================================================== */
.widget {
  margin-bottom: 2rem; padding: 1.25rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.widget-title {
  font-family: var(--font-serif); font-size: var(--text-md);
  font-style: italic; color: var(--cyan);
  margin-bottom: 1rem; padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--border);
}

/* ==========================================================================
   NO RESULTS / 404
   ========================================================================== */
.no-results, .error-404 { text-align: center; padding: 6rem 1.5rem; }
.error-404__code {
  font-family: var(--font-serif); font-size: 8rem; font-style: italic;
  color: var(--bg-card); line-height: 1; margin-bottom: 1rem;
}
.error-404__title { font-family: var(--font-serif); font-size: var(--text-2xl); font-style: italic; color: var(--cyan); margin-bottom: 1rem; }
.error-404__message { color: var(--muted); margin-bottom: 2rem; }
.no-results h2 { font-family: var(--font-serif); font-size: var(--text-xl); font-style: italic; color: var(--cyan); margin-bottom: 1rem; }
.no-results p { color: var(--muted); margin-bottom: 2rem; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: auto;
}
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.site-footer__brand {
  display: flex; align-items: center; gap: 0.75rem;
}
.site-footer__name {
  font-size: var(--text-sm); color: var(--muted);
}
.site-footer__links {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; list-style: none;
}
.site-footer__links a {
  font-size: var(--text-sm); color: var(--muted);
  text-decoration: none; transition: color var(--transition);
}
.site-footer__links a:hover { color: var(--cyan); }
.site-footer__social {
  display: flex; gap: 0.75rem;
}
.social-link { color: var(--muted); transition: color var(--transition); }
.social-link:hover { color: var(--cyan); }
.site-footer__copyright {
  width: 100%; padding-top: 1.5rem; margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: var(--text-xs); color: var(--muted);
  text-align: center;
}

/* ==========================================================================
   BLOCK EDITOR
   ========================================================================== */
.wp-block-image img { border-radius: var(--radius-lg); }
.wp-block-quote { border-left: 3px solid var(--cyan); padding-left: 1.5rem; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
  .site-header { padding: 0.75rem 1rem; }
  .site-nav__toggle { display: flex; }
  .site-nav__list {
    display: none; position: fixed; inset: 0; top: 60px;
    background: var(--bg);
    flex-direction: column; align-items: flex-start;
    padding: 2rem 1.5rem; gap: 0.25rem;
    border-top: 1px solid var(--border);
    overflow-y: auto;
  }
  .site-nav__list.is-open { display: flex; }
  .site-nav__list a { font-size: var(--text-md); padding: 0.75rem 0; }
  .language-selector { display: none; }
  .hero { padding: 6rem 1.25rem 4rem; }
  .hero__title { font-size: 2rem; }
  .page-header { padding: 6rem 0 2rem; }
  .site-footer__inner { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   FRONT PAGE — SCROLLING ONE-PAGER
   ========================================================================== */

/* Hero */
.fp-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 1.5rem 5rem;
  background: var(--bg);
}
.fp-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 640px;
  width: 100%;
}
.fp-hero__image {
  width: 100%;
  max-width: 480px;
  margin-bottom: 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 56px rgba(0,0,0,0.5);
}
.fp-hero__image img { width: 100%; height: auto; display: block; }
.fp-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.12;
  color: var(--cyan);
  margin-bottom: 1.25rem;
}
.fp-hero__subtitle {
  font-size: var(--text-md);
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 2.5rem;
}

/* Shared front-page primitives */
.fp-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin-bottom: 0.75rem;
  display: block;
}
.fp-title {
  font-family: var(--font-serif);
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  font-weight: 700;
  font-style: italic;
  color: var(--cyan);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.fp-body { color: rgba(255,255,255,0.72); line-height: 1.75; margin-bottom: 1.75rem; }
.fp-body p { margin-bottom: 1rem; }
.fp-body--center { text-align: center; max-width: 520px; margin-inline: auto; }

/* Buttons */
.fp-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.75rem;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--white);
  background: transparent;
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.fp-btn-outline:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(39,196,216,0.07); }
.fp-btn-outline--sm { padding: 0.45rem 1.1rem; font-size: 0.8125rem; }

/* Sections */
.fp-section { padding-block: 6rem; }
.fp-section--dark  { background: var(--bg); }
.fp-section--mid   { background: #182030; }
.fp-section--center { text-align: center; }

/* Section header row (label + "all →" link) */
.fp-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.fp-section__header--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 3rem;
}
.fp-section__header--center .fp-title { margin-bottom: 0; }

/* Split layout */
.fp-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.fp-split--reverse .fp-split__image { order: -1; }

.fp-split__text { display: flex; flex-direction: column; align-items: flex-start; }
.fp-split__image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 48px rgba(0,0,0,0.45);
}
.fp-image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: var(--text-sm);
}

/* Three pillars */
.fp-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.fp-pillar {
  padding: 2rem;
  background: #182030;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), transform var(--transition);
}
.fp-pillar:hover { border-color: var(--border-cyan); transform: translateY(-4px); }
.fp-pillar__icon {
  width: 52px; height: 52px;
  background: rgba(39,196,216,0.1);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
  margin-bottom: 1.25rem;
}
.fp-pillar__title {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 700;
  font-style: italic;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.fp-pillar__text { font-size: var(--text-sm); color: var(--muted); line-height: 1.7; }

/* CTA block */
.fp-cta-block {
  max-width: 580px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.fp-cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* Responsive front-page */
@media (max-width: 900px) {
  .fp-split { grid-template-columns: 1fr; gap: 2.5rem; }
  .fp-split--reverse .fp-split__image { order: 0; }
  .fp-pillars { grid-template-columns: 1fr; }
  .fp-section { padding-block: 4rem; }
}
@media (max-width: 600px) {
  .fp-hero { padding: 6rem 1.25rem 4rem; }
  .fp-hero__title { font-size: 2rem; }
  .fp-title { font-size: 1.875rem; }
}

/* ==========================================================================
   PRINT
   ========================================================================== */
@media print {
  .site-header, .site-nav, .site-footer, .article__tools, .related-articles { display: none !important; }
  body { background: white; color: black; }
  .prose a::after { content: ' (' attr(href) ')'; font-size: 0.8em; }
  .article__title, .page-header__title, .section-title { color: #003366; }
}
