:root {
  color: #f3efe6;
  background: #141210;
  color-scheme: dark;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 18px;
  line-height: 1.45;
}

* { box-sizing: border-box; }

body {
  margin: 0;
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

h1, h2, h3 { font-weight: 500; line-height: 1.15; }

h1 { font-size: 2.4rem; margin: 0.2rem 0 0.6rem; }

h2 { font-size: 1.3rem; margin: 2rem 0 0.6rem; }

.eyebrow, .counts, small {
  font-family: sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.mast p { margin: 0.2rem 0; }

.prose p, .sheet p { margin: 0.4rem 0 0; }

a { color: inherit; }

.sheet {
  border-top: 1px solid #5c5348;
  border-bottom: 1px solid #5c5348;
  padding: 0.8rem 0;
  margin-top: 1.2rem;
}

.status { color: #e7a3a3; }

.panel, form {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

label {
  display: grid;
  gap: 0.3rem;
  font-family: sans-serif;
  font-size: 0.85rem;
}

input, textarea, select, button, .go {
  font: inherit;
  color: inherit;
  background: #221e1a;
  border: 1px solid #5c5348;
  padding: 0.7rem 0.8rem;
}

button, .go {
  background: #f3efe6;
  color: #141210;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.cast {
  display: grid;
  gap: 0.7rem;
}

.person {
  background: #221e1a;
  border: 1px solid #5c5348;
  padding: 0.6rem;
}

.person summary {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.person summary::-webkit-details-marker { display: none; }

.person img, .empty {
  width: 4.5rem;
  height: 5.6rem;
  object-fit: cover;
  background: #221e1a;
  display: block;
}

.person span { display: grid; }

.person.out { opacity: 0.55; }

.person.open img { margin-bottom: 0.6rem; }

ol, ul { padding-left: 1.2rem; }

main:has(.title) {
  max-width: 26rem;
  min-height: 100vh;
  display: flex;
  padding: 0;
}

.title {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 1.25rem 3rem;
}

.title h1 {
  font-size: clamp(4.75rem, 22vw, 6.5rem);
  letter-spacing: -0.045em;
  line-height: 0.82;
  margin: 0.15rem 0 0;
}

.title .hook {
  font-family: sans-serif;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #cfc6b6;
  margin: 1rem 0 0;
}

form.deal {
  margin-top: 1.75rem;
  padding: 0.9rem;
  border: 1px solid #5c5348;
  background: #1c1916;
  gap: 0.75rem;
}

.deal-counts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
}

.deal-counts label {
  gap: 0.15rem;
  padding: 0.45rem 0.5rem 0.55rem;
  border: 1px solid #5c5348;
  background: #221e1a;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.deal-counts input {
  border: 0;
  background: transparent;
  padding: 0;
  width: 100%;
  font-size: 1.45rem;
  line-height: 1.1;
}

.deal button {
  padding: 0.95rem 0.8rem;
  font-family: sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.how {
  margin-top: 1.25rem;
  font-family: sans-serif;
  font-size: 0.9rem;
  color: #cfc6b6;
}

.how summary {
  cursor: pointer;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f3efe6;
}

.how p { margin: 0.7rem 0 0; }

@media (max-width: 520px) {
  .deal-counts { grid-template-columns: 1fr 1fr; }
}
