:root {
  --bg: #f4efe6;
  --surface: #fbf8f2;
  --text: #1f2a24;
  --muted: #4e5a52;
  --accent: #9c4a22;
  --border: #cfc6b5;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font: 17px/1.65 ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
}

h1,
h2,
h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.9rem;
  margin: 3rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

h3 {
  font-size: 1.3rem;
  margin: 2rem 0 0.5rem;
}

a {
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  padding: 0.75rem 1rem;
  background: var(--text);
  color: var(--bg);
}

.skip:focus {
  top: 0.5rem;
}

.top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
}

.brand {
  font-family: Georgia, serif;
  font-size: 1.5rem;
  color: var(--text);
  text-decoration: none;
}

.top nav {
  display: flex;
  gap: 1.25rem;
}

.top nav a {
  color: var(--text);
}

.top nav [aria-current='page'] {
  font-weight: 700;
}

.wrap {
  max-width: 64rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 5rem;
}

.narrow {
  max-width: 40rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

th,
td {
  padding: 0.6rem 0.75rem 0.6rem 0;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

code {
  padding: 0.1rem 0.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.9em;
}

.toc {
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.form {
  display: grid;
  gap: 1.1rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid rgb(31 42 36 / 0.55);
  border-radius: 4px;
}

.hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.hp {
  position: absolute;
  left: -9999px;
}

.button {
  justify-self: start;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  font: inherit;
  font-weight: 700;
  color: var(--bg);
  background: var(--text);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.button:disabled {
  opacity: 0.5;
}

.status {
  min-height: 1.5rem;
}
