:root { color-scheme: light dark; font: 1rem/1.65 system-ui, sans-serif; color: #292929; background: #eeeeee; }
* { box-sizing: border-box; }
body { margin: 0; }
header, footer { max-width: 62rem; margin: auto; padding: 1.4rem; display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
header { justify-content: space-between; }
.brand { font-size: 1.5rem; font-weight: 750; text-decoration: none; }
nav { display: flex; gap: 1.2rem; }
a { color: #65491c; text-underline-offset: .2em; overflow-wrap: anywhere; }
a[aria-current] { font-weight: 700; }
main { max-width: 62rem; margin: auto; padding: 0 1rem; }
article { background: #f7f9f9; border-radius: .75rem; padding: clamp(1.2rem, 4vw, 3rem); overflow-wrap: anywhere; }
article > :first-child { margin-top: 0; }
h1 { font-size: clamp(1.65rem, 4vw, 2.2rem); line-height: 1.25; }
h2 { margin-top: 1.8rem; font-size: 1.3rem; line-height: 1.35; }
h3 { font-size: 1.1rem; }
p, li { max-width: 76ch; }
.muted { color: #555; }
.small { font-size: .9rem; }
form { max-width: 34rem; margin: 1.5rem 0; }
label { display: block; font-weight: 650; margin-bottom: .4rem; }
input { width: 100%; padding: .8rem; font: inherit; border: 1px solid #777; border-radius: .4rem; background: #fff; color: inherit; }
button, .button { display: inline-block; padding: .8rem 1.1rem; margin-top: .8rem; font: inherit; font-weight: 650; border: 1px solid transparent; border-radius: .4rem; background: #65491c; color: #fff; text-decoration: none; cursor: pointer; }
button.danger { background: #9e1c1c; }
button:disabled { opacity: .6; cursor: default; }
:focus-visible { outline: 3px solid #1976b9; outline-offset: 4px; }
[role=status] { min-height: 1.7em; }
[data-error=true] { color: #9e1c1c; }
hr { border: 0; border-top: 1px solid #ccc; margin: 1.5rem 0; }
@media (prefers-color-scheme: dark) {
  :root { color: #ececec; background: #121212; }
  article { background: #1e1e1e; }
  a { color: #e1d4b3; }
  .muted { color: #c4c4c4; }
  input { background: #292929; }
  [data-error=true] { color: #ff9c9c; }
}
