/* ===========================================================
   pro.css: calm, professional look for Home and Research
   Link it AFTER style.css:
     <link rel="stylesheet" href="style.css">
     <link rel="stylesheet" href="pro.css">
   =========================================================== */

:root {
  --bg: #f4eedb;            /* soft parchment yellow; for more yellow try #f3e7bf */
  --paper: #fffdf7;         /* content panel */
  --border: #e2d8bd;        /* panel border + dividers */
  --ink: #2e2a24;           /* body text */
  --ink-soft: #6b6255;      /* authors, venues */
  --accent: #8c4a24;        /* section labels, numbers, links */
}

html, body {
  background: var(--bg);
  color: var(--ink);
  margin: 0;
}

nav { background: transparent; }

/* plain, square-cornered content panel */
main {
  background: var(--paper);
  max-width: 860px;
  margin: 16px auto 60px;
  padding: 40px 48px;
  border: 1px solid var(--border);
  box-sizing: border-box;
}

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

@media (max-width: 700px) {
  main { margin: 0 0 40px; padding: 24px 20px; border-left: none; border-right: none; }
}


/* page title (Research page) */
.page-title {
  text-align: center;
  font-size: 1.6em;
  font-weight: 600;
  margin: 0 0 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
main .page-title + .r-section { border-top: none; padding-top: 28px; }

/* ===========================================================
   Research page: two-column sections
   =========================================================== */

.r-section {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.r-section:first-of-type { border-top: none; padding-top: 4px; }

.r-label {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.5;
  align-self: start;
  position: sticky;          /* label stays visible while scrolling its section */
  top: 20px;
}

.r-body > *:first-child { margin-top: 0; }

/* book */
.book-entry { display: flex; gap: 22px; align-items: flex-start; }
.book-cover {
  flex: 0 0 auto;
  width: 110px;
  border: 1px solid var(--border);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}
.book-cover-placeholder {
  height: 160px;
  background: #e9e2cf;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  letter-spacing: 0.1em;
}

/* entries */
.pub-authors { color: var(--ink-soft); font-size: 0.95em; }
.pub-title   { font-weight: 600; font-size: 1.05em; margin: 3px 0; }
.pub-venue   { font-style: italic; color: var(--ink-soft); }
.pub-links   { margin-top: 4px; }
.pub-links a { margin-right: 14px; font-size: 0.92em; }

/* paper list (unnumbered) */
.r-body .pub-list { list-style: none; margin: 0; padding: 0; }
.r-body .pub-item {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid #efe8d6;
}
.r-body .pub-item:first-child { padding-top: 0; }
.r-body .pub-item:last-child  { border-bottom: none; }
.r-body .pub-num { display: none; }

/* "coming soon" placeholders */
.soon-tag {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.78em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.soon-text { margin: 10px 0 0; color: var(--ink-soft); font-style: italic; }

.r-body .figure { margin-top: 24px; }
.r-body .figure img { max-width: 100%; height: auto; }

@media (max-width: 700px) {
  .r-section { grid-template-columns: 1fr; gap: 12px; }
  .r-label { position: static; }
  .book-entry { flex-direction: column; }
}