/* samkitay.com — shared styles */

:root {
  --accent: #1F4FB8;
  --accent-hover: #163A88;
  --ink: #15171C;
  --body: #3A3E47;
  --muted: #4A4F5A;
  --label: #5A5F6A;
  --line: #E6E6E2;
  --chip-line: #E0E0DB;
  --tag: #F1F1EE;
  --bg: #FBFBFA;
  --card: #FFFFFF;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; text-wrap: balance; }
p, li { text-wrap: pretty; }
p { margin: 0; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; }

/* Layout */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 32px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; }
.nav-links { display: flex; flex-wrap: wrap; gap: 28px; font-size: 15px; font-weight: 500; }
.nav-links a, .back-top { color: var(--body); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover, .back-top:hover { color: var(--ink); }

/* Hero */
.hero { padding: 96px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 48px 64px; }
.hero-text { order: 1; flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero-photo { order: 2; flex: 0 1 300px; width: 300px; max-width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; border: 1px solid var(--line); }
.hero h1 { font-size: 60px; line-height: 1.05; letter-spacing: -0.02em; }
.lede { font-size: 20px; line-height: 1.6; color: var(--muted); }
.button { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 8px; background: var(--accent); color: #FFFFFF; font-weight: 600; font-size: 16px; text-decoration: none; }
.button:hover { background: var(--accent-hover); color: #FFFFFF; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }

/* Sections */
.section { padding: 72px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 40px; }
.section > h2, .section-title { font-size: 32px; }
.split { display: flex; flex-wrap: wrap; gap: 16px 48px; }
.split-side { flex: 1 1 240px; display: flex; flex-direction: column; gap: 6px; }
.split-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.date { font-size: 14px; font-weight: 600; color: var(--accent); }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--label); text-transform: uppercase; letter-spacing: 0.06em; }

/* About */
.about-lead { font-size: 22px; line-height: 1.55; color: var(--ink); }
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 28px; }
.points h3 { font-size: 18px; margin-bottom: 8px; }
.points p { font-size: 16px; line-height: 1.6; color: var(--body); }
.facts { margin: 0; flex: 1 1 260px; align-self: flex-start; display: flex; flex-direction: column; gap: 20px; padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.facts div { display: flex; flex-direction: column; gap: 4px; }
.facts dt { font-size: 13px; font-weight: 600; color: var(--label); text-transform: uppercase; letter-spacing: 0.06em; }
.facts dd { margin: 0; font-size: 16px; }

/* Experience */
.job-title { font-size: 24px; }
.job-org { font-size: 16px; line-height: 1.5; color: var(--muted); }
.job-summary { font-size: 20px; line-height: 1.55; color: var(--ink); }
.duties { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 28px 40px; margin-top: 16px; }
.duties > div { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 2px solid var(--ink); }
.duties h4 { font-size: 17px; }
.duties ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.55; color: var(--body); }

/* Timeline rows (certifications, skills) */
.rows { display: flex; flex-direction: column; }
.row { display: flex; flex-wrap: wrap; gap: 8px 48px; padding: 28px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 2px solid var(--ink); }
.row:last-child { border-bottom: 1px solid var(--line); }
.row .split-main { gap: 8px; }
.row h3 { font-size: 24px; }
.row-text { font-size: 16px; line-height: 1.6; color: var(--body); }
.row-sub { font-size: 16px; color: var(--muted); }
.skills .row { align-items: baseline; gap: 12px 48px; padding: 24px 0; }
.skills .row h3 { font-size: 18px; flex: 1 1 240px; }
.chips { margin: 0; padding: 0; list-style: none; flex: 999 1 520px; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; }
.chips li { padding: 6px 14px; border: 1px solid var(--chip-line); border-radius: 999px; background: var(--card); }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 40px 48px; }
.project { display: flex; flex-direction: column; gap: 16px; padding-top: 24px; border-top: 2px solid var(--ink); }
.project h3 { font-size: 24px; }
.project p { font-size: 17px; line-height: 1.6; color: var(--body); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--body); }
.tags span { padding: 4px 10px; border-radius: 6px; background: var(--tag); }
.more { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 600; text-decoration: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer p { padding-top: 28px; padding-bottom: 28px; font-size: 14px; color: var(--label); }

/* Write-up pages */
.wu-hero { padding: 80px 0 56px; display: flex; flex-direction: column; gap: 20px; }
.wu-hero .kicker { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.wu-hero h1 { font-size: 48px; line-height: 1.1; letter-spacing: -0.02em; }
.wu-section { padding: 40px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 20px; }
.wu-section.first { border-top: 2px solid var(--ink); }
.wu-section h2 { font-size: 26px; }
.wu-section h3 { font-size: 18px; }
.wu-section p, .wu-section li { font-size: 16px; line-height: 1.65; color: var(--body); }
.wu-section .big { font-size: 17px; line-height: 1.7; }
.wu-section ol, .wu-section ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.wu-section ol { gap: 20px; }
.wu-section strong { color: var(--ink); }
.gotcha { display: flex; flex-direction: column; gap: 6px; }
.flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.flow > div { flex: 1 1 150px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); display: flex; flex-direction: column; gap: 4px; }
.flow > div.key { border-color: var(--accent); }
.flow .eyebrow { font-size: 12px; }
.flow .name { font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.flow .desc { font-size: 14px; line-height: 1.5; color: var(--muted); }
.specs { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.stats { display: flex; flex-wrap: wrap; gap: 16px; }
.stat { flex: 1 1 200px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); display: flex; flex-direction: column; gap: 4px; }
.stat .num { font-family: var(--display); font-size: 40px; font-weight: 600; line-height: 1.2; color: var(--accent); }
.stat .what { font-size: 15px; line-height: 1.5; color: var(--muted); }
.wu-end { padding: 32px 0 96px; border-top: 1px solid var(--line); }
.wu-end a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 600; text-decoration: none; }

@media (max-width: 600px) {
  .hero { padding: 56px 0; }
  .hero h1 { font-size: 44px; }
  .wu-hero h1 { font-size: 36px; }
  .section { padding: 56px 0; }
}
