/* Blog Shared Styles — Frontier Flat Rate */
/* Pre-staged by Coda (CTO) — May 16, 2026 */

:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --border: #262626;
  --text: #e5e5e5;
  --text-muted: #737373;
  --accent: #7c3aed;
  --accent-hover: #a78bfa;
  --max-width: 720px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

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

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

/* Navigation */
nav {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}
nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
nav .brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}
nav a { font-size: 0.9rem; }

/* Blog listing */
.post-list, .post-listing { list-style: none; }
.post-item,
.post-listing {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.post-item:first-child,
.post-listing:first-child { padding-top: 0; }
.post-item h2,
.post-listing h2 { font-size: 1.3rem; margin-bottom: 8px; }
.post-item h2 a,
.post-listing h2 a { color: var(--text); }
.post-item h2 a:hover,
.post-listing h2 a:hover { color: var(--accent); }
.post-meta,
.post-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.post-excerpt { color: var(--text-muted); font-size: 0.95rem; }

/* Blog post */
article { padding-bottom: 64px; }
article h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
}
article .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}
article h2 {
  font-size: 1.4rem;
  margin-top: 40px;
  margin-bottom: 12px;
}
article p { margin-bottom: 16px; }
article ul, article ol {
  margin-bottom: 16px;
  padding-left: 24px;
}
article li { margin-bottom: 8px; }
article blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  margin: 24px 0;
  color: var(--text-muted);
  font-style: italic;
}
article code {
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Footer */
footer {
  margin-top: 64px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  nav .container { flex-wrap: wrap; gap: 8px; }
  article h1 { font-size: 1.5rem; }
  article h2 { font-size: 1.2rem; }
  .pattern-table { font-size: 0.8rem; }
  .pattern-table th,
  .pattern-table td { padding: 8px; }
  .cta-box { padding: 16px; }
  .cta-box a { padding: 10px 20px; font-size: 0.9rem; }
}

/* Prevent table overflow on small screens */
table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
