/* ==========================================================================
   fresh.css — "Modern Soft Cards" redesign for index.html
   Additive layer loaded AFTER stylesheet.css + spinkit.css so it can override.
   Keeps brand cues: seagreen zitat, crimson venue, teal projects, SpinKit wave.
   ========================================================================== */

:root {
  --bg-1: #eef2f8;
  --bg-2: #e6ecf4;
  --card: #ffffff;
  --ink: #1c2733;          /* headings */
  --ink-soft: #44546a;     /* body */
  --muted: #8b97a7;        /* labels / captions */
  --line: #e7ecf3;         /* hairlines / borders */
  --accent: #b5613a;       /* Anthropic-style clay/brown (structural accent) */
  --accent-deep: #8f4828;  /* deeper brown for gradient bars */
  --accent-2: #2e8b57;     /* seagreen — zitat + interactive hovers */
  --venue: #d12c54;        /* crimson-ish */
  --link: #1772d0;

  --radius: 18px;
  --shadow: 0 6px 20px rgba(16, 24, 40, .06), 0 2px 6px rgba(16, 24, 40, .04);
  --shadow-lg: 0 18px 44px rgba(16, 24, 40, .12), 0 4px 12px rgba(16, 24, 40, .06);
}

/* ---- Base ---------------------------------------------------------------- */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  /* defeat stylesheet.css `body{width:57%}` and the old inline bg */
  width: auto !important;
  max-width: none !important;
  margin: 0;
  padding: 0;
  background:
    radial-gradient(1100px 540px at 50% -8%, #f5f8fd 0%, rgba(245, 248, 253, 0) 60%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2));
  background-attachment: fixed;
  color: var(--ink-soft);
  font-family: "Lato", Verdana, Helvetica, sans-serif;
  font-size: 15.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

p, li { font-size: 15.5px; }

a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover, a:focus { color: var(--accent-2); text-decoration: none; }

/* ---- Layout container ---------------------------------------------------- */
.page {
  width: 90%;
  max-width: 880px;
  margin: 0 auto;
  padding: 44px 0 60px;
}

/* ---- Cards --------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 32px;
  margin: 20px 0;
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

/* Section heading with a little gradient accent bar */
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-title::before {
  content: "";
  width: 6px;
  height: 20px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
}

/* ---- Hero / header card -------------------------------------------------- */
.hero { padding: 34px 36px 30px; }
.hero::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
}
.hero h1 {
  margin: 0;
  font-size: clamp(28px, 5.2vw, 42px);
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--ink);
}
.hero .tagline {
  margin: 2px 0 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
}
/* one clear line of breathing room after the affiliations */
.hero p { margin: 22px 0 0; color: var(--ink-soft); text-align: justify; }

