/* ===================================================================
   NATaLiA — "Early-web document"
   White paper, black type, hairline rules, blue underlined actions.
   No fills, no shadows, no chrome. Typography and whitespace only.
   =================================================================== */

:root {
  --paper: #ffffff;
  --ink: #111111;
  --quiet: #666666;
  --rule: #cccccc;
  --rule-strong: #111111;
  --link: #0000ee;
  --visited: #551a8b;
  --danger: #990000;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23111111'/%3E%3C/svg%3E");
  color-scheme: light;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 17px;
  line-height: 1.5;
  margin: 0;
  padding: 0 1rem;
}

.container { margin: 0 auto; max-width: 42rem; }

header {
  border-bottom: 1px solid var(--rule-strong);
  padding: 1.25rem 0 0.6rem 0;
  text-align: center;
  width: 100%;
}

header span {
  color: var(--quiet);
  font-size: 0.72rem;
  font-style: italic;
  letter-spacing: 0.04em;
}

main {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

/* --- the one task -------------------------------------------------- */

.next-item { max-width: 32rem; text-align: center; width: 100%; }

.next-item h2 {
  font-size: 1.9rem;
  font-weight: normal;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0 0 1rem 0;
}

/* The notes are a bare text node after the heading, so they inherit from
   .next-item; the heading margin above does the separating. */
.next-item { color: var(--ink); }

main > p { color: var(--quiet); font-style: italic; text-align: center; }

footer {
  border-top: 1px solid var(--rule-strong);
  display: flex;
  gap: 2.25rem;
  justify-content: center;
  padding: 0.6rem 0 1.25rem 0;
  width: 100%;
}

/* --- controls ------------------------------------------------------ */

button {
  background: none;
  border: none;
  color: var(--link);
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
}

button:hover { color: var(--visited); }
button:disabled { color: var(--quiet); cursor: default; text-decoration: none; }

footer button.open-button {
  color: var(--ink);
  font-weight: bold;
  text-decoration: none;
}

/* The two committing actions get a box, because they are the only things
   on the page that change anything. */
.complete, .create {
  background: var(--paper);
  border: 1px solid var(--rule-strong) !important;
  color: var(--ink) !important;
  cursor: pointer;
  font: inherit;
  padding: 0.4rem 1.6rem !important;
  text-decoration: none !important;
}

.complete { align-self: center; margin-top: 1.75rem; }
.complete:hover, .create:hover:not(:disabled) { background: var(--ink); color: var(--paper) !important; }
.create:disabled { border-color: var(--rule) !important; color: var(--quiet) !important; }

:focus-visible { outline: 1px dotted var(--ink); outline-offset: 3px; }

input[type="text"],
input[type="date"],
select,
textarea {
  background-color: var(--paper);
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  padding: 0.3rem 0.4rem;
  width: 100%;
}

textarea { min-height: 5rem; resize: vertical; }

.theme-picker__label {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

label.column, .task-item > .column {
  align-items: stretch;
  font-size: 0.8rem;
  gap: 0.25rem;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  text-align: left;
  text-transform: uppercase;
}

.task-item > .column > button { align-self: flex-start; text-transform: none; }

/* --- panels -------------------------------------------------------- */

dialog {
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  left: 50%;
  max-height: 80%;
  overflow-y: auto;
  padding: 1.75rem 2rem;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(42rem, calc(100% - 2rem));
}

dialog h3 {
  border-bottom: 1px solid var(--rule);
  font-size: 1.1rem;
  font-weight: normal;
  font-style: italic;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
}

dialog p { font-size: 0.95rem; margin: 0 0 0.9rem 0; }
dialog > .row { margin-top: 1.25rem; }
dialog > .row > button + button { margin-left: 1.5rem; }

/* --- the task table ------------------------------------------------ */

table {
  border-collapse: collapse;
  font-size: 0.85rem;
  width: 100%;
}

th {
  border-bottom: 1px solid var(--rule-strong);
  font-style: italic;
  font-weight: normal;
  padding: 0.4rem 0.75rem 0.4rem 0;
  text-align: left;
  white-space: nowrap;
}

td {
  border-bottom: 1px solid var(--rule);
  padding: 0.55rem 0.75rem 0.55rem 0;
  vertical-align: top;
}

tbody tr:last-child td { border-bottom: none; }

/* --- row actions --------------------------------------------------- */

/* Pictograms do not belong in a page made only of type, so the icons are
   swapped for the words they stand for. */
.action-icon { display: none; }

td .row { gap: 1rem; justify-content: flex-start; }

button.edit::after { content: "edit"; }
button.delete::after { content: "delete"; }
button.delete { color: var(--danger); }
button.delete:hover { color: var(--ink); }
