/* joe-hardin.com — shared styles */
:root {
  --ink: #101826;
  --ink-soft: #3d4a5c;
  --muted: #6b7789;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --accent: #0f4c81;
  --accent-bright: #1a6fb5;
  --border: #e2e7ee;
  --max: 1080px;
  --radius: 12px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}

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

/* Header */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-size: .95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); }
.btn {
  display: inline-block; background: var(--accent); color: #fff !important;
  padding: 10px 20px; border-radius: 8px; text-decoration: none;
  font-weight: 600; font-size: .95rem; border: none; cursor: pointer;
}
.btn:hover { background: var(--accent-bright); }
.btn-ghost {
  background: transparent; color: var(--accent) !important;
  border: 1.5px solid var(--accent);
}
.btn-ghost:hover { background: var(--bg-alt); }

/* Hero */
.hero { padding: 88px 0 72px; }
.kicker {
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
  font-weight: 700; color: var(--accent); margin-bottom: 18px;
}
h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem); line-height: 1.15;
  letter-spacing: -.02em; margin-bottom: 22px; max-width: 20ch;
}
.lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 62ch; margin-bottom: 30px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* Headshot */
.hero-grid { display: flex; gap: 48px; align-items: center; }
.hero-grid > div:first-child { flex: 1; }
.headshot {
  width: 280px; height: 280px; object-fit: cover; border-radius: 50%;
  border: 5px solid var(--bg-alt); box-shadow: 0 8px 30px rgba(16,24,38,.12);
  flex-shrink: 0;
}
.headshot-sm { width: 180px; height: 180px; }
@media (max-width: 760px) {
  .hero-grid { flex-direction: column-reverse; align-items: flex-start; }
  .headshot { width: 180px; height: 180px; }
}

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--bg-alt); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.015em; line-height: 1.25; margin-bottom: 14px; max-width: 30ch; }
.section-intro { color: var(--ink-soft); max-width: 66ch; margin-bottom: 36px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-top: 44px; }
.stat { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.stat b { display: block; font-size: 1.7rem; color: var(--accent); letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: .92rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 10px;
}
section.alt .card { background: #fff; }
.card h3 { font-size: 1.15rem; letter-spacing: -.01em; }
.card p { color: var(--ink-soft); font-size: .97rem; }
.card .tag {
  align-self: flex-start; font-size: .74rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--accent); background: #e8f0f8;
  padding: 4px 10px; border-radius: 99px;
}
.card a.more { color: var(--accent); text-decoration: none; font-weight: 600; font-size: .93rem; margin-top: auto; }
.card a.more:hover { text-decoration: underline; }

/* Case studies */
.case { border-top: 1px solid var(--border); padding: 44px 0; }
.case:first-of-type { border-top: none; padding-top: 8px; }
.case .role { color: var(--muted); font-size: .92rem; margin-bottom: 10px; }
.case h3 { font-size: 1.45rem; letter-spacing: -.015em; margin-bottom: 4px; }
.case h4 { font-size: 1rem; margin: 22px 0 6px; color: var(--ink); }
.case p { color: var(--ink-soft); max-width: 70ch; }
.case a.site { color: var(--accent); text-decoration: none; font-weight: 600; }
.case a.site:hover { text-decoration: underline; }

/* FAQ */
details {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 20px; margin-bottom: 12px; background: #fff;
}
details summary { cursor: pointer; font-weight: 600; }
details p { margin-top: 10px; color: var(--ink-soft); }

/* Articles */
article.post { max-width: 720px; margin: 0 auto; padding: 72px 24px; }
article.post h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); max-width: none; }
article.post .meta { color: var(--muted); font-size: .92rem; margin-bottom: 34px; }
article.post p { margin-bottom: 20px; color: var(--ink-soft); }
article.post h2 { font-size: 1.4rem; margin: 36px 0 12px; }
article.post strong { color: var(--ink); }

/* Post list */
.post-list .card time { color: var(--muted); font-size: .85rem; }

/* Contact / footer */
.contact-band { background: var(--ink); color: #fff; padding: 72px 0; }
.contact-band h2 { color: #fff; }
.contact-band p { color: #b9c4d3; max-width: 62ch; margin-bottom: 28px; }
footer { border-top: 1px solid var(--border); padding: 36px 0; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
footer, footer a { color: var(--muted); font-size: .9rem; text-decoration: none; }
footer a:hover { color: var(--accent); }

@media (max-width: 640px) {
  .nav-links { gap: 16px; }
  .nav-links a.hide-sm { display: none; }
  section { padding: 48px 0; }
  .hero { padding: 60px 0 48px; }
}
