/* ==========================================================================
   stevetomsauthor.com — Solid-State Stylesheet
   Zero external dependencies. Semantic HTML5 first.
   ========================================================================== */

:root {
  --bg-page: #fafaf9;
  --bg-surface: #ffffff;
  --bg-subtle: #f3f4f6;
  --text-main: #18181b;
  --text-muted: #52525b;
  --accent: #0f4c81;       /* Technical blueprint blue */
  --accent-hover: #0a365c;
  --border: #e4e4e7;
  --max-width: 1040px;
  --reading-width: 720px;
  --radius: 6px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  color: var(--text-main);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  padding: 0;
}

/* Typography & Hierarchy */
h1, h2, h3 {
  line-height: 1.25;
  color: var(--text-main);
  margin-top: 0;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; padding-top: 0.5rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p { margin-top: 0; margin-bottom: 1.25rem; }

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 65ch;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

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

.container--narrow {
  max-width: var(--reading-width);
}

section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type {
  border-bottom: none;
}

/* Header & Navigation */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.site-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Hero Grid */
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
}

.spec-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.spec-list li:last-child {
  border-bottom: none;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--accent);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius);
  transition: background-color 0.15s ease;
}

.btn:hover {
  background-color: var(--accent-hover);
}

.btn--outline {
  background-color: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn--outline:hover {
  background-color: var(--accent);
  color: #ffffff;
}

/* 3-Column Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

/* Answer-First Callout Box (AI Citation Magnet) */
.diagnostic-summary {
  background: var(--bg-subtle);
  border-left: 4px solid var(--accent);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.diagnostic-summary p:last-child {
  margin-bottom: 0;
}

/* Native HTML5 Details/Summary Accordions (No JS needed) */
details {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}

summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 700;
}

details[open] summary::after {
  content: "−";
}

details p {
  margin-top: 0.85rem;
  margin-bottom: 0;
  color: var(--text-muted);
}

/* Diagnostic Notes List */
.notes-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.notes-list li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.notes-list time {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.25rem;
}

/* Footer */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  section {
    padding: 2.5rem 0;
  }
}