/* The board's look (design direction D). Card colors live in board.js. */

:root {
  --ink: #1d1b16;
  --ink-soft: #5c564b;
  --accent: #8a3b12;
  --wall: #efe6d6;
  --paper: #fffaf0;
  --frame: #9a6a3e;
}

body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
}

a { color: var(--ink); }
a:hover { color: #6b3d12; }

button, input { font: inherit; color: var(--ink); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 20px 48px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Header: title plus day navigation */

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

h1 {
  margin: 0;
  font-family: "Anton", sans-serif;
  font-size: 52px;
  line-height: 1;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .01em;
}

.day-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.round {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.round:disabled { opacity: .35; cursor: default; }

.day { min-width: 250px; text-align: center; }
.day p { margin: 0; }
.day-tag {
  min-height: 1.2em;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
}
.day-label {
  font-family: "Anton", sans-serif;
  font-size: 30px;
  line-height: 1.15;
  text-transform: uppercase;
}

.jump { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; margin-left: 6px; }
.jump input {
  min-height: 44px;
  padding: 4px 10px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--paper);
  font-weight: 600;
  font-size: 15px;
}

/* The corkboard in its wooden frame */

.board {
  background: #c79a6b url(cork.svg);
  background-size: 400px 400px;
  border: 12px solid var(--frame);
  border-radius: 6px;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .12), 0 10px 24px rgba(60, 35, 10, .25);
  padding: 26px 22px 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
}

.paper { box-shadow: 0 1px 0 rgba(0, 0, 0, .08), 0 6px 14px rgba(70, 40, 10, .22); }

/* Filters sheet, taped to the board */

.filters {
  flex: 1 1 230px;
  max-width: 280px;
  background: var(--paper);
  padding: 22px 20px 20px;
  transform: rotate(-.6deg);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tape {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 92px;
  height: 24px;
  margin-left: -46px;
  background: rgba(238, 226, 190, .9);
  transform: rotate(2deg);
}
#filter-box { display: flex; flex-direction: column; gap: 16px; }
#filter-box summary { display: none; }
.filters fieldset { border: 0; margin: 0; padding: 0; }
.filters legend {
  font-family: "Anton", sans-serif;
  font-size: 22px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.option { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 16px; cursor: pointer; }
.option.none { opacity: .5; }
.option input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.swatch { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--ink); flex: none; }
.option-name { flex-grow: 1; }
.option-count { font-weight: 700; color: var(--ink-soft); }
.clear {
  min-height: 44px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: transparent;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

.also { border-top: 2px solid var(--ink); padding-top: 12px; }
.also summary { font-family: "Anton", sans-serif; font-size: 22px; text-transform: uppercase; cursor: pointer; }
.also ul { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.also a { font-weight: 700; }
.also span { display: block; font-size: 14px; color: var(--ink-soft); }

/* Events */

main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }

.count {
  margin: 0;
  align-self: flex-start;
  padding: 6px 12px;
  background: var(--paper);
  font-weight: 700;
  font-size: 16px;
  transform: rotate(.5deg);
}

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

.card {
  position: relative;
  padding: 26px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.card p, .card h3 { margin: 0; }
.pin {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 15px;
  height: 15px;
  margin-left: -7px;
  border-radius: 50%;
  box-shadow: 0 3px 4px rgba(0, 0, 0, .35);
}
.when { font-family: "Anton", sans-serif; font-size: 28px; line-height: 1; text-transform: uppercase; }
.runs { font-size: 14px; font-weight: 700; }
.cat { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.title { font-size: 20px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.where { font-size: 15px; }

/* Description: one line, with an arrow to open the rest */
.note-row { display: flex; align-items: flex-start; gap: 4px; }
.note {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card.open .note { white-space: pre-line; overflow-wrap: anywhere; }
.more {
  flex: none;
  width: 30px;
  height: 30px;
  margin: -4px -6px 0 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.more svg { transition: transform .15s; }
.card.open .more svg { transform: rotate(180deg); }

.card .links { margin-top: auto; padding-top: 8px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.links a { font-weight: 700; }

/* "On view": exhibitions, as a list on one sheet */

.on-view {
  background: var(--paper);
  padding: 16px 20px;
  transform: rotate(-.3deg);
}
.on-view summary {
  font-family: "Anton", sans-serif;
  font-size: 22px;
  text-transform: uppercase;
  cursor: pointer;
}
.on-view ul { margin: 12px 0 0; padding: 0; list-style: none; columns: 2 320px; column-gap: 32px; }
.on-view li { break-inside: avoid; padding: 8px 0; border-top: 1px solid rgba(0, 0, 0, .1); font-size: 15px; }
.on-view .exhibit-title { font-weight: 800; }
.on-view .exhibit-meta { color: var(--ink-soft); font-size: 14px; }

.empty {
  align-self: center;
  max-width: 420px;
  padding: 26px 30px;
  background: var(--paper);
  text-align: center;
  transform: rotate(-.8deg);
}
.empty p { margin: 0; }
.empty-title { font-family: "Anton", sans-serif; font-size: 26px; text-transform: uppercase; margin-bottom: 6px !important; }

.footer { font-size: 14px; color: var(--ink-soft); }
.footer a { color: var(--ink-soft); }

@media (max-width: 600px) {
  .page { padding: 20px 12px 40px; }
  h1 { font-size: 40px; }
  .day { min-width: 0; flex: 1; }
  .day-label { font-size: 24px; }
  .board { border-width: 8px; padding: 18px 12px 26px; }
  .filters { max-width: none; padding: 16px 16px 12px; }
  #filter-box summary {
    display: list-item;
    min-height: 32px;
    font-family: "Anton", sans-serif;
    font-size: 22px;
    text-transform: uppercase;
    cursor: pointer;
  }
}

@media (prefers-reduced-motion: reduce) {
  .more svg { transition: none; }
}
