:root {
  color-scheme: dark;
  --bg: #12202b;
  --panel: #1b2e3b;
  --line: #35505e;
  --paper: #ede7da;
  --muted: #a9b4b8;
  --accent: #e3a23e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font:
    16px/1.55 system-ui,
    sans-serif;
}
main {
  max-width: 860px;
  margin: auto;
  padding: 42px 24px;
}
header,
.capture-foot,
.list-head,
.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
h1,
h2 {
  font-family: Georgia, serif;
  font-weight: 400;
}
h1 {
  font-size: 48px;
  margin: 0;
}
h1 span {
  color: var(--accent);
  margin-left: 16px;
}
h2 {
  font-size: 25px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
}
button,
input,
textarea {
  font: inherit;
  border-radius: 9px;
  border: 1px solid var(--line);
  padding: 10px 13px;
}
button {
  cursor: pointer;
  background: var(--panel);
  color: var(--paper);
  min-height: 44px;
}
button:hover,
button.selected {
  border-color: var(--accent);
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
input,
textarea {
  background: var(--bg);
  color: var(--paper);
  max-width: 100%;
}
textarea {
  width: 100%;
  resize: vertical;
}
label {
  display: block;
}
label input {
  display: block;
  width: 100%;
  margin: 8px 0 18px;
}
.capture {
  background: var(--panel);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  margin: 28px 0;
}
.capture label {
  font:
    25px Georgia,
    serif;
  margin-bottom: 16px;
}
.capture textarea {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 19px;
}
.capture-foot {
  margin-top: 12px;
}
#add,
#enroll {
  background: var(--accent);
  color: var(--bg);
  font-weight: 650;
}
small,
#status,
footer,
.meta,
section > p {
  color: var(--muted);
  font-size: 13px;
}
#status {
  min-height: 21px;
}
nav {
  display: flex;
  gap: 8px;
  overflow: auto;
}
nav button {
  white-space: nowrap;
}
.list-head {
  margin-top: 24px;
}
.list-head input {
  width: 45%;
}
article {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
article p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0 0 10px;
  font-size: 18px;
}
.actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 13px;
}
.actions button {
  font-size: 13px;
}
.meta {
  margin: 8px 0;
}
.date {
  color: var(--accent);
}
#settings,
#setup {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  margin-top: 24px;
}
#settings button {
  margin: 4px;
}
#pairLink {
  margin-top: 14px;
  height: 110px;
}
.file {
  margin: 14px 0;
}
.file input {
  margin-top: 8px;
}
footer {
  text-align: center;
  margin: 50px 0 12px;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
[hidden] {
  display: none !important;
}
@media (max-width: 540px) {
  main {
    padding: 24px 16px;
  }
  h1 {
    font-size: 39px;
  }
  .eyebrow {
    font-size: 8px;
  }
  .capture {
    padding: 18px;
  }
  .capture-foot {
    align-items: flex-end;
  }
  .list-head {
    align-items: stretch;
    flex-direction: column;
  }
  .list-head input {
    width: 100%;
  }
  nav {
    gap: 5px;
  }
  nav button {
    font-size: 13px;
    padding: 9px;
  }
  header button {
    font-size: 13px;
  }
}
