/* =========================================================
   POLICITY — early 2000s homage
   Loud colors • chunky borders • funky bullets • badges
   ========================================================= */

/* Fonts: safe + a couple of “retro-ish” fallbacks */
:root{
  --bg: #0b1026;
  --panel: #0f1a3a;
  --text: #f6f7ff;
  --muted: #b8c0ff;
  --hot: #ff3bd4;
  --lime: #9dff57;
  --aqua: #31e7ff;
  --yellow: #ffe45c;
  --line: rgba(255,255,255,0.18);

  --radius: 18px;
  --max: 980px;

  --mono: "Courier New", Courier, monospace;
  --display: "Trebuchet MS", "Verdana", "Arial Black", Arial, sans-serif;
}

*{box-sizing:border-box;}
html,body{height:100%;}
body{
  margin:0;
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(255,59,212,0.22), transparent 60%),
    radial-gradient(900px 500px at 80% 0%, rgba(49,231,255,0.18), transparent 60%),
    radial-gradient(900px 600px at 70% 90%, rgba(157,255,87,0.14), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--display);
  line-height: 1.55;
}

/* “Old web” centered layout */
.wrap{
  max-width: var(--max);
  margin: 28px auto 60px auto;
  padding: 0 16px;
}

/* Top frame */
header{
  border: 4px solid var(--aqua);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15,26,58,0.95), rgba(15,26,58,0.75));
  box-shadow: 0 0 0 6px rgba(255,255,255,0.06);
  padding: 18px 18px 14px 18px;
  position: relative;
  overflow: hidden;
}

/* Fun corner sticker */
header::after{
  content:"★ ERC STARTING GRANT ★";
  position:absolute;
  top: 10px;
  right: -56px;
  transform: rotate(18deg);
  background: var(--hot);
  color: #0b1026;
  font-family: var(--mono);
  font-weight: 800;
  padding: 6px 70px;
  border: 2px solid #0b1026;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.2);
}

.kicker{
  font-family: var(--mono);
  color: var(--yellow);
  margin: 0 0 6px 0;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
}

h1{
  margin: 0 0 10px 0;
  font-size: 34px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 0 rgba(0,0,0,0.35);
}
.subtitle{
  margin: 0;
  color: var(--muted);
  max-width: 90ch;
  font-family: var(--mono);
  font-size: 14px;
}

/* Links row */
.links{
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.links a{
  color: var(--bg);
  text-decoration: none;
  background: linear-gradient(180deg, var(--lime), #64ffdb);
  padding: 6px 10px;
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,0.35);
  font-family: var(--mono);
  font-weight: 800;
  box-shadow: 0 3px 0 rgba(0,0,0,0.35);
  transition: transform .05s ease, box-shadow .05s ease, filter .1s ease;
}
.links a:hover{ filter: brightness(1.08); }
.links a:active{
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.35);
}

/* Banner image with thick border */
.banner{
  margin: 18px 0 18px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 4px solid var(--hot);
  box-shadow: 0 0 0 6px rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.15);
}
.banner img{
  width:100%;
  height: 600px;       /* limits vertical size */
  object-fit: cover;  /* crops instead of squishing */
  display:block;
}
.caption{
  background: rgba(0,0,0,0.28);
  border-top: 2px dashed rgba(255,255,255,0.25);
  padding: 10px 12px;
  font-family: var(--mono);
  color: var(--yellow);
  font-size: 13px;
}

/* Section panels */
section{
  margin: 18px 0 22px 0;
  background: rgba(15,26,58,0.72);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px;
  box-shadow: 0 0 0 6px rgba(255,255,255,0.06);
}

h2{
  margin: 0 0 10px 0;
  font-size: 18px;
  color: var(--aqua);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-family: var(--mono);
}
p{ margin: 0 0 12px 0; }

hr{
  border: 0;
  height: 10px;
  margin: 14px 0;
  background:
    repeating-linear-gradient(90deg, var(--hot) 0 18px, transparent 18px 26px),
    repeating-linear-gradient(90deg, transparent 0 8px, rgba(255,255,255,0.14) 8px 10px);
  border-radius: 999px;
  opacity: 0.95;
}

/* Two-column member layout */
.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}
@media (max-width: 860px){
  .grid{grid-template-columns: 1fr;}
}

.card{
  border-radius: 14px;
  border: 2px solid rgba(49,231,255,0.35);
  background: rgba(0,0,0,0.18);
  padding: 14px 14px;
  position: relative;
}
.card h3{
  margin: 0 0 8px 0;
  font-family: var(--mono);
  color: var(--lime);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 14px;
}
.small{ color: var(--muted); font-size: 13px; font-family: var(--mono); }

/* Funny bullets */
ul.clean{
  margin: 0;
  padding-left: 0;
  list-style: none;
}
ul.clean li{
  margin: 7px 0;
  padding-left: 28px;
  position: relative;
  font-family: var(--mono);
}
ul.clean li::before{
  content: "☞";
  position:absolute;
  left: 0;
  top: 0;
  color: var(--yellow);
  font-weight: 900;
}
ul.clean li:nth-child(2n)::before{ content: "✦"; color: var(--aqua); }
ul.clean li:nth-child(3n)::before{ content: "☢"; color: var(--hot); }
ul.clean li:nth-child(5n)::before{ content: "⚑"; color: var(--lime); }

/* Publications list */
ul.pub{
  list-style: none;
  padding: 0;
  margin: 0;
}
ul.pub li{
  padding: 12px 0;
  border-top: 1px dashed rgba(255,255,255,0.22);
}
ul.pub li:first-child{ border-top: 0; }

.meta{
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
}

/* PDF/Data chips become “badges” */
.links-inline{
  margin-left: 8px;
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip{
  font-family: var(--mono);
  font-weight: 900;
  text-decoration: none;
  padding: 3px 9px;
  border-radius: 8px;
  border: 2px solid rgba(0,0,0,0.4);
  box-shadow: 0 3px 0 rgba(0,0,0,0.35);
  color: #0b1026;
  background: var(--yellow);
}
.chip:hover{ filter: brightness(1.06); }
.chip:active{ transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,0.35); }

.chip[href="#"]{
  background: rgba(255,255,255,0.12);
  color: var(--muted);
  border-color: rgba(255,255,255,0.18);
  box-shadow: none;
}

/* Footer */
.footer{
  margin-top: 18px;
  padding: 14px 2px 0 2px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  text-align: center;
}
