/*
Theme Name: Michael Lielacher
Theme URI: https://michaellielacher.com
Author: Rise Up Media
Description: Custom lightweight theme for michaellielacher.com — dark blue / royal blue / white design system applied across the homepage, blog, and every inner page.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: michael-lielacher
*/

/* ==========================================================================
   Design tokens — change a value here and it updates the whole site.
   ========================================================================== */
:root{
  --navy:#071a3d;
  --navy-light:#123072;
  --cream:#eef3fb;
  --paper:#ffffff;
  --ink:#101828;
  --ink-soft:#54607a;
  --royal:#2f5fe8;
  --royal-light:#6d93f2;
  --line:#dbe4f5;
  --radius:14px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:'Inter', system-ui, -apple-system, sans-serif;
  color:var(--ink);
  background:var(--cream);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{font-family:'Playfair Display', Georgia, serif; font-weight:700; letter-spacing:-0.01em; margin:0;}
p{margin:0;}
a{color:var(--royal); text-decoration:none;}
ul{margin:0; padding:0;}
img{max-width:100%; height:auto; display:block;}
.container{max-width:1120px; margin:0 auto; padding:0 24px;}
section{padding:96px 0;}
@media (max-width:768px){ section{padding:64px 0;} }
main{display:block;}

/* ==========================================================================
   Nav (site-wide — appears on every page)
   ========================================================================== */
header.site-nav{
  position:sticky; top:0; z-index:50;
  background:rgba(7,26,61,0.96);
  backdrop-filter:blur(6px);
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 24px; max-width:1120px; margin:0 auto;
}
.brand{
  display:flex; align-items:center; gap:12px;
  color:var(--cream); font-family:'Playfair Display', serif; font-weight:700; font-size:1.15rem;
}
.brand .mark{
  width:38px; height:38px; border-radius:50%;
  border:1.5px solid var(--royal-light);
  display:flex; align-items:center; justify-content:center;
  font-size:0.85rem; letter-spacing:0.03em; color:var(--royal-light);
}
nav.links{display:flex; gap:32px;}
nav.links a{
  color:#cdd6e2; font-size:0.92rem; font-weight:500; letter-spacing:0.01em;
  transition:color .2s ease;
}
nav.links a:hover{color:var(--royal-light);}
.nav-cta{
  background:var(--royal); color:var(--navy); font-weight:600; font-size:0.88rem;
  padding:10px 20px; border-radius:999px; transition:background .2s ease;
  white-space:nowrap;
}
.nav-cta:hover{background:var(--royal-light);}
.nav-toggle{display:none; background:none; border:none; color:var(--cream); font-size:1.5rem; cursor:pointer;}

@media (max-width:860px){
  nav.links{
    position:absolute; top:100%; left:0; right:0;
    background:var(--navy); flex-direction:column; gap:0;
    max-height:0; overflow:hidden; transition:max-height .3s ease;
  }
  nav.links.open{max-height:320px; padding:8px 0;}
  nav.links a{padding:14px 24px; border-top:1px solid rgba(255,255,255,0.06); display:block;}
  .nav-cta{display:none;}
  .nav-toggle{display:block;}
}

/* ==========================================================================
   Hero (homepage only)
   ========================================================================== */
.hero{
  background:
    radial-gradient(circle at 82% 12%, rgba(47,95,232,0.28), transparent 45%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  color:var(--cream);
  padding:120px 0 100px;
  position:relative;
  overflow:hidden;
}
.hero::after{
  content:"";
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size:64px 64px;
  mask-image:linear-gradient(to bottom, black, transparent 85%);
  pointer-events:none;
}
.hero .container{position:relative; z-index:1;}
.eyebrow{
  display:inline-block; color:var(--royal-light); font-size:0.82rem; font-weight:600;
  letter-spacing:0.14em; text-transform:uppercase; margin-bottom:22px;
}
.hero h1{
  font-size:clamp(2.2rem, 4.6vw, 3.4rem); line-height:1.12; max-width:820px; margin-bottom:26px;
}
.hero h1 .accent{color:var(--royal-light);}
.hero p.lede{
  font-size:1.15rem; color:#c9d2de; max-width:600px; margin-bottom:40px; font-weight:400;
}
.cta-row{display:flex; gap:16px; flex-wrap:wrap;}
.btn-primary{
  background:var(--royal); color:var(--navy); font-weight:600; padding:15px 30px;
  border-radius:999px; font-size:0.95rem; transition:transform .2s ease, background .2s ease;
  display:inline-block;
}
.btn-primary:hover{background:var(--royal-light); transform:translateY(-1px);}
.btn-secondary{
  border:1.5px solid rgba(255,255,255,0.35); color:var(--cream); font-weight:600;
  padding:15px 30px; border-radius:999px; font-size:0.95rem; transition:border-color .2s ease, background .2s ease;
  display:inline-block;
}
.btn-secondary:hover{border-color:var(--royal-light); background:rgba(255,255,255,0.05);}

/* ==========================================================================
   Page banner — the "hero, but slim" used on every inner page (blog index,
   single post, page.php, search, 404) so they visually read as the same site.
   ========================================================================== */
.page-banner{
  background:linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  color:var(--cream);
  padding:72px 0 56px;
}
.page-banner .eyebrow{margin-bottom:14px;}
.page-banner h1{font-size:clamp(1.8rem,3.4vw,2.6rem); max-width:760px;}
.page-banner p{color:#c9d2de; margin-top:14px; max-width:640px; font-size:1.02rem;}

/* ==========================================================================
   Stats strip
   ========================================================================== */
.stats{background:var(--paper); border-bottom:1px solid var(--line); padding:0;}
.stats .container{display:grid; grid-template-columns:repeat(3,1fr); padding:44px 24px;}
.stat{text-align:center; padding:0 16px; border-left:1px solid var(--line);}
.stat:first-child{border-left:none;}
.stat .num{font-family:'Playfair Display', serif; font-size:2rem; color:var(--navy); font-weight:700;}
.stat .label{font-size:0.85rem; color:var(--ink-soft); margin-top:6px; letter-spacing:0.01em;}
@media (max-width:640px){
  .stats .container{grid-template-columns:1fr; gap:24px;}
  .stat{border-left:none; border-top:1px solid var(--line); padding-top:24px;}
  .stat:first-child{border-top:none; padding-top:0;}
}

/* ==========================================================================
   Section headers
   ========================================================================== */
.section-head{max-width:640px; margin-bottom:52px;}
.section-head .eyebrow{color:var(--royal);}
.section-head h2{font-size:clamp(1.7rem,3vw,2.3rem); color:var(--navy); margin-bottom:14px;}
.section-head p{color:var(--ink-soft); font-size:1.02rem;}

/* ==========================================================================
   About (homepage)
   ========================================================================== */
.about-grid{display:grid; grid-template-columns:0.9fr 1.4fr; gap:64px; align-items:start;}
@media (max-width:820px){ .about-grid{grid-template-columns:1fr; gap:36px;} }
.portrait{
  width:100%; aspect-ratio:4/5; border-radius:var(--radius);
  background:linear-gradient(155deg, var(--navy) 0%, var(--navy-light) 100%);
  display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden;
}
.portrait .initials{
  font-family:'Playfair Display', serif; font-size:4.5rem; color:var(--royal-light); font-weight:700;
  border:1.5px solid rgba(47,95,232,0.45); border-radius:50%;
  width:150px; height:150px; display:flex; align-items:center; justify-content:center;
}
.portrait .tag{position:absolute; bottom:20px; left:20px; right:20px; color:#cdd6e2; font-size:0.8rem; text-align:center; opacity:0.75;}
.about-copy p{color:var(--ink-soft); margin-bottom:18px; font-size:1.03rem;}
.about-copy p strong{color:var(--ink); font-weight:600;}
.credentials{list-style:none; margin-top:28px; display:grid; gap:12px;}
.credentials li{display:flex; gap:12px; align-items:flex-start; font-size:0.95rem; color:var(--ink-soft);}
.credentials li::before{content:"—"; color:var(--royal); font-weight:700; flex-shrink:0;}

/* ==========================================================================
   Focus areas (homepage)
   ========================================================================== */
.focus-section{background:var(--navy);}
.focus-section .section-head h2, .focus-section .section-head p{color:var(--cream);}
.focus-section .section-head p{color:#aeb8c6;}
.focus-section .eyebrow{color:var(--royal-light);}
.focus-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:24px;}
@media (max-width:720px){ .focus-grid{grid-template-columns:1fr;} }
.focus-card{
  background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.08);
  border-radius:var(--radius); padding:32px; transition:border-color .2s ease, background .2s ease;
}
.focus-card:hover{border-color:rgba(47,95,232,0.45); background:rgba(255,255,255,0.06);}
.focus-card .icon{
  width:44px; height:44px; border-radius:10px; background:rgba(47,95,232,0.18);
  display:flex; align-items:center; justify-content:center; margin-bottom:20px;
  color:var(--royal-light); font-size:1.2rem;
}
.focus-card h3{color:var(--cream); font-size:1.15rem; margin-bottom:10px;}
.focus-card p{color:#aeb8c6; font-size:0.94rem;}

/* ==========================================================================
   Insights / newsletter band (homepage)
   ========================================================================== */
.insights-band{background:var(--paper);}
.insights-inner{
  display:grid; grid-template-columns:1.1fr 0.9fr; gap:56px; align-items:center;
  background:var(--cream); border:1px solid var(--line); border-radius:20px; padding:56px;
}
@media (max-width:820px){ .insights-inner{grid-template-columns:1fr; padding:36px 28px;} }
.insights-inner h2{color:var(--navy); font-size:1.9rem; margin-bottom:16px;}
.insights-inner p{color:var(--ink-soft); margin-bottom:0;}
.subscribe-box{background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); padding:28px;}
.subscribe-box label{font-size:0.85rem; font-weight:600; color:var(--ink); display:block; margin-bottom:10px;}
.subscribe-row{display:flex; gap:10px;}
.subscribe-row input{
  flex:1; padding:13px 16px; border:1px solid var(--line); border-radius:999px;
  font-family:inherit; font-size:0.92rem; color:var(--ink);
}
.subscribe-row input:focus{outline:2px solid var(--royal-light); outline-offset:1px;}
.subscribe-row button{
  background:var(--navy); color:var(--cream); border:none; border-radius:999px;
  padding:13px 22px; font-weight:600; font-size:0.9rem; cursor:pointer; white-space:nowrap;
  transition:background .2s ease;
}
.subscribe-row button:hover{background:var(--navy-light);}
.subscribe-note{font-size:0.78rem; color:var(--ink-soft); margin-top:12px;}

/* ==========================================================================
   Contact (homepage)
   ========================================================================== */
.contact-section{background:linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%); color:var(--cream); text-align:center;}
.contact-section h2{font-size:clamp(1.8rem,3.4vw,2.5rem); margin-bottom:18px;}
.contact-section p{color:#c9d2de; max-width:520px; margin:0 auto 36px; font-size:1.05rem;}
.contact-links{display:flex; gap:16px; justify-content:center; flex-wrap:wrap;}

/* ==========================================================================
   Blog index / archive / search results — post cards
   ========================================================================== */
.post-list{padding:80px 0 96px;}
.post-grid{display:grid; grid-template-columns:1fr; gap:24px; max-width:820px; margin:0 auto;}
.post-card{
  background:var(--paper); border:1px solid var(--line); border-radius:var(--radius);
  padding:32px; transition:border-color .2s ease, box-shadow .2s ease;
}
.post-card:hover{border-color:var(--royal-light); box-shadow:0 8px 24px rgba(7,26,61,0.08);}
.post-card .post-date{font-size:0.82rem; color:var(--ink-soft); letter-spacing:0.03em; text-transform:uppercase;}
.post-card h2{font-size:1.4rem; margin:10px 0 12px; color:var(--navy);}
.post-card h2 a{color:inherit;}
.post-card h2 a:hover{color:var(--royal);}
.post-card .excerpt{color:var(--ink-soft); font-size:0.98rem; margin-bottom:16px;}
.post-card .read-more{font-size:0.9rem; font-weight:600; color:var(--royal);}
.post-card .read-more:hover{color:var(--navy);}
.pagination{display:flex; justify-content:center; gap:12px; margin-top:48px;}
.pagination a, .pagination span{
  padding:10px 18px; border:1px solid var(--line); border-radius:999px; font-size:0.9rem; color:var(--ink);
}
.pagination a:hover{border-color:var(--royal-light); color:var(--royal);}
.pagination .current{background:var(--navy); color:var(--cream); border-color:var(--navy);}
.no-results{max-width:640px; margin:0 auto; text-align:center; color:var(--ink-soft); padding:40px 0;}

/* ==========================================================================
   Single post / generic page content ("prose" typography)
   ========================================================================== */
.entry-wrap{padding:72px 0 96px;}
.entry-content{max-width:760px; margin:0 auto;}
.entry-content h2{font-size:1.7rem; color:var(--navy); margin:40px 0 16px;}
.entry-content h3{font-size:1.35rem; color:var(--navy); margin:32px 0 14px;}
.entry-content p{margin-bottom:20px; font-size:1.05rem; color:var(--ink);}
.entry-content a{text-decoration:underline; text-decoration-color:var(--royal-light);}
.entry-content a:hover{color:var(--navy);}
.entry-content ul, .entry-content ol{margin:0 0 20px 1.3em;}
.entry-content li{margin-bottom:8px; font-size:1.05rem;}
.entry-content blockquote{
  border-left:3px solid var(--royal); margin:28px 0; padding:4px 0 4px 22px;
  font-style:italic; color:var(--ink-soft); font-size:1.08rem;
}
.entry-content img{border-radius:var(--radius); margin:28px 0;}
.entry-content pre, .entry-content code{
  background:var(--cream); border-radius:8px; font-family:ui-monospace, Menlo, Consolas, monospace;
}
.entry-content pre{padding:18px; overflow-x:auto; margin:24px 0;}
.entry-content code{padding:2px 6px; font-size:0.92em;}
.entry-meta{max-width:760px; margin:0 auto 8px; color:var(--ink-soft); font-size:0.88rem; letter-spacing:0.02em; text-transform:uppercase;}
.entry-title{max-width:760px; margin:8px auto 32px; font-size:clamp(1.8rem,3.2vw,2.4rem); color:var(--navy);}
.entry-nav{max-width:760px; margin:56px auto 0; display:flex; justify-content:space-between; gap:16px; border-top:1px solid var(--line); padding-top:24px;}
.entry-nav a{font-size:0.92rem; font-weight:600; color:var(--royal);}
.entry-nav a:hover{color:var(--navy);}

/* ==========================================================================
   Footer (site-wide)
   ========================================================================== */
footer.site-footer{background:var(--navy); border-top:1px solid rgba(255,255,255,0.08); padding:32px 0; color:#8a94a3; font-size:0.85rem;}
.footer-inner{display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px;}
.social-row{display:flex; gap:18px;}
.social-row a{color:#8a94a3; transition:color .2s ease; font-size:0.85rem;}
.social-row a:hover{color:var(--royal-light);}

/* ==========================================================================
   Reveal-on-scroll (homepage sections)
   ========================================================================== */
.reveal{opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease;}
.reveal.is-visible{opacity:1; transform:translateY(0);}
