/* usefrontmost.com, a page to read (privacy), in the home page's look.
   Loaded after home.css, whose colours, header and look switch it uses.
   Layout: the home page's column. The title, date and opening paragraph sit
   in the top task's sheet with the languages under them; each section
   follows with its heading in the accent. The foot is at the end, not fixed. */
html { overscroll-behavior: auto; }
body.reads { touch-action: auto; }
.doc { max-width: var(--col); margin: clamp(8px, 3vh, 44px) auto 0; }
.doc-head { background: var(--sheet); border-radius: clamp(20px, 2.6vw, 32px); padding: clamp(22px, 3.4vw, 36px) var(--inset) clamp(24px, 4vw, 44px); display: grid; grid-template-columns: 1fr auto; grid-template-areas: "langs date" "title title" "lead lead"; gap: 12px 16px; align-items: baseline; transition: background-color .35s; }
.doc-head h1 { grid-area: title; margin-top: clamp(10px, 2.4vw, 26px); font-size: clamp(22px, 4.4vw, 38px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; text-wrap: balance; overflow-wrap: break-word; }
.doc-head .hint { grid-area: date; color: var(--hint); font-size: 13px; }
.doc-head .lead { grid-area: lead; color: var(--secondary); font-size: var(--task); }
/* the languages: codes in a row at the top of the sheet, the one that is on
   in the accent and in brackets, as the app marks a choice */
.langs { grid-area: langs; display: flex; gap: 2px; margin-left: -8px; font-size: 15px; font-weight: 700; }
.doc .langs a, .langs b { padding: 6px 8px; border-radius: 8px; text-decoration: none; color: var(--hint); transition: color .15s, background-color .15s; }
.langs b { color: var(--accent); }
@media (hover: hover) { .doc .langs a:hover { color: var(--ink); background: color-mix(in srgb, var(--accent) 16%, transparent); } }
.langs a:active { transform: scale(0.95); }
.doc .part { padding: clamp(26px, 4vw, 40px) var(--inset) 0; display: grid; gap: 12px; }
.doc .part h2 { margin: 0; font-size: var(--task); font-weight: 700; color: var(--accent); text-wrap: balance; }
.doc .part div { display: grid; gap: 12px; color: var(--secondary); }
.doc .part ul { display: grid; gap: 12px; }
.doc .part li { padding-left: 2ch; text-indent: -2ch; }
.doc .part li::before { content: "· "; color: var(--accent); font-weight: 700; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc code { font: inherit; color: var(--accent); font-weight: 600; }
.reads .foot { position: static; margin: clamp(48px, 8vh, 90px) auto 0; padding: 22px var(--inset) calc(28px + env(safe-area-inset-bottom, 0px)); max-width: var(--col); justify-content: center; }

/* a sent list (/l/) and a shared folder's invite (/join/), in the column:
   the list as the app draws it, a task a line in its box, steps pushed in,
   the date in grey; the invite's card; then the buttons */
.sent, .join { max-width: 560px; margin: clamp(8px, 3vh, 44px) auto 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.sent .hint, .join .hint { color: var(--hint); font-size: 13px; }
.sec { color: var(--secondary); }
.sent h1 { font-size: clamp(24px, 4.4vw, 38px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; overflow-wrap: anywhere; }
.sent .tasks { margin: 14px 0 10px; padding: 18px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 10px; }
.sent .tasks li { display: grid; grid-template-columns: 2ch minmax(0, 1fr); gap: 6px; align-items: baseline; }
.sent .tasks li.step { padding-left: 2ch; color: var(--secondary); }
.sent .tasks .mk { color: var(--accent); }
.sent .tasks .title { overflow-wrap: anywhere; font-weight: 600; }
.sent .tasks .when { color: var(--hint); font-weight: 400; }
.sent #note, .join #note { max-width: 48ch; }
.join { gap: 18px; }
.join .card { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 0 0 1px var(--rule); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.btn { display: inline-flex; align-items: center; height: 46px; padding-inline: 18px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink); background: var(--glass); box-shadow: 0 0 0 1px var(--rule); }
.btn.main { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.btn:active { transform: scale(0.97); }

@media (max-width: 640px) {
  .doc .part div { font-size: 14px; }
  .doc-head { grid-template-columns: 1fr; grid-template-areas: "langs" "title" "date" "lead"; }
}
