:root {
  --ink: #16191f; --muted: #5f6b7a; --line: #e4e7ec; --link: #0972d3;
  --accent: #d2601a; --paper: #fff; --wash: #f5f7fc;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100vh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  font: 17px/1.5 "Amazon Ember", "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 4px; }

/* Header and footer */
.top { display: flex; justify-content: space-between; align-items: center; padding: 18px 32px; }
.brand { color: var(--ink); font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; color: var(--accent); }
.top nav { display: flex; gap: 24px; }
.foot {
  margin-top: auto; padding: 250px 24px 28px; text-align: center; font-size: .95rem;
  background: url(cubes.svg) center bottom / max(1100px, 100%) auto no-repeat;
}
.foot p { margin: 0; }
.foot span { color: var(--muted); margin: 0 10px; }

/* Buttons */
.cta {
  display: inline-block; border: 0; border-radius: 999px; padding: 12px 26px;
  background: var(--accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 14px rgba(210, 96, 26, .28); transition: filter .15s, transform .15s;
}
.cta span { display: inline-block; margin-left: 6px; transition: transform .15s; }
.cta:hover { filter: brightness(1.08); text-decoration: none; }
.cta:hover span { transform: translateX(4px); }
.cta:active { transform: scale(.97); }

/* Home */
.hero { max-width: 760px; margin: 0 auto; padding: 9vh 24px 0; text-align: center; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 18px; }
.hero p { font-size: 1.2rem; color: var(--muted); margin: 0 0 32px; }
.hero .latest { margin-top: 30px; font-size: 1rem; }

/* Contents */
.contents { width: 100%; max-width: 1040px; margin: 0 auto; padding: 5vh 32px 0; }
.contents h1 {
  font-size: 1rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 8px;
}
.toc { list-style: none; margin: 0; padding: 0; }
.toc li {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; column-gap: 28px;
  align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--line);
}
.toc .num {
  font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 700; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.toc .title {
  display: block; color: var(--ink); font-weight: 800; line-height: 1.08; letter-spacing: -.03em;
  font-size: clamp(2rem, 5.4vw, 3.75rem);
}
.toc .title::after { content: ""; position: absolute; inset: 0; } /* whole row is clickable */
.toc li:hover .title { color: var(--link); text-decoration: none; }
.toc .blurb { margin: 12px 0 4px; font-size: 1.15rem; color: var(--ink); }
.toc .meta { margin: 0; color: var(--muted); font-size: .95rem; }
.toc .meta a { position: relative; z-index: 1; }
.toc .arrow { font-size: clamp(1.6rem, 3.5vw, 2.5rem); color: var(--muted); transition: transform .15s, color .15s; }
.toc li:hover .arrow { transform: translateX(8px); color: var(--link); }

/* Deck viewer */
body.deck { height: 100vh; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; }
body.deck .top { border-bottom: 1px solid var(--line); padding: 12px 24px; }
.stage { position: relative; min-height: 0; background: var(--wash); }
.slide {
  position: absolute; inset: 20px 84px; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
}
.slide.active { opacity: 1; visibility: visible; }
.slide img {
  max-width: 100%; max-height: 100%; display: block; background: #fff; border-radius: 8px;
  border: 1px solid var(--line); box-shadow: 0 12px 34px rgba(22, 25, 31, .12);
}
.nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 20px; cursor: pointer;
  display: grid; place-items: center; transition: border-color .15s, color .15s;
}
.nav:hover { border-color: var(--link); color: var(--link); }
.nav.prev { left: 18px; } .nav.next { right: 18px; }
.bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 12px 24px; border-top: 1px solid var(--line); background: #fff;
}
.bar .info { color: var(--muted); font-size: .95rem; font-variant-numeric: tabular-nums; }
.bar .info b { color: var(--ink); }
.dots { display: flex; gap: 8px; }
.dot {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%;
  background: #cfd5df; cursor: pointer; transition: background .15s, transform .15s;
}
.dot:hover { background: #9aa5b5; }
.dot.active { background: var(--accent); transform: scale(1.25); }
.bar .cta { justify-self: end; padding: 10px 22px; min-width: 132px; }

@media (max-width: 640px) {
  .top { padding: 14px 18px; }
  .contents { padding: 3vh 18px 0; }
  .toc li { column-gap: 14px; padding: 22px 0; }
  .toc .arrow { display: none; }
  .foot { padding-top: 150px; }
}

/* Deck on phones and touch screens: no controls, just the slide. Tap anywhere to advance. */
.touch-ui { display: none; }
@media (hover: none) and (pointer: coarse), (max-width: 640px) {
  body.deck { display: block; height: 100dvh; background: #000; }
  body.deck .top, body.deck .nav, body.deck .bar { display: none; }
  .stage {
    position: fixed; inset: 0; background: #000; cursor: pointer;
    touch-action: manipulation; user-select: none; -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
  .slide { inset: 0; transition-duration: .2s; }
  .slide img { border: 0; border-radius: 0; box-shadow: none; -webkit-touch-callout: none; pointer-events: none; }
  .touch-ui {
    display: block; position: fixed; left: 0; right: 0; z-index: 3; margin: 0; padding: 0 20px;
    text-align: center; color: rgba(255, 255, 255, .5); pointer-events: none;
    transition: opacity .8s ease;
  }
  .touch-title { top: calc(env(safe-area-inset-top) + 18px); font-size: .95rem; font-weight: 600; }
  .touch-hint {
    bottom: calc(env(safe-area-inset-bottom) + 20px);
    font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  }
  body.started .touch-ui { opacity: 0; }
}
