/* Minimal academic style (warm, clean) */

:root{
  --bg: #fbf7f1;
  --panel: #ffffff;
  --text: #1b1b1b;
  --muted: #6b6b6b;
  --border: rgba(0,0,0,.10);
  --shadow: 0 10px 25px rgba(0,0,0,.06);
  --accent: #b45309; /* warm orange-brown */
  --radius: 16px;
  --max: 980px;
}

[data-theme="dark"]{
  --bg: #0b0f14;
  --panel: #111823;
  --text: #e8eef6;
  --muted: #a9b6c6;
  --border: rgba(255,255,255,.12);
  --shadow: 0 12px 30px rgba(0,0,0,.35);
  --accent: #6ee7ff;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; text-underline-offset: 3px; }

.skip-link{
  position:absolute;
  left:-999px;
  top:0;
  background: var(--panel);
  border:1px solid var(--border);
  padding:.6rem .9rem;
  border-radius: 12px;
}
.skip-link:focus{ left: 1rem; top: 1rem; z-index: 20; }

.layout{
  display:grid;
  grid-template-columns: 340px 1fr;
  min-height: 100vh;
}

.sidebar{
  border-right: 1px solid var(--border);
  padding: 2.2rem 1.6rem;
  background: color-mix(in oklab, var(--bg), white 7%);
}

.sidebar-inner{
  position: sticky;
  top: 1.4rem;
}

.name{
  margin: 0 0 1.2rem;
  font-size: 2.05rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.photo{
  width: 190px;
  height: 190px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--panel);
}

.photo img{
  width:100%;
  height:100%;
  object-fit: cover;
  object-position: center 18%;
  display:block;
}

.subtitle{
  margin: 1.1rem 0 1.4rem;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  font-size: .96rem;
  line-height: 1.5;
}

.side-links{
  display:flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: .8rem;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  font-size: .98rem;
}

.side-links a{
  color: var(--text);
  opacity: .92;
  transition: opacity .15s ease, transform .15s ease;
}

.side-links a:hover{
  opacity: 1;
  transform: translateX(2px);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sidebar-foot{
  margin-top: 1.8rem;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  font-size: .92rem;
  color: var(--muted);
}

.dot{ margin: 0 .35rem; opacity: .7; }

.content{
  padding: 2.2rem 2.2rem 1.5rem;
}

.content-inner{
  width: min(var(--max), 100%);
}

.tabs{
  display:flex;
  align-items:center;
  gap: .7rem;
  flex-wrap: wrap;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

.tab{
  background: transparent;
  border: 1px solid var(--border);
  padding: .55rem .85rem;
  border-radius: 12px;
  cursor:pointer;
  color: var(--text);
  opacity: .9;
  transition: transform .15s ease, background .15s ease, opacity .15s ease;
}

.tab:hover{
  transform: translateY(-1px);
  opacity: 1;
}

.tab.active{
  background: color-mix(in oklab, var(--accent), transparent 88%);
  border-color: color-mix(in oklab, var(--accent), var(--border) 50%);
}

.tabs-right{
  margin-left: auto;
}

.linklike{
  background: transparent;
  border: none;
  padding: .35rem .2rem;
  cursor: pointer;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

.rule{
  height: 1px;
  background: var(--border);
  margin: 1.25rem 0 1.65rem;
}

.panel{
  display:none;
  animation: fadeUp .22s ease both;
}

.panel.active{ display:block; }

@keyframes fadeUp{
  from{ opacity: 0; transform: translateY(6px); }
  to{ opacity: 1; transform: translateY(0); }
}

.panel-title{
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}

.underline{
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: .55rem 0 1.4rem;
  border-radius: 999px;
  opacity: .9;
}

.muted{ color: var(--muted); }
.small{ font-size: .95rem; }

.list{
  margin: 0;
  padding-left: 1.15rem;
}

.list li{
  margin: .65rem 0;
}

.date{
  display:inline-block;
  width: 70px;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  font-size: .95rem;
}

.bullet{
  display:inline-block;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 999px;
  margin-right: .55rem;
  transform: translateY(1px);
  opacity: .85;
}

.pub-head{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.pub-search input{
  width: min(260px, 70vw);
  padding: .55rem .75rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  outline: none;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}
.pub-search input::placeholder{ color: var(--muted); }
.pub-search input:focus{
  border-color: color-mix(in oklab, var(--accent), var(--border) 35%);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent), transparent 85%);
}

.pub-list{
  display:flex;
  flex-direction: column;
  gap: 1.05rem;
  margin-top: 1rem;
}

.pub{
  padding: 1rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.pub-title{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  font-weight: 700;
  line-height: 1.35;
}

.pub-meta{
  margin-top: .45rem;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  font-size: .95rem;
}

.pub-links{
  margin-top: .55rem;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  font-size: .95rem;
  color: color-mix(in oklab, var(--accent), var(--text) 60%);
}

.pub-links a{
  color: color-mix(in oklab, var(--accent), var(--text) 60%);
}
.pub-links a:hover{
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer{
  margin-top: 2.3rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  font-size: .92rem;
}

/* Screen reader only */
.sr-only{
  position:absolute; width:1px; height:1px;
  padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* Responsive */
@media (max-width: 920px){
  .layout{ grid-template-columns: 1fr; }
  .sidebar{
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .sidebar-inner{ position: static; }
  .content{ padding: 1.5rem 1.2rem 1.2rem; }
  .photo{ width: 160px; height: 160px; }
}

.pub-year{
  margin: 2rem 0 .6rem;
  font-size: 1.15rem;
  font-family: ui-sans-serif, system-ui;
  color: var(--muted);
  letter-spacing: .02em;
}

/* Publications - modern, blended cards */
.pub-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom: 12px;
}

.pub-search input{
  width:min(380px, 60vw);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border, rgba(255,255,255,.12));
  background: var(--card, rgba(255,255,255,.04));
  color: var(--text, #eaeaea);
  outline: none;
}

.pub-search input:focus{
  border-color: rgba(255,255,255,.24);
  box-shadow: 0 0 0 4px rgba(255,255,255,.06);
}

.pub-year{
  margin: 22px 0 10px;
  font-size: 1.05rem;
  color: var(--muted, rgba(255,255,255,.65));
  letter-spacing: .02em;
}

.pub-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

a.pub{
  position: relative;
  display:block;
  text-decoration:none;
  color: inherit;

  border: 1px solid var(--border, rgba(255,255,255,.12));
  background: linear-gradient(180deg,
    rgba(255,255,255,.06),
    rgba(255,255,255,.03)
  );

  border-radius: 18px;
  padding: 14px 14px 14px 14px;
  overflow: hidden;

  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    background .18s ease;
}

a.pub::before{
  content:"";
  position:absolute;
  inset:-1px;
  background: radial-gradient(600px 200px at 20% 0%,
    rgba(255,255,255,.10),
    transparent 60%
  );
  opacity: 0;
  transition: opacity .18s ease;
  pointer-events:none;
}

/* Publications — calm outline hover (no floating) */
a.pub{
  position: relative;
  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    background .18s ease;
}

a.pub:hover{
  border-color: var(--accent, rgba(255,255,255,.35));
  box-shadow:
    0 0 0 2px color-mix(in oklab, var(--accent), transparent 80%) inset;
}

/* Subtle arrow emphasis only */
a.pub:hover .pub-arrow{
  opacity: .9;
}

/* Optional: slightly brighter title on hover */
a.pub:hover .pub-title{
  color: color-mix(in oklab, var(--accent), var(--text) 75%);
}


a.pub:hover::before{
  opacity: 1;
}

a.pub:active{
  transform: translateY(-1px);
}

.pub-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.pub-title{
  font-size: 1.02rem;
  line-height: 1.35;
  font-weight: 650;
}

.pub-meta{
  margin-top: 8px;
  font-size: .92rem;
  line-height: 1.35;
  color: var(--muted, rgba(255,255,255,.70));
}

.pub-venue{
  margin-top: 8px;
  font-size: .92rem;
  color: var(--muted, rgba(255,255,255,.62));
}

.pub-links{
  display:flex;
  gap:8px;
  flex: 0 0 auto;
}

.pub-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .78rem;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.80);
  white-space: nowrap;
}

.pub-arrow{
  position:absolute;
  top: 12px;
  right: 12px;
  font-size: .95rem;
  opacity: .55;
  transform: translateY(0);
  transition: opacity .18s ease, transform .18s ease;
}

a.pub:hover .pub-arrow{
  opacity: .9;
  transform: translateY(-1px);
}

/* Better hover on touch devices */
@media (hover: none){
  a.pub:hover{ transform:none; box-shadow:none; }
  a.pub:hover::before{ opacity:0; }
}
