:root {
  --paper: #f3efe4;
  --ink: #1b140c;
  --rule: #1b140c;
  --quiet: #5c5146;
  --one: #0072b2;
  --two: #d55e00;
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", sans-serif;
  --cond: "Avenir Next Condensed", "Arial Narrow", "Helvetica Neue Condensed", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.35;
}

body {
  min-height: 100vh;
}

button, input, textarea, select { font: inherit; color: inherit; }

button { cursor: pointer; }

a { color: inherit; }

img { max-width: 100%; display: block; }

.sheet {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 72px;
}

.mast {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  border-top: 4px solid var(--rule);
  padding-top: 10px;
}

.mast h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(40px, 7vw, 68px);
  line-height: 0.85;
  letter-spacing: -0.03em;
}

.mast nav {
  display: flex;
  gap: 14px;
  padding-bottom: 6px;
  font-family: var(--cond);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mast a { text-underline-offset: 3px; }

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 8px 0 0;
}

.rule.double { border-top: 4px double var(--rule); }

.dateline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 18px;
  font-family: var(--cond);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hall {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 10px 0;
  margin-bottom: 22px;
}

.hall p { margin: 0 0 4px; }

.hall strong { font-family: var(--serif); font-size: 22px; font-weight: 600; }

.quiet { color: var(--quiet); }

.pair {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 4px solid var(--rule);
}

.pair article {
  padding: 16px 0 18px;
  border-bottom: 1px solid var(--rule);
}

.when {
  font-family: var(--cond);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.daynum {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 76px;
  line-height: 0.8;
  letter-spacing: -0.04em;
}

.poster {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.poster h2, .row h3, .block h2, .block h3, .lock h1, .slip h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0;
}

.poster h2 { font-size: clamp(34px, 5vw, 52px); line-height: 0.92; }

.flyer {
  border: 1px solid var(--rule);
  width: min(100%, 220px);
}

.times { margin: 8px 0 0; }

.board { margin-top: 28px; }

.row {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}

.row .num {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 34px;
  line-height: 0.85;
}

.row h3 { font-size: 26px; line-height: 1; }

.block { margin-top: 34px; }

.block h2 { font-size: 34px; line-height: 1; }

.ledger-wrap { overflow-x: auto; }
.ledger { width: 100%; border-collapse: collapse; margin-top: 10px; }

.ledger th, .ledger td {
  text-align: left;
  vertical-align: top;
  padding: 8px 8px 8px 0;
  border-bottom: 1px solid var(--rule);
  font-weight: 500;
}

.ledger th {
  font-family: var(--cond);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stamp {
  display: inline-block;
  border: 3px solid currentColor;
  padding: 2px 7px 1px;
  font-family: var(--cond);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.one { color: var(--one); }
.two { color: var(--two); }

.ruler { margin: 14px 0; }

.ruler-line {
  position: relative;
  height: 28px;
  border-bottom: 2px solid var(--rule);
}

.ruler-line i, .ruler-line b {
  position: absolute;
  bottom: 0;
  width: 1px;
  background: var(--rule);
}

.ruler-line i { height: 8px; }
.ruler-line b { height: 16px; width: 2px; }
.ruler-line .you {
  position: absolute;
  bottom: -1px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 10px solid var(--ink);
  transform: translateX(-6px);
}

.ruler-labels, .split-row, .checks, .days, .navline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.ruler-labels { justify-content: space-between; font-variant-numeric: tabular-nums; }

label { display: block; margin-top: 12px; }

input, textarea, select {
  width: 100%;
  margin-top: 4px;
  padding: 6px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  outline: none;
}

textarea { resize: none; overflow: hidden; min-height: 44px; }

button, .textbtn {
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 8px 10px;
  min-height: 44px;
}

button.solid, button[type="submit"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.oncall {
  margin-top: 26px;
  padding: 12px 0 4px;
  border-top: 4px solid var(--rule);
  border-bottom: 4px solid var(--rule);
}

.seat {
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}

.lock, .slip-inner { width: min(640px, calc(100% - 32px)); margin: 48px auto; }

.lock form, .slip form { margin-top: 12px; }

.error { color: var(--two); }

.slip {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--paper);
  border-top: 4px solid var(--rule);
  padding: 14px 0 18px;
}

.slip .slip-inner { margin: 0 auto; }

.fine { font-size: 15px; }

@media (min-width: 800px) {
  .pair { grid-template-columns: 1fr 1fr; }
  .pair article + article { border-left: 1px solid var(--rule); padding-left: 22px; }
  .poster { grid-template-columns: 1fr 180px; }
  .row { grid-template-columns: 88px 1fr 180px; align-items: center; }
}

.sound {
  --color-accent: #d55e00;
  display: block;
}

.sound [data-line] {
  display: block;
}

h1 .sound,
h2 .sound,
h3 .sound {
  font: inherit;
  letter-spacing: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
}
