:root {
  color-scheme: light;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 10pt;
  color: #828282;
  background: #fff;
}

body { margin: 8px; }
.page { width: 85%; min-width: min(796px, 100%); margin: 0 auto; background: #f6f6ef; }
header { background: #ff6600; padding: 2px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 4px; width: fit-content; }
.brand:link, .brand:visited { color: #000; }
.mark {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid #fff;
  color: #fff;
  font: 18px/18px Verdana, Geneva, sans-serif;
}
a { text-decoration: none; }
a:link { color: #000; }
a:visited { color: #828282; }
main { padding: 10px 0 0; }
.feed { grid-area: feed; min-width: 0; }
.interests { padding: 0 8px; max-width: 480px; }
ol { list-style: none; padding: 0 5px 0 2px; margin: 0; counter-reset: stories; }
li { display: grid; grid-template-columns: 29px minmax(0, 1fr); column-gap: 4px; margin-bottom: 5px; counter-increment: stories; }
li::before { content: counter(stories) "."; text-align: right; line-height: 16px; }
.story-heading { font-size: 10pt; line-height: 16px; overflow-wrap: anywhere; }
.story-title { color: #000; }
.domain { font-size: 8pt; margin-left: 4px; color: #828282; }
.metadata { font-size: 7pt; line-height: 12px; }
.metadata a:link, .metadata a:visited { color: #828282; }
.metadata a:hover { text-decoration: underline; }
button { font: inherit; border: 0; padding: 0; background: none; color: #000; cursor: pointer; }
button:disabled { color: #828282; cursor: wait; }
button:hover { text-decoration: underline; }
#more { margin: 10px 0 0 35px; }
#status, #empty, noscript p { margin: 0 10px 10px 35px; line-height: 1.5; }
#status:empty { display: none; }
#status.error { color: #a33; }
footer { margin-top: 20px; border-top: 2px solid #ff6600; padding: 15px 5px 8px; text-align: center; }
footer button { font-size: 8pt; }
.search { margin: 12px 0 8px; }
input { font: 10pt monospace; width: 190px; max-width: 65%; padding: 1px 2px; }
:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
[hidden] { display: none !important; }
#interests-form { margin: 0; }
#interests-form label { display: block; margin-bottom: 6px; }
#interests-input { display: block; box-sizing: border-box; width: 100%; margin-bottom: 8px; font: 10pt monospace; resize: vertical; }
#interests-form button { margin-right: 12px; }
#interests-status { color: #a33; margin: 8px 0 0; }

@media (max-width: 750px) {
  body { margin: 0; }
  .page { width: 100%; min-width: 0; }
  main { grid-template-columns: minmax(0, 1fr); grid-template-areas: "interests" "feed"; }
  .interests { position: static; padding: 0 12px 14px; border-left: 0; border-bottom: 1px solid #ddd; }
  .brand { gap: 5px; min-height: 24px; }
  .brand strong { font-size: 15px; }
  .story-heading { font-size: 11pt; line-height: 14pt; }
  li::before { line-height: 14pt; }
  .metadata { font-size: 9pt; line-height: 15px; }
}

header { gap: 8px; color: #000; }
#account { margin-left: auto; padding-right: 4px; display: flex; gap: 8px; }
nav { font-size: 10pt; }
.auth { padding: 12px 8px 24px; color: #000; }
#auth-form { max-width: 430px; }
#auth-form h2 { font: bold 13pt Verdana, Geneva, sans-serif; margin: 4px 0 18px; }
#auth-form label { display: inline-block; width: 80px; }
#auth-form input { width: 200px; max-width: calc(100% - 95px); }
#auth-form .hint { margin: 6px 0 12px 84px; }
.hint { font-size: 8pt; line-height: 1.5; color: #828282; }
.primary { font: 10pt Verdana, Geneva, sans-serif; padding: 2px 6px; border: 1px solid #999; border-radius: 2px; background: #eee; }
.primary:hover { text-decoration: none; background: #e5e5e5; }
.primary:disabled { color: #828282; }
#auth-submit { display: block; margin-top: 15px; }
#auth-status { color: #a33; font-size: 9pt; }
#auth-status:empty { display: none; }
#auth-switch { display: block; margin-top: 28px; font-weight: bold; }
#interests-input { padding: 2px; background: #fff; line-height: 1.4; }
.feed-actions { margin: 0 10px 10px 35px; font-size: 8pt; }
#status { font-size: 8pt; }
#empty { font-size: 10pt; padding: 8px 0; }
#boot-status { padding: 8px; }
@media (max-width: 750px) {
  header { gap: 5px; }
  .brand strong { font-size: 10pt; }
  .brand { min-height: 20px; }
  #account { font-size: 8pt; }
  nav { font-size: 9pt; }
  .interests { border: 0; }
}

.interest-tag { color: #828282; overflow-wrap: anywhere; }
