:root {
  --bg: #f7f7f8;
  --panel: #ffffff;
  --ink: #101114;
  --muted: #6b7280;
  --accent: #111827;
  --accent-light: #1e40af;
  --rule: #e5e7eb;
  --chip: #eeeeff;
  --maxw: 860px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.7;
  font-size: 18px;
}

main {
  padding: 2.5rem 1.5rem 4rem;
}

.page-shell {
  max-width: var(--maxw);
  margin: 0 auto;
}

.hero {
  text-align: left;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin: 0;
}

.lede {
  max-width: 60ch;
  color: var(--muted);
  margin: 1rem 0 1.5rem;
}

.hero-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--rule);
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.button.primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.button:hover,
.button:focus-visible {
  background: #e4e7ec;
  color: var(--accent);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #000;
  color: #fff;
}

.section {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--rule);
}

.section:last-of-type {
  border-bottom: 0;
}

.section-header {
  margin-bottom: 1.5rem;
}

.label {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}


.experience-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.experience-item {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.experience-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.experience-item h3 {
  margin: 0;
}

.experience-item .company {
  display: block;
  margin: 0.15rem 0 0;
}

.experience-date {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.chip {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--chip);
  border: 1px solid #dbeafe;
  color: var(--accent);
  font-size: 0.9rem;
}

.education-item {
  margin-bottom: 0.9rem;
  padding-bottom: 0;
  border: 0;
}

.education-item:last-child {
  margin-bottom: 0;
}

.education-item header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.education-item h3 {
  margin: 0;
}

.education-item p {
  margin: 0.2rem 0 0;
}

.education-date {
  color: var(--muted);
  margin-left: auto;
  white-space: nowrap;
  margin-top: 0.15rem;
}

.education-item a {
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 600;
}

.education-item a:hover {
  text-decoration: underline;
}

.post-list {
  display: flex;
  flex-direction: column;
}

.search-input {
  width: 100%;
  padding: 0.6rem 0.9rem;
  margin-bottom: 1rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--panel);
  color: var(--ink);
}

.search-input:focus {
  outline: 2px solid var(--accent-light);
  outline-offset: 1px;
  border-color: var(--accent-light);
}

.no-results {
  display: none;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 1rem 0;
}

.post {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}

.post:last-child {
  border-bottom: none;
}

.post h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.post a {
  color: var(--accent-light);
  text-decoration: none;
}

.post a:hover {
  text-decoration: underline;
}

.post p {
  margin-bottom: 0.4rem;
}

.post small {
  font-size: 0.85rem;
}

.contact-copy {
  max-width: 50ch;
}

.contact-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.site-footer {
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--rule);
  background: #fff;
}

.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.95rem;
}

:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}

/* ---- Reduce space between section dividers ---- */
.section {
  padding: 0.75rem 0 1.25rem;
  margin: 0;
}

.section-header {
  margin-bottom: 0.75rem;
}

.experience-item,
.education-item,
.post {
  padding-bottom: 0.45rem;
}

.post {
  padding-top: 0.6rem;
}

.post-list,
.experience-list {
  gap: 0.2rem;
}

hr,
.section:not(:last-child) {
  margin: 0;
}
