/* Paval site: paper ground, ink text, beacon red only for the mark's dot and the final delete button. */
:root {
  --ink: #111111;
  --paper: #F5F2EA;
  --beacon: #E5432A;
  --ink-soft: #3d3b37;
  --line: #d9d4c7;
  --focus: #111111;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 Geist, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
.skip { position: absolute; left: -999px; top: 0; padding: 8px 12px; background: var(--ink); color: var(--paper); }
.skip:focus { left: 16px; top: 8px; }
header.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 40rem; margin: 0 auto; padding: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand .word { font-weight: 700; font-size: 1.25rem; letter-spacing: 0.02em; }
nav { display: flex; align-items: center; gap: 16px; }
main { max-width: 40rem; margin: 0 auto; padding: 8px 16px 48px; }
footer { max-width: 40rem; margin: 0 auto; padding: 16px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 0.875rem; }
h1 { font-size: 1.6rem; line-height: 1.25; margin: 0.5rem 0 1rem; }
h2 { font-size: 1.15rem; margin: 2rem 0 0.5rem; }
a { color: var(--ink); text-underline-offset: 3px; }
p, ul, dl { margin: 0 0 1rem; }
ul.plain { list-style: none; padding: 0; }
label { display: block; font-weight: 600; margin: 1rem 0 0.25rem; }
label.check { display: inline; margin-left: 6px; }
.hint { color: var(--ink-soft); font-size: 0.9rem; margin: 0.25rem 0 0.5rem; }
input[type="text"] {
  display: block; width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; color: var(--ink);
  background: #fffdf8; border: 1.5px solid var(--ink); border-radius: 6px;
}
input[type="checkbox"] { width: 20px; height: 20px; vertical-align: -4px; accent-color: var(--ink); }
button {
  display: inline-block; min-height: 44px; margin: 12px 8px 0 0; padding: 10px 18px; font: inherit; font-weight: 600;
  color: var(--paper); background: var(--ink); border: 1.5px solid var(--ink); border-radius: 6px; cursor: pointer;
}
button.secondary { color: var(--ink); background: transparent; }
button.link { min-height: 0; margin: 0; padding: 0; color: var(--ink); background: none; border: 0; text-decoration: underline; font-weight: 400; }
/* Ink text on beacon keeps contrast above 4.5:1. */
button.danger { color: var(--ink); background: var(--beacon); border-color: var(--beacon); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
button.danger:focus-visible { outline-color: var(--ink); }
form.inline { display: inline; }
form.inline button { margin: 0 0 0 8px; }
.row { display: flex; flex-wrap: wrap; gap: 0; }
fieldset { border: 1px solid var(--line); border-radius: 6px; padding: 8px 16px; margin: 0 0 1rem; }
legend { font-weight: 600; padding: 0 4px; }
.req { font-weight: 600; }
.alert { border-left: 4px solid var(--ink); background: #fffdf8; padding: 10px 12px; font-weight: 600; }
.notice { border-left: 4px solid var(--line); background: #fffdf8; padding: 10px 12px; }
.tag { color: var(--ink-soft); font-size: 0.875rem; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9rem; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; padding: 10px; background: #fffdf8; border: 1px solid var(--line); border-radius: 6px; }
dl.entry dt { font-weight: 600; margin-top: 0.75rem; }
dl.entry dd { margin: 0.25rem 0 0; }
.scroll { overflow-x: auto; margin: 0 0 1rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
th, td { text-align: left; vertical-align: top; padding: 8px; border-bottom: 1px solid var(--line); }
td code { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  body { font-size: 16px; }
  h1 { font-size: 1.35rem; }
  button { width: 100%; margin-right: 0; }
  form.inline button, button.link { width: auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
