/*
Theme Name: DataStream
Theme URI: https://datastream.consulting
Author: DataStream Consulting
Description: Custom theme for DataStream Consulting. Navy/amber palette, signal-ping mark, built for a WordPress blog-forward homepage.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: datastream
*/

/* ---------- Design tokens ---------- */
:root {
  --navy: #0F1C2E;
  --navy-soft: #2A3A50;
  --navy-muted: #6C7C93;
  --amber: #EF9F27;
  --amber-dark: #854F0B;
  --cream: #FAF8F3;
  --ink: #1A1A18;
  --gray-text: #5F5E5A;
  --gray-muted: #9BAAC0;
  --border: #E6E1D6;
  --radius: 10px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--navy);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  font-size: 27px;
  font-weight: 500;
}
.site-logo svg { width: 40px; height: 40px; }
.primary-nav ul {
  display: flex;
  gap: 28px;
}
.primary-nav a {
  color: var(--gray-muted);
  font-size: 14px;
}
.primary-nav a:hover { color: var(--cream); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  padding: 56px 0 64px;
}
.hero-eyebrow {
  color: var(--amber);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 16px;
  max-width: 640px;
}
.hero p.lede {
  color: var(--gray-muted);
  font-size: 17px;
  max-width: 560px;
  margin: 0 0 28px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
}
.btn-primary { background: var(--amber); color: var(--amber-dark); }
.btn-secondary { border: 1px solid var(--navy-soft); color: #DDE4EC; }
.hero-badge {
  font-size: 11px;
  color: var(--navy-muted);
  letter-spacing: 0.5px;
}

/* ---------- Blog grid ---------- */
.field-notes {
  padding: 56px 0 72px;
}
.field-notes-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}
.field-notes-head h2 {
  font-size: 20px;
  font-weight: 500;
  margin: 0;
}
.field-notes-head a {
  font-size: 13px;
  color: var(--gray-text);
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 780px) {
  .post-grid { grid-template-columns: 1fr; }
  .primary-nav { display: none; }
}
.post-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 28, 46, 0.08);
}
.post-card-thumb {
  height: 120px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card-thumb svg { width: 34px; height: 34px; }
.post-card-body { padding: 16px 18px 20px; }
.post-card-cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--amber-dark);
  background: #FBEDD8;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}
.post-card h3 {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  margin: 10px 0 6px;
}
.post-card h3 a:hover { color: var(--amber-dark); }
.post-card-meta {
  font-size: 12px;
  color: var(--gray-muted);
  margin: 0;
}

/* ---------- Page header band (About / Services / Contact, etc.) ---------- */
.page-header {
  background: var(--navy);
  padding: 44px 0;
}
.page-header h1 {
  color: #fff;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  margin: 0 0 8px;
}
.page-subtitle {
  color: var(--gray-muted);
  font-size: 15px;
  margin: 0;
  max-width: 600px;
}

/* ---------- Single / page content ---------- */
.site-main { padding: 48px 0 72px; }
.entry-header { margin-bottom: 28px; }
.entry-header h1 { font-size: 30px; font-weight: 500; margin: 0 0 10px; }
.entry-meta { font-size: 13px; color: var(--gray-text); }
.entry-content { font-size: 17px; max-width: 720px; }
.entry-content p { margin: 0 0 20px; }
.entry-content h2 { font-size: 22px; font-weight: 500; margin: 36px 0 14px; }
.entry-content img { border-radius: var(--radius); margin: 20px 0; }
.entry-content blockquote {
  border-left: 3px solid var(--amber);
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  color: var(--gray-text);
  font-style: italic;
}
.entry-content ul,
.entry-content ol {
  margin: 0 0 20px;
  padding-left: 22px;
}
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 8px; }
.entry-content code {
  background: #F1EEE4;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
.entry-content pre {
  background: var(--navy);
  color: #DDE4EC;
  padding: 18px 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 24px 0;
}
.entry-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* ---------- Single post extras ---------- */
.back-link {
  display: inline-block;
  font-size: 13px;
  color: var(--gray-text);
  margin-bottom: 20px;
}
.back-link:hover { color: var(--amber-dark); }
.related-notes {
  margin-top: 24px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.entry-content .alignwide {
  max-width: 1000px;
  width: 1000px;
  margin-left: calc(50% - 500px);
}
.entry-content .alignfull {
  max-width: 100vw;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
@media (max-width: 1040px) {
  .entry-content .alignwide,
  .entry-content .alignfull {
    max-width: 100%;
    width: 100%;
    margin-left: 0;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--gray-muted);
  padding: 40px 0;
  font-size: 13px;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer a { color: var(--gray-muted); }
.site-footer a:hover { color: var(--cream); }
