/* LiquidCache — VLDB talk deck */

/* Self-hosted fonts (latin subsets) so the deck works offline at the venue. */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('assets/fonts/SourceSerif4-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/Inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/IBMPlexMono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/IBMPlexMono-500.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/IBMPlexMono-600.woff2') format('woff2');
}

:root {
  --paper: #fbfaf7;
  --card: #ffffff;
  --ink: #1c2a38;
  --ink-soft: #4a5b6c;
  --faint: #61707f;
  --line: #e4e1d8;

  --accent: #c05621;        /* LiquidCache orange */
  --accent-deep: #9c4118;
  --accent-tint: #faeee2;
  --accent-line: #e8c9a8;

  --blue: #3d6b99;          /* storage / Parquet */
  --blue-deep: #2d5177;

  --serif: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  background: #111417;
  font-family: var(--sans);
  color: var(--ink);
  overflow: hidden;
}

#stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#frame {
  position: relative;
  width: 1280px;
  height: 720px;
  transform-origin: center center;
}

/* ---------- slide chrome ---------- */

.slide {
  position: absolute;
  inset: 0;
  width: 1280px;
  height: 720px;
  background: var(--paper);
  padding: 62px 84px 56px;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.slide.current { display: flex; }

.pageno {
  position: absolute;
  bottom: 24px;
  right: 32px;
  font: 400 27px/1 var(--mono);
  color: var(--faint);
}

#progress {
  position: absolute;
  left: 0; bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
  z-index: 5;
}

.kicker {
  font: 500 27px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 18px;
}
.kicker .dim { color: var(--faint); }

h1 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 54px;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.008em;
  color: var(--ink);
  max-width: 1040px;
  text-wrap: balance;
}
.body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}
.body > svg { flex: none; }

/* ---------- shared components ---------- */

.chip {
  display: inline-block;
  font: 500 27px/1 var(--mono);
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 18px;
}
/* ---------- SVG shared text styles ---------- */

svg { display: block; }
svg .t-box   { font: 600 30px var(--sans); fill: var(--ink); }
svg .t-box-s { font: 600 28px var(--sans); fill: var(--ink); }
svg .t-lab   { font: 400 28px var(--sans); fill: var(--ink-soft); }
svg .t-mono  { font: 500 27px var(--mono); fill: var(--ink-soft); }
svg .t-mono-a{ font: 500 27px var(--mono); fill: var(--accent-deep); }
svg .t-mono-f{ font: 400 27px var(--mono); fill: var(--faint); }
svg .t-num   { font: 500 27px var(--mono); fill: var(--ink); }
svg .t-callout { font: 600 30px var(--sans); fill: var(--accent-deep); }

/* SVG build-animation helpers */
svg .grow-y { transform-box: fill-box; transform-origin: center bottom; }
svg .grow-x { transform-box: fill-box; transform-origin: left center; }
svg .pop    { transform-box: fill-box; transform-origin: center; }

/* slide 2 animation: static end-state when motion is off or unavailable */
svg .cached-static { opacity: 0; }
svg .fly {
  will-change: transform, opacity;
  filter: drop-shadow(0 3px 5px rgba(28, 42, 56, 0.18));
}
svg.motion-off .cached-static { opacity: 1; }
svg.motion-off .fly,
svg.motion-off .pulse { display: none; }
@media print {
  svg .cached-static { opacity: 1 !important; }
  svg .fly, svg .pulse { display: none !important; }
}

/* ---------- slide 1: title ---------- */

.s-title { padding: 70px 96px 46px; }
.s-title .brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.s-title .brand img.lc { height: 54px; }
.s-title .venue {
  font: 500 27px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
}
.s-title .mid { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.s-title h1 {
  font-size: 62px;
  font-weight: 600;
  line-height: 1.1;
  max-width: 980px;
}
.s-title .subtitle {
  margin-top: 18px;
  font: 400 33px/1.35 var(--serif);
  color: var(--ink-soft);
}
.s-title .authors {
  margin-top: 40px;
  font: 400 28px/1.4 var(--sans);
  color: var(--ink-soft);
}
.s-title .authors .inst { color: var(--faint); }
.s-title .authors .au,
.s-title .authors .me { white-space: nowrap; }
.s-title .authors .me {
  font-weight: 650;
  color: var(--ink);
  border-bottom: 3px solid var(--accent);
  padding-bottom: 1px;
}

.s-title .affil {
  margin-top: 6px;
  font: 400 27px/1.4 var(--sans);
  color: var(--faint);
}
.s-title .foot {
  display: flex;
  align-items: center;
  gap: 34px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.s-title .foot .lab {
  font: 500 27px/1.2 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--faint);
}
.s-title .foot img { height: 36px; opacity: .92; }
.s-title .foot img.spiral { height: 31px; }

/* ---------- slide 2 & 16: takeaway ---------- */

.s-take { padding: 48px 96px 50px; }
.s-take .hero {
  font-family: var(--serif);
  font-size: 58px;
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.01em;
  max-width: 1020px;
}
.s-take .hero .a { color: var(--accent-deep); }
.s-take .pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 8px;
}
.s-take .pair .item { border-top: 1px solid var(--line); padding-top: 20px; }
.s-take .pair h3 {
  font: 600 30px/1.3 var(--sans);
  color: var(--ink);
  margin-bottom: 8px;
}
.s-take .pair p { font: 400 27px/1.4 var(--sans); color: var(--ink-soft); }

