:root { color-scheme: light; }
* { box-sizing: border-box; }
html { font-family: Arial, sans-serif; }
body { margin: 0; background: #111; color: #302a20; font-size: 16px; line-height: 1.55; }
a { color: #8c1717; }
a:hover { color: #b66314; }
#wrapper { width: min(100% - 32px, 1040px); margin: 24px auto; }
#header { min-height: 150px; background: linear-gradient(135deg, #20100f 0%, #5c1a18 70%, #241210 100%); display: flex; align-items: flex-end; }
#header h1 { margin: 0 0 18px 20px; padding: 10px 18px; background: #941b1b; border: 2px solid #c4b888; font: italic 2rem Georgia, serif; }
#header a { color: #fce8c4; text-decoration: none; }
#body { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: stretch; }
#nav { background: #941b1b; }
#nav ul { margin: 0; padding: 18px 20px; list-style: none; }
#nav li + li { border-top: 1px solid #b6524e; }
#nav a { display: block; padding: 10px 2px; color: #fff1d4; font: italic 1.22rem Georgia, serif; text-decoration: none; }
#nav a:hover, #nav a[aria-current="page"] { color: #ffd070; }
#content { min-height: 460px; padding: 28px 38px 42px; background: #e9e7d9; }
h2 { margin: 0 0 12px; color: #941b1b; font: italic 1.7rem Georgia, serif; }
h3 { margin-bottom: 8px; color: #661515; }
p { margin: 0 0 16px; }
.panel { padding: 0 0 18px; margin-bottom: 24px; border-bottom: 1px solid #cac6af; }
.panel:last-child { border: 0; margin-bottom: 0; }
.notice { padding: 13px 17px; border-left: 4px solid #941b1b; background: #fffaf0; }
.notice.success { border-color: #397244; }
.notice.error { border-color: #af2525; }
.button, button { display: inline-block; padding: 10px 17px; border: 0; background: #941b1b; color: #fff; font: bold 1rem Arial, sans-serif; cursor: pointer; text-decoration: none; }
.button:hover, button:hover { background: #6d1212; color: #fff; }
form { max-width: 640px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field.full { grid-column: 1 / -1; }
label { font-weight: bold; }
input, select { width: 100%; padding: 9px 10px; border: 1px solid #938e7c; border-radius: 2px; background: #fff; color: #26231b; font: inherit; }
input:focus, select:focus { outline: 2px solid #941b1b; outline-offset: 1px; }
.form-actions { margin-top: 18px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
small { color: #5d584e; }
table { width: 100%; border-collapse: collapse; background: #fffdf5; }
th, td { border-bottom: 1px solid #d3cfbc; padding: 9px; text-align: left; }
th { color: #651212; }
#footer { padding: 16px 0; color: #e9e7d9; text-align: center; font-size: .9rem; }
#footer a { color: #ffd7b5; }
@media (max-width: 700px) {
  #wrapper { width: 100%; margin: 0; }
  #header { min-height: 125px; }
  #header h1 { font-size: 1.5rem; margin: 0 0 12px 12px; }
  #body { display: block; }
  #nav ul { display: flex; flex-wrap: wrap; gap: 4px 15px; padding: 8px 14px; }
  #nav li + li { border: 0; }
  #nav a { padding: 5px 0; font-size: 1rem; }
  #content { padding: 22px 18px; }
  .form-grid { grid-template-columns: 1fr; }
}
