/* davidmontz.com — static rebuild
 * Replicates the prior Lovable-scaffolded React site as plain HTML+CSS.
 * Brand color: deepBlue #2C3E50. Fonts: Lato (heading), Open Sans (body).
 */

:root {
  --brand-primary: #2C3E50;
  --brand-primary-hover: #1f2d3a;
  --linkedin: #0077B5;
  --linkedin-hover: #005885;

  --fg-strong: #374151;     /* gray-700, body text */
  --fg-muted: #4b5563;      /* gray-600, subtitle */
  --fg-soft: #6b7280;       /* gray-500, footer copy */
  --fg-faint: #9ca3af;      /* gray-400, footer tagline */

  --surface: #ffffff;
  --surface-alt: #f9fafb;   /* gray-50 */
  --border-soft: #f3f4f6;   /* gray-100 */

  --radius: 8px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);

  --font-heading: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-strong);
  background: var(--surface);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  max-width: 56rem;            /* matches max-w-4xl from prior layout */
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* ----- Header ----- */

.site-header {
  padding: 3rem 0;
  background: linear-gradient(to bottom, var(--surface), var(--surface-alt));
}

@media (min-width: 768px) {
  .site-header {
    padding: 5rem 0;
  }
}

.site-header h1 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin: 0;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .site-header h1 {
    font-size: 3rem;
  }
}

.site-header h2 {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--fg-muted);
  margin: 0.75rem 0 0;
}

@media (min-width: 768px) {
  .site-header h2 {
    font-size: 1.5rem;
  }
}

.site-header .tagline {
  margin: 1rem 0 0;
  font-style: italic;
  color: var(--fg-strong);
  border-left: 4px solid var(--brand-primary);
  padding-left: 1rem;
}

/* ----- Sections ----- */

.section {
  padding: 4rem 0;
}

.section-white {
  background: var(--surface);
}

.section-gray {
  background: var(--surface-alt);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--brand-primary);
  margin: 0 0 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.section-title::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3rem;
  height: 3px;
  background: var(--brand-primary);
}

.section p {
  margin: 0 0 1rem;
}

.section p.lead {
  margin-bottom: 1.5rem;
}

.section a {
  color: var(--brand-primary);
  text-decoration: none;
}

.section a:hover {
  text-decoration: underline;
}

.section em {
  font-style: italic;
}

/* ----- Card grid ----- */

.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .card-grid-three {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .card-grid-three {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  color: var(--fg-strong);
}

/* ----- Connect buttons ----- */

.button-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .button-row {
    flex-direction: row;
  }
}

.button {
  display: inline-block;
  width: 12rem;
  padding: 0.75rem 1.25rem;
  text-align: center;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
  cursor: pointer;
}

.button-linkedin {
  background: var(--linkedin);
  color: #fff;
  border: 1px solid var(--linkedin);
}

.button-linkedin:hover {
  background: var(--linkedin-hover);
  text-decoration: none;
}

.button-outline {
  background: transparent;
  color: var(--brand-primary);
  border: 1px solid var(--brand-primary);
}

.button-outline:hover {
  background: rgba(44, 62, 80, 0.05);
  text-decoration: none;
}

/* ----- Footer ----- */

.site-footer {
  padding: 2rem 0;
  background: linear-gradient(to bottom, var(--surface-alt), var(--surface));
  border-top: 1px solid var(--border-soft);
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: var(--fg-soft);
  font-size: 0.875rem;
}

.site-footer .footer-tagline {
  margin-top: 0.5rem;
  color: var(--fg-faint);
  font-size: 0.75rem;
}
