:root {
  color-scheme: light;
  --paper: #f4f7f5;
  --ink: #122a25;
  --muted: #516762;
  --accent: #c9ef9c;
  --line: #cdd8d3;
  font: 16px/1.5 system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
button, .primary { cursor: pointer; }
button, .primary, input {
  border: 1px solid var(--line); border-radius: .55rem; padding: .5rem .85rem;
  color: var(--ink); background: white;
}
button:hover { border-color: var(--ink); }
button:disabled { opacity: .65; cursor: wait; }
:focus-visible { outline: 3px solid #639243; outline-offset: 3px; }
.primary { display: inline-block; background: var(--accent); border-color: #9dc771; text-decoration: none; font-weight: 650; }
.primary:hover { background: #d7f6b6; }
.masthead {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem max(1.25rem, calc((100% - 75rem) / 2)); background: var(--ink); color: white;
}
.brand { font-size: 1.55rem; font-weight: 800; letter-spacing: -.05em; text-decoration: none; }
.brand span { color: var(--accent); }
main { width: min(75rem, calc(100% - 2.5rem)); margin: 0 auto; padding: 2rem 0 4rem; }
.welcome { padding: clamp(2rem, 11vw, 8rem) 0; max-width: 39rem; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.055em; line-height: 1.08; overflow-wrap: anywhere; }
.welcome h1 { font-size: clamp(3rem, 10vw, 6rem); }
.welcome p { margin: 1rem 0 1.5rem; color: var(--muted); font-size: 1.2rem; }
.reader { display: grid; grid-template-columns: minmax(13rem, 17rem) minmax(0, 1fr); gap: clamp(1.25rem, 5vw, 4rem); }
aside { min-width: 0; }
aside h2 { font-size: 1.35rem; margin-bottom: .85rem; }
#add-feed { display: grid; gap: .45rem; margin-bottom: 1.15rem; }
#add-feed label, .meta, .feed-status { font-size: .875rem; color: var(--muted); }
#add-feed input { width: 100%; }
#feeds { display: grid; gap: .5rem; }
.feed-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem; }
.feed-row button:first-child, .all-feeds { text-align: left; overflow-wrap: anywhere; }
.feed-status { grid-column: 1 / -1; margin: 0 .4rem; }
[aria-pressed="true"] { background: #dcebdc; border-color: #87a691; font-weight: 650; }
.stream-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.15rem; }
.filters { display: flex; flex-wrap: wrap; gap: .35rem; }
.article { display: flex; align-items: flex-start; gap: 1rem; padding: 1.15rem 0; border-top: 1px solid var(--line); }
.article-img { width: min(22%, 8rem); aspect-ratio: 4 / 3; object-fit: cover; border-radius: .45rem; background: #dde6df; }
.article-copy { min-width: 0; overflow-wrap: anywhere; }
.article h2 { font-size: 1.25rem; line-height: 1.25; margin: .25rem 0; }
.article h2 a { text-decoration-thickness: 1px; text-underline-offset: .15em; }
.summary { color: var(--muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.article-actions { margin-top: .65rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.article-actions button { padding: .25rem .55rem; font-size: .875rem; }
#notice { margin-top: 1rem; color: var(--muted); }
#empty { padding: 1.25rem; background: white; border: 1px solid var(--line); border-radius: .65rem; color: var(--muted); }
@media (max-width: 690px) {
  .reader { grid-template-columns: 1fr; }
  aside { border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
}
