/*
Theme Name: Michael J. Jepson
Theme URI: https://michaeljjepson.com/
Author: Michael J. Jepson
Description: Custom editorial WordPress theme for Michael J. Jepson — Health, Wellness & Bio-Optimization Researcher.
Version: 1.0.0
Text Domain: michael-j-jepson
*/

:root {
    --primary: #0F2D53;
    --text: #2E3943;
    --background: #F7F9FA;
    --white: #FFFFFF;
    --accent: #6B8E7A;
    --light-accent: #EAF1ED;
    --border: #DCE3E7;
    --max-width: 1180px;
    --radius: 14px;
    --shadow: 0 12px 35px rgba(15,45,83,.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: "Inter", Arial, sans-serif;
    line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
.container { width: min(100% - 40px, var(--max-width)); margin-inline: auto; }

.site-header {
    background: rgba(247,249,250,.96);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
}
.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand {
    text-decoration: none;
    color: var(--primary);
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.brand-name {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.35rem;
    font-weight: 600;
}
.brand-tag {
    font-size: .72rem;
    letter-spacing: .04em;
    color: var(--text);
    margin-top: 5px;
}
.main-nav ul { list-style: none; display: flex; gap: 25px; margin: 0; padding: 0; align-items: center; }
.main-nav a { text-decoration: none; color: var(--text); font-size: .94rem; }
.main-nav a:hover { color: var(--primary); }

.menu-toggle { display:none; border:1px solid var(--border); background:var(--white); padding:9px 12px; border-radius:8px; color:var(--primary); }

.hero { padding: 92px 0 85px; background: var(--white); }
.hero-grid { display:grid; grid-template-columns: 1.05fr .95fr; gap:70px; align-items:center; }
.eyebrow { color:var(--accent); font-size:.78rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; margin:0 0 18px; }
h1,h2,h3,h4 { font-family:"Playfair Display", Georgia, serif; color:var(--primary); line-height:1.18; margin-top:0; }
h1 { font-size: clamp(2.8rem, 6vw, 4.7rem); margin-bottom:22px; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size:1.45rem; }
.hero-lead { font-size:1.25rem; max-width:650px; color:var(--primary); }
.hero-copy { max-width:650px; }
.hero-actions { display:flex; flex-wrap:wrap; gap:14px; margin-top:30px; }
.btn { display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:0 22px; border-radius:8px; text-decoration:none; font-weight:600; border:1px solid var(--primary); }
.btn-primary { background:var(--primary); color:var(--white); }
.btn-secondary { background:transparent; color:var(--primary); }
.hero-note { margin-top:28px; color:#65727c; font-size:.9rem; }
.portrait-placeholder {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    border-radius: 18px;
    background: linear-gradient(145deg, #e9eef1, #f7f9fa);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.portrait-placeholder img {
    width: 100%;
    height: auto;
    display: block;
}
.portrait-placeholder span {
    margin-bottom:34px;
    background:rgba(255,255,255,.9);
    padding:12px 18px;
    border-radius:8px;
    color:var(--primary);
    font-weight:600;
}

.section { padding: 88px 0; }
.section-light { background:var(--white); }
.section-green { background:var(--light-accent); }
.section-intro { max-width:720px; margin-bottom:42px; }
.section-intro p { font-size:1.08rem; }

.explore-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.card {
    background:var(--white);
    border:1px solid var(--border);
    border-radius:var(--radius);
    padding:28px;
    box-shadow:0 5px 18px rgba(15,45,83,.035);
}
.card p { margin-bottom:0; }
.section-green .card { background:rgba(255,255,255,.68); }

.principles { display:grid; grid-template-columns:repeat(5,1fr); gap:18px; }
.principle-number { color:var(--accent); font-weight:700; font-size:.8rem; letter-spacing:.08em; }
.principle h3 { margin:10px 0 8px; }

.insight-grid, .project-grid, .approach-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.post-card { background:var(--white); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; }
.post-card-content { padding:24px; }
.post-card .meta { font-size:.8rem; color:#6b7780; }
.read-more { font-weight:700; text-decoration:none; }

.project-card { border:1px solid var(--border); border-radius:var(--radius); padding:32px; background:var(--white); }
.project-label { color:var(--accent); text-transform:uppercase; font-size:.76rem; font-weight:700; letter-spacing:.1em; }

.about-grid { display:grid; grid-template-columns:.75fr 1.25fr; gap:60px; align-items:center; }
.about-placeholder { min-height:390px; border-radius:18px; background:#e9eef1; border:1px solid var(--border); }

.newsletter { text-align:center; max-width:760px; margin:auto; }
.newsletter-form { display:flex; max-width:580px; margin:25px auto 0; gap:10px; }
.newsletter-form input { flex:1; min-height:48px; border:1px solid var(--border); border-radius:8px; padding:0 14px; font:inherit; }

.final-cta { background:var(--primary); color:var(--white); text-align:center; }
.final-cta h2 { color:var(--white); }
.final-cta p { max-width:700px; margin:0 auto 25px; }
.final-cta .btn-secondary { border-color:var(--white); color:var(--white); }

.site-footer { background:#102b4a; color:#dce5ec; padding:55px 0 25px; }
.footer-grid { display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:40px; }
.site-footer h3 { color:var(--white); font-size:1.2rem; }
.site-footer a { color:#dce5ec; text-decoration:none; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.15); margin-top:35px; padding-top:20px; font-size:.82rem; }

.page-hero { padding:70px 0; background:var(--white); border-bottom:1px solid var(--border); }
.content-area { padding:70px 0; }
.content-narrow { max-width:820px; margin:auto; }
.content-area h2 { margin-top:45px; }
.wp-post-image { border-radius:14px; margin-bottom:25px; }

@media (max-width: 900px) {
    .hero-grid, .about-grid { grid-template-columns:1fr; }
    .hero { padding-top:65px; }
    .explore-grid, .insight-grid, .project-grid, .approach-grid { grid-template-columns:repeat(2,1fr); }
    .principles { grid-template-columns:repeat(2,1fr); }
    .footer-grid { grid-template-columns:1fr 1fr; }
    .main-nav { display:none; position:absolute; left:20px; right:20px; top:78px; background:var(--white); border:1px solid var(--border); padding:18px; border-radius:10px; box-shadow:var(--shadow); }
    .main-nav.is-open { display:block; }
    .main-nav ul { flex-direction:column; align-items:flex-start; }
    .menu-toggle { display:block; }
}
@media (max-width: 620px) {
    .container { width:min(100% - 28px, var(--max-width)); }
    .section { padding:65px 0; }
    .explore-grid, .insight-grid, .project-grid, .approach-grid, .principles, .footer-grid { grid-template-columns:1fr; }
    .hero-grid { gap:35px; }
    .portrait-placeholder { min-height:380px; }
    .newsletter-form { flex-direction:column; }
}
