/* The Event List. Plain, readable design. Red accent. */

:root {
  --accent: #c22525;
  --accent-soft: #fbeeee;
  --bg: #fdfbf8;
  --surface: #ffffff;
  --text: #241f1c;
  --muted: #6b625c;
  --border: #ddd5cf;
  --flag: #c22525;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #f08374;
    --accent-soft: #3a2320;
    --bg: #1c1917;
    --surface: #282420;
    --text: #f3ede8;
    --muted: #b8ada5;
    --border: #4a423c;
    --flag: #f08374;
  }
}

body[data-theme="light"] {
  --accent: #c22525;
  --accent-soft: #fbeeee;
  --bg: #fdfbf8;
  --surface: #ffffff;
  --text: #241f1c;
  --muted: #6b625c;
  --border: #ddd5cf;
  --flag: #c22525;
}

body[data-theme="dark"] {
  --accent: #f08374;
  --accent-soft: #3a2320;
  --bg: #1c1917;
  --surface: #282420;
  --text: #f3ede8;
  --muted: #b8ada5;
  --border: #4a423c;
  --flag: #f08374;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 22px;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--accent);
}

h1, h2, h3 {
  line-height: 1.25;
}

h1 {
  font-size: 2.2rem;
}

h2 {
  font-size: 1.55rem;
}

h3 {
  font-size: 1.3rem;
}

.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1rem;
}

main.wrap {
  padding-bottom: 3rem;
}

.topbar {
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  align-items: baseline;
}

.brand {
  font-weight: bold;
  font-size: 1.35rem;
  color: var(--text);
  text-decoration: none;
}

.mainnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}

.theme-toggle {
  margin-left: auto;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  font: inherit;
  font-size: 1rem;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
}

.footer {
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
  padding-top: 1rem;
  padding-bottom: 1.5rem;
  text-align: center;
  color: var(--muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: bold;
  margin-bottom: 0.2rem;
}

.hero h1 {
  font-size: 3rem;
  margin-top: 0;
}

.cta-row {
  margin: 1rem 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
}

.card h3 {
  margin-top: 0;
}

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

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
}

.flag {
  color: var(--flag);
  font-weight: bold;
}

.badge {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  border-radius: 999px;
  padding: 0.15rem 0.85rem;
  font-size: 0.95rem;
}

form {
  margin: 1rem 0;
}

label {
  display: block;
  margin: 0.7rem 0;
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="file"],
select,
textarea {
  display: block;
  width: 100%;
  max-width: 480px;
  font: inherit;
  padding: 0.6rem 0.75rem;
  margin-top: 0.25rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
}

fieldset {
  border: 1px solid var(--border);
  border-radius: 6px;
  margin: 0.9rem 0;
  padding: 0.7rem 1rem;
}

fieldset label {
  display: inline-block;
  margin: 0.25rem 0.8rem 0.25rem 0;
}

fieldset label input {
  display: inline-block;
  width: auto;
  margin-top: 0;
}

button,
a.button {
  display: inline-block;
  font: inherit;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0.65rem 1.3rem;
  text-decoration: none;
  cursor: pointer;
  margin: 0.5rem 0;
}

button:hover,
a.button:hover {
  filter: brightness(1.08);
}

a.button.secondary {
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--accent);
}

.inline-form {
  display: inline;
  margin: 0;
}

.inline-form button {
  padding: 0.25rem 0.7rem;
  margin: 0.2rem 0;
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: end;
}

.search-form label {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 0.8rem 0;
}

th, td {
  text-align: left;
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid var(--border);
}

.scores td:first-child {
  width: 55%;
}

.scores th {
  font-weight: normal;
}

.money-table th,
.money-table td {
  text-align: left;
}

.comment {
  font-style: italic;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.6rem 0;
}

.chip {
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.15rem 0.8rem;
  text-decoration: none;
}

.chip.active {
  background: var(--accent);
  color: #ffffff;
}

.chips.pick {
  margin: 0.5rem 0;
}

.chip-pick {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  cursor: pointer;
}

.chip-pick input {
  margin-right: 0.3rem;
}

.chip-pick label {
  display: inline;
  margin: 0;
  cursor: pointer;
}

.chip-group-label {
  font-weight: bold;
  margin: 0.8rem 0 0.2rem;
}

.score-field .score-pick {
  display: inline-block;
  margin: 0.25rem 0.8rem 0.25rem 0;
}

.vendor-row {
  border-top: 1px solid var(--border);
  padding-top: 0.4rem;
}

.vendor-row label {
  display: inline-block;
  margin-right: 1rem;
}

.note {
  border-left: 3px solid var(--accent);
  padding: 0.2rem 0.8rem;
  margin: 0.7rem 0;
  background: var(--surface);
}

.upload-thumb {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.error {
  color: var(--flag);
  font-weight: bold;
}

.facts p {
  margin: 0.35rem 0;
}

.review {
  margin-bottom: 1rem;
}