/* ---------- roadmap ---------- */

.s-map {
  padding: 84px 96px;
  justify-content: center;
}
.s-map .anchor {
  font: 500 27px/1.3 var(--mono);
  letter-spacing: .02em;
  color: var(--faint);
  margin-bottom: 58px;
}
.s-map .anchor b { color: var(--accent-deep); font-weight: 500; }
.s-map .anchor { margin-bottom: 48px; }
.s-map .parts { display: flex; flex-direction: column; gap: 44px; }
.s-map .part { display: flex; align-items: baseline; gap: 30px; }
.s-map .num {
  font: 600 40px/1 var(--mono);
  color: var(--faint);
  width: 64px;
  flex: none;
}
.s-map .part h2 {
  font-family: var(--serif);
  font-size: 58px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--faint);
}
.s-map .part.active .num { color: var(--accent); }
.s-map .part.active h2 { color: var(--ink); }
.s-map .part.done h2 { color: #a3aeb9; }
.s-map .part.done h2::after {
  content: "✓";
  margin-left: 16px;
  font-family: var(--sans);
  font-size: 32px;
  vertical-align: 8px;
  color: var(--accent);
}

/* ---------- staged reveals ----------
   Hidden steps keep their layout box so the slide never reflows as
   the presenter advances. Print and reduced-motion show everything. */
[data-step] { opacity: 0; }
[data-step].shown { opacity: 1; }
@media print { [data-step] { opacity: 1 !important; } }

/* ---------- format wall (slide 6) ---------- */
.wall { margin-top: 34px; }
.wall .lab {
  font: 500 27px/1 var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 22px;
}
.wall-row {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.fmt-txt { font: 500 27px/1 var(--mono); color: var(--ink-soft); }
.fmt-logo { height: 38px; width: auto; display: block; }
.fmt-logo.sq { height: 46px; border-radius: 11px; }
.fmt-logo.dots { height: 32px; }
.fmt-logo.tall { height: 44px; }

/* ---------- generic two-column ---------- */

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 28px;
}
.panel .p-head {
  font: 500 27px/1 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.panel ul { list-style: none; }
.panel li {
  font: 400 27px/1.35 var(--sans);
  color: var(--ink);
  padding: 8px 0 8px 34px;
  position: relative;
}
.panel li::before {
  content: "";
  position: absolute;
  left: 2px; top: 21px;
  width: 11px; height: 11px;
  border-radius: 3px;
}

.panel.archive .p-head { color: var(--blue-deep); }
.panel.archive li::before { background: var(--blue); }
.panel.hw .p-head { color: var(--accent-deep); }
.panel.hw li::before { background: var(--accent); }

/* format zoo strip */
.zoo { margin-top: 30px; }
.zoo .lab {
  font: 500 27px/1 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
}
.zoo .chips { display: flex; gap: 10px; flex-wrap: wrap; }

/* option cards (slide 8) */
.opt {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  padding: 28px 30px;
  position: relative;
}
.opt .o-tag {
  font: 500 27px/1 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}
.opt h3 { font: 600 32px/1.3 var(--sans); color: var(--ink); margin-bottom: 14px; }
.opt ul { list-style: none; }
.opt li {
  font: 400 27px/1.35 var(--sans);
  color: var(--ink-soft);
  padding: 7px 0 7px 38px;
  position: relative;
}
.opt li::before {
  content: "✕";
  position: absolute;
  left: 2px; top: 12px;
  font: 600 24px/1.35 var(--mono);
  color: #b3452c;
}

.verdict {
  margin-top: 30px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  font: 400 28px/1.45 var(--sans);
  color: var(--ink-soft);
}
.verdict .mark {
  font: 600 27px/1 var(--mono);
  letter-spacing: .06em;
  color: var(--accent-deep);
  background: var(--accent-tint);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 12px 16px;
  flex: none;
}

/* stat blocks (slide 15) */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 32px 26px;
}
.stat .big {
  font-family: var(--serif);
  font-size: 84px;
  font-weight: 600;
  line-height: 1;
  color: var(--accent-deep);
  letter-spacing: -0.01em;
}
.stat .what {
  margin-top: 14px;
  font: 600 30px/1.3 var(--sans);
  color: var(--ink);
}
.stat .vs { margin-top: 10px; font: 400 27px/1.4 var(--sans); color: var(--faint); }
.methods {
  margin-top: 30px;
  font: 400 27px/1.45 var(--sans);
  color: var(--faint);
}

/* conclusion */
.s-end .links {
  display: flex;
  gap: 40px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 10px;
}
.s-end .repo { font: 500 27px/1 var(--mono); color: var(--ink); text-decoration: none; display: inline-block; }
.s-end .repo .at { color: var(--faint); }
.s-end .upstream { font: 400 27px/1.4 var(--sans); color: var(--faint); max-width: 620px; }
.s-end .thanks { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.s-end .thanks img { height: 28px; opacity: .8; }
.s-end .thanks img.spiral { height: 24px; }

/* ---------- print ---------- */

@media print {
  html, body {
    overflow: visible;
    background: #fff;
    height: auto;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  #stage { position: static; display: block; }
  #frame { transform: none !important; width: auto; height: auto; }
  .slide {
    display: flex !important;
    position: relative;
    page-break-after: always;
    break-after: page;
  }
  .slide:last-of-type { page-break-after: auto; break-after: auto; }
  #progress { display: none; }
  @page { size: 1280px 720px; margin: 0; }
}
