/* Both Days — weekend shortlist guide */

@font-face {
  font-family: "Oswald";
  src: url("assets/oswald.ttf") format("truetype");
  font-weight: 200 700;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("assets/work-sans.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #ecefe7;
  --paper-deep: #e2e7db;
  --ink: #1e3226;
  --ink-soft: rgba(30, 50, 38, 0.72);
  --line: rgba(30, 50, 38, 0.22);
  --line-soft: rgba(30, 50, 38, 0.12);
  --art: #c2452f;
  --film: #33569b;
  --food: #b97e1a;
  --lit: #6a4c93;
  --music: #1b7f79;
  --out: #55823b;
  --walk: #96603a;
  --focus: #33569b;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Work Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

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

/* ---------- top bar ---------- */

.top {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 28px 20px;
}

.brand {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  max-width: 560px;
}

.mark { flex: none; margin-top: 6px; }

.wordmark {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 2.1rem;
  line-height: 1;
  letter-spacing: 0.01em;
}

.tagline {
  margin: 8px 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 44ch;
}

.toolbar-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.field input,
.field select {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  padding: 9px 12px;
  min-width: 210px;
}

.field select {
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231e3226' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.toggle {
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  padding: 10px 14px;
  cursor: pointer;
}

.toggle-dot {
  width: 11px;
  height: 11px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  flex: none;
}

.toggle[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.toggle[aria-pressed="true"] .toggle-dot {
  background: var(--paper);
  border-color: var(--paper);
}

.count {
  font-family: "Oswald", sans-serif;
  font-size: 0.85rem;
  padding: 1px 7px;
  border: 1px solid currentColor;
  border-radius: 999px;
}

/* ---------- status + days ---------- */

.status {
  max-width: 1180px;
  margin: 14px auto 0;
  padding: 0 28px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.days {
  max-width: 1180px;
  margin: 10px auto 0;
  padding: 0 28px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 32px 48px;
}

.day-head {
  padding: 18px 0 6px;
  border-bottom: 3px solid var(--ink);
}

.day-head h2 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.day-sub {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.day-count { white-space: nowrap; }

.day + .day { border-left: 1px solid var(--line); }
.day + .day > .day-head,
.day + .day > .list { padding-left: 48px; }
.day > .list { padding-right: 8px; }

.days.single .day { border-left: 0; }
.days.single .day > .day-head,
.days.single .day > .list { padding-left: 0; }

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

.item { border-bottom: 1px solid var(--line-soft); }

.item-btn {
  width: 100%;
  display: grid;
  grid-template-columns: 4.2rem 1fr auto;
  gap: 4px 16px;
  align-items: baseline;
  text-align: left;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 16px 8px 16px 0;
  cursor: pointer;
}

.item-btn:hover { background: rgba(30, 50, 38, 0.05); }

.time {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

.what {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.title {
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.3;
}

.meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  flex-wrap: wrap;
}

.stamp {
  width: 10px;
  height: 10px;
  background: var(--cat, var(--ink));
  flex: none;
}

[data-cat="Art"] { --cat: var(--art); }
[data-cat="Film"] { --cat: var(--film); }
[data-cat="Food"] { --cat: var(--food); }
[data-cat="Literature"] { --cat: var(--lit); }
[data-cat="Music"] { --cat: var(--music); }
[data-cat="Outdoors"] { --cat: var(--out); }
[data-cat="Walks"] { --cat: var(--walk); }

.side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  justify-self: end;
}

.dur {
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.price {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 1rem;
}

.price.free { color: var(--out); }

.saved-flag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 1px 8px;
}

/* ---------- empty state ---------- */

.empty {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 28px 32px;
  text-align: center;
}

.empty-title {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
}

.empty-hint {
  margin: 8px auto 20px;
  color: var(--ink-soft);
  max-width: 40ch;
}

.btn {
  font: inherit;
  font-weight: 600;
  color: var(--paper);
  background: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  padding: 11px 20px;
  cursor: pointer;
}

.btn:hover { background: #2c4636; }

/* ---------- footer ---------- */

.foot {
  max-width: 1180px;
  margin: 24px auto 0;
  padding: 20px 28px 36px;
  border-top: 1px solid var(--line);
}

.foot p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ---------- detail dialog ---------- */

.detail {
  width: min(720px, calc(100% - 32px));
  max-height: min(86vh, 900px);
  overflow: auto;
  padding: 0;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 18px 50px rgba(30, 50, 38, 0.28);
}

.detail::backdrop {
  background: rgba(30, 50, 38, 0.45);
}

.detail[open] {
  animation: d-in 160ms ease-out;
}

@keyframes d-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  font-size: 1rem;
  line-height: 1;
  color: var(--paper);
  background: var(--ink);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  z-index: 2;
}

.close:hover { background: #2c4636; }

.d-photo {
  margin: 0;
  position: relative;
}

.d-photo img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.d-photo figcaption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-size: 0.72rem;
  color: var(--paper);
  background: rgba(30, 50, 38, 0.72);
  padding: 3px 9px;
  border-radius: 3px;
}

.d-body {
  padding: 22px 28px 28px;
}

.d-cat {
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  font-weight: 600;
}

.d-body h2 {
  margin: 0 0 18px;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  line-height: 1.12;
  max-width: 22ch;
}

.facts {
  margin: 0 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  border-block: 1px solid var(--line);
  padding: 16px 0;
}

.facts dt {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.facts dd {
  margin: 2px 0 0;
  font-weight: 500;
}

.d-summary {
  margin: 0 0 16px;
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 62ch;
}

.d-h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
}

.d-access {
  margin: 0 0 24px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 62ch;
}

.save[aria-pressed="true"] {
  background: #fff;
  color: var(--ink);
}

/* ---------- mobile ---------- */

@media (max-width: 760px) {
  .top { padding: 24px 18px 10px; }
  .toolbar-wrap {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--paper);
    padding: 0 18px;
  }
  .toolbar { padding-bottom: 12px; }
  .field, .field input, .field select { min-width: 0; flex: 1 1 auto; }
  .field input { min-width: 150px; }
  .status { padding: 0 18px; margin-top: 14px; }
  .days {
    padding: 0 18px 16px;
    gap: 24px;
  }
  .day + .day { border-left: 0; }
  .day + .day > .day-head,
  .day + .day > .list { padding-left: 0; }
  .days.single .day { border-left: 0; }
  .days.single .day > .day-head,
  .days.single .day > .list { padding-left: 0; }
  .empty { padding: 32px 18px; }
  .foot { padding: 16px 18px 32px; }
  .detail {
    width: calc(100% - 16px);
    max-height: 92vh;
  }
  .facts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .item-btn { grid-template-columns: 3.4rem 1fr auto; gap: 4px 10px; }
  .facts { grid-template-columns: 1fr; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .detail[open] { animation: none; }
  * { transition: none !important; }
}
