/* =================================================================
   Jarrod E. Brown — shared stylesheet
   Clean, minimal, professional. Edit colors in :root below.
   ================================================================= */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f5;
  --text: #1a1a1a;
  --text-soft: #555555;
  --border: #e5e5e2;
  --accent: #2b5797;       /* primary accent — change to taste */
  --accent-soft: #eaf0f8;
  --max-width: 760px;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

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

header.site .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
}

nav a {
  text-decoration: none;
  color: var(--text-soft);
  margin-left: 22px;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s;
}

nav a:hover,
nav a.active {
  color: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 48px;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.hero .tagline {
  font-size: 20px;
  color: var(--text-soft);
  margin: 0 0 24px;
  max-width: 60ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--accent);
  transition: all 0.15s;
}

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

.btn.primary:hover { opacity: 0.9; }

.btn.secondary {
  background: transparent;
  color: var(--accent);
}

.btn.secondary:hover { background: var(--accent-soft); }

/* ---------- Sections ---------- */
section { padding: 40px 0; }

section h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin: 0 0 24px;
  font-weight: 700;
}

h3 { font-size: 20px; margin: 0 0 4px; letter-spacing: -0.01em; }

p { color: var(--text); }

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

/* ---------- Resume entries ---------- */
.entry {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.entry:last-child { border-bottom: none; }

.entry .meta {
  font-size: 14px;
  color: var(--text-soft);
  margin: 2px 0 10px;
}

.entry ul { margin: 8px 0 0; padding-left: 20px; }
.entry li { margin-bottom: 4px; }

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 14px;
  color: var(--text-soft);
}

/* ---------- Project cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--bg);
  transition: box-shadow 0.15s, transform 0.15s;
}

.card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.card .meta {
  font-size: 13px;
  color: var(--text-soft);
  margin: 4px 0 12px;
}

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

.card .links a {
  font-size: 14px;
  font-weight: 600;
  margin-right: 16px;
  text-decoration: none;
}

/* ---------- Experience line items ---------- */
.job {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.job:last-child { border-bottom: none; }
.job-main { display: flex; flex-direction: column; }
.job .role { font-weight: 600; font-size: 17px; }
.job .company { color: var(--text-soft); font-size: 15px; }
.job .dates {
  color: var(--text-soft);
  font-size: 14px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.edu-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.edu-item:last-child { border-bottom: none; }
.edu-item .degree { font-weight: 600; }
.edu-item .school { color: var(--text-soft); font-size: 15px; }
.edu-item .coursework { color: var(--text-soft); font-size: 14px; margin-top: 6px; }

.group-label {
  font-size: 15px;
  font-weight: 700;
  margin: 28px 0 14px;
  color: var(--text);
}
.group-label:first-of-type { margin-top: 0; }

.card .badges { margin-bottom: 10px; }
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  margin-right: 6px;
}
.badge.lang { background: var(--accent-soft); color: var(--accent); }
.badge.priv { background: #f3f0f0; color: #8a6d6d; border: 1px solid var(--border); }
.badge.pub { background: #e9f6ec; color: #2f7a43; }

/* ---------- Placeholder marker ---------- */
.placeholder {
  background: #fff8e1;
  border: 1px dashed #e0c060;
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.92em;
  color: #8a6d00;
}

/* ---------- SAD rendered content ---------- */
.sad-content { padding: 8px 0 24px; }
.sad-content h1 {
  font-size: 30px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 16px;
}
.sad-content h2 {
  font-size: 20px; text-transform: none; letter-spacing: -0.01em;
  color: var(--text); font-weight: 700;
  margin: 34px 0 12px; padding-top: 18px; border-top: 1px solid var(--border);
}
.sad-content h3 { font-size: 17px; margin: 20px 0 6px; }
.sad-content p, .sad-content li { font-size: 16px; }
.sad-content ul, .sad-content ol { padding-left: 22px; }
.sad-content li { margin-bottom: 5px; }
.sad-content blockquote {
  margin: 16px 0; padding: 8px 16px; border-left: 3px solid var(--accent);
  background: var(--bg-soft); color: var(--text-soft); border-radius: 0 6px 6px 0;
}
.sad-content table {
  width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14.5px;
}
.sad-content th, .sad-content td {
  border: 1px solid var(--border); padding: 8px 11px; text-align: left; vertical-align: top;
}
.sad-content th { background: var(--bg-soft); font-weight: 600; }
.sad-content pre {
  background: #1c2128; color: #d6dbe1; border-radius: var(--radius);
  padding: 16px; overflow-x: auto; font-size: 13px; line-height: 1.5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.sad-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em; background: var(--bg-soft); padding: 1px 5px; border-radius: 4px;
}
.sad-content pre code { background: none; padding: 0; color: inherit; font-size: 13px; }
.sad-content hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.back-link { display: inline-block; margin: 8px 0 4px; font-size: 14px; font-weight: 600; }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 28px 0;
  color: var(--text-soft);
  font-size: 14px;
}

footer.site .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

footer.site a { color: var(--text-soft); text-decoration: none; margin-left: 16px; }
footer.site a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .hero h1 { font-size: 34px; }
  .hero { padding: 48px 0 32px; }
  nav a { margin-left: 14px; }
  body { font-size: 16px; }
}
