/* Delicious inspired minimal style */
:root {
  --bg: #f3e8ff;
  --card-bg: #ffffff;
  --header-bg: #ffffff;
  --accent: #c026d3;
  --accent-alt: #0891b2;
  --text: #2e1065;
  --muted: #7e22ce;
  --border: #e9d5ff;
  --radius: 6px;
  --shadow: 0 4px 6px -1px rgba(192, 38, 211, 0.2),
    0 2px 4px -1px rgba(192, 38, 211, 0.1);
  --font-stack: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, sans-serif;
}

[data-theme="dark"] {
  --bg: #0f0518;
  --card-bg: #1e0b36;
  --header-bg: #1e0b36;
  --accent: #ff71ce;
  --accent-alt: #01cdfe;
  --text: #fdf4ff;
  --muted: #d8b4fe;
  --border: #581c87;
  --shadow: 0 4px 6px -1px rgba(1, 205, 254, 0.25),
    0 2px 4px -1px rgba(1, 205, 254, 0.15);
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-stack);
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
}
body {
  line-height: 1.45;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.header-wrp {
  display: flex;
  justify-content: center;
}
header.site-header {
  width: 100%;
  max-width: 768px;
  padding: 0.4rem 1rem;
  background: var(--header-bg);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s ease;
  border-radius: 0 0 var(--radius) var(--radius);
  position: fixed;
  top: 0;
  z-index: 1000;
  box-sizing: border-box;
}
header.site-header h1 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}
header .meta {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition: background 0.2s;
}
.theme-toggle:hover {
  background: var(--bg);
}
.theme-toggle svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}
[data-theme="dark"] .sun-icon {
  display: block;
}
[data-theme="dark"] .moon-icon {
  display: none;
}
:root:not([data-theme="dark"]) .sun-icon {
  display: none;
}
:root:not([data-theme="dark"]) .moon-icon {
  display: block;
}

main.content {
  max-width: 768px;
  margin: 1.5rem auto 3rem;
  padding: 68px 0 1rem;
}
ul.bookmark-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bookmark-item {
  background: var(--card-bg);
  margin: 0 0 1rem;
  padding: 0.9rem 1rem 0.75rem;
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.bookmark-item:nth-child(2n) {
  border-left-color: var(--accent-alt);
}
.bookmark-item .title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}
.bookmark-item .meta-line {
  display: flex;
  gap: 0.6rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  align-items: center;
}
.bookmark-item .meta-line time {
  background: var(--bg);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
}
.bookmark-item p.desc {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.35;
}
.pagination {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  font-size: 0.85rem;
}
.pagination a {
  background: var(--accent);
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.pagination a.prev {
  background: var(--accent-alt);
}
.pagination a:hover {
  filter: brightness(1.08);
}
.pagination .pages {
  color: var(--muted);
}
footer.site-footer {
  text-align: center;
  font-size: 0.7rem;
  padding: 2rem 0 3rem;
  color: var(--muted);
}
@media (max-width: 600px) {
  .bookmark-item {
    padding: 0.75rem 0.75rem;
  }
  /* header.site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  } */
  .bookmark-item .title {
    font-size: 0.95rem;
  }
}
