/* Bradley B. Clark Law Group, P.C. — Static Site
   Design tokens shared with the Ghost blog theme */

:root {
  --bg: #f8f4ee;
  --ink: #2a2420;
  --ink-2: #3d3530;
  --muted: #6d6359;
  --faint: #a89f93;
  --line: #d9d2c7;
  --accent: #b4553a;
  --sans: 'Instrument Sans', system-ui, sans-serif;
  --serif: 'Newsreader', Georgia, serif;
  --mono: 'Source Code Pro', ui-monospace, monospace;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  line-height: 1.15;
}
p { margin: 0; }
img { max-width: 100%; height: auto; }

/* === HEADER === */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(20px, 6vw, 72px);
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.site-brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -.01em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.site-brand:hover { text-decoration: underline; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  white-space: nowrap;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}
.site-nav a:hover { color: var(--ink); text-decoration: none; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--ink);
}
.nav-toggle svg { display: block; }

/* === HERO === */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 96px clamp(20px, 6vw, 72px) 80px;
  gap: 28px;
  max-width: 800px;
  margin: 0 auto;
}
.hero .eyebrow {
  font-size: 14px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: .06em;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -.015em;
  text-wrap: pretty;
}
.hero .eyebrow a {
  color: var(--accent);
  text-decoration: none;
}
.hero .eyebrow a:hover { text-decoration: underline; }

/* === SECTIONS === */
.section {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(20px, 6vw, 72px) 96px;
}
.section-head {
  border-top: 1px solid var(--ink);
  padding-top: 16px;
  margin-bottom: 40px;
}
.section-head h2 { font-size: 32px; }

/* === PRACTICE AREAS / AWARDS GRID === */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 0;
}
/* Left column cards */
.card:nth-child(odd) { padding-right: 40px; }
/* Right column cards */
.card:nth-child(even) {
  padding-left: 40px;
  border-left: 1px solid var(--line);
}
/* All but the last row get a bottom border */
.card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
/* For grids with more than 4 cards, adjust */
.card-grid.rows-3 .card:nth-child(-n+4) { border-bottom: 1px solid var(--line); }

.card-title {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.3;
}
.card-desc {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* === SPEAKING/WRITING LIST === */
.entry-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.entry-item {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.35;
}
.entry-meta {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--muted);
}

/* === BLOG PROMO === */
.blog-promo {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 660px;
}
.blog-promo p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
}
.blog-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}
.blog-feature {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 15px;
  color: var(--ink-2);
}
.blog-feature .dot {
  color: var(--accent);
  font-size: 14px;
  flex-shrink: 0;
}
.blog-feature strong { font-weight: 600; }
.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 15px;
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}
.blog-link:hover { text-decoration: underline; }

/* === EDUCATION === */
.edu-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.edu-title {
  font-family: var(--serif);
  font-size: 22px;
}
.edu-desc {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.5;
}
.edu-desc a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}
.edu-desc a:hover { text-decoration: underline; }

/* === ABOUT === */
.about-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 660px;
}

/* === FINE PRINT === */
.fine-print-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  font-size: 15px;
  flex-wrap: wrap;
}
.fine-print-links a {
  color: var(--ink-2);
  text-decoration: none;
}
.fine-print-links a:hover { text-decoration: underline; }

/* === FOOTER === */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px clamp(20px, 6vw, 72px);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  color: var(--faint);
  margin-top: auto;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; }
  .card:nth-child(odd) { padding-right: 0; }
  .card:nth-child(even) {
    padding-left: 0;
    border-left: none;
  }
  .card { border-bottom: 1px solid var(--line); }
  .card:last-child { border-bottom: none; }
  .hero { padding: 64px clamp(20px, 6vw, 72px) 56px; }
  .section { padding-bottom: 64px; }
}

@media (max-width: 700px) {
  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 20px clamp(20px, 6vw, 72px);
    gap: 16px;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(42, 36, 32, .08);
  }
  .site-header { position: relative; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 32px; }
  .fine-print-links { flex-direction: column; align-items: center; gap: 16px; }
  .entry-item { font-size: 19px; }
}
