:root{
  /* Base (dark) */
  --bg: #0b0c0f;
  --bg2: #0f1116;

  /* Surfaces */
  --card: #11131a;

  /* Ink */
  --text: #ffffff;
  --ink: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --muted2: rgba(255,255,255,.52);

  /* Lines & borders */
  --line: rgba(255,255,255,.12);
  --border: rgba(255,255,255,.16);

  /* Accent (reddy oranges) */
  --accent: #ff4d2e;
  --accent2: #ff7a18;
  --accentSoft: rgba(255, 77, 46, .18);
  --accentGlow: rgba(255, 122, 24, .22);

  /* Sizing */
  --radius: 14px;
  --max: 860px;
}

/* =========================
   Base
========================= */

*{ box-sizing: border-box; }

html, body{ height: 100%; }

body{
  margin: 0;
  min-height: 100vh;

  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);

  /* Seamless stretched background */
  background:
    radial-gradient(1200px 900px at 50% -20%, rgba(255, 77, 46, .14), transparent 60%),
    radial-gradient(900px 700px at 90% 30%, rgba(255, 122, 24, .10), transparent 65%),
    linear-gradient(180deg, #0b0c0f 0%, #0d0f14 35%, #0f1116 70%, #0b0c0f 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

a{
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: var(--ink);
  font-size: 14px;

  text-decoration-thickness: 1px;
  text-decoration-color: rgba(255, 77, 46, .55);
  text-underline-offset: 3px;

  -webkit-font-smoothing: inherit;
  text-rendering: optimizeLegibility;
}

a:hover{
  text-decoration-color: rgba(255, 122, 24, .85);
}

/* =========================
   Header
========================= */

header{
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11,12,15,.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 16px;
}

.topbar{
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

h1{
  font-size: 18px;
  margin: 0;
  font-weight: 750;
  letter-spacing: .2px;
}

.spacer{ flex: 1; }

.hint{
  color: var(--muted);
  font-size: 13px;
  margin-top: 10px;
}

/* =========================
   Dropdown (dark themed)
========================= */

select{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,.70) 50%),
    linear-gradient(135deg, rgba(255,255,255,.70) 50%, transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.04));
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%,
    0 0;
  background-size:
    6px 6px,
    6px 6px,
    100% 100%;
  background-repeat: no-repeat;

  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 36px 10px 12px;
  min-width: 240px;

  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;

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

select:hover{
  background:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,.85) 50%),
    linear-gradient(135deg, rgba(255,255,255,.85) 50%, transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
  border-color: rgba(255,255,255,.28);
}

select:focus{
  outline: none;
  border-color: rgba(255, 77, 46, .75);
  box-shadow: 0 0 0 4px var(--accentSoft);
}

/* Dropdown list (where supported) */
select option{
  background: #0e1016;
  color: #ffffff;
}

/* =========================
   Main content
========================= */

.personTitle{
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .3px;
}

/* =========================
   Timeline
========================= */

.timeline{
  position: relative;
  padding-left: 34px;
  margin-top: 18px;
}

.timeline::before{
  content:"";
  position: absolute;
  left: 13px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  opacity: .85;
  border-radius: 2px;
  filter: drop-shadow(0 0 10px var(--accentGlow));
}

.item{
  position: relative;
  margin-bottom: 14px;
  padding: 14px;

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

  box-shadow:
    0 10px 26px rgba(0,0,0,.30),
    inset 0 1px 0 rgba(255,255,255,.06);

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

.item:hover{
  transform: translateY(-1px);
  border-color: rgba(255, 77, 46, .28);
  box-shadow:
    0 14px 34px rgba(0,0,0,.34),
    0 0 0 1px rgba(255, 77, 46, .10),
    inset 0 1px 0 rgba(255,255,255,.06);
}

.item::before{
  content:"";
  position: absolute;
  left: -27px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 999px;

  background: radial-gradient(circle at 35% 35%, #fff, rgba(255,255,255,.55));
  border: 3px solid var(--bg);

  box-shadow:
    0 0 0 2px rgba(255,255,255,.16),
    0 0 14px rgba(255, 77, 46, .35);
}

.date{
  font-size: 12px;
  color: var(--muted2);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.text{
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  white-space: pre-wrap;
}

/* =========================
   Event media (inside same card)
========================= */

.eventMeta{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.10);
}

/* Images: small, in-card, clickable */
.eventImages{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.eventImageLink{
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.eventImageLink:hover{
  transform: translateY(-1px);
  border-color: rgba(255, 77, 46, .28);
  box-shadow:
    0 0 0 1px rgba(255, 77, 46, .10),
    inset 0 1px 0 rgba(255,255,255,.06);
}

.eventImage{
  display: block;
  height: 150px;
  width: auto;
  max-width: 100%;
  object-fit: cover;
}

/* Sources (also inside same box) */
.eventSourcesLabel{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: rgba(255,255,255,.65);
  margin-bottom: 6px;
}

.eventSourcesList{
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
}

.eventSourcesList li{
  margin: 6px 0;
}

/* Ensure event links match normal text exactly */
.eventSourcesList a{
  color: var(--ink);
}

/* =========================
   Empty / footer
========================= */

.empty{
  padding: 18px;
  border-radius: var(--radius);
  border: 1px dashed rgba(255,255,255,.20);
  background: rgba(255,255,255,.03);
  color: var(--muted);
}

.footerNote{
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted2);
}

.kbd{
  border: 1px solid rgba(255,255,255,.18);
  border-bottom-width: 2px;
  padding: 1px 6px;
  border-radius: 9px;
  background: rgba(255,255,255,.05);
  font-size: 12px;
  color: rgba(255,255,255,.90);
}
