/* ============================================
   David Reddick — Resume Site
   Clean modern minimal design system
   ============================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --bg-dark: #111318;
  --text: #14161a;
  --text-soft: #565b66;
  --text-faint: #8a8f9a;
  --border: #e7e8ec;
  --accent: #4338ca;
  --accent-soft: #eef0fd;
  --accent-hover: #352da3;
  --radius: 14px;
  --max-width: 1080px;
  --shadow: 0 1px 2px rgba(20, 22, 26, 0.04), 0 8px 24px rgba(20, 22, 26, 0.06);
  --shadow-hover: 0 4px 8px rgba(20, 22, 26, 0.06), 0 16px 32px rgba(20, 22, 26, 0.09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-soft);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--bg-alt);
}

.nav-links a.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav-cta {
  background: var(--text) !important;
  color: #fff !important;
}

.nav-cta:hover {
  background: #000 !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--text);
  transform: translateY(-1px);
}

.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

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

.hero {
  padding: 96px 0 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  font-size: clamp(38px, 5.5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  font-weight: 700;
}

.hero-title {
  font-size: clamp(18px, 2vw, 21px);
  color: var(--text-soft);
  font-weight: 500;
  margin: 0 0 20px;
}

.hero-lede {
  font-size: 18px;
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 0 36px;
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-faint);
  font-size: 14px;
  margin-bottom: 36px;
}

/* ---------- Stats strip ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
  margin: 24px 0 0;
}

.stat {
  text-align: left;
  padding: 0 24px;
  border-left: 1px solid var(--border);
}

.stat:first-child { border-left: none; padding-left: 0; }

.stat-num {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.stat-label {
  font-size: 13.5px;
  color: var(--text-faint);
  margin-top: 4px;
}

/* ---------- Story ---------- */

.story-text {
  max-width: 720px;
}

.story-text p {
  font-size: 17.5px;
  color: var(--text-soft);
  margin: 0 0 20px;
}

.story-text p:last-child { margin-bottom: 0; }

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

section.block {
  padding: 72px 0;
}

.block-alt {
  background: var(--bg-alt);
}

.section-head {
  margin-bottom: 48px;
  max-width: 640px;
}

.section-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 36px);
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  font-weight: 700;
}

.section-head p {
  color: var(--text-soft);
  font-size: 16.5px;
  margin: 0;
}

/* ---------- Cards ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 18px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
}

/* ---------- Timeline (Experience) ---------- */

.timeline {
  border-left: 2px solid var(--border);
  margin-left: 6px;
}

.timeline-item {
  position: relative;
  padding: 0 0 44px 32px;
}

.timeline-item:last-child { padding-bottom: 4px; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--accent-soft);
}

.timeline-item.current::before {
  background: #16a34a;
  border-color: #dcfce7;
}

.tl-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: 0.01em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.tl-role {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 2px;
  letter-spacing: -0.01em;
}

.tl-org {
  font-size: 15px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.tl-org a { border-bottom: 1px solid transparent; }
.tl-org a:hover { border-bottom-color: var(--accent); }

.tl-bullets {
  margin: 0;
  padding-left: 20px;
  color: var(--text-soft);
  font-size: 15px;
}

.tl-bullets li { margin-bottom: 6px; }

.badge-brainchild {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: 100px;
  margin-left: 10px;
  vertical-align: middle;
}

.badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #16a34a;
  background: #dcfce7;
  padding: 3px 10px;
  border-radius: 100px;
  margin-left: 10px;
  vertical-align: middle;
}

/* ---------- Project cards ---------- */

.project-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.project-thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.project-body {
  padding: 26px 26px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 10px;
}

.project-body h3 {
  margin: 0 0 10px;
  font-size: 21px;
  letter-spacing: -0.01em;
}

.project-body p {
  color: var(--text-soft);
  font-size: 15px;
  margin: 0 0 18px;
  flex: 1;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--accent);
}

.project-link:hover { color: var(--accent-hover); }

.project-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.project-role {
  font-size: 13.5px;
  color: var(--text-faint);
  margin-bottom: 4px;
}

.project-note {
  font-size: 12.5px !important;
  color: var(--text-faint) !important;
  font-style: italic;
  margin-top: 10px !important;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

/* ---------- Skills page ---------- */

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 100px;
}

.skill-group {
  margin-bottom: 36px;
}

.skill-group h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  margin: 0 0 16px;
}

.list-clean {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-clean li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  color: var(--text-soft);
}

.list-clean li:last-child { border-bottom: none; }

.list-clean strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Contact ---------- */

.contact-hero {
  text-align: center;
  padding: 96px 0 88px;
}

.contact-hero h1 { max-width: 720px; margin-left: auto; margin-right: auto; }

.contact-hero .hero-lede { max-width: 560px; margin-left: auto; margin-right: auto; }

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 640px;
  margin: 0 auto;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.contact-card .card-icon { margin: 0 auto 18px; }

.contact-card h3 { margin: 0 0 6px; font-size: 17px; }

.contact-card p { margin: 0 0 18px; color: var(--text-soft); font-size: 14.5px; }

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

footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  color: var(--text-faint);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--text); }

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

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .stat:nth-child(3) { border-left: none; padding-left: 0; }
  .contact-cards { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links:not(.nav-cta-only) {
    position: fixed;
    top: 61px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-toggle { display: block; }
  .hero { padding: 56px 0 48px; }
  section.block { padding: 52px 0; }
  .container { padding: 0 20px; }
  .nav-inner { padding: 16px 20px; }
}
