/*
Theme Name: Stratigima
Theme URI: https://www.stratigima.org
Author: Dr Josef Demergis
Description: Bilingual (English / Greek) personal scientific website theme for Dr Josef Demergis: international relations, security studies, strategic studies and information warfare. A block theme: edit every section in Appearance > Editor.
Version: 1.4.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stratigima
*/

:root{
  --st-ink:#0E1726;
  --st-ink-2:#111C2E;
  --st-line-dark:#22304A;
  --st-muted-dark:#9AA8BF;
  --st-soft-dark:#C9D2E0;
  --st-paper:#F4F5F7;
  --st-line:#C9D0DA;
  --st-body:#2D3748;
  --st-muted:#4A5568;
  --st-accent:#F08A4B;
  --st-accent-dark:#B23A0B;
  --st-mono:"IBM Plex Mono", ui-monospace, monospace;
  --st-serif:"IBM Plex Serif", Georgia, serif;
}

html{scroll-behavior:smooth}
body{margin:0;background:var(--st-paper)}
.wp-site-blocks{padding:0}
.wp-site-blocks > *{margin-block-start:0}
a{color:var(--st-ink)}
a:hover{color:var(--st-accent-dark)}

/* Shared */
.st-inner{max-width:1200px;margin-left:auto !important;margin-right:auto !important}
.st-section{padding:112px 64px;margin:0 !important}
.st-label{font-family:var(--st-mono);font-size:13px !important;letter-spacing:.14em;color:var(--st-accent-dark);text-transform:uppercase;margin:0 0 16px !important}
.st-h2{font-family:var(--st-serif) !important;font-weight:500 !important;font-size:clamp(32px,4vw,44px) !important;line-height:1.15 !important;margin:0 0 40px !important;max-width:800px}
.st-dark{background:var(--st-ink);color:#fff}
.st-dark a{color:#fff}
.st-dark .st-label{color:var(--st-accent)}
.st-white{background:#fff;border-top:1px solid #DDE2E9;border-bottom:1px solid #DDE2E9}

/* Header */
.st-header{background:var(--st-ink);color:#E8ECF2;padding:16px 64px;border-bottom:1px solid var(--st-line-dark);margin:0 !important}
.st-header .st-inner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px}
.st-header .st-brand{margin:0;font-family:var(--st-mono);font-size:15px;letter-spacing:.18em;font-weight:500;text-transform:uppercase;display:flex;align-items:center;gap:12px}
.st-header .st-brand a::before{content:"";width:22px;height:22px;border:2px solid var(--st-accent);display:inline-block}
.st-header .st-brand a{display:inline-flex;align-items:center;gap:12px;color:#fff;text-decoration:none}
.st-header .wp-block-navigation{font-size:15px;color:#E8ECF2}
.st-header .wp-block-navigation a{color:#E8ECF2;text-decoration:none;padding:10px 0}
.st-header .wp-block-navigation a:hover{text-decoration:underline;text-underline-offset:4px}
.st-header .wp-block-navigation__responsive-container.is-menu-open{background:var(--st-ink) !important;color:#fff !important}

/* Hero */
.st-hero{background-color:var(--st-ink);color:#fff;padding:96px 64px 120px;margin:0 !important;
  background-image:linear-gradient(rgba(91,110,143,.18) 1px,transparent 1px),linear-gradient(90deg,rgba(91,110,143,.18) 1px,transparent 1px);
  background-size:48px 48px}
.st-kicker{font-family:var(--st-mono);font-size:14px !important;letter-spacing:.14em;color:var(--st-accent);margin:0 0 28px !important}
.st-hero-title{font-family:var(--st-serif) !important;font-weight:500 !important;font-size:clamp(40px,5vw,64px) !important;line-height:1.1 !important;margin:0 0 28px !important;color:#fff}
.st-lead{font-size:22px !important;line-height:1.5;color:var(--st-soft-dark);max-width:760px;margin:0 0 40px !important}
.st-btn-primary .wp-block-button__link{background:var(--st-accent) !important;color:var(--st-ink) !important;font-weight:600;border-radius:0 !important;padding:14px 24px !important;font-size:16px}
.st-btn-outline .wp-block-button__link{background:transparent !important;color:#fff !important;border:1px solid #5B6E8F !important;border-radius:0 !important;padding:14px 24px !important;font-size:16px}
.st-facts{gap:1px !important;background:var(--st-line-dark);border:1px solid var(--st-line-dark);margin-top:56px !important}
.st-facts > .wp-block-column{background:var(--st-ink-2);padding:20px 24px}
.st-facts p{margin:0}
.st-fact-label{font-family:var(--st-mono);font-size:12px !important;letter-spacing:.12em;color:var(--st-muted-dark);margin-bottom:8px !important}

/* About */
.st-about{gap:48px 80px !important}
.st-photo{aspect-ratio:4/5;max-width:320px;background:#E3E7ED;border:1px solid var(--st-line);display:flex;align-items:center;justify-content:center;font-family:var(--st-mono);font-size:13px;color:var(--st-muted)}
.st-photo img{width:100%;height:100%;object-fit:cover}
.st-portrait{max-width:320px;margin:0 !important}
.st-portrait img{width:100%;aspect-ratio:4/5;object-fit:cover;display:block;border:1px solid var(--st-line)}
.st-body p,.st-body{font-size:18px;line-height:1.7;color:var(--st-body)}
.st-links .wp-block-button__link{background:transparent !important;color:var(--st-ink) !important;border:1px solid var(--st-line) !important;border-radius:0 !important;padding:12px 20px !important;font-size:15px}
.st-links .st-btn-strong .wp-block-button__link{border-color:var(--st-ink) !important;font-weight:500}

/* Research */
.st-areas{gap:24px !important}
.st-area{border-top:3px solid var(--st-ink);padding-top:24px}
.st-area.st-area-accent{border-top-color:var(--st-accent)}
.st-area h3{font-size:22px !important;font-weight:600 !important;margin:12px 0 14px !important}
.st-area p{font-size:16px;line-height:1.65;color:var(--st-body);margin:0}
.st-area-letter{font-family:var(--st-mono);font-size:13px !important;color:var(--st-muted)}

/* Publications */
.st-pubs{border-top:1px solid var(--st-line)}
.st-pub{display:flex;flex-wrap:wrap;gap:8px 32px;padding:28px 0;border-bottom:1px solid var(--st-line);margin:0 !important}
.st-pub > *{margin:0 !important}
.st-pub-meta{flex:0 0 140px;font-family:var(--st-mono);font-size:13px !important;color:var(--st-muted);padding-top:4px}
.st-pub-main{flex:999 1 480px;min-width:0}
.st-pub-title{font-family:var(--st-serif);font-size:22px !important;line-height:1.35;margin:0 0 6px !important}
.st-pub-title a{text-decoration:none}
.st-pub-title a:hover{text-decoration:underline}
.st-pub-src{font-size:15px !important;color:var(--st-muted);margin:0 !important}
.st-more{font-size:15px;font-weight:500;margin-top:32px !important}

/* Analysis (latest posts) */
.st-cards .wp-block-post-template{gap:24px}
.st-card{background:var(--st-ink-2);border:1px solid var(--st-line-dark);padding:28px;height:100%;box-sizing:border-box}
.st-card .wp-block-post-date{font-family:var(--st-mono);font-size:12px;letter-spacing:.12em;color:var(--st-muted-dark);text-transform:uppercase}
.st-card .wp-block-post-title{font-family:var(--st-serif);font-size:22px;line-height:1.35;font-weight:500;margin:14px 0}
.st-card .wp-block-post-title a{color:#fff;text-decoration:none}
.st-card .wp-block-post-title a:hover{color:var(--st-accent)}
.st-card .wp-block-post-excerpt{font-size:15px;line-height:1.6;color:var(--st-soft-dark)}
.st-card .wp-block-post-excerpt__more-link{color:var(--st-accent)}
.st-dark .st-more a{color:var(--st-accent)}

/* Articles (Άρθρα) */
.st-articles{background:#EAEDF1;border-bottom:1px solid #DDE2E9}
.st-articles .st-body{margin:-24px 0 40px !important}
.st-arts{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:24px}
.st-arts > *{margin:0 !important}
.st-art{background:#fff;border:1px solid #DDE2E9;border-top:3px solid var(--st-ink);padding:28px}
.st-art p{margin:0 0 12px !important}
.st-art-meta{font-family:var(--st-mono);font-size:12px !important;letter-spacing:.12em;color:var(--st-muted)}
.st-art-title{font-family:var(--st-serif);font-size:22px !important;line-height:1.35}
.st-art-title a{text-decoration:none}
.st-art-title a:hover{text-decoration:underline}
.st-art-sum{font-size:15px !important;line-height:1.6;color:var(--st-body)}

.st-h3{font-size:22px !important;font-weight:600 !important;margin:0 0 24px !important;font-family:inherit !important}
.st-h3-gap{margin-top:64px !important}
.st-si-title{font-size:20px !important}
.st-pub-src{font-size:14px !important}
.st-media{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:24px}
.st-media > *{margin:0 !important}
.st-card p{margin:0 0 14px !important}
.st-card-kicker{font-family:var(--st-mono);font-size:12px !important;letter-spacing:.12em;color:var(--st-muted-dark)}
.st-card-title{font-family:var(--st-serif);font-size:22px !important;line-height:1.35}
.st-card-title a{color:#fff !important;text-decoration:none}
.st-card-title a:hover{color:var(--st-accent) !important}
.st-card-sum{font-size:15px !important;line-height:1.6;color:var(--st-soft-dark)}

/* Contact */
.st-contact{gap:48px 80px !important}
.st-rows{border-top:1px solid var(--st-line)}
.st-row{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:16px;padding:20px 0;border-bottom:1px solid var(--st-line);margin:0 !important}
.st-row > *{margin:0 !important}
.st-row-label{font-family:var(--st-mono);font-size:13px !important;letter-spacing:.12em;color:var(--st-muted)}
.st-row-value{font-size:17px !important}

/* Footer */
.st-footer{background:var(--st-ink);color:var(--st-muted-dark);padding:32px 24px;margin:0 !important}
.st-footer .st-inner{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;font-size:14px}
.st-footer p{margin:0}
.st-footer a{color:var(--st-muted-dark)}
.st-footer .st-mono{font-family:var(--st-mono);letter-spacing:.1em}

/* Posts and pages */
.st-content{padding:80px 64px;margin:0 !important}
.st-content .st-inner{max-width:760px}
.st-content h1.wp-block-post-title{font-family:var(--st-serif);font-weight:500;font-size:clamp(34px,4vw,48px);line-height:1.15}
.st-content .wp-block-post-content{font-size:18px;line-height:1.75;color:var(--st-body)}
.st-content .wp-block-post-date{font-family:var(--st-mono);font-size:13px;letter-spacing:.12em;color:var(--st-muted);text-transform:uppercase}
.st-list .wp-block-post{padding:28px 0;border-bottom:1px solid var(--st-line)}
.st-list .wp-block-post-title{font-family:var(--st-serif);font-size:26px;font-weight:500;margin:8px 0}
.st-list .wp-block-post-title a{text-decoration:none}

/* Phones */
@media (max-width:720px){
  .st-section,.st-hero,.st-content{padding-left:24px;padding-right:24px}
  .st-section{padding-top:72px;padding-bottom:72px}
  .st-hero{padding-top:56px;padding-bottom:72px}
  .st-header{padding:12px 24px}
  .st-lead{font-size:19px !important}
}
.st-si-title a{text-decoration:none}.st-si-title a:hover{text-decoration:underline}

.st-nw{white-space:nowrap}
.st-sep{color:var(--st-accent)}

/* Language switch (English / Greek) */
.l-en .st-el,.l-el .st-en{display:none !important}
.st-headright{display:flex;flex-wrap:wrap;align-items:center;gap:8px 28px;margin:0 !important}
.st-headright > *{margin:0 !important}
.st-lang-btn{background:transparent;color:#fff;border:1px solid #5B6E8F;font-family:var(--st-mono);font-size:13px;letter-spacing:.1em;min-width:52px;min-height:44px;padding:0 14px;cursor:pointer}
.st-lang-btn:hover{border-color:var(--st-accent);color:var(--st-accent)}
.st-articles .st-intro{margin:-24px 0 40px !important}
.st-pub-title a{text-decoration:none}
/* Events & media list (dark section) */
.st-dark .st-events{border-top-color:var(--st-line-dark)}
.st-dark .st-events .st-pub{border-bottom-color:var(--st-line-dark)}
.st-dark .st-events .st-pub-title a{color:#fff}
.st-dark .st-events .st-pub-title a:hover{color:var(--st-accent)}
.st-dark .st-events .st-pub-src{color:var(--st-soft-dark)}
.st-ev-meta{flex-basis:220px !important;color:var(--st-muted-dark) !important;font-size:12px !important;letter-spacing:.1em}
/* LinkedIn posts */
.st-lis{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.st-li{border-top-color:#0A66C2 !important;padding:24px}
.st-li-text{font-size:16px !important}
.st-li-more a{color:#0A66C2;font-weight:500;text-decoration:none;font-size:14px}
.st-allart{margin-top:24px !important}
.st-articles .st-arts{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
/* Language switch: EN | ΕΛ, active language highlighted */
.st-lang-switch{display:flex}
.st-lang-switch .st-lang-btn + .st-lang-btn{border-left:none}
.l-en .st-lb-en,.l-el .st-lb-el{background:var(--st-accent);color:var(--st-ink);border-color:var(--st-accent);font-weight:600}
.st-lang-btn{min-width:48px;padding:0 12px}
