/* dueby — the public pages. One stylesheet, no fonts to download, nothing from anywhere else. */

:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #1c2228;
  --muted: #4f5b66;
  --accent: #2f5a73;
  --border: #d9dee3;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121619;
    --surface: #1b2126;
    --text: #e6eaee;
    --muted: #aab4bd;
    --accent: #8fc1dc;
    --border: #313a42;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.wrap { max-width: 44rem; margin: 0 auto; padding: 0 1rem; }

a { color: var(--accent); text-underline-offset: 0.15em; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 1; background: var(--surface); padding: 0.5rem 0.75rem; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.brand { font-weight: 700; font-size: 1.25rem; text-decoration: none; color: var(--text); letter-spacing: 0.01em; }
.site-header ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-header a[aria-current="page"] { font-weight: 700; text-decoration-thickness: 2px; }

main { padding-top: 2rem; padding-bottom: 3rem; }
main h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 0.5rem; }
main h2 { font-size: 1.35rem; line-height: 1.3; margin: 2.25rem 0 0.5rem; }
main h3 { font-size: 1.1rem; margin: 1.5rem 0 0.25rem; }
.lead { font-size: 1.2rem; color: var(--muted); margin-top: 0; }
.updated { color: var(--muted); font-size: 0.95rem; }

table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 0.5rem 0.6rem; border: 1px solid var(--border); }
th { background: var(--surface); }
.table-scroll { overflow-x: auto; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 0.5rem; padding: 1rem 1.25rem; margin: 1rem 0; }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 0.95rem; padding: 1.25rem 0 2rem; }
.site-footer p { margin: 0.25rem 0; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
