/*
Theme Name: Victor Caballero
Theme URI: https://victorcaballero.com
Author: Victor Caballero
Description: A modern editorial theme for victorcaballero.com — a personal blog publishing since 2007 on Pasadena civic life, community events, music, energy and more. Clean serif headlines, generous reading layout, category-driven home page, and full support for a very large archive.
Version: 1.1.2
License: GNU General Public License v2 or later
Text Domain: victorcaballero
*/

:root{
  --paper:#faf8f5;
  --card:#ffffff;
  --ink:#22252b;
  --muted:#6a7078;
  --line:#e4ded4;
  --accent:#8c1d2f;       /* deep rose — a nod to Pasadena */
  --accent-dark:#6d1524;
  --navy:#1d2733;
  --gold:#b98a2f;
  --radius:10px;
}

*{box-sizing:border-box}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size:17px;
  line-height:1.65;
}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto}
h1,h2,h3,h4{font-family:Georgia,"Times New Roman",serif;color:var(--navy);line-height:1.22;margin:0 0 .5em;font-weight:700}
h1{font-size:2.2rem}
h2{font-size:1.6rem}
h3{font-size:1.22rem}
p{margin:0 0 1em}
.wrap{max-width:1140px;margin:0 auto;padding:0 20px}

/* Top strip */
.topstrip{background:var(--navy);color:#c9d4df;font-size:.82rem}
.topstrip .wrap{display:flex;justify-content:space-between;gap:14px;padding-top:7px;padding-bottom:7px}
.topstrip a{color:#e8eef4}

/* Header */
.site-header{background:var(--paper);border-bottom:3px double var(--line);padding:18px 0 14px}
.masthead{display:flex;justify-content:space-between;align-items:center;gap:28px}
.brand-block{min-width:0}
.site-name{font-family:Georgia,"Times New Roman",serif;font-size:2.3rem;font-weight:700;letter-spacing:.2px;line-height:1.1}
.site-name a{color:var(--navy);text-decoration:none}
.site-name a:hover{color:var(--accent)}
.site-tagline{color:var(--muted);font-size:.98rem;margin-top:5px;max-width:560px}
.masthead-search{flex:0 0 320px}
.masthead-search .search-form{max-width:320px}
.masthead-links{margin-top:8px;font-size:.85rem;color:var(--muted);text-align:right}
.masthead-links a{font-weight:600}
.main-nav{margin-top:14px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.main-nav ul{list-style:none;margin:0;padding:0;display:flex;justify-content:center;gap:26px;flex-wrap:wrap}
.main-nav a{display:block;padding:11px 2px;color:var(--navy);font-weight:600;font-size:.95rem;text-transform:uppercase;letter-spacing:.6px}
.main-nav a:hover{color:var(--accent);text-decoration:none}


/* Sections + grids */
.section{padding:30px 0}
.section h2.sec-title{border-bottom:2px solid var(--navy);padding-bottom:8px;margin-bottom:22px;display:flex;justify-content:space-between;align-items:baseline}
.section h2.sec-title .more{font-family:-apple-system,"Segoe UI",Roboto,sans-serif;font-size:.85rem;font-weight:700}
.grid{display:grid;gap:22px}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-2{grid-template-columns:repeat(2,1fr)}

/* Featured story */
.featured{display:grid;grid-template-columns:1.5fr 1fr;gap:26px;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.featured .f-media{display:block;min-height:280px;background:#e9e2d6}
.featured .f-media img{width:100%;height:100%;object-fit:cover;display:block}
.featured .f-body{padding:28px 28px 28px 0;display:flex;flex-direction:column}
.featured h3{font-size:1.7rem}
.featured p{color:var(--muted)}
.cat{font-size:.74rem;font-weight:700;text-transform:uppercase;letter-spacing:.7px;color:var(--accent)}
.meta{font-size:.82rem;color:var(--muted)}

/* Post cards */
.post-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column}
.post-card .thumb{display:block;aspect-ratio:16/9;background:#ece5d8;overflow:hidden}
.post-card .thumb img{width:100%;height:100%;object-fit:cover}
.post-card .body{padding:18px 20px;display:flex;flex-direction:column;flex:1}
.post-card h3{font-size:1.12rem;margin:5px 0 8px}
.post-card h3 a{color:var(--navy)}
.post-card h3 a:hover{color:var(--accent)}
.post-card p{color:var(--muted);font-size:.94rem;flex:1}

/* Article layout */
.layout{display:grid;grid-template-columns:1fr 320px;gap:38px;padding:38px 0 60px}
.article{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:36px 42px}
.article h1{margin-bottom:8px}
.article .entry-meta{border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:22px}
.entry-content{font-size:1.06rem}
.entry-content h2{margin-top:1.5em}
.entry-content h3{margin-top:1.3em}
.entry-content ul,.entry-content ol{margin:0 0 1em;padding-left:1.4em}
.entry-content li{margin-bottom:.35em}
.entry-content blockquote{border-left:4px solid var(--accent);margin:1.3em 0;padding:.3em 0 .3em 18px;color:var(--navy);font-family:Georgia,serif;font-style:italic}
.entry-content img{border-radius:6px}
.author-box{display:flex;gap:16px;background:#f4efe6;border:1px solid var(--line);border-radius:var(--radius);padding:18px 20px;margin-top:30px}
.author-box img{border-radius:50%}
.author-box h4{margin-bottom:4px}
.author-box p{font-size:.92rem;color:var(--muted);margin:0}
.post-nav{display:flex;justify-content:space-between;gap:18px;margin-top:26px;font-size:.92rem}
.post-nav a{font-weight:600}

/* Sidebar */
.sidebar .widget{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:20px;margin-bottom:22px}
.widget-title{font-size:1rem;border-bottom:2px solid var(--gold);padding-bottom:6px;margin-bottom:12px}
.widget ul{list-style:none;margin:0;padding:0}
.widget li{margin-bottom:8px;font-size:.95rem}
.widget p{font-size:.94rem;color:var(--muted)}

/* Comments */
.comments-area{margin-top:36px}
.comments-area h3{margin-top:24px}
.comment-list{list-style:none;margin:0;padding:0}
.comment-list li{border-top:1px solid var(--line);padding:16px 0}
.comment-author{font-weight:700;color:var(--navy)}
.comment-meta{font-size:.8rem;color:var(--muted)}
textarea,input[type="text"],input[type="email"],input[type="url"]{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:8px;font:inherit;background:#fff}
input[type="submit"],.btn{display:inline-block;background:var(--accent);color:#fff;border:none;padding:11px 22px;border-radius:8px;font-weight:700;cursor:pointer;font-size:.95rem}
input[type="submit"]:hover,.btn:hover{background:var(--accent-dark);text-decoration:none}

/* Archive/search headers + pagination */
.archive-head{padding:36px 0 4px;text-align:center}
.archive-head p{color:var(--muted)}
.pagination{margin:26px 0 40px;display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.pagination a,.pagination span{padding:8px 14px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--navy)}
.pagination .current{background:var(--navy);color:#fff;border-color:var(--navy)}
.search-form{display:flex;gap:8px;max-width:520px;margin:0 auto;align-items:stretch}
.search-form label{flex:1;display:flex;margin:0}
.search-form .search-field,.search-form input[type="search"]{flex:1;width:100%;padding:11px 14px;border:1px solid var(--line);border-radius:8px;font:inherit;background:#fff}
.search-form .search-submit{flex:0 0 auto}
.search-form button{background:var(--navy);color:#fff;border:none;padding:11px 18px;border-radius:8px;font-weight:700;cursor:pointer}

/* Footer */
.site-footer{background:var(--navy);color:#c3d0dc;margin-top:10px}
.footer-in{padding:42px 0 8px;display:grid;grid-template-columns:2fr 1fr 1fr;gap:30px}
.site-footer h4{color:#fff;font-family:-apple-system,"Segoe UI",Roboto,sans-serif;font-size:.95rem;text-transform:uppercase;letter-spacing:.7px}
.site-footer ul{list-style:none;margin:0;padding:0}
.site-footer li{margin-bottom:7px;font-size:.93rem}
.site-footer a{color:#c3d0dc}
.site-footer a:hover{color:#fff}
.footer-legal{border-top:1px solid #2c3a49;padding:16px 0 24px;font-size:.8rem;color:#8b9cae;text-align:center}

/* Responsive */
@media (max-width:900px){
  .masthead{flex-direction:column;text-align:center;gap:14px}
  .site-tagline{margin-left:auto;margin-right:auto}
  .masthead-search{flex:1 1 auto;width:100%;max-width:420px}
  .masthead-search .search-form{max-width:420px}
  .masthead-links{text-align:center}
  .layout{grid-template-columns:1fr}
  .grid-3{grid-template-columns:1fr 1fr}
  .featured{grid-template-columns:1fr}
  .featured .f-body{padding:22px}
  .footer-in{grid-template-columns:1fr 1fr}
}
@media (max-width:600px){
  .grid-3,.grid-2,.footer-in{grid-template-columns:1fr}
  .site-name{font-size:2rem}
  .article{padding:24px 20px}
  .main-nav ul{gap:16px}
}
