/* oomoo -- the /now page. Same bones as css/voicemail/voicemail.css: this file is the
 * page, the imports are the whole dependency list -- tokens first so everything after can
 * read --ink, --dim and --text -- and the column is the voicemail page's column.
 *
 * One register only: this page is prose, so everything reads the site tokens and follows
 * the palette. No photograph, no phosphor.
 */

@import url('../tokens.css');
@import url('../reset.css');
@import url('../utilities.css');
@import url('../home/fonts.css');

/* ------------------------------------------------------------------- Page */

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'National Park', system-ui, sans-serif;
  min-height: 100svh;
}

.label {
  text-transform: uppercase;
  font-family: 'National Park', system-ui, sans-serif;
}

.back {
  position: fixed;
  top: 14px;
  left: 14px;
  font-size: 11px;
  color: var(--dim);
  text-decoration: none;
  z-index: 2;
}

.back:hover {
  color: var(--accent);
}

.now {
  max-width: 680px;
  margin: 0 auto;
  padding: 64px 18px 48px;
}

.now__masthead {
  text-align: center;
  margin-bottom: 28px;
}

.now__title {
  font-family: 'Terminal Grotesque', 'National Park', sans-serif;
  font-size: clamp(2.6rem, 9vw, 4.5rem);
  line-height: 1;
  color: var(--ink);
}

/* ------------------------------------------------------------------ Prose */

.now__prose {
  font-size: 0.95rem;
  line-height: 1.55;
}

.now__prose h1,
.now__prose h2 {
  color: var(--ink);
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
}

.now__prose p {
  margin: 0.8rem 0;
}

.now__prose hr {
  border: 0;
  border-top: 1px dotted var(--line);
  margin: 1.6rem 0;
}

.now__prose ul {
  margin: 0.8rem 0;
  padding-left: 1.4em;
}

/* The reset strips list markers site-wide, so the bullet is drawn by hand: a four-point
 * star in the accent, hung in the indent the way a real marker would be. */
.now__prose li {
  position: relative;
  margin: 0.45rem 0;
}

.now__prose li::before {
  content: '\2726'; /* ✦ */
  position: absolute;
  left: -1.6em;
  top: 0.35em;
  font-size: 0.65em;
  color: var(--ink);
}

.now__prose ul ul {
  margin: 0.45rem 0 0;
}

.now__prose blockquote {
  margin: 1.8rem 0 0;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
  font-style: italic;
  color: var(--ink);
}

.now__prose blockquote p {
  margin: 0.4rem 0 0;
}

.now__prose blockquote p:first-child {
  margin-top: 0;
}

/* ------------------------------------------------------------------- Foot */

.now__foot {
  margin-top: 52px;
  text-align: center;
  color: var(--dim);
  font-size: 0.75rem;
}

.now__foot a {
  color: inherit;
  text-decoration: underline;
}

.now__foot a:hover {
  color: var(--accent);
}

/* The date under the masthead -- the moos' dot-date, worn as a subtitle. */
.now__date {
  margin-top: 8px;
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.12em;
}

/* ------------------------------------------------------------------- Walk */

/* The archive, one entry at a time: previous on the left, newer on the right. */
.now__walk {
  display: flex;
  justify-content: space-between;
  margin-top: 2.2rem;
  font-size: 11px;
}

.now__walk a {
  color: var(--dim);
  text-decoration: none;
}

.now__walk a:hover {
  color: var(--accent);
}

/* "newer" keeps its right edge even when it walks alone. */
.now__walk-next {
  margin-left: auto;
}

.now__empty {
  text-align: center;
  color: var(--dim);
  font-size: 0.85rem;
}

/* ------------------------------------------------------------------ Admin */

/* Same voice as the moos' controls -- small labels, hairline dialogs. Only ever rendered
 * into the page for an admin session. */

.admin-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  border: 1px dashed var(--accent);
  padding: 8px 12px;
  margin-bottom: 1.5rem;
  font-size: 10px;
}

.admin-bar button {
  background: none;
  border: 0;
  color: var(--dim);
  font: inherit;
  text-transform: inherit;
  cursor: pointer;
  padding: 2px 0;
}

.admin-bar button:hover {
  color: var(--accent);
}

.dlg {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--accent);
  padding: 18px;
  width: min(38rem, calc(100vw - 28px));
}

.dlg::backdrop {
  background: rgb(0 0 0 / 0.6);
}

.dlg__form {
  display: grid;
  gap: 10px;
}

.dlg__form h2 {
  font-size: 11px;
  color: var(--accent);
}

.dlg__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.dlg__input {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  font-family: 'National Park', system-ui, sans-serif;
  font-size: 12px;
  padding: 6px 8px;
}

.dlg__input:focus {
  outline: 1px solid var(--accent);
  outline-offset: 1px;
}

/* The body is markdown written by hand, so the textarea wears the writing face: monospace. */
textarea.dlg__input {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  resize: vertical;
}

.dlg__actions {
  justify-content: flex-end;
}

.dlg__actions button {
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  font-size: 10px;
  padding: 5px 12px;
  cursor: pointer;
}

.dlg__actions button:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.dlg__actions button:disabled {
  opacity: 0.4;
  cursor: default;
}

.dlg__delete {
  margin-right: auto;
  color: var(--dim);
}

.dlg__error {
  font-family: 'National Park', system-ui, sans-serif;
  font-size: 10px;
  color: var(--accent);
}
