/* ILLUMULUS — minimal single-column site in the spirit of chrismathews.de */

:root {
  --bg: #faf7f0;
  --fg: #1c1a16;
  --muted: #6f6a5e;
  --accent: #c9920a;        /* the booth's golden glow */
  --accent-soft: #f0d68a;
  --rule: #e2dccc;
  --card: #ffffff;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

html[data-theme="dark"] {
  --bg: #14120e;
  --fg: #ece6d8;
  --muted: #9b9484;
  --accent: #e8b53a;
  --accent-soft: #4a3c14;
  --rule: #2c2820;
  --card: #1c1913;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg: #14120e;
    --fg: #ece6d8;
    --muted: #9b9484;
    --accent: #e8b53a;
    --accent-soft: #4a3c14;
    --rule: #2c2820;
    --card: #1c1913;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  transition: background 0.3s ease, color 0.3s ease;
}

/* language switching: html[lang] hides the inactive language */
html[lang="en"] [data-lang="de"] { display: none; }
html[lang="de"] [data-lang="en"] { display: none; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

em { font-family: var(--serif); }

/* ---------- header: webis.de-style dark bar ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #222;
}

.header-inner {
  max-width: 74rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1.25rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.35em;
  font-size: 0.95rem;
  color: #fff;
  text-decoration: none;
}
.header-icon { display: block; }

.header-controls { display: flex; gap: 0.75rem; }

.control {
  font-family: var(--mono);
  font-size: 0.8rem;
  background: none;
  border: 1px solid #555;
  border-radius: 999px;
  color: #ccc;
  padding: 0.2rem 0.7rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.control:hover { color: #fff; border-color: var(--accent); }

/* breadcrumb, webis-style */
.breadcrumb {
  max-width: 74rem;
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 0.15rem; }

/* theme-toggle label reflects the mode you would switch to */
html[data-mode="dark"] .when-light { display: none; }
html:not([data-mode="dark"]) .when-dark { display: none; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 84vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  padding: 2rem 1.25rem 3rem;
}

#lumen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-inner { position: relative; max-width: 44rem; }

.kicker {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 4.5vw, 2.7rem);
  line-height: 1.3;
  margin: 0 0 2.5rem;
}
.hero h1 em { color: var(--accent); font-style: italic; }

.typewriter-line {
  font-family: var(--mono);
  font-size: 0.95rem;
  min-height: 3em;
  color: var(--fg);
}
.byline { color: var(--muted); margin-right: 0.6em; }
.typewriter { font-weight: 600; }

.cursor { color: var(--accent); font-weight: 400; }
.blink { animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.scroll-hint {
  margin-top: 4rem;
  color: var(--muted);
  animation: drift 2.4s ease-in-out infinite;
}
@keyframes drift { 50% { transform: translateY(8px); } }

/* ---------- sections ---------- */

main { max-width: 44rem; margin: 0 auto; padding: 0 1.25rem; }

.section { padding: 4.5rem 0 1rem; border-top: 1px solid var(--rule); }
.section:first-of-type { border-top: none; }

h2 {
  font-family: var(--mono);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 1.75rem;
}
.mark { color: var(--accent); }

h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

/* ---------- timeline ---------- */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: var(--rule);
}
.timeline li {
  position: relative;
  padding: 0 0 2.5rem 2.4rem;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.year {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.timeline .entry p { margin: 0.4rem 0 0; color: var(--fg); }

/* reveal on scroll */
.timeline li, .steps li, .photo {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.timeline li.visible, .steps li.visible, .photo.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .timeline li, .steps li, .photo { opacity: 1; transform: none; transition: none; }
  .blink, .scroll-hint { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- steps ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
.steps li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}
.steps p { margin: 0; }
.step-no {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
}

/* ---------- figures ---------- */

.photo { margin: 2.5rem 0 1rem; }
.photo img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--rule);
}
.photo figcaption {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.6rem;
  text-align: center;
}

/* ---------- research ---------- */

.citation {
  font-family: var(--serif);
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--card);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
}
.press a { display: inline-block; margin-left: 0.4em; }

/* ---------- footer: webis.de-style muted section ---------- */

.site-footer {
  margin-top: 4rem;
  background: var(--card);
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--muted);
}
.footer-inner {
  max-width: 74rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 2.2rem;
  text-align: right;
}
.site-footer p { margin: 0.4rem 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.footer-legal .sep { padding: 0 0.5rem; }
