/* Andrew Blikken — andrewblikken.com
   Hand-coded rebuild, v1. Palette and type pulled from the outgoing WordPress
   site (Kadence theme) so the transition doesn't jolt visitors. */

@import url('https://fonts.googleapis.com/css2?family=Sorts+Mill+Goudy:ital@0;1&display=swap');

:root {
  --navy: #040037;
  --blue: #032075;
  --blue-deep: #00205b;
  --crimson: #bf0d3e;
  --bg: #efeff5;
  --bg-alt: #f7f7fb;
  --white: #ffffff;
  --text: #040037;
  --text-muted: #4b4b66;
  --max-width: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: var(--crimson); text-decoration: underline; }
a:hover { color: var(--blue-deep); }

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

h1, h2, h3, .display {
  font-family: 'Sorts Mill Goudy', Georgia, serif;
  font-weight: 400;
  color: var(--navy);
  margin: 0 0 0.5em;
}

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

header.site-header {
  background: var(--white);
  border-bottom: 1px solid #e2e2ea;
}

header.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.logo img { height: 56px; width: auto; }

nav.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav.primary-nav a {
  font-family: 'Sorts Mill Goudy', Georgia, serif;
  font-size: 1.05rem;
  color: var(--navy);
  text-decoration: none;
}

nav.primary-nav a:hover,
nav.primary-nav a[aria-current="page"] { color: var(--crimson); }

.social-links {
  display: flex;
  gap: 0.9rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
}

.social-links svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- Hero ---------- */

.hero {
  padding: 4rem 0;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero .eyebrow {
  font-family: 'Sorts Mill Goudy', Georgia, serif;
  font-style: italic;
  color: var(--blue);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.hero h1 { font-size: clamp(2.75rem, 4vw + 1rem, 5rem); font-style: italic; margin-bottom: 0.4em; }

.hero h2.subhead {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--navy);
}

.hero p { color: var(--text); max-width: 42em; }

.hero .cta-row {
  margin-top: 1.25rem;
  font-size: 1.05rem;
}

.hero .cta-row a { margin-right: 0.4rem; }

.hero .portrait img {
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(4, 0, 55, 0.18);
}

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

section.band { padding: 3.5rem 0; }
section.band.alt { background: var(--bg-alt); }
section.band h2 { text-align: center; font-size: 2.2rem; }

.narrow { max-width: 760px; margin: 0 auto; }

.eras { display: grid; gap: 2rem; margin-top: 2rem; }

.era-card {
  background: var(--white);
  border-left: 4px solid var(--crimson);
  border-radius: 4px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 2px 10px rgba(4, 0, 55, 0.06);
}

.era-card .era-label {
  font-family: 'Sorts Mill Goudy', Georgia, serif;
  color: var(--crimson);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.era-card h3 { font-size: 1.4rem; margin-bottom: 0.25rem; }
.era-card .role-dates { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0.6rem; }
.era-card ul { margin: 0; padding-left: 1.2rem; }
.era-card li { margin-bottom: 0.35rem; }

.transition-note {
  font-style: italic;
  color: var(--text-muted);
  border-left: 3px solid #cfcfe0;
  padding-left: 1rem;
  margin: 1.5rem 0;
}

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

footer.site-footer {
  background: var(--navy);
  color: #d7d7e8;
  padding: 2.5rem 0;
  margin-top: 2rem;
}

footer.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

footer.site-footer a { color: #d7d7e8; }
footer.site-footer .social-links a { background: rgba(255,255,255,0.12); }

/* ---------- Contact form (static, mailto fallback) ---------- */

form.contact-form { max-width: 520px; margin-top: 1.5rem; }
form.contact-form label { display: block; font-weight: 600; margin-bottom: 0.3rem; margin-top: 1rem; }
form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid #cfcfe0;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}
form.contact-form button {
  margin-top: 1.5rem;
  background: var(--crimson);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-size: 1.05rem;
  cursor: pointer;
}
form.contact-form button:hover { background: var(--blue-deep); }

/* ---------- Resume ---------- */

.resume-contact { color: var(--text-muted); }
.resume-summary { font-size: 1.05rem; }
.expertise-list { color: var(--text-muted); }

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .portrait { order: -1; max-width: 320px; margin: 0 auto; }
  nav.primary-nav ul { gap: 1.1rem; }
  footer.site-footer .wrap { flex-direction: column; align-items: flex-start; }
}
