/* isaherrera.com — minimal AEO-first styling. System fonts. Mobile-first. */

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 17px; -webkit-font-smoothing: antialiased; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1a2332;
  line-height: 1.65;
  background: #fafaf7;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: #0f2949;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.7rem; margin-top: 2em; }
h3 { font-size: 1.25rem; margin-top: 1.5em; }

p { margin: 0 0 1em; }
a { color: #0f2949; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #b30606; }

.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site-header {
  border-bottom: 1px solid #e7e2d6;
  background: #fff;
  padding: 20px 0;
}
header.site-header .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
header.site-header .brand { font-family: Georgia, serif; font-size: 1.25rem; font-weight: 700; color: #0f2949; text-decoration: none; }
header.site-header .brand .credentials { font-size: 0.75rem; color: #6b7a8a; font-weight: 400; letter-spacing: 0.05em; margin-left: 8px; }

nav.primary { display: flex; flex-wrap: wrap; gap: 14px 20px; }
nav.primary a {
  font-size: 0.92rem;
  text-decoration: none;
  color: #4a5a6b;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
nav.primary a:hover, nav.primary a[aria-current="page"] {
  color: #0f2949;
  border-bottom-color: #b30606;
}

/* Main */
main {
  padding: 48px 0 64px;
}

/* Hero (home) */
.hero {
  padding: 32px 0 8px;
}
.hero .kicker {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #8a6a2c;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 12px;
}
.hero .lede {
  font-size: 1.15rem;
  color: #3d4a58;
  max-width: 640px;
}

/* Credentials strip */
.credentials-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 20px 0;
  margin: 24px 0;
  border-top: 1px solid #e7e2d6;
  border-bottom: 1px solid #e7e2d6;
  font-size: 0.9rem;
  color: #4a5a6b;
}
.credentials-strip strong { color: #0f2949; font-weight: 700; }

/* Cards / sections grid */
.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.section-grid a.card {
  background: #fff;
  border: 1px solid #e7e2d6;
  border-radius: 8px;
  padding: 20px;
  text-decoration: none;
  color: #0f2949;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.section-grid a.card:hover {
  border-color: #b30606;
  box-shadow: 0 3px 10px rgba(15, 41, 73, 0.08);
}
.section-grid a.card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.section-grid a.card p { margin: 0; font-size: 0.9rem; color: #4a5a6b; }

/* Callout / pull quotes */
.callout {
  background: #f4efe4;
  border-left: 4px solid #b30606;
  padding: 20px 24px;
  margin: 32px 0;
  border-radius: 4px;
}

/* Author byline (bottom of each inner page) */
.byline {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e7e2d6;
  font-size: 0.9rem;
  color: #6b7a8a;
}

/* Footer */
footer.site-footer {
  border-top: 1px solid #e7e2d6;
  background: #fff;
  padding: 32px 0;
  font-size: 0.88rem;
  color: #4a5a6b;
  margin-top: 48px;
}
footer.site-footer .container { display: flex; flex-direction: column; gap: 12px; }
footer.site-footer .sameas { display: flex; flex-wrap: wrap; gap: 8px 16px; }
footer.site-footer .sameas a { color: #4a5a6b; text-decoration: none; }
footer.site-footer .sameas a:hover { text-decoration: underline; }
footer.site-footer .fine-print { font-size: 0.78rem; color: #8a97a5; margin-top: 8px; }

/* Mobile */
@media (max-width: 640px) {
  html { font-size: 16px; }
  h1 { font-size: 1.9rem; }
  .hero h1 { font-size: 2.1rem; }
  header.site-header .container { flex-direction: column; align-items: flex-start; }
  nav.primary { gap: 10px 16px; }
  main { padding: 32px 0 48px; }
}
