:root {
  --bg: #f7f3ec;
  --surface: #ffffff;
  --text: #24211d;
  --muted: #6b655c;
  --accent: #2f5d62;
  --accent-soft: #e4eeed;
  --border: #e4ddd0;
  --unread-dot: #c7251f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.5;
}

main {
  max-width: 930px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.lede {
  color: var(--muted);
  margin: 0 0 40px;
  font-size: 0.95rem;
}

/* --- Sign-in state ------------------------------------------------- */

#signin-view {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
}

#signin-view p {
  margin: 0 0 20px;
  color: var(--muted);
}

/* --- Notification list ---------------------------------------------- */

#notification-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.notification {
  background: var(--surface);
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}

.notification:hover {
  background: var(--accent-soft);
}

.notification:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--unread-dot);
  margin-top: 8px;
}

.notification.is-read .dot {
  background: transparent;
}

.notification-body {
  min-width: 0;
}

.notification-line {
  margin: 0 0 4px;
  font-size: 0.95rem;
}

.timestamp {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.notification-line .name {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
}

.avatar {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 6px;
}

.notification-line .page-title {
  font-style: italic;
}

.excerpt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.parent-comment {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  padding: 6px 12px;
  border-left: 3px solid var(--border);
  background: var(--bg);
  border-radius: 0 6px 6px 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.parent-comment .parent-name {
  flex: none;
  font-weight: 600;
  color: var(--text);
}

.excerpt-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.excerpt-text--full {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

/* Thumbnail for a comment or quoted parent that's an image - a true 4:3
   via aspect-ratio rather than a fixed height, so it can never end up
   the wrong shape, and scales down on narrow screens via clamp() rather
   than a single fixed width that's a compromise on both ends. */
.thumb {
  flex: none;
  width: clamp(80px, 22vw, 180px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.empty-state {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
}

.list-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.mark-all-btn {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--unread-dot);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 8px 14px;
  cursor: pointer;
}

.mark-all-btn:hover {
  opacity: 0.92;
}

.mark-all-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

button {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 10px 18px;
  cursor: pointer;
}

button:hover {
  opacity: 0.92;
}

button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
