:root {
  color-scheme: light;
  --paper: #f7f4ec;
  --card: #fffdf7;
  --ink: #262019;
  --muted: #625748;
  --line: #d9cdbd;
  --accent: #692e37;
  --accent-hover: #4d2028;
  font: 100%/1.5 system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: var(--accent); text-underline-offset: .2em; }
.wrap { width: min(100% - 2rem, 44rem); margin-inline: auto; }
.bar { border-bottom: 1px solid var(--line); background: var(--card); }
.bar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 4rem; gap: 1rem; }
.brand { color: var(--ink); font-weight: 740; text-decoration: none; }
main { padding-block: clamp(1.75rem, 6vw, 4rem); }
h1, h2, p { margin: 0; }
h1 { font: 600 clamp(2rem, 7vw, 3.5rem)/1.05 Georgia, serif; letter-spacing: -.035em; overflow-wrap: anywhere; }
h2 { font-size: 1.125rem; margin-bottom: .75rem; }
.search-area { padding-bottom: .75rem; }
.search { display: flex; margin-top: 1.4rem; gap: .5rem; }
input:not([type="submit"]) {
  min-width: 0; width: 100%; padding: .7rem .8rem; background: var(--card); color: var(--ink);
  border: 1px solid #a49888; border-radius: .45rem; font: inherit;
}
button, input[type="submit"], .button {
  display: inline-block; padding: .65rem .9rem; min-height: 2.75rem; border: 1px solid transparent;
  border-radius: .45rem; background: var(--accent); color: #fff; font: inherit;
  font-weight: 650; text-decoration: none; cursor: pointer;
}
button:hover, input[type="submit"]:hover, .button:hover { background: var(--accent-hover); }
.subtle { color: var(--accent); background: transparent; border-color: var(--line); }
.subtle:hover { background: var(--paper); }
:focus-visible { outline: 3px solid #8b4751; outline-offset: 3px; }
main > section + section { margin-top: 2rem; }
.secondary { color: var(--muted); font-size: .94rem; }
.list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: .65rem; background: var(--card); }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 1rem; }
.list li + li { border-top: 1px solid var(--line); }
.list li > div { min-width: 0; overflow-wrap: anywhere; }
.list button { font-size: .875rem; white-space: nowrap; }
.empty, .notice, .progress-panel {
  padding: 1rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--card);
}
.empty { color: var(--muted); }
.notice { margin-bottom: 1.25rem; }
.author { margin-top: .5rem; color: var(--muted); font-size: 1.05rem; }
.back { display: inline-block; margin-bottom: 1.25rem; }
.progress-panel { margin-top: 1.5rem; }
.progress-panel progress { width: 100%; margin-top: .8rem; accent-color: var(--accent); }
.progress-panel .button, .progress-panel form { margin-top: .85rem; }
.sign-in { max-width: 22rem; margin-inline: auto; }
.credentials { margin-top: 1.5rem; display: grid; gap: .5rem; }
.credentials label:not(:first-child) { margin-top: .45rem; }
.credentials input[type="submit"] { justify-self: start; margin-top: .75rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 27rem) {
  .list li { align-items: flex-start; gap: .6rem; }
  .list button { padding-inline: .55rem; }
}
