/* Pages that are read rather than browsed: the guide, the ideas and the
   legal texts. A column for reading, a contents list beside it on a wide
   screen, and the app's conversation grammar where it helps. */

.read-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, var(--read));
  gap: clamp(40px, 6vw, 96px);
  padding-bottom: clamp(64px, 9vw, 120px);
}
.toc {
  position: sticky;
  top: 96px;
  align-self: start;
  font-size: 0.9375rem;
}
.toc b {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 600;
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  border-left: 1px solid var(--line);
}
.toc a {
  display: block;
  padding: 6px 0 6px 16px;
  color: var(--soft);
  text-decoration: none;
  line-height: 1.4;
}
.toc a:hover {
  color: var(--text);
}

.prose > * + * {
  margin-top: 1.1em;
}
.prose h2 {
  margin-top: 2.6em;
  font-size: clamp(1.625rem, 3vw, 2.125rem);
  line-height: 1.15;
  scroll-margin-top: 96px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  margin-top: 1.9em;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-variation-settings: "FLAR" 60, "VOLM" 20;
  scroll-margin-top: 96px;
}
.prose h4 {
  margin: 1.6em 0 0;
  font-size: 1.0625rem;
}
.prose p,
.prose li {
  color: #dcdce0;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
}
.prose li + li {
  margin-top: 0.45em;
}
.prose li::marker {
  color: var(--muted);
}
.prose a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: #6b6b70;
  text-underline-offset: 3px;
}
.prose a:hover {
  text-decoration-color: currentColor;
}
.prose strong {
  color: var(--text);
  font-weight: 680;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.4em 0;
}
.prose code {
  font-family: ui-monospace, "Cascadia Mono", Menlo, monospace;
  font-size: 0.92em;
}

/* Words the app itself shows, so a reader can match the screen. */
.ui {
  display: inline-block;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--raised);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95em;
  line-height: 1.55;
  white-space: nowrap;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.prose table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.prose th,
.prose td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.prose th {
  color: var(--text);
  font-weight: 650;
  background: var(--surface);
}
.prose tr:last-child td {
  border-bottom: 0;
}

.callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px 22px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.callout .face {
  --size: 40px;
}
.callout p {
  margin: 0;
}
.callout p + p {
  margin-top: 8px;
}

.meta-line {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* The guide's availability cards. */

.where {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.where > div {
  padding: 22px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.where svg {
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
}
.where .is-android svg {
  color: #3ddc84;
}
.where .is-soon {
  color: var(--soft);
}
.where .is-soon svg {
  color: var(--muted);
}
.where b {
  display: block;
  font-size: 1.125rem;
}
.where p {
  margin-top: 6px;
  font-size: 1.125rem;
  color: var(--soft);
}

/* Questions and answers. */

.faq {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  font-size: 1.125rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--raised);
  font-weight: 500;
  line-height: 1;
}
.faq details[open] summary::after {
  content: "\2212";
}
.faq details > div {
  padding: 0 0 20px;
}
.faq details > div p {
  color: var(--soft);
}

/* Ideas: one assistant at a time, with what you might say to it. */

.idea {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(40px, 6vw, 72px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 80px;
}
.idea__who {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
}
.idea__who .face {
  --size: 64px;
}
.idea h2 {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  line-height: 1.1;
}
.idea__intro {
  margin-top: 18px;
  color: var(--soft);
}
.idea__routine {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #2a2412;
  color: #ffe9a8;
  font-size: 1.125rem;
}
.idea__routine time {
  flex: none;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--sun);
}
.idea__limit {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1rem;
}
.chat {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.chat li {
  display: flex;
}
.chat .me {
  justify-content: flex-end;
}
.chat .me span {
  max-width: 88%;
  padding: 11px 16px;
  border-radius: var(--r-bubble) var(--r-bubble) 6px var(--r-bubble);
  background: var(--user-bubble);
  font-size: 1.125rem;
  line-height: 1.45;
}
.chat .it span {
  max-width: 88%;
  padding: 11px 16px;
  border-radius: var(--r-bubble) var(--r-bubble) var(--r-bubble) 6px;
  background: var(--bot-bubble);
  border: 1px solid var(--line);
  color: var(--soft);
  font-size: 1.125rem;
  line-height: 1.45;
}

.idea--rooms,
.idea--own {
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
}
.rooms-list,
.own-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.rooms-list > li {
  padding: 22px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.rooms-list h3 {
  margin-top: 12px;
  font-size: 1.25rem;
}
.rooms-list p {
  margin-top: 6px;
  color: var(--soft);
  font-size: 1.125rem;
}
.rooms-list .room-who {
  margin-top: 2px;
  color: var(--muted);
  font-size: 1rem;
}
.rooms-list .chat {
  margin-top: 14px;
}
.face-pair {
  display: flex;
}
.face-pair .face {
  --size: 36px;
}
.face-pair .face + .face {
  margin-left: -8px;
}
.own-list {
  grid-template-columns: 1fr 1fr;
}
.own-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border-radius: 22px;
  border: 1.5px dashed var(--rim);
}
.own-list .face {
  --size: 44px;
}
.own-list b {
  font-weight: 680;
}
.own-list p {
  margin-top: 4px;
  color: var(--soft);
  font-size: 1.0625rem;
}
@media (max-width: 960px) {
  .idea--rooms,
  .idea--own {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .own-list {
    grid-template-columns: 1fr;
  }
}

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
  list-style: none;
  padding: 0;
}
.jump a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: var(--r-pill);
  border: 1px solid var(--rim);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
}
.jump a:hover {
  background: var(--surface);
}
.jump .face {
  --size: 28px;
}

.closing {
  padding: clamp(56px, 8vw, 96px) 0;
  border-top: 1px solid var(--line);
}
.closing__box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 48px;
  align-items: center;
}
.closing h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  line-height: 1.1;
}
.closing p {
  margin-top: 12px;
  color: var(--soft);
}

/* The 404 page. */

.lost {
  display: grid;
  justify-items: start;
  gap: 22px;
  padding: clamp(64px, 12vw, 160px) 0;
}
.lost .face {
  --size: 96px;
}
.lost h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
}
.lost p {
  color: var(--soft);
  max-width: 44ch;
}

@media (max-width: 960px) {
  .read-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .toc {
    position: static;
    padding: 18px 20px;
    border-radius: 20px;
    background: var(--surface);
  }
  .toc ol {
    border-left: 0;
  }
  .toc a {
    padding-left: 0;
    border-left: 0;
  }
  .idea {
    grid-template-columns: minmax(0, 1fr);
  }
  .closing__box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .where {
    grid-template-columns: 1fr;
  }
  .ui {
    white-space: normal;
  }
}
