/* ---- Font Imports ---- */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

/* ---- Design Tokens ---- */
:root {
  --font-heading: 'Libre Baskerville', serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --bg-main: #F8F9FA;
  --bg-alt: #FFFFFF;

  --text-primary: #1F2937;
  --text-secondary: #4B5563;

  --accent: #5B4B8A;

  --border-light: #E5E7EB;
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.06);

  --max-width: 900px;
  --gutter: 20px;
  --section-padding: 72px;

  --radius: 6px;
  --transition: 0.2s ease;

  --header-height: 72x;
}

/* ---- Reset / Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

:target {
  scroll-margin-top: var(--header-height);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-main);
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

/* Links */
a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition), text-decoration-color var(--transition);
}

a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

hr {
  border: 0;
  border-top: 1px solid var(--border-light);
  margin: 32px 0;
}

/* ---- Typography ---- */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.75rem;
  color: var(--text-primary);
}

h1 { font-size: 3rem; margin-bottom: 0.6rem; }
h2 { font-size: 1.9rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }

p {
  margin: 0 0 1.25rem;
  color: var(--text-secondary);
}

.lead {
  font-size: 1.05rem;
  max-width: 68ch;
}

/* ---- Layout ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-padding) 0;
}

.section.alt {
  background: var(--bg-alt);
}

/* ---- Section Title Accent ---- */
.section-title {
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  margin-top: 10px;
  background: var(--accent);
}

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  background: rgba(248, 249, 250, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  flex-direction: column; /* subheading under name */
  gap: 2px;
  text-decoration: none;
  color: var(--text-primary);
  line-height: 1.1;
}

.brand strong {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand span {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--accent);
}

/* ---- Social Icons ---- */
.socials {
  display: flex;
  gap: 10px;
  align-items: center;
}

.social-link {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: #fff;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.social-link:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Desktop-only socials */
.socials-desktop {
  display: flex;
}

/* ---- Hamburger ---- */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition: border-color var(--transition);
}

.nav-toggle:hover {
  border-color: var(--accent);
}

.nav-toggle-bar {
  width: 18px;
  height: 2px;
  background: var(--accent);
  display: block;
  margin: 4px auto;
  border-radius: 999px;
}

/* ---- Mobile Menu ---- */
.mobile-menu {
  border-top: 1px solid var(--border-light);
  padding: 14px 0 18px;
}

.mobile-links a {
  display: block;
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--text-primary);
  background: #fff;
  font-weight: 500;
  transition: border-color var(--transition), color var(--transition);
}

.mobile-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* ---- Hero ---- */
.hero {
  padding: 28px 0 56px;
}

.kicker {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* ---- Buttons (used sparingly) ---- */
.button {
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  font-weight: 500;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
  display: inline-block;
}

.button:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

.button.secondary {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.button.secondary:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

/* ---- Cards ---- */
.grid {
  display: grid;
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

/* Center the final card when there are 3 items in a 2-column grid */
.grid.two > :nth-child(3):last-child {
  grid-column: 1 / -1;
  max-width: 420px;
  justify-self: center;
}


.card {
  background: #fff;
  padding: 24px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: box-shadow var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-soft);
}

.card .meta {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* ---- Quick Facts List ---- */
.clean-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  border-top: 1px solid var(--border-light);
}

.clean-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.clean-list li strong {
  color: var(--text-primary);
}

.clean-list li:last-child {
  border-bottom: 0;
}

/* ---- Contact ---- */
label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-primary);
}

input, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 12pt;
  line-height: 1.4;
  margin-bottom: 16px;
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(91, 75, 138, 0.15);
}

/* ---- Footer ---- */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-inner {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

/* ---- Responsive ---- */
@media (max-width: 820px) {
  .nav-links,
  .socials-desktop {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
  }

  .grid.two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  h1 { font-size: 2.35rem; }
  h2 { font-size: 1.6rem; }
  .section { padding: 52px 0; }
  body { font-size: 16.5px; }
}

@media (max-width: 420px) {
  .hero { padding: 20px 0 44px; }
  .button { width: 100%; text-align: center; }
}

/* ---- About section layout with headshot ---- */
.about-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 24px;
}

.about-photo img {
  width: 100%;
  border-radius: 8px;
  display: block;
  border: 1px solid var(--border-light);
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* Mobile stacking */
@media (max-width: 720px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .about-photo img {
    max-width: 220px;
    margin: 0 auto;
  }
}