/* Kasey Mick — resume site */

:root {
  --navy: #0b1f3a;
  --navy-2: #12294a;
  --ink: #1c2733;
  --muted: #5b6b7b;
  --line: #e3e9f0;
  --bg: #f7f9fc;
  --card: #ffffff;
  --accent: #f59e0b;
  --accent-ink: #b45309;
  --link: #1d4ed8;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(11, 31, 58, .08), 0 8px 24px rgba(11, 31, 58, .07);
}

@media (prefers-color-scheme: dark) {
  :root {
    --navy: #0b1f3a;
    --navy-2: #0e2444;
    --ink: #e7edf4;
    --muted: #9fb0c1;
    --line: #24344a;
    --bg: #0a1420;
    --card: #101e30;
    --accent: #fbbf24;
    --accent-ink: #fbbf24;
    --link: #7aa2ff;
    --shadow: 0 1px 3px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

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

html { scroll-behavior: smooth; }

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

a { color: var(--link); }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 960px; margin: 0 auto; padding: .7rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: .6rem;
  font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.02rem;
}
.monogram {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--navy); color: var(--accent);
  font-family: Georgia, serif; font-size: .9rem; letter-spacing: .5px;
}
.nav-links { display: flex; align-items: center; gap: 1.1rem; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }

/* ---- Buttons ---- */
.btn {
  display: inline-block; padding: .6rem 1.15rem; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-small { padding: .4rem .85rem; font-size: .88rem; background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-large { padding: .8rem 1.6rem; font-size: 1.05rem; }

/* ---- Hero ---- */
.hero { max-width: 960px; margin: 0 auto; padding: 3.5rem 1.25rem 2.5rem; }
.hero-inner { display: flex; gap: 2.5rem; align-items: center; flex-wrap: wrap; }
.headshot {
  width: 220px; height: 220px; border-radius: 50%; object-fit: cover;
  border: 5px solid var(--card); box-shadow: var(--shadow); flex-shrink: 0;
}
.hero-text { flex: 1; min-width: 300px; }
.kicker {
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
  font-weight: 700; color: var(--accent-ink); margin-bottom: .35rem;
}
h1 { font-size: clamp(2.2rem, 5vw, 3rem); line-height: 1.1; margin-bottom: .4rem; }
.headline { font-size: 1.08rem; font-weight: 600; color: var(--ink); margin-bottom: .2rem; }
.location { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.summary { color: var(--muted); max-width: 56ch; margin-bottom: 1.4rem; }
.cta-row { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ---- Stats ---- */
.stats {
  margin-top: 2.75rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem;
}
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; box-shadow: var(--shadow);
}
.stat-num {
  display: block; font-size: 1.7rem; font-weight: 800; color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: .85rem; color: var(--muted); line-height: 1.4; display: block; margin-top: .15rem; }

/* ---- Sections ---- */
.section { max-width: 960px; margin: 0 auto; padding: 2.5rem 1.25rem; }
.section h2 {
  font-size: 1.6rem; margin-bottom: 1.5rem; position: relative; padding-left: .9rem;
}
.section h2::before {
  content: ""; position: absolute; left: 0; top: .25em; bottom: .25em;
  width: 4px; border-radius: 2px; background: var(--accent);
}

/* ---- Experience ---- */
.job {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.5rem; margin-bottom: 1rem; box-shadow: var(--shadow);
}
.job-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem; }
.job h3 { font-size: 1.06rem; line-height: 1.4; }
.org { color: var(--accent-ink); }
.dates { color: var(--muted); font-size: .88rem; white-space: nowrap; }
.job p, .job li { color: var(--muted); font-size: .95rem; }
.job ul { padding-left: 1.2rem; display: grid; gap: .35rem; }

/* ---- Education / cards ---- */
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.5rem; box-shadow: var(--shadow);
}
.card h3 { font-size: 1.05rem; margin-bottom: 1rem; }
.edu { padding: .65rem 0; border-top: 1px solid var(--line); }
.edu:first-of-type { border-top: none; }
.edu h4 { font-size: .98rem; }
.edu p { color: var(--muted); font-size: .92rem; }

/* ---- Skills ---- */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: .45rem 1rem; font-size: .92rem; font-weight: 500; box-shadow: var(--shadow);
}

/* ---- Contact / footer ---- */
.contact { text-align: center; padding-bottom: 3.5rem; }
.contact p { color: var(--muted); margin-bottom: 1.3rem; }
footer {
  border-top: 1px solid var(--line); padding: 1.5rem;
  text-align: center; color: var(--muted); font-size: .88rem;
}

@media (max-width: 640px) {
  .hero { padding-top: 2.5rem; }
  .hero-inner { justify-content: center; text-align: center; }
  .cta-row { justify-content: center; }
  .summary { margin-inline: auto; }
  .job-head { flex-direction: column; gap: .1rem; }
  .nav-links a:not(.btn) { display: none; }
}
