/* ============================================================
   Custom academic/professional refinements layered on top of
   the Bulma-based devfolio theme (css/main.bundle.css).
   Kept separate from the compiled bundle so the build pipeline
   in src/ does not need to be re-run.
   ============================================================ */

:root {
  --ink: #2a2a2a;
  --ink-soft: #55565a;
  --rule: #dcdad4;
  --paper: #fbfaf7;
  --accent: #454545;
  --serif: "Source Serif 4", "Georgia", "Iowan Old Style", serif;
}

html, body {
  background: var(--paper);
}

/* ---------- Typography ---------- */

h1.title, h2.title, h3.title, h4.title, h5.title,
.modal-card-title, .navbar-brand .title {
  font-family: var(--serif);
  letter-spacing: -0.01em;
}

section.section > .container > h1.title {
  position: relative;
  display: inline-block;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

section.section > .container > hr {
  margin-top: 0;
  margin-bottom: 2rem;
  height: 2px;
  background: linear-gradient(to right, var(--accent) 0 3rem, var(--rule) 3rem 100%);
  border: none;
}

.hero .title.is-1 {
  font-family: var(--serif);
  font-weight: 600;
}

.hero .subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

/* ---------- Section rhythm ---------- */

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

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

/* ---------- Cards (Experience / Education) ---------- */

.card {
  border: 1px solid var(--rule);
  box-shadow: none;
  border-radius: 3px;
}

.card .title.is-4 {
  font-family: var(--serif);
  font-size: 1.25rem;
}

.card .subtitle.is-6 {
  color: var(--ink-soft);
}

/* ---------- Tags ---------- */

.tags .tag {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.7rem;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  border-radius: 2px;
}

/* ---------- Publications: hanging-indent, paper-style list ---------- */

#publications ol,
section.section .content ol[reversed] {
  padding-left: 0;
  list-style: none;
  counter-reset: pub;
}

section.section .content ol[reversed] > li {
  counter-increment: pub;
  position: relative;
  padding-left: 2.4rem;
  margin-bottom: 1rem;
  font-family: var(--serif);
  line-height: 1.55;
  color: var(--ink);
}

section.section .content ol[reversed] > li::before {
  content: "[" counter(pub) "]";
  position: absolute;
  left: 0;
  color: var(--ink-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.85rem;
}

/* ---------- Skills grid ---------- */

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

.skills-group h4 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.35rem;
}

.skills-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.skills-group li {
  font-size: 0.92rem;
  color: var(--ink);
  padding: 0.15rem 0;
}

/* ---------- Featured (image) project tiles ---------- */

.tile.is-child.notification {
  border: 1px solid var(--rule);
  box-shadow: none;
  background: #fff;
}

.tile.is-child.notification p.title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.75rem !important;
}

/* ---------- Project category headers ---------- */

.project-category {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  font-style: italic;
  color: var(--ink-soft);
  margin: 2.25rem 0 1rem;
}

.project-category:first-of-type {
  margin-top: 0.5rem;
}

/* ---------- Compact project cards (no image) ---------- */

.project-card-compact {
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1.25rem 1.4rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.project-card-compact:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.project-card-compact .project-card-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.project-card-compact .project-card-head .icon {
  color: var(--accent);
}

.project-card-compact p.title {
  font-family: var(--serif);
  font-size: 1.05rem;
  margin-bottom: 0 !important;
}

.project-card-compact p.card-desc {
  font-size: 0.9rem;
  color: var(--ink-soft);
  flex-grow: 1;
  margin-bottom: 0.9rem;
}

.project-card-compact .tags {
  margin-bottom: 0.7rem;
}

.project-card-compact a.repo-link {
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--paper);
  border-top: 1px solid var(--rule);
}
