* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  background: #e6e0d4;
  color: #1c1916;
  font-family: Inter, "Noto Sans", "Liberation Sans", sans-serif;
  font-synthesis: none;
}

main {
  display: grid;
  grid-template-columns: minmax(300px, 440px) minmax(280px, 1fr);
  gap: 36px;
  align-items: start;
  min-height: 100vh;
  padding: 32px 40px 48px;
}

h1 {
  margin: 0;
  font-family: "Noto Serif", "Liberation Serif", Georgia, serif;
  font-size: 42px;
  font-weight: 400;
  line-height: 1.1;
}

.lede {
  margin: 12px 0 22px;
  max-width: 38em;
  font-size: 16px;
  line-height: 1.45;
  color: #3f3a34;
}

form {
  display: grid;
  gap: 14px;
}

.field-label,
label {
  display: grid;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  color: #3f3a34;
}

.field-label {
  display: block;
  margin-top: 2px;
}

input,
select {
  width: 100%;
  border: 1px solid #c9c0b2;
  border-radius: 6px;
  background: #fffcf7;
  color: #1c1916;
  font: inherit;
  font-size: 16px;
  padding: 10px 12px;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hint,
.fine {
  margin: 0;
  max-width: 46em;
  font-size: 13px;
  line-height: 1.4;
  color: #5e574e;
}

.fine {
  margin-top: 4px;
}

button {
  justify-self: start;
  border: 1px solid #1c1916;
  border-radius: 6px;
  background: transparent;
  color: #1c1916;
  font: inherit;
  font-size: 15px;
  padding: 10px 16px;
  cursor: pointer;
}

button:hover:not(:disabled):not([aria-pressed="true"]) {
  background: #f3ece1;
}

button[aria-pressed="true"] {
  background: #1c1916;
  color: #fffcf7;
}

button[aria-pressed="true"]:hover:not(:disabled) {
  background: #34302b;
  color: #fffcf7;
}

button:disabled {
  cursor: default;
  opacity: 0.5;
}

:focus-visible {
  outline: 2px solid #1c1916;
  outline-offset: 2px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.stage {
  display: flex;
  justify-content: center;
}

.sheet {
  width: min(100%, 720px);
  padding: 22px 22px 26px;
  background: #fffcf7;
  box-shadow: 0 12px 32px rgba(48, 38, 22, 0.12);
}

.sheet-label {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6a6258;
}

.count {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.3;
  color: #3f3a34;
}

.count strong {
  font-size: 22px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.names {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.names li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid #e4dcd0;
}

.name {
  min-width: 0;
  font-family: "Noto Serif", "Liberation Serif", Georgia, serif;
  font-size: 20px;
  line-height: 1.3;
}

.copy {
  flex: none;
  padding: 4px 10px;
  font-size: 13px;
}

#note:not(:empty) {
  margin-top: 12px;
}

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

noscript {
  display: block;
  padding: 16px 20px;
  background: #fff4e8;
}

@media (min-width: 861px) {
  .stage {
    position: sticky;
    top: 24px;
    align-self: start;
  }
}

@media (max-width: 860px) {
  main {
    grid-template-columns: 1fr;
    padding: 24px 18px 40px;
  }

  h1 {
    font-size: 34px;
  }
}
