* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.55 var(--site-font);
}
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--gold); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
header { background: var(--deep); color: var(--paper); border-bottom: 1px solid var(--line); }
header a:hover { color: var(--on-deep); }
header a:focus-visible { outline-color: var(--on-deep); }
.bar, main, footer { width: min(64rem, 100% - 2rem); margin-inline: auto; }
.bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; padding-block: 1rem; }
.brand { text-decoration: none; font-size: clamp(1.3rem, 4vw, 2rem); letter-spacing: .08em; }
.brand svg { width: 1em; vertical-align: -.06em; fill: none; stroke: var(--on-deep); stroke-width: 2; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem 1rem; }
nav [aria-current] { font-weight: bold; }
main { padding-block: clamp(2rem, 6vw, 4rem); }
h1, h2 { font-family: var(--site-font); font-weight: 400; line-height: 1.1; }
h1 { font-size: clamp(2.5rem, 7vw, 4.4rem); margin: .2rem 0 1.5rem; letter-spacing: -.03em; }
h2 { font-size: 2rem; margin: 0 0 1rem; }
.columns { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2rem; align-items: start; }
.panel, article { padding: clamp(1rem, 4vw, 1.65rem); border: 1px solid var(--line); }
.panel { background: var(--cream); }
.cards { display: grid; gap: .9rem; margin-top: 1.2rem; }
article { background: #fffdf8; }
article p { white-space: pre-wrap; overflow-wrap: anywhere; margin: .6rem 0; }
article strong { overflow-wrap: anywhere; }
.stars { color: var(--gold); font-size: 1.22rem; letter-spacing: .06em; }
.note { color: var(--muted); }
.notice { background: #e5ece3; padding: .75rem 1rem; border-left: 3px solid var(--deep); }
.error { background: #f7e8df; border-color: #914925; }
label { display: block; margin: .9rem 0 .2rem; font-weight: bold; }
input:not([type="checkbox"]), select, textarea {
  width: 100%; padding: .55rem .7rem; font: inherit; color: inherit;
  background: #fffdf8; border: 1px solid #82796a; border-radius: .2rem;
}
textarea { resize: vertical; }
.checkbox { display: flex; align-items: start; gap: .55rem; font-weight: 400; margin-bottom: 1rem; }
.checkbox input { width: 1.1rem; height: 1.1rem; margin: .2rem 0 0; flex: none; accent-color: var(--deep); }
button, .button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem;
  padding: .45rem 1rem; border: 1px solid var(--deep); border-radius: 2rem;
  background: var(--deep); color: white; font: inherit; cursor: pointer; text-decoration: none;
}
button:hover, .button:hover { background: var(--gold); color: white; }
.outline { color: var(--deep); background: transparent; }
.actions, .pagination { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-top: 1rem; }
footer { padding-block: 1.25rem; border-top: 1px solid var(--line); background: transparent; color: var(--muted); }
@media (max-width: 680px) {
  .columns { grid-template-columns: 1fr; }
}

.visits-table { width: 100%; border-collapse: collapse; }
.visits-table caption { text-align: left; font-weight: 700; padding-block: .65rem; }
.visits-table th, .visits-table td { border-bottom: 1px solid var(--line); padding: .5rem .4rem; text-align: right; }
.visits-table th:first-child { text-align: left; }
.visits-table tbody th { font-weight: 400; }
