.rules {
  margin-top: 20px;
  max-width: 76ch;
}
.rules summary {
  cursor: pointer;
  font-weight: 650;
  padding: 10px 0;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.row,
.buttons,
.cards {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}
.row {
  justify-content: space-between;
}
.row [data-clock] {
  font-variant-numeric: tabular-nums;
}
.private {
  border-top: 4px solid #9a552f;
}
.private h3 {
  margin-top: 22px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
legend {
  margin-bottom: 12px;
}
.card {
  background: #f2eddf;
  border: 1px solid #b9ac8f;
  flex: 1;
  min-height: 105px;
  padding: 10px;
  cursor: pointer;
}
.card:has(:checked) {
  background: #e1eadb;
  border-color: #334b39;
}
.card small {
  letter-spacing: 0;
}
.card input {
  justify-self: start;
}
.buttons button {
  margin: 0 !important;
}
ol {
  padding-left: 0;
}
.stack .panel h3 {
  font-size: 1.35rem;
}
:root {
  color-scheme: light;
  --ink: #28362d;
  --line: #c8cab9;
  --paper: #f5f2e8;
  --orange: #bb4f2f;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background-image: radial-gradient(#4037230e 0.7px, transparent 0.8px);
  background-size: 4px 4px;
  min-height: 100vh;
}
header {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7vw;
  font-size: 0.74rem;
  letter-spacing: 0.17em;
  font-weight: 700;
}
header a {
  display: flex;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.12em;
}
.brand {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font: italic bold 27px Georgia;
}
main {
  max-width: 1110px;
  margin: 0 auto;
  padding: 55px 36px;
}
.eyebrow,
small {
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
}
.eyebrow {
  color: #855038;
  margin: 0 0 12px;
}
h1,
h2,
h3 {
  font-family: "Baskervville", Georgia, serif;
  font-weight: 500;
  margin: 0 0 16px;
}
h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.06em;
}
h1 span {
  color: var(--orange);
}
h2 {
  font-size: 2rem;
  letter-spacing: -0.04em;
}
p {
  line-height: 1.6;
}
button {
  cursor: pointer;
  background: var(--ink);
  color: white;
  border: 1px solid var(--ink);
  padding: 12px 20px;
  font-size: 0.92rem;
  font-family: inherit;
  font-weight: 600;
  border-radius: 3px;
}
button:hover {
  filter: brightness(1.12);
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #cc7538;
  outline-offset: 3px;
}
.secondary {
  background: transparent;
  color: var(--ink);
}
.cover {
  overflow: hidden;
  position: relative;
  isolation: isolate;
  margin-top: 22px;
  background: #34493e;
  width: 100%;
  min-height: 325px;
  text-align: left;
  padding: 38px 48px;
  color: #fff5dc;
  border: 0;
}
.landscape {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, #142a20dd, #263c2830 85%),
    url("/donner-lake.jpg") center 56% / 150% auto;
}
.covertext {
  display: grid;
  gap: 14px;
  text-shadow: 0 2px 9px #28362d;
}
.covertext strong {
  font:
    normal 4.25rem/0.9 Georgia,
    serif;
  letter-spacing: -0.05em;
}
.cover b {
  position: absolute;
  right: 36px;
  bottom: 32px;
  background: var(--paper);
  color: var(--ink);
  padding: 12px 22px;
}
.entry,
.panel {
  background: #fbf9f1;
  border: 1px solid var(--line);
  padding: 27px;
}
.entry {
  max-width: 570px;
  margin: 40px auto;
}
.entry h1 {
  font-size: 3rem;
}
.layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}
form,
label {
  display: grid;
  gap: 10px;
}
form {
  margin: 15px 0;
  gap: 16px;
}
label {
  font-weight: 600;
}
#rematch label {
  display: flex;
  align-items: center;
  padding: 3px 0;
}
label span {
  display: contents;
  color: #667461;
  font-size: 0.83rem;
}
input,
select {
  background: white;
  color: inherit;
  font: inherit;
  padding: 10px;
  border: 1px solid #a7b09f;
  border-radius: 2px;
}
ul {
  padding: 0;
  list-style: none;
}
li {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 10px 0;
}
li small {
  margin-left: auto;
  letter-spacing: 0;
  color: #596652;
}
.avatar {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid var(--line);
  color: #677359;
  font: italic 15px Georgia;
}
.panel button + button {
  margin-left: 6px;
}
#message {
  position: sticky;
  bottom: 12px;
  width: fit-content;
  margin: 0 auto;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 3px;
}
#message:empty {
  display: none;
}
@media (max-width: 700px) {
  .layout {
    grid-template-columns: 1fr;
  }
  main {
    padding: 28px 18px;
  }
  .cover {
    padding: 28px;
  }
  .covertext strong {
    font-size: 3rem;
  }
}
