/* ============================================
   J. Todd Welch — shared stylesheet
   ============================================ */

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

:root {
  --navy:  #0d1f2d;
  --steel: #1e3a4f;
  --tide:  #2e6e8e;
  --sky:   #5ba3c2;
  --fog:   #dde8ef;
  --sand:  #f4f0e8;
  --ink:   #1a1a1a;
  --muted: #5a6a74;
  --rule:  #c8d8e2;
  --white: #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
}

/* ---- NAV ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13,31,45,0.97);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2.5rem;
  height: 56px;
}

.nav-brand {
  font-family: 'Libre Baskerville', serif;
  color: #fff;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: var(--fog);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.nav-links a:hover,
.nav-links a.active { opacity: 1; color: var(--sky); }

/* ---- PAGE HEADER ---- */
.page-header {
  background: var(--navy);
  padding: 7rem 2.5rem 3.5rem;
}

.page-header-inner {
  max-width: 860px;
  margin: 0 auto;
}

.page-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.75rem;
}

.page-title {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  line-height: 1.15;
  font-weight: 700;
}

.page-subtitle {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: var(--fog);
  opacity: 0.85;
  max-width: 560px;
}

/* ---- SECTIONS ---- */
section {
  padding: 4rem 2.5rem;
}

.section-inner {
  max-width: 860px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tide);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

hr.rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 1.25rem 0 2rem;
}

/* ---- TIMELINE ---- */
.timeline { display: flex; flex-direction: column; }

.tl-item {
  display: grid;
  grid-template-columns: 110px 1px 1fr;
  gap: 0 1.75rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule);
}

.tl-item:last-child { border-bottom: none; }

.tl-date {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-align: right;
  padding-top: 0.2rem;
}

.tl-line {
  background: var(--rule);
  position: relative;
}

.tl-line::before {
  content: '';
  position: absolute;
  top: 0.3rem;
  left: 50%;
  transform: translateX(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--tide);
}

.tl-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 0.15rem;
}

.tl-org {
  font-size: 0.8rem;
  color: var(--tide);
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.tl-desc {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ---- CARDS ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  border: 1px solid var(--rule);
  border-top: 3px solid var(--tide);
  padding: 1.5rem;
  border-radius: 0 0 2px 2px;
  text-decoration: none;
  display: block;
  color: inherit;
  transition: border-top-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-top-color: var(--sky);
  box-shadow: 0 4px 18px rgba(13,31,45,0.09);
}

.card-date {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.card-title {
  font-family: 'Libre Baskerville', serif;
  font-size: 0.97rem;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 0.45rem;
}

.card-excerpt {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---- SKILL BADGES ---- */
.badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  background: var(--fog);
  color: var(--steel);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
  letter-spacing: 0.04em;
}

.badge.accent {
  background: rgba(46,110,142,0.12);
  color: var(--tide);
  border: 1px solid rgba(46,110,142,0.25);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.7rem 1.6rem;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary { background: var(--tide); color: #fff; }
.btn-primary:hover { background: var(--sky); }

.btn-ghost {
  border: 1px solid var(--rule);
  color: var(--muted);
}
.btn-ghost:hover { border-color: var(--tide); color: var(--tide); }

/* ---- FOOTER ---- */
footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.5rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

footer p { font-size: 0.75rem; color: var(--muted); }

.footer-links { display: flex; gap: 1.5rem; }

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.75rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--sky); }

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  nav { padding: 0 1.25rem; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.68rem; }
  .page-header { padding: 6rem 1.25rem 2.5rem; }
  section { padding: 3rem 1.25rem; }
  .tl-item { grid-template-columns: 72px 1px 1fr; gap: 0 0.9rem; }
  footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
