/* A shared note, in the sender's theme (set by note.js) or Urth's own. */
:root { --bg: #fbf6ea; --text: #3b3a36; --accent: #c4487a; --link: #2a7ab0; --highlight: #f3d36b; }
@media (prefers-color-scheme: dark) { :root { --bg: #1d1e26; --text: #dcd9d0; --accent: #e07aa2; --link: #79b8e0; --highlight: #b39b3a; } }
:root { --soft: color-mix(in srgb, var(--text) 50%, var(--bg)); --faint: color-mix(in srgb, var(--text) 12%, var(--bg)); }
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.7 ui-monospace, "SF Mono", Menlo, monospace; }
main { max-width: 40rem; margin: 0 auto; padding: 3.5rem 1.25rem 4rem; }
h1, h2, h3, h4, h5, h6 { line-height: 1.35; margin: 1.6em 0 0.5em; font-size: 1rem; }
h1 { font-size: 1.5rem; margin-top: 0; }
h2 { font-size: 1.2rem; }
.mark { color: var(--soft); font-weight: normal; }
p { margin: 0 0 1em; overflow-wrap: anywhere; }
ul, ol { margin: 0 0 1em; padding-left: 1.6em; }
li { margin: 0.15em 0; overflow-wrap: anywhere; }
li::marker { color: var(--accent); }
li.nested { margin-left: 1.4em; }
li.task { list-style: none; margin-left: -1.6em; }
li.task.nested { margin-left: -0.2em; }
.box { color: var(--accent); margin-right: 0.5em; }
li.done > .text { text-decoration: line-through; color: var(--soft); }
blockquote { margin: 0 0 1em; padding-left: 1em; border-left: 3px solid var(--accent); color: var(--soft); }
pre { background: var(--faint); padding: 0.8em 1em; border-radius: 8px; overflow-x: auto; margin: 0 0 1em; }
code { font: inherit; }
p code, li code { background: var(--faint); padding: 0 0.25em; border-radius: 4px; }
mark { background: color-mix(in srgb, var(--highlight) 55%, transparent); color: inherit; padding: 0 0.1em; border-radius: 3px; }
a { color: var(--link); }
.wiki, .tag { color: var(--link); }
.wiki.live { cursor: pointer; border-bottom: 1px solid color-mix(in srgb, var(--link) 40%, transparent); }
.small { font-size: 0.875rem; }
.tag { background: color-mix(in srgb, var(--link) 14%, transparent); padding: 0 0.3em; border-radius: 4px; }
.table { overflow-x: auto; margin: 0 0 1em; }
/* Rounded, as Urth draws tables: an outer border with its corners rounded, lines between cells. */
table { border-collapse: separate; border-spacing: 0; font-size: 0.9em; border: 1px solid var(--faint); border-radius: 8px; overflow: hidden; }
th, td { border-right: 1px solid var(--faint); border-bottom: 1px solid var(--faint); padding: 0.3em 0.7em; vertical-align: top; }
th:last-child, td:last-child { border-right: none; }
tr:last-child > td { border-bottom: none; }
th { background: var(--faint); }
.align-left { text-align: left; } .align-center { text-align: center; } .align-right { text-align: right; }
hr { border: 0; border-top: 1px solid var(--faint); margin: 1.5em 0; }
.soft { color: var(--soft); }
footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--faint); font: 14px/1.6 -apple-system, system-ui, sans-serif;
         display: flex; align-items: center; gap: 1em; }
