:root {
  color-scheme: light;
  --paper: #f8f5f0;
  --ink: #27241f;
  --muted: #68635b;
  --red: #a7362a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* Normal flow keeps the footer below the content even on very short screens. */
main {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.brand { width: 100%; text-align: center; }
.wordmark { display: block; width: 228px; max-width: 100%; height: auto; margin: 0 auto 36px; }
h1 {
  margin: 0;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: clamp(23px, 6vw, 40px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .06em;
}
.brand-note { margin: 16px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; letter-spacing: .16em; }
.accent-rule { width: 28px; height: 1px; margin: 30px auto; background: var(--red); }
.everyday-note { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }

.site-footer {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 24px 20px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  text-align: center;
}
.site-footer p { margin: 0; }
.filing-link { max-width: 100%; padding: 6px 4px; color: inherit; text-underline-offset: .3em; overflow-wrap: anywhere; }
.filing-link:hover { color: var(--red); }
.filing-link:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { color: var(--paper); background: var(--red); }

@media (min-width: 760px) {
  .wordmark { width: 280px; margin-bottom: 44px; }
  .brand-note { font-size: 14px; }
  .everyday-note { font-size: 14px; }
  .accent-rule { margin-block: 36px; }
  .site-footer { flex-direction: row; justify-content: center; gap: 24px; padding-block: 16px 24px; }
}

.police-filing { display: inline-flex; align-items: center; gap: 4px; }
.police-filing img { flex: 0 0 auto; width: 16px; height: 16px; }
