:root {
  color-scheme: light dark;
 --accent: #4f7cff;
 --border: #3a3a3a55;
}

* { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem;
  line-height: 1.5;
}

h1 { margin-bottom: 0.25rem; }

.hint {
  opacity: 0.75;
  font-size: 0.95rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}

input[type="text"],
input[type="password"],
select,
textarea {
  display: block;
  width: 100%;
  margin: 0.5rem 0;
  padding: 0.6rem;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: inherit;
}

button {
  padding: 0.6rem 1rem;
  font-size: 1rem;
  border-radius: 6px;
  border: none;
  background: var(--accent);
  color: white;
  cursor: pointer;
}

button:hover { opacity: 0.9; }
button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.status { min-height: 1.2rem; font-size: 0.9rem; }

ul#articles {
  list-style: none;
  padding: 0;
}

ul#articles li {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

ul#articles .meta {
  font-size: 0.85rem;
  opacity: 0.7;
}

ul#articles .actions button {
  margin-left: 0.4rem;
  font-size: 0.85rem;
  padding: 0.35rem 0.6rem;
}

.read { opacity: 0.55; }
