/*
Theme Name: Luveris Journal
Theme URI: https://blog.luveris.com.ng
Author: Luveris
Description: Editorial WordPress theme for Luveris ideas, technology, business, community, and mobility.
Version: 2.1.0
Requires at least: 6.6
Requires PHP: 8.2
Text Domain: luveris-blog
*/

:root {
  --turquoise: #00a8b5;
  --deep-turquoise: #007d87;
  --sky: #5bb8e0;
  --ink: #122e34;
  --slate: #52666d;
  --off-white: #f7fafc;
  --line: #dce7eb;
  --white: #ffffff;
  --warning: #8f302f;
  --content: 1240px;
  --reading: 760px;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--off-white);
  font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--deep-turquoise); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
button, input, textarea, select { font: inherit; }
.container { width: min(calc(100% - 48px), var(--content)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 9999; background: var(--ink); color: white; padding: 10px 16px; }
.skip-link:focus { top: 16px; }
.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: 3px solid var(--sky); outline-offset: 3px; }

.site-header { background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px); }
.header-inner { min-height: 72px; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 150px; height: auto; }

.search-form { display: flex; gap: 8px; }
.search-field { width: 100%; min-height: 50px; border: 1px solid #adc1c8; border-radius: var(--radius); padding: 11px 15px; color: var(--ink); background: white; }
.button, .search-submit, .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 19px; border: 1px solid var(--deep-turquoise); border-radius: var(--radius); background: var(--deep-turquoise); color: white; font-weight: 800; text-decoration: none; cursor: pointer; }
.button:hover, .search-submit:hover { background: var(--ink); border-color: var(--ink); color: white; }
.eyebrow { color: var(--deep-turquoise); font-size: 12px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }

.journal-intro { background: white; border-bottom: 1px solid var(--line); }
.journal-intro-inner { padding-block: 58px 52px; text-align: center; }
.journal-intro h1 { margin: 0; color: var(--ink); font-size: clamp(42px, 5.4vw, 68px); line-height: 1.04; letter-spacing: 0; }

