:root {
  color-scheme: dark;
  --bg: #0d1210;
  --fg: #b8cdbd;
  --body-fg: #afc4b4;
  --fg-bright: #d3e7d8;
  --fg-muted: #71877a;
  --link: #62d6a8;
  --link-hover: #8be9c3;
  --visited: #b39ddb;
  --border: #29382f;
  --header-bg: #151d19;
  --focus: #82e6bc;
  --notice-bg: #191a13;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Noto Sans Mono CJK KR", "Nanum Gothic Coding",
    "Apple SD Gothic Neo", "Malgun Gothic", monospace;
  font-size: 14px;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.35;
}

body {
  margin: 0 auto;
  max-width: 1024px;
  padding: 0 .9rem 1.6rem;
}

a { color: var(--link); text-underline-offset: .14em; }
a:visited { color: var(--visited); }
a:hover { color: var(--link-hover); }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.quiet { color: var(--fg-muted); }
h1 {
  margin: .75rem 0 .35rem;
  color: var(--fg-bright);
  font-size: 1.15rem;
  line-height: 1.25;
}

.kids-logo-lockup {
  max-width: 100%;
  margin: .85rem 0 .55rem;
  overflow-x: auto;
  scrollbar-width: thin;
}
.kids-logo {
  display: inline-block;
  margin: 0;
  color: #70c9a7;
  font-family: inherit;
  font-size: clamp(.72rem, 2.35vw, 1.16rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: .012em;
  filter: drop-shadow(0 0 5px rgb(98 214 168 / 20%));
}
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .kids-logo {
    color: transparent;
    background: linear-gradient(100deg, #58c8a0 5%, #8ba7df 36%, #d28ab5 66%, #6bd7c5 95%);
    background-size: 180% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: kids-logo-shimmer 14s ease-in-out infinite;
  }
}

@keyframes kids-logo-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .kids-logo { animation: none; background-position: 50% 50%; }
}

table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.25; }
th { color: var(--fg-bright); text-align: left; background: var(--header-bg); }
th, td { padding: .18rem .38rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.catalogue-sort {
  display: inline-flex;
  align-items: baseline;
  gap: .2rem;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: inherit;
  cursor: pointer;
}
.catalogue-sort:hover { text-decoration: underline; }
.catalogue-sort:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sort-indicator { display: inline-block; min-width: .8em; }
th.numeric .catalogue-sort { width: 100%; justify-content: flex-end; }
.numeric { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.post-title { width: 48%; }
.date { white-space: nowrap; }
.registry-missing { background: var(--notice-bg); }
.empty { text-align: center; color: var(--fg-muted); padding: 1rem; }

.pagination, .post-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin: .75rem 0;
  line-height: 1.25;
}
.pagination span { color: var(--fg-muted); }
.shortcut-hint {
  margin: -.4rem 0 .8rem;
  color: var(--fg-muted);
  font-size: .8rem;
  text-align: center;
}

.post-meta {
  margin: .7rem 0 .5rem;
  color: var(--fg-bright);
  line-height: 1.3;
}
.post-body {
  margin: .55rem 0;
  padding: .55rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--body-fg);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  tab-size: 8;
}
.unavailable { margin: .8rem 0; padding: .65rem 0; border-block: 1px solid var(--border); }
.post-navigation span { flex: 1; }
.post-navigation span:last-child { text-align: right; }
.post-navigation .disabled { color: var(--fg-muted); }
.provenance {
  margin-top: 1.2rem;
  padding-top: .45rem;
  border-top: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: .82rem;
}
.provenance h2 { font-size: 1rem; }
.provenance dl { display: grid; grid-template-columns: max-content 1fr; gap: .2rem .8rem; }
.provenance dt { font-weight: 600; }
.provenance dd { margin: 0; overflow-wrap: anywhere; }

@media (max-width: 650px) {
  :root { font-size: 14.5px; }
  body { padding-inline: .55rem; }
  .author-name, .views { display: none; }
  .post-table { font-size: .88rem; }
  .post-table th, .post-table td { padding-inline: .25rem; }
  .post-title { width: auto; }
  .post-navigation { font-size: .9rem; }
  .post-body { font-size: 1rem; }
}