/* social pills */
.social {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}
.social a {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.social a:hover {
  color: #fff;
  background: var(--accent-2);
  border-color: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(46, 139, 87, .28);
}

/* affiliations — small tags with a brown dot, sit just under the name */
.affils {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.affils a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #faf6f2;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 700;
  transition: transform .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.affils a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.affils a:hover {
  color: var(--ink);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(181, 97, 58, .18);
}

/* ---- Quote (zitat) hero card --------------------------------------------- */
.quote {
  text-align: center;
  padding: 38px 36px 34px;
  background: linear-gradient(180deg, #ffffff 0%, #f4faf6 100%);
}
/* SpinKit wave acts as the loader, centered */
.quote .sk-wave { margin: 0 auto 16px; }

/* override the old mobile-tuned margins from stylesheet.css */
.zitatbeautify {
  margin: 0 auto !important;
  padding: 0 !important;
  max-width: 60ch;
  color: var(--accent-2);
  font-size: clamp(15px, 1.9vw, 18px);
  font-weight: 700;
  font-style: italic;
  line-height: 1.55;
  text-align: center !important;
  opacity: 0;
  transition: opacity .5s ease;
}
.zitatbeautify.is-visible { opacity: 1; }

/* small clay-brown quotation marks flanking both sides of the quote */
.zitatbeautify::before,
.zitatbeautify::after {
  font-family: Georgia, "Times New Roman", serif;
  font-style: normal;
  color: var(--accent);
  opacity: .5;
  font-size: 1.5em;
  line-height: 0;
  vertical-align: -0.3em;
}
.zitatbeautify::before { content: "\201C"; margin-right: .14em; }
.zitatbeautify::after  { content: "\201D"; margin-left: .14em; }

/* ---- Publications -------------------------------------------------------- */
.pub {
  padding: 14px 18px;
  border-radius: 12px;
  border-left: 3px solid rgba(181, 97, 58, .28);  /* faint clay marker per paper */
  transition: background .18s ease, transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.pub + .pub { margin-top: 12px; }
.pub:hover {
  background: #f5f8fc;
  border-left-color: var(--accent-2);             /* green on hover (preserved highlight) */
  transform: translateX(3px);
  box-shadow: 0 4px 14px rgba(16, 24, 40, .05);
}

.pub .title {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

author { color: var(--ink-soft); }
strong author { color: var(--ink); }
a.author { color: var(--ink-soft); border-bottom: 1px dashed transparent; transition: color .15s ease, border-color .15s ease; }
a.author:hover { color: var(--accent); border-bottom-color: var(--accent); }

.venue { color: var(--venue); font-weight: 800; }

/* pill-style reference links: [arXiv] [Bibtex] [Code] ... */
a.backlink {
  display: inline-block;
  margin: 8px 5px 0 0;
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  color: var(--link);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.7;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
a.backlink:hover {
  color: #fff;
  background: var(--link);
  border-color: var(--link);
  transform: translateY(-1px);
}

/* ---- Teaching / Service / Community -------------------------------------- */
.subhead {
  margin: 22px 0 8px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.card p { margin: 0 0 14px; }
.card p b { color: var(--ink); }

.card ul { margin: 6px 0 0; padding-left: 20px; }
.card li { margin-bottom: 7px; }
.card li::marker { color: var(--accent); }

.project { color: var(--accent); font-weight: 800; }

/* Program Committee list — cycle through blue / green / clay-brown */
.pc-list li:nth-child(3n + 1) a { color: var(--link); }
.pc-list li:nth-child(3n + 2) a { color: var(--accent-2); }
.pc-list li:nth-child(3n)     a { color: var(--accent); }
.pc-list li:nth-child(3n + 1)::marker { color: var(--link); }
.pc-list li:nth-child(3n + 2)::marker { color: var(--accent-2); }
.pc-list li:nth-child(3n)::marker     { color: var(--accent); }
.pc-list li a:hover { opacity: .75; }

/* GitHub star/fork iframes */
.gh-buttons { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 4px; }

/* ---- Logos strip --------------------------------------------------------- */
.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 30px 34px;
  padding: 6px 4px;
}
.logos a { display: inline-flex; }
.logos img {
  height: 40px;
  width: auto;
  opacity: .5;
  filter: grayscale(100%);
  transition: opacity .25s ease, filter .25s ease, transform .25s ease;
}
.logos a:hover img { opacity: 1; filter: grayscale(0); transform: translateY(-3px); }

/* ---- Footer -------------------------------------------------------------- */
.site-footer {
  margin-top: 26px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* ---- Reveal-on-scroll (only when JS is on) ------------------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 600px) {
  .page { width: 92%; padding: 28px 0 48px; }
  .card { padding: 22px 18px; border-radius: 15px; margin: 14px 0; }
  .hero { padding: 26px 20px 24px; }
  .quote { padding: 30px 20px 28px; }
  .hero p { text-align: left; }
  .pub:hover { transform: none; }
  .logos { gap: 22px 24px; }
  .logos img { height: 32px; }
}

/* ---- Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover { transform: none; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
