/* Johann Caro-Burnett — styles.css */
/* Version: 2026-01-01 */

:root{
  --ink: #0f172a;
  --muted: rgba(17,24,39,.78);
  --brand1:#0b3a6d;
  --brand2:#0ea5a4;
  --card-border: rgba(17,24,39,0.08);
  --shadow: 0 12px 30px rgba(17,24,39,0.06);
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: #f6f7fb;
}

a{ color: inherit; }

/* =========================
   HERO
========================= */

.hero{
  background:
    radial-gradient(1000px 600px at 10% 10%, rgba(255,255,255,0.18), transparent 60%),
    radial-gradient(900px 600px at 90% 20%, rgba(0,191,165,0.28), transparent 60%),
    linear-gradient(90deg, var(--brand1), var(--brand2));
  color:#fff;
}

.hero-compact{
  max-width:1100px;
  margin:0 auto;
  padding:0 1.2rem;
}

/* hero-bar aligns with cards by matching horizontal padding */
.hero-bar{
  padding: 3.4rem 1.5rem 2.1rem;
}

.hero-bar h1{
  margin:0 0 .5rem;
  font-size:2.6rem;
  letter-spacing:-0.02em;
  line-height:1.1;
}

.hero-email{
  margin: .2rem 0 1.1rem;
  opacity:.95;
}

.hero-email .at {
  padding: 0 0.05em;
}

.hero-email a{
  color:#fff;
  text-decoration:underline;
  text-underline-offset:3px;
}

.hero-summary{
  max-width:980px;
  margin: .8rem 0 1.1rem;
  font-size:1.12rem;
  line-height:1.75;
  color: rgba(255,255,255,.95);
}

/* Buttons: centered per wrapped row */
.hero-buttons{
  max-width:980px;
  margin: 1.05rem auto 0;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:.65rem;
}

.hero-buttons a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.58rem .95rem;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.12);
  color:#fff;
  text-decoration:none;
  white-space:nowrap;
  flex:0 0 auto;
  user-select:none;
  transition: transform .12s ease, background .12s ease;
}

.hero-buttons a:hover{
  background: rgba(255,255,255,.18);
  transform: translateY(-1px);
}

/* =========================
   LAYOUT
========================= */

.container{
  max-width:1100px;
  margin:-1.2rem auto 3rem;
  padding:0 1.2rem;
  display:grid;
  gap:1.25rem;
}

.card{
  background:#fff;
  border:1px solid var(--card-border);
  border-radius:16px;
  padding:1.5rem;
  box-shadow: var(--shadow);
}

.card h2{
  margin:0 0 .85rem;
  color: var(--brand1);
  font-size:1.65rem;
}

.muted{ color: var(--muted); }

.bullets{
  list-style:none;
  padding-left:0;
  margin: .6rem 0 0;
}

.bullets li{
  padding-left:1rem;
  position:relative;
  margin:.45rem 0;
}

.bullets li::before{
  content:"•";
  position:absolute;
  left:0;
  opacity:.6;
}

/* =========================
   PAPERS
========================= */

.pubgrid{
  display:grid;
  gap:.8rem;
}

details.pub,
details.cat{
  border:1px solid rgba(17,24,39,0.10);
  border-radius:14px;
  background: linear-gradient(
    180deg,
    rgba(246,247,251,0.95),
    rgba(246,247,251,0.60)
  );
  padding: .85rem .95rem;
}

details.pub > summary,
details.cat > summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  justify-content:space-between;
  gap:1rem;
  align-items:baseline;
  color: var(--ink);
}

details.cat > summary{
  font-weight:700;
}

details.pub > summary{
  font-weight:700; /* base layout weight */
}

/* Paper titles: underline when open */
details.pub > summary span:first-child{
  font-weight:400;              /* always normal */
  text-decoration: none;
}

details.pub[open] > summary span:first-child{
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

details.pub > summary::-webkit-details-marker,
details.cat > summary::-webkit-details-marker{
  display:none;
}

.pub-year{
  font-weight:600;
  color: rgba(15,23,42,.75);
  white-space:nowrap;
}

.pub-body{
  margin-top:.75rem;
  color: rgba(17,24,39,.82);
}

.pub-meta{
  margin:.2rem 0 .6rem;
  color: rgba(17,24,39,.75);
}

.pub-technical{
  margin:.55rem 0 .8rem;
}

.paper-link a{
  display:inline-block;
  font-size:.95rem;
  padding:.35rem .65rem;
  border-radius:999px;
  border:1px solid rgba(14,165,164,.35);
  background: rgba(14,165,164,.10);
  color: var(--brand1);
  text-decoration:none;
}

.paper-link a:hover{
  text-decoration:underline;
}

.hl{
  font-weight:700;
  color: var(--brand1);
  background: rgba(14,165,164,0.12);
  padding:0 .18em;
  border-radius:.35em;
  white-space:nowrap;
}

/* =========================
   RESEARCH CATEGORIES
========================= */

.research-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin-top: 1rem;
}

.research-col h3{
  margin: 0 0 .6rem;
  font-size: 1.1rem;
  color: rgba(15,23,42,.88);
}

.cat-body{ margin-top:.65rem; }

.cat-list{
  margin:.35rem 0 0;
  padding-left: 1.05rem;
}

.cat-list li{ margin:.35rem 0; }

.cat-list a{
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* =========================
   FOOTER
========================= */

.footer{
  text-align:center;
  padding:1.8rem 1.2rem 2.2rem;
  color: rgba(17,24,39,.62);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px){
  .research-grid{ grid-template-columns:1fr; }
}

@media (max-width: 520px){
  .hero-bar h1{ font-size:2.1rem; }
  .hero-summary{ font-size:1.03rem; }
  details.pub > summary,
  details.cat > summary{
    flex-direction:column;
    align-items:flex-start;
  }
}
