:root {
  --bg: #0b0c10;
  --surface: #121319;
  --card: #171923;
  --text: #e8ecf1;
  --muted: #a9b0bb;
  --accent: #7c5cff;
  --accent-2: #00e5a8;
  --rail: #2a2f3a;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
}

@media (prefers-color-scheme: light) {
  html[data-theme="auto"] {
    --bg: #f7f8fb;
    --surface: #ffffff;
    --card: #ffffff;
    --text: #12131a;
    --muted: #5a6270;
    --accent: #5b6cff;
    --accent-2: #12b886;
    --rail: #e7e9ef;
    --shadow: 0 10px 30px rgba(20,20,25,0.08);
  }
}

/* Explicit light theme when user chooses it */
html[data-theme="light"] {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --card: #ffffff;
  --text: #12131a;
  --muted: #5a6270;
  --accent: #5b6cff;
  --accent-2: #12b886;
  --rail: #e7e9ef;
  --shadow: 0 10px 30px rgba(20,20,25,0.08);
}

html[data-theme="dark"] {
  --bg: #0b0c10;
  --surface: #121319;
  --card: #171923;
  --text: #e8ecf1;
  --muted: #a9b0bb;
  --accent: #7c5cff;
  --accent-2: #00e5a8;
  --rail: #2a2f3a;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: linear-gradient(180deg, var(--bg), var(--surface));
  color: var(--text);
  line-height: 1.6;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  backdrop-filter: saturate(180%) blur(10px);
  background: color-mix(in oklab, var(--surface) 80%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--rail) 70%, transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.dot-logo {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 20%, transparent);
}

.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid color-mix(in oklab, var(--rail) 70%, transparent);
  background: color-mix(in oklab, var(--surface) 90%, transparent);
  color: var(--text);
}
.icon-btn:hover { border-color: color-mix(in oklab, var(--accent) 40%, var(--rail)); }
.icon { display: block; }

main { max-width: 980px; margin: 0 auto; padding: 24px 16px 80px; }

.intro h1 { margin: 10px 0 6px; font-size: 32px; letter-spacing: -0.02em; }
.intro .muted { color: var(--muted); margin: 0 0 14px; }

.links { display: flex; flex-wrap: wrap; gap: 10px; }
.links a {
  text-decoration: none;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--rail) 70%, transparent);
  background: color-mix(in oklab, var(--surface) 90%, transparent);
}
.links a:hover { border-color: color-mix(in oklab, var(--accent) 40%, var(--rail)); }

.timeline { position: relative; margin-top: 28px; }
.timeline-rail {
  position: absolute;
  left: 50%;
  transform: translateX(-1px);
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, color-mix(in oklab, var(--rail) 40%, transparent), var(--rail));
}
.timeline-items { display: grid; gap: 48px; }

.item { display: grid; grid-template-columns: minmax(320px, 1fr) 56px minmax(320px, 1fr); gap: 20px; align-items: start; }
.item > div { min-width: 0; }
.col { display: grid; gap: 12px; }
.col.left { justify-items: end; }
.col.right { justify-items: start; }
.center { display: grid; justify-items: center; }
.dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--accent);
  margin-top: 6px;
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent);
}
.time { color: var(--muted); font-size: 12px; text-align: center; margin-top: 6px; z-index: 1000;}

.card {
  background: var(--card);
  border: 1px solid color-mix(in oklab, var(--rail) 70%, transparent);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 520px;
}
.card h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.01em; }
.card p { margin: 6px 0 10px; color: var(--text); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tag { font-size: 12px; color: var(--muted); padding: 4px 8px; border-radius: 999px; background: color-mix(in oklab, var(--surface) 88%, transparent); border: 1px solid color-mix(in oklab, var(--rail) 70%, transparent); }

.cta { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--accent); font-weight: 600; }
.cta:hover { text-decoration: underline; }

/* Image gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 10px; width: 100%; max-width: 520px; }
.gallery-item { margin: 0; }
.gallery a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid color-mix(in oklab, var(--rail) 70%, transparent); background: color-mix(in oklab, var(--surface) 90%, transparent); }
.gallery img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .2s ease; }
.gallery a:hover img { transform: scale(1.03); }
.gallery figcaption { margin-top: 6px; font-size: 12px; color: var(--muted); }

/* Carousel */
.carousel { position: relative; width: 100%; max-width: 520px; margin-top: 10px; perspective: 900px; }
.carousel-viewport { position: relative; height: 220px; }
.carousel-item { position: absolute; top: 0; left: 30%; width: 90%; max-width: 320px; transform: translateX(-50%); border-radius: 14px; overflow: hidden; border: 1px solid color-mix(in oklab, var(--rail) 70%, transparent); background: color-mix(in oklab, var(--surface) 90%, transparent); box-shadow: var(--shadow); transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .35s ease; }
.carousel-item img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.carousel .arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 999px; border: 1px solid color-mix(in oklab, var(--rail) 70%, transparent); background: color-mix(in oklab, var(--surface) 92%, transparent); color: var(--text); display: grid; place-items: center; cursor: pointer; z-index: 5; }
.carousel .arrow.left { left: -12px; }
.carousel .arrow.right { right: -12px; }
.carousel .arrow:hover { border-color: color-mix(in oklab, var(--accent) 40%, var(--rail)); }

@media (max-width: 860px) {
  .carousel-viewport { height: 200px; }
  .carousel .arrow.left { left: 6px; }
  .carousel .arrow.right { right: 6px; }
}

.fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  padding: 10px 14px;
  font-weight: 600;
  border: 1px solid color-mix(in oklab, var(--rail) 70%, transparent);
  background: linear-gradient(135deg, color-mix(in oklab, var(--surface) 85%, transparent), color-mix(in oklab, var(--surface) 60%, transparent));
  color: var(--text);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.noscript { margin: 20px; padding: 12px 16px; border-radius: 12px; background: #ffefc2; color: #533f00; }

@media (min-width: 900px) {
  .intro h1 { font-size: 36px; }
  .card { padding: 16px 18px; }
}

@media (max-width: 860px) {
  .timeline-rail { left: 28px; transform: none; }
  .item { grid-template-columns: 56px 1fr; gap: 100px;}
  .center { grid-column: 1; justify-items: start; }
  .col.left, .col.right { grid-column: 2; justify-items: stretch; }
  .card, .gallery, .carousel { max-width: 100%; }
  .timeline-items { gap: 100px; }
  .col .gallery, .col .carousel { margin-top: 14px; margin-bottom: 14px; }
}


