:root {
  color-scheme: dark;
  font: 100%/1.55 "Instrument Sans", system-ui, sans-serif;
  background: #101c1c;
  color: #f4f4e9;
  --accent: #c8ec9c;
  --muted: #b9cbbf;
  --border: #40564d;
}

* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 68rem; margin: auto; padding: 1.5rem clamp(1rem, 5vw, 3rem) 4rem; }
nav { display: flex; flex-wrap: wrap; gap: .45rem 1.5rem; border-bottom: 1px solid var(--border); padding-bottom: 1rem; }
header { margin: 2rem 0; }
h1, h2, h3 { font-family: "Instrument Serif", Georgia, serif; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.3rem, 7vw, 4.5rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin: 1.8rem 0 .9rem; }
h3 { font-size: 1.45rem; }
p { color: var(--muted); margin: .6rem 0; }
a { color: var(--accent); text-underline-offset: .17em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
form, .toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: .85rem; }
label { display: grid; gap: .3rem; }
input, select, button {
  font: inherit;
  color: inherit;
  max-width: 100%;
  padding: .45rem .65rem;
  border: 1px solid var(--border);
  border-radius: .35rem;
  background: #1c302a;
}
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .5rem; text-align: left; border-bottom: 1px solid var(--border); }
summary { color: var(--accent); cursor: pointer; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .8rem; }
article { padding: 1rem; background: #1a2b27; border: 1px solid var(--border); border-radius: .5rem; }
.history { padding-inline-start: 1.7rem; }
.history li { padding: .85rem .2rem; border-bottom: 1px solid var(--border); }
.history li a { display: inline-block; margin-right: .9rem; }
