/*
Theme Name: NoMiBlogs
Theme URI: https://nomiblogs.com
Description: Independent investigative local-news theme for North Miami. Newspaper masthead layout in navy, gold, and cream.
Author: NoMiBlogs
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.6
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: nomiblogs
*/

:root{
  --navy:#1a2332;
  --navy-2:#2a3548;
  --tan:#c9a876;
  --tan-dark:#a8865c;
  --cream:#f5f1e8;
  --card-border:#ddd6c4;
  --ink:#3a3630;
  --muted:#8a8368;
}
*{box-sizing:border-box;}
body{
  margin:0;
  background:#e9e4d6;
  font-family:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  color:var(--ink);
  line-height:1.6;
}
a{color:inherit;}
img{max-width:100%;height:auto;}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0;}
.skip-link{position:absolute;left:-9999px;top:0;background:var(--navy);color:var(--cream);padding:10px 16px;z-index:100;}
.skip-link:focus{left:8px;}
:focus-visible{outline:2px solid var(--tan-dark);outline-offset:2px;}

.page{
  max-width:1080px;
  margin:0 auto;
  background:var(--cream);
  box-shadow:0 0 40px rgba(0,0,0,0.08);
  min-height:100vh;
}

.utility-bar{
  background:var(--navy);
  padding:8px 32px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
}
.utility-bar span{
  color:var(--tan);
  font-size:11px;
  letter-spacing:1.5px;
  text-transform:uppercase;
}
.utility-bar span.site{ color:#cfc7ae; }

.masthead{
  text-align:center;
  padding:24px 20px 20px;
  border-bottom:3px solid var(--navy);
  background:#f9f8f6;
}
.brand-logo{ display:inline-block; line-height:0; }
.brand-logo img{
  display:block;
  width:auto;
  height:auto;
  max-height:170px;
  max-width:88vw;
  margin:0 auto;
}
@media (max-width:720px){
  .brand-logo img{ max-height:120px; }
}
.masthead .brand{
  font-family:'Playfair Display',Georgia,serif;
  font-size:52px;
  font-weight:600;
  color:var(--navy);
  letter-spacing:0.5px;
  margin:0;
  text-decoration:none;
  display:inline-block;
}
.masthead .tagline{
  color:var(--tan-dark);
  font-size:13px;
  letter-spacing:3px;
  text-transform:uppercase;
  margin-top:6px;
}

nav.primary{
  background:var(--navy);
  padding:0 32px;
  display:flex;
  align-items:center;
  gap:28px;
  flex-wrap:wrap;
}
nav.primary ul{
  list-style:none;margin:0;padding:0;display:flex;gap:28px;flex-wrap:wrap;
}
nav.primary a{
  color:#cfc7ae;
  text-decoration:none;
  font-size:13px;
  padding:14px 0;
  display:inline-block;
  border-bottom:2px solid transparent;
  transition:color .15s,border-color .15s;
}
nav.primary a:hover,
nav.primary .current-menu-item>a,
nav.primary a.active{
  color:var(--cream);
  border-bottom-color:var(--tan);
}
.search-box{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:8px;
  background:var(--navy-2);
  border-radius:5px;
  padding:5px 10px;
}
.search-box input[type=search]{
  background:transparent;border:none;color:#cfc7ae;font-size:13px;font-family:inherit;
  width:130px;outline:none;
}
.search-box input::placeholder{color:#8a92a3;}
.search-box button{background:none;border:none;color:#8a92a3;cursor:pointer;padding:0;display:flex;}
.icon{width:16px;height:16px;display:inline-block;vertical-align:-3px;}

main.content{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:28px;
  padding:32px;
}
.single-col{display:block;max-width:760px;margin:0 auto;padding:40px 32px;}

.feature-card{
  background:#fff;
  border:1px solid var(--card-border);
  border-radius:8px;
  overflow:hidden;
  margin-bottom:24px;
}
.feature-img{
  height:220px;
  background:linear-gradient(135deg,var(--tan) 0%,var(--tan-dark) 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--cream);
  font-size:13px;
  letter-spacing:1px;
  background-size:cover;
  background-position:center;
}
.feature-body{ padding:22px 24px 20px; }

.tag{
  display:inline-block;
  background:var(--navy);
  color:var(--tan);
  font-size:11px;
  letter-spacing:0.5px;
  padding:4px 10px;
  border-radius:3px;
  text-transform:uppercase;
  text-decoration:none;
}
.tag.light{ background:#efe8d6; color:#6b5c3a; }

h2.headline,h3.headline{
  font-family:'Playfair Display',Georgia,serif;
  font-weight:600;
  color:var(--navy);
  line-height:1.25;
}
h2.headline{ font-size:27px; margin:14px 0 8px; }
h3.headline{ font-size:17px; margin:10px 0 8px; line-height:1.3; }
.headline a{ text-decoration:none; color:inherit; }
.headline a:hover{ color:var(--tan-dark); }

.excerpt{ color:#6b6555; font-size:14px; line-height:1.6; margin:0; }
.meta{ display:flex; gap:16px; margin-top:14px; color:var(--muted); font-size:12px; flex-wrap:wrap; }

.story-grid{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.story-card{
  background:#fff;
  border:1px solid var(--card-border);
  border-radius:8px;
  padding:0;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.story-card .card-img{
  display:block;
  height:150px;
  background:linear-gradient(135deg,var(--tan) 0%,var(--tan-dark) 100%);
  background-size:cover;
  background-position:center;
}
.story-card .card-body{ padding:18px; }

aside.sidebar{ display:flex; flex-direction:column; gap:18px; }
.widget{ border-radius:8px; padding:20px; }
.widget.tip{ background:var(--navy); }
.widget.newsletter{ background:#fff; border:1px solid var(--card-border); }
.widget.donate{ background:#efe6d2; }
.widget-title{ font-size:14px; font-weight:600; margin:0 0 6px; display:flex; align-items:center; gap:8px; }
.widget.tip .widget-title{ color:var(--tan); }
.widget.newsletter .widget-title{ color:var(--navy); }
.widget.donate .widget-title{ color:#6b5c38; }
.widget p{ font-size:12.5px; line-height:1.6; margin:0 0 14px; }
.widget.tip p{ color:#d8d2c2; }
.widget.newsletter p{ color:#6b6555; }
.widget.donate p{ color:#78704f; }
.widget input{
  width:100%; padding:9px 12px; border-radius:5px; border:1px solid #cfc7ae;
  font-size:13px; margin-bottom:10px; font-family:inherit;
}
.widget button,.btn{
  width:100%; padding:10px; border:none; border-radius:5px; font-size:13px;
  font-weight:600; font-family:inherit; cursor:pointer; text-align:center;
  display:block; text-decoration:none;
}
.btn-tan{ background:var(--tan); color:var(--navy); }
.btn-navy{ background:var(--navy); color:var(--cream); }
.btn-tandark{ background:var(--tan-dark); color:var(--cream); }

.entry{ }
.entry .tag{ margin-bottom:10px; }
.entry h1.headline{
  font-family:'Playfair Display',Georgia,serif;font-weight:600;color:var(--navy);
  font-size:36px;line-height:1.15;margin:12px 0 10px;
}
.entry .entry-meta{ color:var(--muted); font-size:13px; margin-bottom:20px; }
.entry .featured{ border-radius:8px; overflow:hidden; margin:0 0 24px; }
.entry-content{ font-size:17px; line-height:1.75; color:var(--ink); }
.entry-content p{ margin:0 0 1.2em; }
.entry-content a{ color:var(--tan-dark); text-decoration:underline; }
.entry-content h2{ font-family:'Playfair Display',Georgia,serif; color:var(--navy); font-size:24px; margin:1.6em 0 .5em; }
.entry-content h3{ font-family:'Playfair Display',Georgia,serif; color:var(--navy); font-size:20px; margin:1.4em 0 .4em; }
.entry-content blockquote{
  border-left:3px solid var(--tan); margin:1.5em 0; padding:.2em 0 .2em 1.2em;
  color:#5a5443; font-style:italic;
}
.entry-content img{ border-radius:6px; }

.section-title{
  font-family:'Playfair Display',Georgia,serif;color:var(--navy);font-size:22px;
  font-weight:600;margin:0 0 18px;padding-bottom:10px;border-bottom:2px solid var(--card-border);
}
.pagination{ margin:28px 0 0; display:flex; gap:10px; flex-wrap:wrap; }
.pagination a,.pagination span{
  padding:8px 12px;border:1px solid var(--card-border);border-radius:5px;
  text-decoration:none;font-size:13px;background:#fff;color:var(--navy);
}
.pagination .current{ background:var(--navy); color:var(--cream); border-color:var(--navy); }

footer.site{
  background:var(--navy);
  text-align:center;
  padding:22px 20px;
}
footer.site span,footer.site a{ color:#8a92a3; font-size:12px; text-decoration:none; }
footer.site a:hover{ color:var(--tan); }

@media (max-width:720px){
  main.content{ grid-template-columns:1fr; }
  .story-grid{ grid-template-columns:1fr; }
  nav.primary{ flex-wrap:wrap; gap:14px; }
  nav.primary ul{ gap:14px; }
  .search-box{ margin-left:0; order:99; width:100%; }
  .search-box input[type=search]{ width:100%; }
  .masthead .brand{ font-size:38px; }
  .utility-bar{ padding:8px 16px; }
  .single-col{ padding:28px 18px; }
}
