:root { color-scheme: light; font: 16px/1.46 "Segoe UI", Arial, sans-serif; color: #242723; background: #e4e4df; }
* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(100%, 820px); margin: 1.5rem auto; }
.sheet { background: #fffef9; padding: clamp(20px, 6vw, 60px); margin: 1.3rem 0; }
header { border-top: 5px solid #282b27; padding-top: 8px; }
header p, footer, .tag { font: 600 .72rem/1.3 Consolas, monospace; letter-spacing: .075em; text-transform: uppercase; }
header p { display: flex; justify-content: space-between; gap: 1em; }
h1 { font-size: clamp(2rem, 5vw, 2.85rem); line-height: 1.03; letter-spacing: -.045em; margin: 1.3rem 0 .8rem; }
h2 { font-size: 1.12rem; margin: 1.15rem 0 .28rem; line-height: 1.2; }
p, ul, ol { margin: .3rem 0 .6rem; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: .25rem; }
.ticket { border-left: 4px solid #a85c07; padding: .35rem 0 .35rem 1rem; margin: .95rem 0; }
.ticket p { font-size: 1.15em; margin: .18rem 0; }
.tag { color: #794300; }
table { border-collapse: collapse; width: 100%; margin: .55rem 0 .8rem; }
td, th { border-bottom: 1px solid #bcbeb6; text-align: left; vertical-align: top; padding: .44rem .4rem; }
th { background: #ecebe2; font-weight: 650; }
td:first-child { font-weight: 600; }
.notes { background: repeating-linear-gradient(transparent 0, transparent calc(1.65rem - 1px), #afb1a5 calc(1.65rem - 1px), #afb1a5 1.65rem); height: 3.3rem; }
.short { height: 1.65rem; }
.long { height: 4.95rem; }
.rank { width: 7%; text-align: center; }
.blank td { height: 2.15rem; }
footer { border-top: 1px solid #8e9187; margin-top: 1.25rem; padding-top: .5rem; color: #4e5148; }
button { padding: .6rem 1rem; background: #30332f; color: #fff; border: 0; font: inherit; cursor: pointer; }
.screen { text-align: right; margin: 0 1rem; }
button:focus-visible { outline: 3px solid #b66400; outline-offset: 2px; }
@media screen and (max-width: 600px) {
  table { font-size: .86rem; overflow-wrap: anywhere; }
  td, th { padding: .4rem .25rem; }
}
@media print {
  @page { size: A4 portrait; margin: 14mm 16mm; }
  :root { font-size: 10.6pt; color: #20221e; background: white; print-color-adjust: exact; }
  main { width: auto; margin: 0; }
  .sheet { background: white; margin: 0; padding: 0; break-after: page; }
  .sheet:last-child { break-after: auto; }
  .screen { display: none; }
  h1 { font-size: 28pt; }
  h2 { break-after: avoid; }
  .notes { height: 2.9rem; background-size: 100% 1.45rem; background-image: linear-gradient(to bottom, transparent calc(100% - 1px), #afb1a5 1px); }
  .short { height: 1.45rem; }
  .long { height: 4.35rem; }
  .blank td { height: 1.85rem; }
  footer { margin-top: .8rem; }
  tr, .ticket { break-inside: avoid; }
}
