*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f7f6f3;
  color: #1a1a1a;
  min-height: 100vh;
}

.app {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.app-header { margin-bottom: 28px; }
.app-title  { font-size: 24px; font-weight: 700; letter-spacing: -0.5px; }
.app-subtitle { font-size: 13px; color: #aaa; margin-top: 4px; }

.url-form {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}

.url-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1.5px solid #ddd;
  font-size: 14px;
  background: #fff;
  color: #333;
  outline: none;
  transition: border-color 0.15s;
}
.url-input:focus { border-color: #aaa; }

.url-btn {
  padding: 10px 18px;
  border-radius: 8px;
  background: #2a2a2a;
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.url-btn:hover   { background: #444; }
.url-btn:disabled { background: #aaa; cursor: default; }
.url-btn:focus-visible { outline: 2px solid #888; outline-offset: 2px; }

.list-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #bbb;
  margin-bottom: 10px;
}

.article-list { display: flex; flex-direction: column; gap: 10px; min-height: 1px; }

/* wilt-card — light DOM, styles apply directly to the custom element */
wilt-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  border: 1px solid #e8e8e8;
}

.card-body { flex: 1; min-width: 0; }

.card-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { text-decoration: underline; }

.card-meta { font-size: 11px; color: #aaa; }

.card-actions { display: flex; gap: 6px; flex-shrink: 0; }

.btn-read {
  padding: 5px 11px;
  border-radius: 6px;
  border: 1px solid #d0f0d8;
  background: #f0faf2;
  color: #3a9a52;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.btn-read:hover { background: #e0f5e6; }
.btn-read:focus-visible { outline: 2px solid #3a9a52; outline-offset: 2px; }

.btn-compost {
  padding: 5px 11px;
  border-radius: 6px;
  border: 1px solid #e0ddd8;
  background: #f8f6f2;
  color: #9a8a6a;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.btn-compost:hover { background: #f0ede8; }
.btn-compost:focus-visible { outline: 2px solid #9a8a6a; outline-offset: 2px; }
