/* Halfway House Garages — site.css */
:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-text-soft: #555555;
  --color-text-muted: #888888;
  --color-accent: #c8201f;
  --color-accent-dark: #9a1817;
  --color-border: #e6e6e6;
  --color-bg-soft: #f8f8f8;
  --max-width: 1100px;
  --reading-width: 720px;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text);
}
.brand:hover { text-decoration: none; }
.brand img { width: 48px; height: 48px; border-radius: 8px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
}
.brand-tagline {
  font-size: 12px;
  color: var(--color-text-muted);
  letter-spacing: 0.3px;
}
.site-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-nav a {
  color: var(--color-text-soft);
  font-size: 15px;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
  text-decoration: none;
}

/* Hero */
.hero {
  padding: 60px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 42px;
  margin: 0 0 12px;
  line-height: 1.15;
}
.hero p {
  font-size: 18px;
  color: var(--color-text-soft);
  max-width: 640px;
  margin: 0 auto;
}

/* Article cards on home/category */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  padding: 40px 0;
}
.article-card {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 24px;
}
.article-card .card-image {
  margin-bottom: 16px;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--color-bg-soft);
}
.article-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-card .card-meta {
  font-size: 13px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.article-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 10px;
}
.article-card h3 a { color: var(--color-text); }
.article-card h3 a:hover { color: var(--color-accent); text-decoration: none; }
.article-card p { color: var(--color-text-soft); font-size: 15px; margin: 0; }

/* Article page */
.article-wrap { padding: 50px 0 70px; }
.article-meta {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 12px;
}
.article-meta a { color: var(--color-accent); }
article h1.post-title {
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1.2;
  text-align: center;
  margin: 0 auto 24px;
  max-width: var(--reading-width);
}
article .standfirst {
  font-size: 19px;
  color: var(--color-text-soft);
  text-align: center;
  max-width: var(--reading-width);
  margin: 0 auto 32px;
  line-height: 1.5;
  font-style: italic;
}
article .featured-image {
  max-width: 100%;
  margin: 0 auto 36px;
  text-align: center;
}
article .featured-image img {
  margin: 0 auto;
  border-radius: 4px;
  max-height: 480px;
  object-fit: cover;
}
article .featured-image figcaption {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 8px;
  font-style: italic;
}
article .post-body {
  max-width: var(--reading-width);
  margin: 0 auto;
}
article .post-body p {
  margin: 0 0 22px;
}
article .post-body h2 {
  font-family: var(--font-display);
  font-size: 26px;
  margin: 36px 0 16px;
  line-height: 1.3;
}
article .post-body h3 {
  font-size: 20px;
  margin: 28px 0 12px;
  line-height: 1.3;
}
article .post-body ul, article .post-body ol {
  margin: 0 0 22px;
  padding-left: 28px;
}
article .post-body li { margin-bottom: 10px; }
article .post-body strong { font-weight: 700; }
article .post-body blockquote {
  border-left: 4px solid var(--color-accent);
  padding: 8px 0 8px 20px;
  margin: 24px 0;
  font-style: italic;
  color: var(--color-text-soft);
}

/* Author byline block */
.author-byline {
  max-width: var(--reading-width);
  margin: 50px auto 0;
  padding: 24px;
  background: var(--color-bg-soft);
  border-radius: 6px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.author-byline img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}
.author-byline .author-info {
  flex: 1;
}
.author-byline .author-name {
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 4px;
}
.author-byline .author-name a { color: var(--color-text); }
.author-byline .author-bio {
  font-size: 14px;
  color: var(--color-text-soft);
  margin: 0 0 6px;
  line-height: 1.5;
}
.author-byline .author-meta {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* Editorial note */
.editorial-note {
  max-width: var(--reading-width);
  margin: 30px auto;
  padding: 16px 20px;
  background: #fff8e1;
  border-left: 4px solid #f0b400;
  font-size: 14px;
  color: var(--color-text-soft);
  border-radius: 0 4px 4px 0;
}
.editorial-note strong { color: var(--color-text); }

/* Pages (about, contact, etc) */
.page-wrap {
  padding: 50px 0 70px;
  max-width: var(--reading-width);
  margin: 0 auto;
}
.page-wrap h1 {
  font-family: var(--font-display);
  font-size: 38px;
  margin: 0 0 24px;
}
.page-wrap h2 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 32px 0 14px;
}
.page-wrap p { margin: 0 0 18px; }
.page-wrap ul, .page-wrap ol { margin-bottom: 22px; padding-left: 28px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: #fafafa;
  padding: 50px 0 30px;
  margin-top: 60px;
  font-size: 14px;
  color: var(--color-text-soft);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}
.footer-col h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--color-text);
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--color-text-soft); }
.footer-col a:hover { color: var(--color-accent); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: center;
}

/* Responsive */
@media (max-width: 700px) {
  .hero h1 { font-size: 32px; }
  article h1.post-title { font-size: 28px; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 14px; }
  .brand-name { font-size: 18px; }
  .brand-tagline { font-size: 11px; }
}
