:root {
  color-scheme: light dark;
  --bg: #fafbf9;
  --surface: #ffffff;
  --surface-muted: #ededeb;
  --text: #29302d;
  --muted: #777771;
  --line: #d9d9d3;
  --accent: #b34f72;
  --selection-color: #f0e0e5;
  --shadow: 0 12px 35px rgb(0 0 0 / 6%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #181b1a;
    --surface: #20221f;
    --surface-muted: #2a2c29;
    --text: #e6ebe8;
    --muted: #9d9e96;
    --line: #383a36;
    --accent: #f09ab7;
    --selection-color: #59454d;    
    --shadow: 0 12px 35px rgb(0 0 0 / 22%);
  }
}

* {
  box-sizing: border-box;
  outline-color: var(--muted);
}

::selection {
  background: var(--selection-color);
}

body {
  min-width: 320px;
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
  color: var(--text);
  background: var(--bg);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.4;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
}

article,
.compose {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.compose {
  background: inherit;
  padding: 1rem;
}

.search,
.compose {
  margin-bottom: 1.5rem;
}

.compose textarea {
  padding: 0;
  border: none;
  scrollbar-width: none;
}

.compose textarea::-webkit-scrollbar {
  display: none;
}

.compose:focus-within {
  border-color: var(--muted);
}

textarea,
input[type="search"],
input[type="password"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .65rem;
  color: var(--text);
  background: var(--bg);
  font: inherit;
}

textarea {
  min-height: 130px;
  resize: vertical;
  outline: none;
  padding: .8rem;
}

.row {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: .8rem;
  margin-top: .7rem;
}

.post-.pager {
  display: flex;
  margin-top: 1.5rem;
}

.pager .older {
  margin-left: auto;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .8rem;
  margin-top: .8rem;
}

.post-actions {
  display: flex;
  gap: .45rem;
}

nav a.button,
nav button,
.post-actions a,
.post-actions button {
  padding: .35rem .65rem;
  font-size: .8rem;
}

.flash {
  margin-bottom: 1rem;
  padding: .75rem .9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-muted);
}

button,
.button {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .65rem .9rem;
  color: var(--accent);
  background: transparent;
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
  text-decoration: none;
  white-space: pre;
}

button:hover,
.button:hover {
  background: var(--surface-muted);
}

button.secondary,
.button.secondary {
  color: var(--muted);
  background: var(--surface-muted);
}

button.secondary:hover,
.button.secondary:hover {
  background: var(--line);
}

.hint {
  position:absolute;
  left:-10000px;
  width:1px;
  height:1px;
  overflow:hidden;
}

article {
  position: relative;
  margin: .85rem 0;
  padding: 0 1rem .85rem;
}

article .body {
  overflow-wrap: anywhere;
  font-size: 1rem;
}

time {
  color: var(--muted);
  font-size: .78rem;
}

.search-meta,
.empty,
.hint {
  color: var(--muted);
  font-size: .9rem;
}

.search-meta {
  margin: .9rem 0;
}

.search-meta a {
  margin-left: .5rem;
}

.pager {
  display: flex;
  margin-top: 1.5rem;
}

.pager .older {
  margin-left: auto;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: .8rem;
}
