@font-face {
  font-family: Young;
  src: url("/assets/young-serif-latin-400-normal.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Bricolage;
  src: url("/assets/bricolage-grotesque-latin-600-normal.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}
:root {
  --paper: #f7f2e6;
  --ink: #29291f;
  --red: #a33722;
  --muted: #625e4f;
  --line: #b7ac96;
  --green: #314535;
  --light: #fffaf0;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 100%;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background-image: url("/assets/grain.png");
}
a {
  color: inherit;
  text-underline-offset: 0.22em;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #175d94;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3,
.brand,
footer > span {
  font-family: Young, Georgia, serif;
  font-weight: 400;
}
svg {
  width: 1.25em;
  height: 1.25em;
  display: block;
}
i[data-icon] {
  display: inline-flex;
  font-style: normal;
  align-items: center;
}
.skip,
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip:focus {
  z-index: 10;
  inset: 4px auto auto 4px;
  width: auto;
  height: auto;
  clip-path: none;
  background: white;
  padding: 12px;
}
.mast {
  border-bottom: 1px solid var(--ink);
}
.mast-inner,
main,
footer {
  width: min(100% - 64px, 1170px);
  margin: auto;
}
.mast-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.5rem;
  line-height: 1;
}
.brand img {
  border-radius: 9px;
}
.brand b {
  font-weight: 400;
  color: var(--red);
}
.topnav {
  display: flex;
  gap: 22px;
}
.topnav a,
.saved-top,
.bottom a {
  font:
    600 0.98rem Bricolage,
    system-ui;
  text-decoration: none;
}
.topnav a {
  padding: 15px 0;
}
.topnav a[aria-current="page"] {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 7px;
}
.saved-top,
.btn,
.textbtn,
.tag-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.saved-top {
  border: 1px solid var(--ink);
  border-radius: 24px;
  padding: 0 15px;
}
.saved-top b {
  font: inherit;
  font-variant-numeric: tabular-nums;
}
.bottom {
  display: none;
}
main {
  min-height: 65vh;
  padding: 34px 0 45px;
}
main:focus {
  outline: none;
}
.kicker,
.eyeline,
.place-meta {
  font:
    600 0.82rem/1.4 Bricolage,
    system-ui;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.kicker {
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 10px;
}
.kicker:before {
  content: "";
  width: 30px;
  border-top: 2px solid currentColor;
}
.hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(3.5rem, 7.8vw, 6.7rem);
  letter-spacing: -0.065em;
  line-height: 1.04;
  margin: 8px 0 6px;
}
.hero h1 em {
  font:
    italic 0.99em Georgia,
    serif;
  color: var(--red);
  letter-spacing: -0.07em;
}
.hero p,
.lede {
  font-size: 1.06rem;
  line-height: 1.55;
  max-width: 48em;
}
.issue {
  font:
    0.86rem/1.5 Bricolage,
    system-ui;
  color: var(--muted);
  margin-bottom: 5px;
  white-space: nowrap;
}
.tools {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  margin-bottom: 23px;
}
.btn {
  font:
    600 1rem Bricolage,
    system-ui;
  border: 1px solid var(--ink);
  background: transparent;
  border-radius: 25px;
  padding: 9px 17px;
  text-decoration: none;
}
.btn:hover,
.saved-top:hover,
.tag-btn:hover {
  background: #eae1cb;
}
.btn.dark {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.btn.dark:hover {
  background: #233428;
}
.textbtn {
  background: none;
  border: none;
  padding: 5px 8px;
  color: var(--red);
  font:
    600 1rem Bricolage,
    system-ui;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.tools .mode {
  margin-left: auto;
  display: flex;
  border: 1px solid var(--line);
  border-radius: 25px;
  overflow: hidden;
}
.mode button {
  min-height: 42px;
  padding: 5px 14px;
  border: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  font: 600 0.96rem Bricolage;
}
.mode button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(265px, 1fr);
  gap: clamp(32px, 5vw, 78px);
  align-items: start;
}
.deck-wrap {
  min-width: 0;
}
.deck-frame {
  position: relative;
  isolation: isolate;
  margin: 0 5px 13px 0;
}
.deck-back {
  position: absolute;
  inset: 3px -5px -5px 4px;
  border: 1px solid var(--ink);
  border-radius: 9px;
  background: #d8ceb9;
  transform: rotate(0.5deg);
  z-index: -1;
}
.deck-card {
  position: relative;
  border: 1.25px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
  background: var(--light);
  touch-action: pan-y;
  transition: transform 0.18s ease;
  box-shadow: 0 2px 0 #29291f18;
}
.deck-card.drag {
  transition: none;
}
.art {
  position: relative;
  background: #f0dfc3;
  aspect-ratio: 2.3;
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
}
.art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  display: block;
}
.art-mark,
.count-mark {
  position: absolute;
  top: 12px;
  background: var(--paper);
  line-height: 1.1;
  font:
    600 0.79rem Bricolage,
    system-ui;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 100px;
  padding: 6px 10px;
}
.art-mark {
  left: 12px;
}
.count-mark {
  right: 12px;
  font-variant-numeric: tabular-nums;
}
.card-copy {
  padding: 19px 24px 14px;
}
.place-meta {
  letter-spacing: 0.07em;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-copy h2 {
  font-size: clamp(1.9rem, 3.6vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
  margin: 9px 0;
}
.summary {
  line-height: 1.5;
  max-width: 58ch;
}
.record-links {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 8px;
  font: 600 0.92rem Bricolage;
}
.record-links a,
.record-links button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.record-links button {
  color: var(--red);
  border: 0;
  background: none;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}
.actions {
  display: flex;
  gap: 9px;
  align-items: center;
}
.actions .btn {
  flex: 1;
}
.actions .undo {
  flex: 0 0 auto;
}
.hint,
.small {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}
.hint {
  margin-top: 10px;
}
.side h2,
.subhead {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: -0.045em;
}
.side .eyeline {
  color: var(--red);
  margin-bottom: 3px;
}
.pick {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  align-items: center;
  width: 100%;
  text-align: left;
  background: none;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
}
.side h2 {
  margin-bottom: 11px;
}
.pick img {
  width: 80px;
  height: 76px;
  object-fit: cover;
  border-radius: 3px;
}
.pick strong {
  display: block;
  font:
    400 1.25rem/1.16 Young,
    Georgia;
  letter-spacing: -0.03em;
  margin-top: 4px;
}
.pick small {
  font:
    600 0.78rem/1.3 Bricolage,
    system-ui;
  color: var(--red);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.area-box {
  margin-top: 24px;
  border-top: 2px solid var(--ink);
  padding-top: 16px;
}
.area-box p {
  margin: 5px 0 13px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag-btn {
  background: none;
  border: 1px solid var(--line);
  border-radius: 25px;
  font: 600 0.92rem Bricolage;
  padding: 5px 12px;
}
.rows {
  display: grid;
  gap: 0;
}
.row {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}
.row h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  margin: 3px 0;
}
.row h2 button {
  padding: 4px 0;
  text-align: left;
  border: 0;
  background: none;
  font: inherit;
  line-height: 1.15;
}
.row .summary {
  font-size: 0.95rem;
}
.row .btn {
  padding: 8px 12px;
}
.pages {
  margin-top: 18px;
}
.statusline {
  margin: 3px 0 14px;
  color: var(--muted);
  font-size: 0.94rem;
}
.note {
  border-left: 3px solid var(--red);
  padding: 6px 12px;
  margin: 9px 0;
  color: var(--red);
}
.empty {
  min-height: 155px;
  border: 1px dashed var(--line);
  padding: 24px;
  border-radius: 5px;
}
.empty p {
  margin: 8px 0;
}
.article {
  max-width: 740px;
}
.article h2 {
  margin-top: 1.2em;
  font-size: 1.85rem;
}
.article p,
.article li {
  line-height: 1.6;
  margin: 0.55em 0;
}
.article ul,
.article ol {
  padding-left: 1.5em;
}
.article a {
  color: var(--red);
}
.article .intro {
  font:
    1.43rem/1.45 Young,
    Georgia;
}
footer {
  border-top: 2px solid var(--ink);
  padding: 20px 0 36px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
footer > span {
  font-size: 1.2rem;
}
footer div {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
footer a {
  font: 600 0.9rem Bricolage;
  line-height: 2;
}
dialog {
  background: var(--light);
  color: var(--ink);
  width: min(100% - 28px, 520px);
  max-height: 85dvh;
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--ink);
  border-radius: 10px;
}
dialog::backdrop {
  background: #1f281dd0;
}
.sheet-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}
.sheet-head h2 {
  font-size: 1.85rem;
  line-height: 1.15;
  letter-spacing: -0.04em;
}
.sheet-head .btn {
  padding: 8px;
  min-width: 44px;
}
.sheet-body p,
dialog p {
  line-height: 1.5;
  margin: 10px 0;
}
form {
  margin-top: 14px;
}
.field {
  display: grid;
  gap: 4px;
  font: 600 0.95rem Bricolage;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field.wide {
  grid-column: 1/-1;
}
input[type="search"],
select {
  min-width: 0;
  width: 100%;
  min-height: 45px;
  font: 1rem system-ui;
  border: 1px solid #827968;
  border-radius: 5px;
  background: white;
  padding: 8px;
  color: var(--ink);
}
.checks {
  margin: 10px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.checks label {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.checks input {
  width: 19px;
  height: 19px;
}
.sheet-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
dialog dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  font-size: 0.95rem;
}
dialog dt {
  color: var(--muted);
}
dialog dd {
  margin: 0;
}
.dateflag {
  font: 600 0.92rem Bricolage;
  color: var(--green);
  margin-top: 6px;
}
@media (max-width: 800px) {
  .topnav {
    gap: 12px;
  }
  .mast-inner,
  main,
  footer {
    width: calc(100% - 36px);
  }
  .layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(215px, 0.9fr);
    gap: 24px;
  }
  .card-copy {
    padding: 16px;
  }
  .issue {
    display: none;
  }
  .saved-top {
    padding: 0 12px;
  }
  .brand {
    font-size: 1.25rem;
  }
}
@media (max-width: 670px) {
  .topnav {
    display: none;
  }
  .mast-inner {
    min-height: 57px;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .brand {
    font-size: 1.25rem;
  }
  .saved-top {
    border: 0;
    padding: 0 4px;
  }
  .mast-inner,
  main,
  footer {
    width: calc(100% - 32px);
  }
  main {
    padding-top: 19px;
  }
  .hero {
    margin-bottom: 13px;
  }
  .hero h1 {
    font-size: clamp(2.2rem, 9.9vw, 4.2rem);
    margin: 4px 0;
    line-height: 1.12;
  }
  .hero p {
    font-size: 0.96rem;
    line-height: 1.38;
  }
  .kicker,
  .eyeline,
  .place-meta {
    font-size: 0.75rem;
    letter-spacing: 0.075em;
  }
  .kicker:before {
    width: 20px;
  }
  .layout {
    display: block;
  }
  .tools {
    padding: 8px 0;
    margin-bottom: 13px;
    gap: 4px;
  }
  .tools .btn {
    font-size: 0.92rem;
    padding: 7px 11px;
  }
  .mode button {
    padding: 6px 10px;
  }
  .card-copy {
    padding: 13px 15px 6px;
  }
  .art {
    aspect-ratio: 2.15;
  }
  .card-copy h2 {
    font-size: clamp(1.75rem, 7.5vw, 2.6rem);
    margin: 6px 0;
  }
  .summary {
    font-size: 1rem;
    line-height: 1.4;
  }
  .record-links {
    margin-top: 2px;
  }
  .actions {
    gap: 5px;
  }
  .actions .btn {
    font-size: 0.95rem;
    padding: 8px 11px;
  }
  .side {
    margin-top: 30px;
  }
  .side .pick {
    grid-template-columns: 62px 1fr;
    padding: 11px 0;
  }
  .pick img {
    width: 62px;
    height: 52px;
  }
  .area-box {
    margin-top: 16px;
  }
  .bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--paper);
    border-top: 1px solid var(--ink);
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 3px 3px max(3px, env(safe-area-inset-bottom));
  }
  .bottom a {
    min-height: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    font-size: 0.78rem;
  }
  .bottom a[aria-current="page"] {
    color: var(--red);
    background: #eae1ca;
    border-radius: 5px;
  }
  .bottom svg {
    width: 20px;
    height: 20px;
  }
  footer {
    display: block;
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
  }
  footer div {
    margin-top: 4px;
    gap: 8px 14px;
  }
  .hint {
    font-size: 0.82rem;
  }
  .row .btn {
    font-size: 0.88rem;
  }
  .art-mark,
  .count-mark {
    top: 9px;
  }
  .art-mark {
    left: 9px;
  }
  .count-mark {
    right: 9px;
  }
  dialog {
    padding: 17px;
  }
}
@media (max-width: 355px) {
  .mast-inner,
  main,
  footer {
    width: calc(100% - 24px);
  }
  .hero p {
    font-size: 0.9rem;
  }
  .art {
    aspect-ratio: 2.4;
  }
  .tools .mode button {
    padding: 6px 8px;
  }
  .card-copy {
    padding: 10px 12px 2px;
  }
  .hint {
    margin-top: 6px;
  }
  .actions .btn {
    padding: 7px 8px;
  }
  .fields {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
.deck-back {
  overflow: hidden;
  background: var(--light);
  display: flex;
  flex-direction: column;
}
.deck-back img {
  width: 100%;
  height: 56%;
  object-fit: cover;
}
.deck-back span {
  padding: 1.2rem;
  font:
    1.6rem Young,
    Georgia;
}
.filter-label-short {
  display: none;
}
.brand span {
  white-space: nowrap;
}
.tools .mode {
  flex-shrink: 0;
}
.tag-btn[data-action="nearest"] {
  justify-self: start;
}
@media (max-width: 670px) {
  .filter-label-long {
    display: none;
  }
  .filter-label-short {
    display: inline;
  }
  .tools .btn,
  .tools .mode button {
    white-space: nowrap;
  }
}
@media (max-width: 355px) {
  .hero:has(h1 em) p {
    display: none;
  }
  .hero {
    margin-bottom: 9px;
  }
  main {
    padding-top: 11px;
  }
  .tools {
    margin-bottom: 10px;
  }
  .deck-wrap .actions {
    position: sticky;
    bottom: calc(54px + env(safe-area-inset-bottom));
    z-index: 2;
    background: var(--paper);
    padding: 4px 0;
    border-top: 1px solid var(--line);
  }
  .bottom a {
    font-size: 0.73rem;
  }
  .brand {
    font-size: 1.08rem;
  }
  .brand img {
    width: 29px;
    height: 29px;
  }
}
.venue-dates {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 13px;
}
.venue-dates ul {
  list-style: none;
  padding: 0;
  margin: 5px 0 14px;
}
.venue-dates li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.venue-dates button {
  min-height: 44px;
  text-align: left;
  border: none;
  background: none;
  padding: 6px 0;
  color: var(--red);
  font: 600 0.95rem Bricolage;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.venue-dates span {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: right;
}