footer .soft { flex: 1; }   /* the line wraps under itself, beside the button */
footer .soft a { color: var(--soft); }
footer .footplanet { width: 20px; height: 20px; vertical-align: -5px; border-radius: 22%; image-rendering: pixelated; margin-right: 0.2em; }
footer .copyright { display: block; opacity: 0.7; }
[hidden] { display: none !important; }   /* even where a rule sets display */
/* Present: one slide at a time, a heading each. */
body.slides { overflow: hidden; }
body.slides main { max-width: none; padding: 0; }
body.slides main > :not(#deck) { display: none; }
#deck { position: fixed; inset: 0; background: var(--bg); font-size: clamp(20px, 2.6vw, 34px); line-height: 1.5; }
#deck section { display: none; }
#deck section.current { display: flex; flex-direction: column; box-sizing: border-box; height: 100%; padding: 6vh 8vw; overflow: hidden; }
#deck section.current > :first-child { margin-top: auto; } #deck section.current > :last-child { margin-bottom: auto; }
#deck section.fit1 { font-size: 0.85em; } #deck section.fit2 { font-size: 0.72em; } #deck section.fit3 { font-size: 0.6em; } #deck section.fit4 { font-size: 0.5em; }
#deck section.over { -webkit-mask-image: linear-gradient(to bottom, black 82%, transparent 97%); mask-image: linear-gradient(to bottom, black 82%, transparent 97%); }
#deck section > * { max-width: 34em; }
#deck h1 { font-size: 2.2em; line-height: 1.15; margin: 0 0 0.5em; } #deck h2 { font-size: 1.7em; margin: 0 0 0.5em; } #deck h3 { font-size: 1.25em; }
#deck .mark { display: none; }
#deck p.tags { display: none; }   /* a line of tags is for Urth, not the room */
#deck .wiki, #deck .tag { color: inherit; background: none; border: 0; cursor: default; }   /* no links in a presentation; addresses stay */
#deck p, #deck ul, #deck ol, #deck blockquote, #deck pre, #deck .table { margin: 0 0 0.6em; }
#deckcount { position: fixed; right: 2vw; bottom: 1.5vh; font: 13px/1 -apple-system, system-ui, sans-serif; color: var(--soft); }
#deckclose { position: fixed; left: 1.5vw; top: 1.5vh; }
/* The theme switcher. */
#themes { margin-top: 1.5rem; font: 14px/1.6 -apple-system, system-ui, sans-serif; }
#theme { display: flex; flex-direction: column; gap: 1.1em; }
.themegroup > p { margin: 0 0 0.45em; }
.themegroup .cards { display: flex; flex-wrap: wrap; gap: 0.75em; }
.swatch { display: flex; flex-direction: column; gap: 0.3em; width: 7.5em; padding: 0; border: 0; background: none; color: var(--soft);
          font: 12px/1.3 -apple-system, system-ui, sans-serif; text-align: left; cursor: pointer; }
.swatch .card { display: block; padding: 0.55em 0.7em; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--text) 15%, transparent);
                font: 11px/1.5 ui-monospace, Menlo, monospace; white-space: nowrap; overflow: hidden; }
.swatch .line { display: block; }
.swatch .line:first-child { font-weight: 700; }
.swatch .mark { display: inline-block; width: 0.8em; height: 0.8em; border-radius: 2px; vertical-align: -1px; }
.swatch .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.swatch[aria-checked="true"] { color: var(--text); }
.swatch[aria-checked="true"] .card { box-shadow: 0 0 0 2px var(--accent); border-color: transparent; }
.swatch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
/* Editing, and sending back. */
#editor { margin-top: 1.5rem; }
#draft { display: block; width: 100%; min-height: 16rem; padding: 1rem; border: 1px solid var(--faint); border-radius: 10px;
         background: color-mix(in srgb, var(--text) 4%, var(--bg)); color: var(--text); font: inherit; line-height: 1.6; resize: vertical; }
#draft:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
#replylink { display: block; width: 100%; margin-top: 1rem; padding: 0.5em 0.75em; border: 1px solid var(--faint); border-radius: 8px;
             background: none; color: var(--text); font: 13px/1.5 ui-monospace, Menlo, monospace; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75em 1em; margin-top: 1rem; }
.plain { background: none; border: 1px solid var(--faint); color: var(--text); padding: 0.45em 0.9em; border-radius: 999px;
         font: 14px/1.6 -apple-system, system-ui, sans-serif; cursor: pointer; }
.plain:hover { border-color: var(--soft); }
.plain[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }   /* open: press again to close */
.button { display: inline-block; background: var(--accent); color: var(--bg); text-decoration: none; padding: 0.5em 1em; border-radius: 999px; font-weight: 600; white-space: nowrap; flex: none; }
button.button { border: 0; font: 600 14px/1.6 -apple-system, system-ui, sans-serif; cursor: pointer; }
.button:focus-visible, .plain:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