.section { padding-block: 60px; }
.featured-section { padding-bottom: 38px; }
.featured-story { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(340px, .75fr); min-height: 480px; overflow: hidden; background: white; border: 1px solid var(--line); }
.featured-visual { display: block; min-height: 480px; overflow: hidden; background: #e6f3f5; }
.featured-visual img { width: 100%; height: 100%; object-fit: cover; }
.featured-placeholder { height: 100%; min-height: 480px; display: grid; place-items: center; padding: 50px; color: var(--ink); background: #dff2f4; font-size: 48px; font-weight: 850; line-height: 1.1; }
.featured-copy { padding: clamp(32px, 4.6vw, 62px); display: flex; flex-direction: column; justify-content: center; }
.featured-copy h2 { margin: 11px 0 16px; font-size: clamp(32px, 3.3vw, 48px); line-height: 1.1; letter-spacing: 0; }
.featured-copy h2 a { color: var(--ink); text-decoration: none; }
.featured-copy p { margin: 0 0 28px; color: var(--slate); font-size: 17px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--slate); font-size: 13px; }

.category-explorer { padding-block: 34px 48px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 26px; }
.section-heading h2 { margin: 5px 0 0; font-size: 34px; line-height: 1.15; letter-spacing: 0; }
.section-heading > a { font-size: 14px; font-weight: 750; }
.centred-heading { justify-content: center; text-align: center; margin-bottom: 20px; }
.category-pills { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.category-pills a { padding: 8px 13px; border: 1px solid var(--line); border-radius: 4px; background: white; color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; }
.category-pills a:hover, .category-pills .is-active { border-color: var(--deep-turquoise); background: var(--deep-turquoise); color: white; }
.latest-section { padding-top: 24px; }

.posts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.post-card { display: flex; min-width: 0; flex-direction: column; background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.post-card-media { display: block; aspect-ratio: 16 / 9; background: #e9f4f6; overflow: hidden; text-decoration: none; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .22s ease; }
.post-card:hover img { transform: scale(1.025); }
.post-card-placeholder { position: relative; height: 100%; display: grid; align-content: end; padding: 20px; overflow: hidden; background: #e1f2f5; color: var(--deep-turquoise); font-size: 18px; font-weight: 850; line-height: 1.2; text-align: left; }
.post-card-placeholder::before { content: "L"; position: absolute; right: 18px; top: 0; color: rgba(0,125,135,.1); font-size: 108px; font-weight: 900; line-height: 1; }
.post-card-copy { display: flex; flex: 1; flex-direction: column; padding: 21px 20px 19px; }
.card-category { color: var(--slate); font-size: 12px; font-weight: 650; }
.post-card h3 { margin: 7px 0 11px; font-size: 20px; font-weight: 850; line-height: 1.2; letter-spacing: 0; overflow-wrap: anywhere; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card p { margin: 0 0 24px; color: var(--slate); font-size: 14px; line-height: 1.55; }
.card-meta { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; }
.date-icon { width: 13px; height: 13px; border: 1.5px solid currentColor; border-radius: 2px; position: relative; }
.date-icon::before { content: ""; position: absolute; left: 2px; right: 2px; top: 3px; border-top: 1.5px solid currentColor; }

.editorial-note { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; }
.editorial-note .container { display: flex; align-items: center; gap: 24px; min-height: 86px; }
.editorial-note strong { color: var(--ink); }
.editorial-note span { color: var(--slate); }
.editorial-note a { margin-left: auto; white-space: nowrap; font-weight: 750; }

.page-header { padding: 56px 0 34px; border-bottom: 1px solid var(--line); background: white; }
.page-header h1 { margin: 8px 0 0; font-size: clamp(38px, 5vw, 58px); line-height: 1.08; }
.article-header { background: white; border-bottom: 1px solid var(--line); }
.article-header-inner { max-width: 950px; padding-block: 62px 42px; }
.article-header h1 { max-width: 900px; margin: 10px 0 16px; font-size: clamp(42px, 5.2vw, 66px); line-height: 1.05; letter-spacing: 0; }
.article-deck { max-width: 760px; margin: 0 0 24px; color: var(--slate); font-size: 20px; line-height: 1.5; }
.article-byline { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--slate); font-size: 13px; font-weight: 650; }
.article-hero { margin-top: 38px; max-width: 1040px; }
.article-hero img { width: 100%; max-height: 610px; object-fit: cover; }
.content-layout { display: grid; grid-template-columns: minmax(0, var(--reading)) minmax(240px, 1fr); gap: 72px; align-items: start; max-width: 1100px; padding-block: 52px 84px; }
.article { font-family: Georgia, "Times New Roman", serif; font-size: 18px; line-height: 1.78; }
.article > *:first-child { margin-top: 0; }
.article h2, .article h3 { color: var(--ink); font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif; }
.article h2 { margin-top: 42px; font-size: 30px; line-height: 1.2; }
.article h3 { margin-top: 30px; font-size: 23px; line-height: 1.25; }
.article ul, .article ol { padding-left: 24px; }
.article li { margin: 10px 0; }
.article blockquote { margin: 34px 0; border-left: 4px solid var(--turquoise); padding: 4px 0 4px 24px; color: var(--slate); font-size: 21px; }
.article-disclaimer { margin-top: 50px; padding: 20px; border: 1px solid #e6b6b5; color: #7d2c2a; background: #fff8f8; font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif; font-size: 13px; line-height: 1.6; }
.sidebar { position: sticky; top: 100px; }
.sidebar-box { border-top: 3px solid var(--turquoise); padding: 20px 0 0; margin-bottom: 32px; }
.sidebar-box h2 { margin: 4px 0 12px; font-size: 22px; }
.sidebar-box ul { list-style: none; margin: 0; padding: 0; }
.sidebar-box li { padding: 13px 0; border-top: 1px solid var(--line); }
.sidebar-box li a { display: block; color: var(--ink); font-size: 14px; font-weight: 800; line-height: 1.35; text-decoration: none; }
.sidebar-box li small { display: block; margin-top: 5px; color: var(--slate); font-size: 11px; }
.sidebar-action { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--ink); color: white; text-decoration: none; }
.sidebar-action:hover { color: white; }
.sidebar-action strong { font-size: 20px; }
.sidebar-action span { color: #c7d6da; font-size: 13px; }
.sidebar-action b { margin-top: 6px; color: var(--sky); font-size: 13px; }
.read-next { padding-block: 58px 72px; border-top: 1px solid var(--line); background: white; }
.read-next-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.pagination { margin-top: 34px; display: flex; gap: 8px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 42px; min-height: 42px; padding: 5px; border: 1px solid var(--line); background: white; text-decoration: none; }
.pagination .current { background: var(--ink); color: white; }
.empty-state { padding: 70px 0 90px; max-width: 720px; }

.site-footer { background: var(--ink); color: white; }
.footer-main { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 56px; padding-block: 55px 42px; }
.footer-logo { width: 150px; filter: grayscale(1) brightness(0) invert(1); }
.footer-main p { color: #c7d6da; max-width: 430px; font-size: 14px; }
.footer-main h2 { color: var(--sky); font-size: 12px; text-transform: uppercase; letter-spacing: .09em; }
.footer-main ul { list-style: none; padding: 0; margin: 0; }
.footer-main li { margin: 8px 0; }
.footer-main a { color: white; text-decoration: none; font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-block: 18px; display: flex; justify-content: space-between; gap: 30px; color: #b6c7cc; font-size: 12px; }

@media (max-width: 1040px) {
  .featured-story { grid-template-columns: 1.25fr .75fr; }
  .posts-grid, .read-next-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 42px; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 30px), var(--content)); }
  .header-inner { min-height: 66px; }
  .brand img { width: 133px; }
  .journal-intro-inner { padding-block: 42px 38px; text-align: left; }
  .journal-intro h1 { font-size: 42px; }
  .section { padding-block: 42px; }
  .featured-story { grid-template-columns: 1fr; min-height: 0; }
  .featured-visual, .featured-placeholder { min-height: 260px; }
  .featured-copy { padding: 26px 22px; }
  .featured-copy h2 { font-size: 31px; }
  .category-explorer { padding-block: 24px 34px; }
  .centred-heading { justify-content: flex-start; text-align: left; }
  .category-pills { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .category-pills a { white-space: nowrap; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .section-heading h2 { font-size: 30px; }
  .posts-grid, .read-next-grid { grid-template-columns: 1fr; }
  .editorial-note .container { align-items: flex-start; flex-direction: column; gap: 6px; padding-block: 22px; }
  .editorial-note a { margin-left: 0; }
  .article-header-inner { padding-block: 42px 30px; }
  .article-header h1 { font-size: 41px; }
  .article-deck { font-size: 17px; }
  .article-hero { margin-top: 22px; }
  .content-layout { grid-template-columns: 1fr; gap: 38px; padding-block: 36px 58px; }
  .article { font-size: 17px; }
  .sidebar { position: static; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
