/* ==========================================================================
   Katie Jennings — Bio Site (Bold Modern)
   Framework-free reference styles. All themeable values are CSS custom
   properties on :root — change those to retheme.
   ========================================================================== */

:root {
  /* Surface */
  --bg: #f7f8fb;            /* page background (cool white) */
  --ink: #16181f;          /* primary text */
  --ink-soft: #5a5f6e;     /* secondary text */
  --line: #e2e5ec;         /* hairline borders */

  /* Brand accent — change this one value to retheme the whole site */
  --accent: #2e64df;
  --accent-soft: color-mix(in srgb, var(--accent) 13%, white);
  --accent-on-dark: color-mix(in srgb, var(--accent) 52%, white);

  /* Type */
  --disp: "Space Grotesk", system-ui, sans-serif;   /* display / headings */
  --body: "Hanken Grotesk", system-ui, sans-serif;  /* body copy */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-size: 18px;
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(24px, 5vw, 64px); }

/* ---------- Nav ---------- */
nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-name { font-family: var(--disp); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--accent); }
@media (max-width: 640px) { .nav-links { display: none; } }

/* ---------- Hero ---------- */
header { padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1fr 340px; gap: clamp(32px, 5vw, 64px); align-items: end; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--disp); font-weight: 600; font-size: 13px;
  letter-spacing: 0.04em; padding: 8px 16px; border-radius: 100px; margin-bottom: 28px;
}
h1 {
  font-family: var(--disp);
  font-size: clamp(60px, 13vw, 150px);
  line-height: 0.86;
  font-weight: 700;
  letter-spacing: -0.045em;
}
h1 .accent { color: var(--accent); }
.lede { margin-top: 30px; font-size: clamp(20px, 2.6vw, 27px); color: var(--ink-soft); max-width: 36ch; text-wrap: pretty; }
.lede strong { color: var(--ink); font-weight: 600; }

/* Hero portrait (static image) */
.hero-photo { width: 340px; height: 420px; }
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 24px;
  border: 1px solid var(--line);
  display: block;
}

/* ---------- Sections ---------- */
section { padding: clamp(56px, 8vw, 110px) 0; }
.sec-label {
  font-family: var(--disp); font-weight: 600; font-size: 14px;
  letter-spacing: 0.04em; color: var(--accent); margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px;
}
.sec-label::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.sec-title { font-family: var(--disp); font-size: clamp(32px, 5vw, 54px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; margin-bottom: 44px; }

/* About */
.about { background: var(--ink); color: var(--bg); border-radius: 28px; padding: clamp(40px, 6vw, 80px); }
.about .sec-label { color: var(--accent-on-dark); }
.about .sec-label::before { background: var(--accent-on-dark); }
.about p.big { font-size: clamp(22px, 3vw, 33px); line-height: 1.32; margin-bottom: 28px; max-width: 24ch; font-family: var(--disp); font-weight: 500; letter-spacing: -0.015em; }
.about p.big em { font-style: normal; color: var(--accent-on-dark); }
.about .small { font-family: var(--body); font-weight: 400; font-size: clamp(17px,2vw,20px); color: #cdd0d8; max-width: 58ch; line-height: 1.6; }

/* Experience — company grouped */
.xp-list { display: grid; gap: 16px; }
.xp {
  padding: 32px; border: 1px solid var(--line); border-radius: 20px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.xp:hover { border-color: var(--accent); transform: translateX(6px); box-shadow: -8px 0 0 var(--accent-soft); }
.xp-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.xp-co { font-family: var(--disp); font-weight: 700; font-size: clamp(22px,2.8vw,30px); letter-spacing: -0.02em; }
.xp-loc { font-size: 14px; color: var(--ink-soft); }
.xp-tenure { font-family: var(--disp); font-size: 13px; font-weight: 600; color: var(--accent); border: 1px solid var(--accent-soft); background: var(--accent-soft); border-radius: 100px; padding: 6px 14px; white-space: nowrap; }
.xp-roles { display: grid; gap: 2px; }
.xp-role { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); }
.xp-role:first-child { border-top: none; padding-top: 0; }
.xp-role .r { font-weight: 600; font-size: 18px; }
.xp-role .d { font-family: var(--disp); font-size: 14px; color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 560px) { .xp-role { grid-template-columns: 1fr; gap: 2px; } }

/* Education + skills */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.edu { padding: 30px; border-radius: 20px; background: var(--accent-soft); margin-bottom: 16px; }
.edu:last-child { margin-bottom: 0; }
.edu .deg { font-family: var(--disp); font-weight: 700; font-size: 23px; letter-spacing: -0.02em; }
.edu .field { color: var(--accent); font-weight: 600; margin-top: 6px; }
.edu .note { color: var(--ink-soft); font-size: 15px; margin-top: 6px; }
.panel { padding: 30px; border: 1px solid var(--line); border-radius: 20px; }
.panel h3 { font-family: var(--disp); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 16px; }

/* Visually hidden, but available to screen readers and crawlers */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; }
.chips:last-child { margin-bottom: 0; }
.chip { font-family: var(--disp); font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 100px; border: 1px solid var(--line); color: var(--ink-soft); }
.chip.key { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Contact */
.contact-band { text-align: center; padding-bottom: clamp(70px,10vw,130px); }
.contact-band h2 { font-family: var(--disp); font-size: clamp(40px, 9vw, 100px); font-weight: 700; letter-spacing: -0.04em; line-height: 0.95; margin-bottom: 16px; }
.contact-band .mail { display: inline-block; font-family: var(--disp); font-size: clamp(20px,3.5vw,34px); font-weight: 600; color: var(--accent); text-decoration: none; margin-bottom: 40px; word-break: break-word; }
.contact-band .mail:hover { text-decoration: underline; }
.socials { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.social-link {
  display:inline-flex; align-items:center; gap:8px;
  padding: 15px 28px; border-radius: 100px; background: var(--ink); color: var(--bg);
  text-decoration: none; font-family: var(--disp); font-weight: 600; font-size: 16px;
  transition: background .2s, transform .2s;
}
.social-link:hover { background: var(--accent); transform: translateY(-3px); }

footer { border-top: 1px solid var(--line); padding: 28px 0; }
.foot-in { display:flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--ink-soft); font-family: var(--disp); }

@media (max-width: 760px) { .hero-grid { grid-template-columns: 1fr; } .hero-photo { width: 100%; max-width: 320px; height: 380px; } }

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