/* src/styles/index.css */
:root {
  color-scheme: light dark;
  --bg: #faf8f4;
  --fg: #1d1b18;
  --muted: #6b665e;
  --line: #e4dfd6;
  --accent: #c2410c;
  --airing: #15803d;
  --done: #57534e;
  --soon: #1d4ed8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171614;
    --fg: #ece8e1;
    --muted: #a39d93;
    --line: #34312c;
    --accent: #fb923c;
    --airing: #4ade80;
    --done: #a8a29e;
    --soon: #93c5fd;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font:
    16px/1.5 system-ui,
    -apple-system,
    "Noto Sans TC",
    "PingFang TC",
    "Microsoft JhengHei",
    sans-serif;
}
.top,
main,
footer {
  max-width: 1000px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding-top: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--fg);
}
.top h1 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: .1em;
}
#seasons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
#seasons a {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: inherit;
  text-decoration: none;
}
#seasons a[aria-current=page] {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
h2 {
  margin: 20px 0 2px;
  font-size: 1.75rem;
}
h3 {
  margin: 24px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  font-size: 1.1rem;
}
h3 small,
.counts,
.updated,
.note,
.work__sub,
.work__meta {
  color: var(--muted);
  font-size: .875rem;
  font-weight: normal;
}
.counts {
  margin: 0;
}
.works {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0 20px;
}
.work {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.work img,
.noimg {
  flex: none;
  width: 46px;
  height: 65px;
  object-fit: cover;
  border-radius: 3px;
  background: var(--line);
}
.work__text {
  flex: 1;
  min-width: 0;
}
.work__text p {
  margin: 0;
  overflow-wrap: anywhere;
}
.work__title {
  font-weight: 600;
}
.work__title a {
  color: inherit;
  text-decoration: none;
}
.work__title a:hover {
  text-decoration: underline;
}
.badge {
  flex: none;
  padding: 2px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge--airing {
  color: var(--airing);
}
.badge--finished {
  color: var(--bg);
  background: var(--done);
  border-color: var(--done);
}
.badge--upcoming,
.badge--hiatus,
.badge--cancelled {
  color: var(--soon);
}
.updated {
  margin-top: 24px;
}
footer {
  margin-top: 24px;
  padding-top: 12px;
  padding-bottom: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .8rem;
}
footer a {
  color: inherit;
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
