/* Same paper, ink and rust as Virgil's printed guide, so the link and the guide read as one thing. */
:root {
  --paper: #fbf8f2;
  --ink: #1c1b19;
  --muted: #6b675f;
  --rule: #d9d3c6;
  --accent: #9a3b1b;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--paper); color: var(--ink); }
body { font: 17px/1.55 var(--serif); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.shell { display: grid; grid-template-columns: minmax(0, 38rem) minmax(0, 1fr); height: 100dvh; }

.talk { display: flex; flex-direction: column; min-height: 0; padding: 0 1.5rem; border-right: 1px solid var(--rule); }
.mast { display: flex; align-items: baseline; gap: .75rem; padding: 1.1rem 0 .9rem; border-bottom: 1px solid var(--rule); }
.mast .name { font-size: 1.25rem; font-weight: 600; letter-spacing: .01em; }
.mast .what { font-family: var(--sans); font-size: .85rem; color: var(--muted); }

.thread { flex: 1; overflow-y: auto; padding: 1.5rem 0 1rem; }
.turn { margin: 0 0 1.25rem; }
.turn p { margin: 0 0 .7em; }
.turn ul { margin: 0 0 .7em; padding-left: 1.2em; }
.turn.virgil { max-width: 34rem; }
.turn.opening p { font-size: 1.45rem; line-height: 1.35; }
.turn.person { margin-left: 3rem; padding: .7rem .9rem; background: #f1ece2; border-left: 3px solid var(--rule); font-family: var(--sans); font-size: .95rem; white-space: pre-wrap; }
.turn.note { font-family: var(--sans); font-size: .85rem; color: var(--muted); }
.turn a { color: var(--accent); }

.status { min-height: 1.4em; font-family: var(--sans); font-size: .85rem; color: var(--muted); }
.status.error { color: var(--accent); }

.compose { padding: .5rem 0 .75rem; }
.compose textarea { width: 100%; resize: vertical; min-height: 4.2rem; max-height: 40vh; padding: .7rem .8rem; border: 1px solid var(--rule); border-radius: 3px; background: #fff; font: 1rem/1.45 var(--sans); color: var(--ink); }
.compose textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.compose .row { display: flex; gap: 1rem; align-items: center; justify-content: space-between; margin-top: .5rem; }
.consent { font-family: var(--sans); font-size: .78rem; color: var(--muted); display: flex; gap: .45rem; align-items: flex-start; }
.consent input { margin-top: .2rem; }
button[type=submit] { flex: none; margin-left: auto;padding: .55rem 1.3rem; border: 0; border-radius: 3px; background: var(--ink); color: var(--paper); font: 600 .95rem var(--sans); cursor: pointer; }
button[type=submit]:disabled { opacity: .45; cursor: default; }

.small { padding: .5rem 0 1rem; border-top: 1px solid var(--rule); font-family: var(--sans); font-size: .75rem; color: var(--muted); }
.small p { margin: .2rem 0; }
.link { border: 0; background: none; padding: 0; margin-right: 1rem; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }

.pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #fff; }
.pane-head { display: flex; justify-content: space-between; align-items: baseline; padding: 1.1rem 1.25rem .4rem; font-weight: 600; }
.pane-note { margin: 0 1.25rem .6rem; font-family: var(--sans); font-size: .8rem; color: var(--muted); }
.pane iframe { flex: 1; width: 100%; border: 0; border-top: 1px solid var(--rule); }
.pane .close { display: none; }

.show-picture { margin-left: auto; border: 1px solid var(--rule); border-radius: 3px; background: #fff; padding: .3rem .7rem; font: .85rem var(--sans); color: var(--ink); cursor: pointer; }
.dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); margin-left: .25rem; vertical-align: middle; }

/* Phone: the conversation is the page; the picture slides over it. */
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .talk { border-right: 0; padding: 0 1rem; }
  .mast .what { display: none; }
  .turn.person { margin-left: 1.5rem; }
  .pane { position: fixed; inset: 0; transform: translateX(100%); transition: transform .2s ease; z-index: 5; }
  .pane.open { transform: none; }
  .pane .close { display: inline; border: 0; background: none; font: .85rem var(--sans); color: var(--accent); text-decoration: underline; cursor: pointer; }
  .compose .row { flex-direction: column; align-items: stretch; }
}
@media (min-width: 821px) { .show-picture { display: none; } }
