/* Local accessibility and product contracts layered over the original theme. */
:root {
  --font-ink:
    Fraunces, "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif", Georgia, serif;
}
.dark {
  --foreground: #fffdf8;
  --muted-foreground: #e2ddd4;
}
[hidden] {
  display: none !important;
}
header button,
header nav a,
.chapter-navigation a,
.chapter-navigation span {
  min-height: 44px;
}
header button {
  min-width: 44px;
}
header nav a {
  display: inline-flex;
  align-items: center;
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}
.draft-form-notice {
  flex-basis: 100%;
}
form:has(.draft-form-notice) {
  flex-wrap: wrap;
}
.draft-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 0 2rem;
}
.draft-catalog a {
  min-height: 44px;
  overflow-wrap: anywhere;
}
.novel-prose,
[data-translation="true"],
html.translated-ltr .prose-article,
html.translated-rtl .prose-article {
  font-family: var(--font-ink);
  line-height: 2;
}
.chapter-navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
}
.chapter-navigation span {
  color: var(--muted-foreground);
}
.chapter-navigation a {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
}
.members-boundary {
  background: var(--muted);
  padding: 1.5rem;
}
@media (max-width: 360px) {
  [data-testid="brand-link"] > span {
    font-size: 1rem;
  }
  header > div:first-child {
    padding-inline: 1rem;
  }
  header > div:first-child > a {
    min-width: 0;
    flex-shrink: 0;
  }
  header > div:first-child > div {
    gap: 0;
  }
  header > div:first-child > a span {
    white-space: nowrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
