/* Teleprompter: Voice Scroll — a small wiki-style page, laid out like Day
   Clock's (cerebritos.cl/apps/day-clock). The colours come from the app's
   teal theme. */

:root {
  --brand: #0b3d3c;
  --brand-soft: #2a7f7b;
  --brand-text: #0b6663;
  --text: #1d2330;
  --muted: #5b6475;
  --bg: #ffffff;
  --line: #dde3ee;
  --sidebar-w: 240px;
}

/* Plus Jakarta Sans, only for the banner's "Remember" and "/Apps": the same font as on
   cerebritos.cl/games and Day Clock. Self-hosted (no request to a font CDN);
   OFL licence in fonts/OFL.txt. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-weight: 500;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font: 17px/1.6 "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--brand-text);
}

/* -- LookThis.One banner -------------------------------------------------- */
/* Copied from cerebritos.cl/games (its Banner.astro and global.css), with
   /Apps for /Games and an lto- prefix (this page already has a .brand). */

.lto-banner {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  background: linear-gradient(180deg, #f6ecff 0%, #ead6ff 100%);
  border-bottom: 1px solid #e8e5dc;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

.lto-lead {  /* one unbreakable unit: the address never wraps */
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.lto-text {
  font-size: 14px;
  font-style: italic;
  font-weight: 500;
  color: #4a3060;
}

.lto-brand {  /* the SVG wordmark from lookthisone2, images/lookthisone.svg */
  display: inline-block;
  line-height: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lto-brand img {
  display: block;
  width: auto;
  height: 15px;  /* option C of a comparison (Alejandro, 2026-11-17) */
}

.lto-brand:hover {
  opacity: 0.78;
  transform: translateY(-1px);
}

/* -- left panel ---------------------------------------------------------- */

/* The banner sits above everything, so the panel can no longer be fixed to
   the window's top: it sticks beside the text instead, and the banner scrolls
   away as on the games site. */
.layout {
  display: flex;
  align-items: flex-start;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  flex-shrink: 0;
  width: var(--sidebar-w);
  padding: 24px 16px;
  background: var(--brand);
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 20px;
  text-decoration: none;
  margin: 0 8px 28px;
}

.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar li a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: #d3ecea;
  text-decoration: none;
}

.sidebar li a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.sidebar li a[aria-current="page"] {
  background: var(--brand-soft);
  color: #fff;
  font-weight: 600;
}

/* -- content ------------------------------------------------------------- */

.content {
  flex: 1;
  min-width: 0;
  padding: 40px 48px 64px;
  max-width: calc(var(--sidebar-w) + 820px);  /* as wide as before the banner */
}

.content.solo {  /* a page without the sidebar (privacy.html) */
  margin: 0 auto;
  max-width: 820px;
}

.updated {
  color: #666;
  font-size: 14px;
}

h1 {
  margin: 0 0 16px;
  font-size: 34px;
  color: var(--brand-text);
}

h2 {
  margin: 36px 0 8px;
  padding-bottom: 4px;
  font-size: 22px;
  border-bottom: 1px solid var(--line);
}

.lead {
  font-size: 19px;
}

.soon {  /* until the app is in the Store */
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  background: #eef5f4;
  border: 1px solid #cfe3e1;
}

.store-badge img {  /* the official badge, saved in images/ */
  display: block;
}

figure {
  margin: 24px 0;
}

.shots {  /* the two screenshots side by side; stacked on phones */
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

.shots figure {
  margin: 0;
}

.steps {  /* the numbers are in each step's text, next to its picture */
  list-style: none;
  padding: 0;
}

.steps li {
  margin: 14px 0;
}

/* A step: its text, then Alejandro's crop of the app, marked by hand, at
   half size, right after it: each picture sits next to its own line rather
   than in a column of its own (Alejandro, 2026-11-17). */
.step {
  display: flex;
  align-items: center;
  gap: 16px;
}

.step > span:first-child {
  flex: 0 1 auto;
}

.step-shot {
  flex: 0 0 auto;
}

.step-shot img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #f1f7f7;
}

code,
kbd {
  font: 0.9em Consolas, "Cascadia Mono", monospace;
}

code {
  padding: 1px 5px;
  border-radius: 4px;
  background: #eef5f4;
}

kbd {
  display: inline-block;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: #fafafa;
}

li {
  margin: 4px 0;
}

/* One page at a time once the script runs; without it, all pages show. */
.js .page {
  display: none;
}

.js .page.active {
  display: block;
}

/* -- top bar, phones only ------------------------------------------------ */

.topbar {
  display: none;
}

@media (max-width: 760px) {
  .topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 10px 16px;
    background: var(--brand);
    color: #fff;
  }

  .menu-toggle {
    font: inherit;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    padding: 4px 10px;
  }

  .topbar-title {
    font-weight: 600;
  }

  .lto-banner {
    height: auto;
    padding: 10px 16px;
  }

  .lto-lead {
    gap: 6px;
  }

  .lto-text {
    font-size: 13px;
  }

  .lto-brand img {
    height: 13px;
  }

  .layout {
    display: block;
  }

  /* Off-canvas menu. Its top follows the bottom of the top bar, which moves
     while the banner scrolls away: script.js sets it; 52px without it. */
  .sidebar {
    position: fixed;
    top: 52px;
    bottom: 0;
    left: 0;
    height: auto;
    transform: translateX(-100%);
    transition: transform 0.2s;
    z-index: 3;
  }

  .sidebar.open {
    transform: none;
  }

  .content {
    padding: 24px 16px 48px;
  }

  .shots {
    grid-template-columns: 1fr;
  }

  .step {  /* phones: the picture under its text */
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .step-shot {
    flex: none;
  }

  .step-shot:empty {
    display: none;
  }

  h1 {
    font-size: 28px;
  }
}
