/* North Texas Motor Journal — Just Arrived blog */
:root {
  --ink: #14161a;
  --ink-soft: #3a404c;
  --paper: #fafaf8;
  --card: #ffffff;
  --line: #e6e4df;
  --accent: #0d9488;
  --accent-dark: #0f766e;
  --muted: #6b7280;
  --font: "Georgia", "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 720px;
  --max-wide: 960px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
.container { width: min(100% - 1.75rem, var(--max)); margin-inline: auto; }
.container-wide { width: min(100% - 1.75rem, var(--max-wide)); margin-inline: auto; }

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo {
  font-family: var(--sans);
  text-decoration: none; color: var(--ink);
  display: flex; align-items: center; gap: 0.55rem; font-weight: 750;
}
.logo:hover { color: var(--ink); }
.logo-mark {
  background: var(--ink); color: var(--paper);
  font-size: 0.65rem; padding: 0.35rem 0.4rem; border-radius: 4px;
  letter-spacing: 0.05em;
}
.logo em {
  font-style: normal; font-weight: 500; color: var(--muted);
  font-size: 0.8rem; margin-left: 0.35rem;
}
.nav { display: flex; gap: 1rem; font-size: 0.88rem; font-weight: 600; }
.nav a { text-decoration: none; color: var(--ink-soft); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent-dark); }

.masthead {
  padding: 2.75rem 0 2rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.masthead .kicker {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-dark); margin-bottom: 0.6rem;
}
.masthead h1 {
  font-family: var(--font);
  font-size: clamp(1.85rem, 4.5vw, 2.6rem);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.2;
}
.masthead p {
  margin-top: 0.75rem; color: var(--muted); max-width: 42ch; margin-inline: auto;
  font-size: 1.02rem;
}

.post-list { padding: 2.5rem 0 3.5rem; }
.post-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  transition: box-shadow .2s;
}
.post-card:hover { box-shadow: 0 8px 30px rgba(20,22,26,.08); }
@media (max-width: 640px) {
  .post-card { grid-template-columns: 1fr; }
}
.post-card .thumb { aspect-ratio: 4/3; overflow: hidden; background: #ddd; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 1.25rem 1.35rem; display: flex; flex-direction: column; }
.post-card time {
  font-size: 0.75rem; font-weight: 600; color: var(--muted);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.post-card h2 {
  font-family: var(--font);
  font-size: 1.25rem; font-weight: 700; margin: 0.4rem 0 0.5rem; line-height: 1.3;
}
.post-card h2 a { text-decoration: none; color: var(--ink); }
.post-card h2 a:hover { color: var(--accent-dark); }
.post-card .vin {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.78rem; color: var(--accent-dark); margin-bottom: 0.55rem;
}
.post-card .excerpt { color: var(--ink-soft); font-size: 0.92rem; flex: 1; }
.post-card .read {
  margin-top: 0.9rem; font-size: 0.85rem; font-weight: 700;
  text-decoration: none; color: var(--accent-dark);
}

/* Article */
.article-hero { padding: 2rem 0 0; }
.article-hero .kicker {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-dark);
}
.article-hero h1 {
  font-family: var(--font);
  font-size: clamp(1.55rem, 3.5vw, 2.15rem);
  margin: 0.5rem 0 0.65rem; line-height: 1.25;
}
.article-hero .vin-line {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.9rem; color: var(--accent-dark); font-weight: 600;
  word-break: break-all;
}
.article-meta {
  color: var(--muted); font-size: 0.85rem; margin-top: 0.75rem;
  padding-bottom: 1.25rem; border-bottom: 1px solid var(--line);
}

.article-body {
  padding: 1.75rem 0 3rem;
  font-family: var(--font);
  font-size: 1.08rem;
  color: var(--ink-soft);
}
.article-body p { margin-bottom: 1.15rem; }
.article-body .lede {
  font-size: 1.15rem; color: var(--ink); font-weight: 500;
}

.photo-set {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 1.75rem 0;
}
.photo-set figure:first-child { grid-column: 1 / -1; }
.photo-set img { border-radius: 8px; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.photo-set figcaption {
  font-family: var(--sans);
  font-size: 0.75rem; color: var(--muted); margin-top: 0.35rem;
}
@media (max-width: 520px) {
  .photo-set { grid-template-columns: 1fr; }
  .photo-set figure:first-child { grid-column: auto; }
}

.cta-box {
  font-family: var(--sans);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem 1.35rem;
  margin-top: 2rem;
}
.cta-box strong { display: block; margin-bottom: 0.35rem; }
.cta-box a.btn {
  display: inline-block; margin-top: 0.75rem;
  background: var(--ink); color: var(--paper);
  text-decoration: none; padding: 0.55rem 1.1rem;
  border-radius: 6px; font-weight: 650; font-size: 0.9rem;
}
.cta-box a.btn:hover { background: var(--accent-dark); }

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 1.5rem 0;
  font-size: 0.85rem; color: var(--muted);
  text-align: center;
}
