/*
Theme Name: Minimal Grid
Description: Very minimal, responsive, all-white theme — 3-column grid, single column on mobile. Keeps existing markdown editor support.
Version: 1.0
Author: you
*/

:root{
  --max-width: 1024px;
  --gap: 24px;
  --radius: 12px;
  --shadow: 0 6px 18px rgba(0,0,0,0.06);
  --border-style: dotted;
}

/* Google font import fallback for environments without PHP enqueue (keeps minimal) */
@import url('https://fonts.googleapis.com/css2?family=BBH+Sans+Hegarty&family=Stack+Sans+Text:wght@400;700&display=swap');

*{box-sizing: border-box;margin:0;padding:0}
html,body{height:100%}
body{
  background: #fff;
  color:#000;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
 
  font-family: "Stack Sans Text", sans-serif;
  line-height:1.65;
  padding: 32px 20px;
}

h1,h2,h3,h4{

 font-family: "BBH Sans Hegarty", sans-serif;
}

a{

text-decoration:none;
color:#222;

}


.entry-content a{

color:#fff;
background-color:#222;
padding: 0.1em 0.4em;
  border-radius: .31em;

}

/* Layout container */
.site {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

/* Header */
.site-header{
  padding: 12px 0 28px;
}
.site-branding h1{
  
 
  font-weight:700;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: #000;
}

/* Grid of posts */
.posts-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  align-items: start;
}

/* Card style */
.post-card{
  background: #fff;
  border: 1px var(--border-style) #000;
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display:flex;
  flex-direction:column;
  min-height: 220px;
}

/* Thumbnail */
.post-card .thumb{
  width:100%;
  height:160px;
  border-radius: calc(var(--radius) - 4px);
  overflow:hidden;
  display:block;
  margin-bottom:12px;
  background: #f8f8f8;
  flex-shrink:0;
}
.post-card .thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Title */
.post-card h2{
  font-family: "Stack Sans Text", system-ui, sans-serif;
  font-weight:700;
  font-size: 18px;
  margin: 0 0 8px;
  color:#000;
}

/* Excerpt/description */
.post-card .excerpt{
  font-size: 14px;
  color:#000;
  opacity:0.85;
  flex:1 1 auto;
  margin-bottom:12px;
}

/* Tags */
.post-card .tags{
  font-size:12px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.post-card .tag{
  border:1px dotted #000;
  padding:4px 8px;
  border-radius:999px;
  font-size:12px;
}

/* Single/post layout */
.site-main{
  padding: 18px 0 60px;
}
.single-article{
  border:1px dotted #000;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  background:#fff;
}

/* Utility */
.meta{
  font-size:12px;
  opacity:0.8;
  margin-bottom:6px;
}

/* Responsive: single column on narrow screens */
@media (max-width: 900px){
  .posts-grid{ grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 640px){
  body{ padding:18px 12px; }
  .posts-grid{ grid-template-columns: 1fr; }
  .site-branding h1{ font-size:22px; }
  .post-card .thumb{ height:220px; }
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce){
  * { transition: none !important; animation: none !important; }
}
