/* Overpaint front site: one stylesheet, no fonts or files from other hosts. */
:root {
  --bg: #ffffff;
  --fg: #23221f;
  --muted: #5d5a54;
  --line: #d9d5cc;
  --panel: #f5f3ee;
  --head: #292724;
  --head-fg: #f3efe6;
  --link: #466b25;
  --btn-bg: #292724;
  --btn-fg: #ffffff;
  --btn-hover: #3d3a35;
  --soon-bg: #eceae4;
  --soon-fg: #6b675f;
  --focus: #466b25;
  --note: #fbf6e8;
  --note-line: #e4af4b;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1c1f;
    --fg: #e6e3dc;
    --muted: #aaa69d;
    --line: #3a3b3f;
    --panel: #232428;
    --head: #292724;
    --head-fg: #f3efe6;
    --link: #a7cd79;
    --btn-bg: #a7cd79;
    --btn-fg: #16170f;
    --btn-hover: #bcdc95;
    --soon-bg: #2a2b2f;
    --soon-fg: #8f8b83;
    --focus: #a7cd79;
    --note: #2a261c;
    --note-line: #a46e27;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

a { color: var(--link); text-underline-offset: 0.15em; }
a:focus-visible, .button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.site-head {
  background: var(--head);
  color: var(--head-fg);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}
.site-head a { color: var(--head-fg); text-decoration: none; font-weight: 650; font-size: 1.15rem; }
.site-head a:focus-visible { outline-color: #a7cd79; }
.site-head img { width: 2rem; height: 2rem; display: block; }

.wrap { max-width: 56rem; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
main.wrap { padding-top: 2rem; padding-bottom: 3rem; }

h1 { font-size: 2.2rem; font-weight: 650; letter-spacing: -0.03em; line-height: 1.2; margin: 0.5rem 0 0.75rem; }
h2 { font-size: 1.45rem; font-weight: 620; margin: 2.5rem 0 0.75rem; padding-top: 0.5rem; border-top: 1px solid var(--line); }
h3 { font-size: 1.1rem; font-weight: 620; margin: 1.5rem 0 0.5rem; }
.lead { font-size: 1.2rem; color: var(--muted); margin: 0 0 2rem; }
.small { font-size: 0.92rem; color: var(--muted); }

code, kbd {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.05em 0.35em;
  overflow-wrap: anywhere;
}

/* The four large buttons of the front page. */
.buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.button {
  display: block;
  min-height: 6.5rem;
  padding: 1.1rem 1.25rem;
  border-radius: 10px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  text-decoration: none;
  border: 2px solid transparent;
}
a.button:hover { background: var(--btn-hover); }
.button strong { display: block; font-size: 1.3rem; font-weight: 650; }
.button span { display: block; font-size: 0.95rem; opacity: 0.85; }
.button.soon {
  background: var(--soon-bg);
  color: var(--soon-fg);
  border: 2px dashed var(--line);
  cursor: default;
}
.button.download { display: inline-block; min-height: 0; padding: 0.45rem 0.9rem; font-weight: 600; }

/* The versions table scrolls sideways inside its own box on a small screen. */
.table-box {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 1rem 0;
}
table { border-collapse: collapse; width: 100%; min-width: 46rem; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--panel); font-weight: 620; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.hash code { font-size: 0.8rem; word-break: break-all; }

ol, ul { padding-left: 1.4rem; }
li { margin: 0.3rem 0; }

dl.refusals { margin: 1rem 0; }
dl.refusals dt { font-weight: 600; margin-top: 1rem; }
dl.refusals dd { margin: 0.25rem 0 0 0; padding-left: 1rem; border-left: 3px solid var(--line); }

.note {
  background: var(--note);
  border-left: 4px solid var(--note-line);
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin: 1rem 0;
}

.site-foot { border-top: 1px solid var(--line); }
.site-foot .wrap { padding-top: 1rem; padding-bottom: 2rem; font-size: 0.92rem; color: var(--muted); }

@media (max-width: 600px) {
  body { font-size: 1rem; }
  h1 { font-size: 1.8rem; }
  .buttons { grid-template-columns: 1fr; }
  .button { min-height: 0; }
}
