:root {
  --ink: #0e0f12;
  --paper: #e9e3d6;
  --muted: #8f8a80;
  --bar: #e9e3d6;
  --rule: rgba(233, 227, 214, 0.18);
  --accent: #b8955a;
}

@media (prefers-color-scheme: light) {
  :root {
    --ink: #f3efe6;
    --paper: #17181c;
    --muted: #6d6a63;
    --bar: #17181c;
    --rule: rgba(23, 24, 28, 0.16);
    --accent: #8a6a33;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  display: grid;
  place-items: center;
  padding: 48px 16px;
  -webkit-font-smoothing: antialiased;
}

.docket {
  width: 100%;
  max-width: 560px;
  text-align: center;
  animation: rise 1.6s ease-out both;
}

.eyebrow {
  font-variant: small-caps;
  letter-spacing: 0.32em;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.title {
  font-weight: 400;
  font-size: clamp(2.6rem, 11vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0.04em;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.28em;
  flex-wrap: wrap;
}

.versus {
  font-style: italic;
  color: var(--accent);
  font-size: 0.7em;
}

.caption {
  margin-top: 22px;
  font-style: italic;
  color: var(--muted);
  font-size: 0.98rem;
}

.record {
  margin: 44px auto 40px;
  padding: 26px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: grid;
  gap: 12px;
  justify-items: center;
}

.line {
  display: block;
  height: 10px;
  background: var(--bar);
  opacity: 0.86;
  border-radius: 1px;
  animation: redact 5.5s ease-in-out infinite;
}

.line:nth-child(2) { animation-delay: 0.6s; }
.line:nth-child(3) { animation-delay: 1.2s; }
.line:nth-child(4) { animation-delay: 1.8s; }
.line:nth-child(5) { animation-delay: 2.4s; }

.w90 { width: 90%; }
.w84 { width: 84%; }
.w72 { width: 72%; }
.w66 { width: 66%; }
.w40 { width: 40%; }

.order {
  font-variant: small-caps;
  letter-spacing: 0.22em;
  font-size: 1.05rem;
}

.order::after {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 1em;
  margin-left: 0.25em;
  vertical-align: -0.12em;
  background: var(--accent);
  animation: caret 1.2s steps(1) infinite;
}

.maxim {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.foot {
  margin-top: 56px;
  font-variant: small-caps;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: var(--muted);
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes redact {
  0%, 100% { opacity: 0.86; }
  50% { opacity: 0.55; }
}

@keyframes caret {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .docket, .line, .order::after { animation: none; }
}
