:root {
  --mf-accent: #b82f00;
  --mf-background: #fff;
  --mf-surface: #f5f5f5;
  --mf-text: oklch(22.389% .031 278.072);
  --mf-muted: #6b7280;
  --mf-border: oklch(86% 0 0);
  --museum-secondary: oklch(55% .046 257.417);
  --museum-shadow: 0 1px 3px #0000001a, 0 1px 2px -1px #0000001a;
  font-family: -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 126px; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow-y: scroll; background: var(--mf-background); color: var(--mf-text); font-size: 16px; line-height: 1.5; }
h1, h2, h3, p, figure, ul { margin: 0; }
button, input, summary { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
:where(a[href], button, summary, input[type="checkbox"], input[type="radio"], [role="button"], [role="switch"], [data-microfeed-search-open]):not(:disabled):not([aria-disabled="true"]) { cursor: pointer; }
:disabled, [aria-disabled="true"] { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--mf-accent); outline-offset: 4px; }
[hidden] { display: none !important; }
img, video { max-width: 100%; }
img { display: block; }
svg { flex-shrink: 0; vertical-align: middle; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -70px; left: 16px; z-index: 100; padding: 8px 12px; background: var(--mf-background); border: 1px solid var(--mf-accent); border-radius: 4px; }
.skip-link:focus { top: 8px; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 40; background: #fffffff2; border-bottom: 1px solid var(--mf-border); box-shadow: var(--museum-shadow); backdrop-filter: blur(12px); }
.site-toolbar { min-width: 0; max-width: 1280px; margin: auto; padding: 8px 32px; display: flex; gap: 12px; align-items: center; }
.site-logo-column { width: 96px; flex: none; }
.site-logo { display: block; width: 44px; height: 44px; border: 1px solid var(--mf-border); border-radius: 23%; box-shadow: var(--museum-shadow); overflow: hidden; }
.site-logo img { width: 100%; height: 100%; object-fit: cover; }
.site-title { flex: 1; min-width: 0; font-size: 18px; font-weight: 600; line-height: 1.25; text-align: center; }
.site-title span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-title:hover, .site-title:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.site-actions { flex: none; display: flex; gap: 8px; align-items: center; }
.search-button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; background: #ffffffb3; border: 1px solid oklch(86% 0 0 / .7); border-radius: 50%; color: oklch(22.389% .031 278.072 / .75); }
.search-button:hover { background: var(--mf-surface); }
.follow-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; min-width: 88px; padding: 0 16px; border: 1px solid #ffffff99; border-radius: 999px; color: #fff; background: var(--mf-accent); font-size: 14px; font-weight: 600; line-height: 20px; }
.follow-button:hover { background: #9d2800; text-decoration: none; }
.section-nav { padding-top: 8px; overflow: auto; scrollbar-width: none; }
.section-nav::-webkit-scrollbar { display: none; }
.section-nav-inner { display: flex; align-items: center; gap: 4px; width: max-content; min-width: min-content; margin: auto; white-space: nowrap; }
.section-nav a { position: relative; flex: none; display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 4px; font-size: 14px; font-weight: 500; line-height: 20px; color: oklch(22.389% .031 278.072 / .5); }
.section-nav a:hover { color: var(--mf-text); text-decoration: none; }
.section-nav a[aria-current="page"] { color: var(--mf-text); }
.section-nav a[aria-current="page"]::before { content: ""; position: absolute; bottom: 0; inset-inline: 8px; height: 2px; background: var(--mf-accent); border-radius: 2px 2px 0 0; }

.site-main { flex: 1; width: 100%; max-width: 768px; margin-inline: auto; padding: 142px 32px 32px; }
.entry-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.entry { min-width: 0; border: 1px solid var(--mf-border); border-radius: 4px; background: var(--mf-background); box-shadow: var(--museum-shadow); }
.entry-body { display: flex; flex-direction: column; gap: 16px; padding: 24px; font-size: 14px; line-height: 21px; }
.entry-meta { display: flex; align-items: flex-start; gap: 12px; min-width: 0; font-size: 12px; line-height: 16px; }
.entry-date { flex: none; color: var(--mf-muted); }
.entry-tags { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 4px 10px; margin-left: auto; min-width: 0; max-width: 192px; color: var(--museum-secondary); }
.entry-tag { display: flex; align-items: center; gap: 8px; min-width: 0; }
.entry-tag span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag-symbol { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 16px; height: 16px; color: var(--museum-secondary); font-size: 15px; font-weight: 600; }
.entry-title { min-width: 0; overflow-wrap: anywhere; font-size: 18px; font-weight: 600; line-height: 1.375; }
.entry-title a:hover, .entry-title a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.feed-page .entry-title a, .tag-page .entry-title a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.entry-link { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; color: var(--mf-accent); }
.entry-link-label { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.entry-link svg { width: 14px; height: 14px; }
.entry-link-icon { position: relative; display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; }
.entry-favicon { position: absolute; inset: 0; width: 24px; height: 24px; object-fit: contain; border-radius: 2px; opacity: 0; }
.entry-favicon.is-loaded { opacity: 1; }
.entry-content, .entry-description { overflow-wrap: anywhere; min-width: 0; }
.entry-content p + p { margin-top: 1em; }
.entry-content a { color: var(--mf-accent); text-decoration: underline; }
.entry-content img { max-width: 100%; height: auto; border-radius: 3px; }
.entry-content blockquote { margin: 12px 0; padding-left: 14px; border-left: 3px solid var(--mf-border); color: var(--museum-secondary); }
.entry-content ul, .entry-content ol { padding-left: 24px; }
.entry-content pre { overflow: auto; padding: 12px; background: var(--mf-surface); border-radius: 4px; }
.entry-content :first-child { margin-top: 0; }
.entry-content :last-child { margin-bottom: 0; }
.excerpt-short { display: inline; }
.read-more { display: inline-flex; align-items: center; gap: 4px; margin: 0; padding: 0; border: 0; background: none; color: var(--mf-accent); font-size: 14px; font-weight: 700; line-height: 21px; }
.read-more:hover { text-decoration: underline; }
.read-more svg { width: 14px; height: 14px; }
.entry-description.is-expanded .read-more { margin-top: 8px; }
.item-page .entry-title { margin-top: 12px; }
.item-page .entry-description { margin-top: 16px; }
.entry-media audio, .entry-media video { display: block; width: 100%; }
.entry-media img { margin-inline: auto; height: auto; }
.entry-author { color: var(--mf-muted); font-size: 12px; }
.pagination { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 24px; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--mf-border); border-radius: 4px; background: var(--mf-background); font-size: 14px; }
.pagination a:hover { background: var(--mf-surface); text-decoration: none; }
.pagination [aria-disabled="true"] { opacity: .4; }
.empty-state { padding: 40px 24px; color: var(--mf-muted); text-align: center; }

.tag-cover { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; padding: 12px; border: 1px solid var(--mf-border); border-radius: 4px; background: var(--mf-background); box-shadow: var(--museum-shadow); }
.tag-cover-symbol { display: grid; place-items: center; flex: none; width: 112px; height: 112px; border-radius: 23%; background: #f0f1f3; color: var(--museum-secondary); font-size: 64px; font-weight: 500; line-height: 1; }
.tag-cover-copy { min-width: 0; padding-top: 2px; }
.tag-cover h1, .tag-cover h2 { font-size: 18px; font-weight: 600; line-height: 27px; overflow-wrap: anywhere; }
.tag-cover-count { display: inline-block; margin-top: 8px; vertical-align: middle; color: var(--mf-muted); font-size: 12px; line-height: 16px; }
.tag-cover-description { margin-top: 8px; font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
.tag-feeds { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 0 10px; vertical-align: middle; color: var(--mf-accent); font-size: 11px; line-height: 16px; }
.tag-feeds a { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; }
.feed-icon { flex: none; width: 20px; height: 20px; object-fit: contain; }
.tag-directory { list-style: none; display: grid; gap: 16px; padding: 0; }
.tag-directory .tag-cover { margin: 0; }
.directory-heading { margin-bottom: 20px; }
.directory-heading h1 { font-size: 20px; font-weight: 600; }
.directory-heading p { margin-top: 6px; color: var(--mf-muted); font-size: 14px; }
.browse-tags { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--mf-border); }
.browse-tags h2 { margin-bottom: 12px; color: var(--mf-muted); font-size: 12px; font-weight: 500; }
.browse-tags ul { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 0; list-style: none; font-size: 12px; color: var(--museum-secondary); }
.browse-tags .all-tags-link { display: inline-block; margin-top: 12px; color: var(--mf-accent); font-size: 12px; }

.page-card, .search-card { padding: 24px; border: 1px solid var(--mf-border); border-radius: 4px; box-shadow: var(--museum-shadow); }
.page-card h1, .search-card h1 { margin-bottom: 20px; font-size: 22px; line-height: 1.35; font-weight: 600; }
.page-card .entry-content { font-size: 14px; line-height: 1.65; }
.back-link { display: inline-block; margin-top: 24px; color: var(--mf-accent); font-size: 14px; }
.search-form { display: flex; gap: 8px; margin-top: 16px; }
.search-form input { width: 100%; min-width: 0; padding: 9px 12px; border: 1px solid var(--mf-border); border-radius: 4px; background: var(--mf-background); color: var(--mf-text); }
.search-form button { padding: 0 14px; border: 1px solid var(--mf-accent); border-radius: 4px; background: var(--mf-accent); color: #fff; }
[data-microfeed-search-results] { margin-top: 16px; }
.mf-public-search__panel { border-radius: 6px; }
.mf-public-search-result__domain { color: var(--mf-muted); }
[data-microfeed-search-result-type="item"] { --mf-search-result-domain-display: inline; }

.site-footer { margin-top: auto; border-top: 1px solid var(--mf-border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; max-width: 768px; margin: auto; padding: 32px 32px 48px; color: oklch(22.389% .031 278.072 / .7); font-size: 12px; line-height: 20px; }
.footer-credit { display: inline-flex; align-items: center; }
.footer-logo { flex: none; width: 112px; height: auto; }
.tag-feeds a, .footer-credit { transition: opacity 150ms ease; }
.tag-feeds a:hover, .tag-feeds a:focus-visible, .footer-credit:hover, .footer-credit:focus-visible { opacity: .65; }
.museum-dialog { width: min(480px, calc(100vw - 32px)); padding: 28px; color: var(--mf-text); background: var(--mf-background); border: 1px solid var(--mf-border); border-radius: 8px; box-shadow: 0 15px 45px #0002; }
.museum-dialog::backdrop { background: #11182766; backdrop-filter: blur(3px); }
.museum-dialog h2 { margin: 0 32px 14px 0; font-size: 20px; font-weight: 600; line-height: 1.35; }
.museum-dialog p { margin-top: 12px; font-size: 14px; line-height: 1.6; }
.dialog-close { position: absolute; right: 16px; top: 16px; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--mf-border); border-radius: 50%; background: var(--mf-background); }
.follow-options { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.follow-options a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--mf-border); border-radius: 4px; color: var(--mf-accent); font-size: 14px; }
.follow-options a:hover { background: var(--mf-surface); text-decoration: none; }
.museum-dialog a:not(.dialog-close) { color: var(--mf-accent); }
@media (max-width: 1023px) and (min-width: 640px) { .site-toolbar { padding-inline: 24px; } }
@media (max-width: 639px) {
  html { scroll-padding-top: 118px; }
  .site-toolbar { padding: 8px 16px; }
  .site-logo-column { width: 72px; }
  .site-logo { width: 40px; height: 40px; }
  .site-title { font-size: 14px; text-align: left; }
  .site-actions { gap: 8px; }
  .follow-button { min-width: 0; gap: 4px; padding-inline: 10px; font-size: 11px; }
  .follow-button svg { width: 14px; height: 14px; }
  .section-nav-inner { margin-inline: 0; }
  .section-nav a { padding-inline: 8px; font-size: 12px; }
  .site-main { padding: 122px 8px 24px; }
  .entry-list { gap: 12px; }
  .entry-body { gap: 8px; padding: 12px; }
  .entry-title { font-size: 16px; }
  .entry-tags { max-width: 144px; }
  .entry-tag { gap: 6px; }
  .tag-symbol { width: 14px; height: 14px; font-size: 14px; }
  .item-page .entry-title { margin-top: 4px; }
  .item-page .entry-description { margin-top: 8px; }
  .tag-cover { gap: 12px; padding: 8px; }
  .tag-cover-symbol { width: 96px; height: 96px; font-size: 56px; }
  .tag-cover h1, .tag-cover h2 { font-size: 16px; line-height: 24px; }
  .tag-cover-copy { padding-top: 4px; }
  .tag-cover-description { margin-top: 6px; }
  .tag-feeds { flex-wrap: wrap; gap: 2px 10px; }
  .footer-inner { flex-direction: column; gap: 12px; padding: 32px 16px 48px; text-align: center; }
  .page-card, .search-card { padding: 16px; }
}
@media (max-width: 380px) {
  .site-logo-column { width: 42px; }
  .site-toolbar { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
