:root {
  color-scheme: dark;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #111310;
  color: #e8e9e2;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; }
a { color: #e9b35c; text-underline-offset: 0.19em; }
a:hover { color: #ffcf83; }
a:focus-visible { outline: 2px solid #e9b35c; outline-offset: 4px; }

.topbar, .footer {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar { height: 86px; border-bottom: 1px solid #30332c; }
.wordmark { display: inline-flex; align-items: center; gap: 5px; color: #f5f4e9; text-decoration: none; font-size: 13px; font-weight: 850; letter-spacing: 0.1em; }
.wordmark strong { color: #e9b35c; }
.mark { width: 24px; height: 24px; margin-right: 8px; image-rendering: pixelated; }
.source-link { color: #b7baae; font-size: 13px; text-decoration: none; }
.source-link span { color: #e9b35c; padding-left: 4px; }

.readme { width: min(850px, calc(100% - 48px)); margin: 0 auto; padding: 88px 0 100px; line-height: 1.75; font-size: 16px; color: #bfc3b7; overflow-wrap: anywhere; }
.readme h1 { margin: 0 0 22px; color: #f7f7ee; font-size: clamp(3.4rem, 9vw, 6.8rem); line-height: 0.98; letter-spacing: -0.07em; }
.readme h1 + p { max-width: 730px; margin: 0 0 78px; color: #d1d5c8; font-size: clamp(1.08rem, 2.3vw, 1.35rem); line-height: 1.6; }
.readme h2 { padding-top: 32px; margin: 72px 0 24px; border-top: 1px solid #353930; color: #f2f2e9; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.035em; line-height: 1.2; }
.readme h3 { color: #e9eadf; }
.readme p { margin: 0 0 21px; }
.readme img { display: block; max-width: 100%; height: auto; border: 1px solid #30372a; border-radius: 12px; background: #000; image-rendering: pixelated; }
.readme p:has(> img) { padding: clamp(14px, 3vw, 26px); margin: 12px 0 34px; border: 1px solid #31372d; border-radius: 18px; background: #1c201a; }
.readme code { color: #e8be79; background: #25291f; padding: 0.12em 0.3em; border-radius: 4px; font-size: 0.88em; }
.readme pre { overflow-x: auto; margin: 24px 0; padding: 22px 24px; background: #191d17; border: 1px solid #343a2d; border-radius: 12px; line-height: 1.65; }
.readme pre code { padding: 0; background: transparent; color: #e0e6d8; white-space: pre; }
.readme li { margin: 0.4em 0; }
.footer { padding: 30px 0 42px; border-top: 1px solid #30332c; color: #777d70; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; }
.footer a { font-weight: 400; letter-spacing: normal; text-decoration: none; }
.copyright { display: inline-flex; align-items: center; height: 16px; padding: 0 6px; border-radius: 4px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 700; line-height: 1; letter-spacing: normal; }
.copyright a { color: inherit; font-weight: inherit; }
.copyright a:hover { text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 600px) {
  .topbar, .footer, .readme { width: calc(100% - 32px); }
  .topbar { height: 70px; }
  .readme { padding: 58px 0 76px; font-size: 15px; }
  .readme h1 + p { margin-bottom: 58px; }
  .readme h2 { margin-top: 55px; }
  .readme pre { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.table-scroll { overflow-x: auto; margin: 24px 0; }
.readme table { width: 100%; border-collapse: collapse; font-size: 14px; }
.readme th, .readme td { padding: 12px; text-align: left; border-bottom: 1px solid #30332c; vertical-align: top; }
.readme th { color: #e8e9e2; }
.readme table.screenshots { table-layout: fixed; border-collapse: separate; border-spacing: 10px; }
.readme .screenshots td { padding: 12px; border: 1px solid #31372d; border-radius: 12px; background: #1c201a; }
.readme .screenshots img { width: 100%; border: 0; border-radius: 0; }
.screenshots thead { display: none; }
@media (max-width: 600px) {
  .topbar { gap: 12px; }
  .wordmark { font-size: 11px; letter-spacing: 0.04em; }
  .mark { margin-right: 4px; }
  .source-link { font-size: 12px; white-space: nowrap; }
  .readme table.screenshots, .screenshots tbody, .screenshots tr, .screenshots td { display: block; width: 100%; }
  .readme .screenshots td { margin-bottom: 14px; padding: 18px; }
  .screenshots thead { display: none; }
}
