/* =========================================================
   Inner pages — blog / tour / modal
   ========================================================= */

.page {
  max-width: 1240px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 56px) 24px 96px;
}

/* ---------- page head ---------- */
.page-head { padding-bottom: 40px; border-bottom: 1px solid var(--line); }

.page-kicker {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-title {
  margin: 0;
  font-size: clamp(38px, 6.4vw, 76px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.page-lede {
  max-width: 48ch;
  margin: 20px 0 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- toolbar ---------- */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 28px 0 36px;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  transition: border-color .3s var(--ease), color .3s var(--ease);
  min-width: min(320px, 100%);
}
.search:focus-within { border-color: #111; color: #111; }
.search input {
  border: 0;
  outline: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  width: 100%;
  padding: 0;
}
.search input::placeholder { color: #a6a6ad; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }

.result-count {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--muted);
}

/* ---------- post grid ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px 28px;
}

.post-card { display: block; }

.post-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f3f3f5;
}
.post-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
  transform: scale(1);
  transition: transform .8s var(--ease), filter .5s var(--ease);
}
.post-card:hover .post-thumb img { transform: scale(1.045); filter: grayscale(.35) contrast(1.02); }

.post-body { padding-top: 16px; }

.post-tag {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.post-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.32;
  letter-spacing: -0.03em;
  transition: opacity .25s var(--ease);
}
.post-card:hover .post-title { opacity: .62; }

.post-excerpt {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.62;
  color: var(--muted);
  letter-spacing: -0.01em;
}

.post-meta {
  display: flex;
  gap: 8px;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #9a9aa2;
}

/* ---------- empty ---------- */
.empty {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 72px 0 24px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
.empty strong { font-size: 18px; color: var(--ink); letter-spacing: -0.02em; }
.empty[hidden] { display: none; }

/* ---------- pager ---------- */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 56px;
  min-height: 40px;
}
.pager-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  font-size: 14px;
  font-weight: 600;
  color: #55555c;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.pager-btn:hover:not(:disabled) { background: #f3f3f5; color: #000; }
.pager-btn.is-current { border-color: #111; color: #000; }
.pager-btn:disabled { opacity: .28; cursor: default; }
.pager-dots { padding: 0 6px; color: #b3b3ba; }

/* ---------- tour ---------- */
.tour-list {
  border-top: 1px solid var(--line);
  margin-top: 8px;
}

.tour-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 26px 8px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
  cursor: pointer;
  transition: background .3s var(--ease), padding-left .3s var(--ease);
}
.tour-row:hover { background: #fafafb; padding-left: 18px; }

.tour-date {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--muted);
}

.tour-city strong {
  display: block;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.03em;
}
.tour-city em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
}

.tour-status {
  justify-self: end;
  padding: 9px 18px;
  border: 1px solid #111;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.tour-row:hover .tour-status.is-on { background: #111; color: #fff; }
.tour-status.is-out { border-color: var(--line); color: #b0b0b7; }

.tour-note {
  margin-top: 72px;
  padding: 32px;
  background: #fafafb;
  border: 1px solid var(--line);
}
.note-title { margin: 0 0 16px; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.note-list { margin: 0; padding-left: 18px; display: grid; gap: 10px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.note-list strong { color: var(--ink); font-weight: 650; }

/* ---------- modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .28s var(--ease);
}
.modal[hidden] { display: none; }
.modal.is-open { opacity: 1; }

.modal-panel {
  position: relative;
  width: min(540px, 100%);
  max-height: 86dvh;
  overflow: auto;
  padding: 40px 36px 34px;
  background: #fff;
  border-radius: 18px;
  transform: translateY(14px) scale(.985);
  transition: transform .34s var(--ease);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .35);
}
.modal.is-open .modal-panel { transform: none; }

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #55555c;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.modal-close:hover { background: #f2f2f4; color: #000; }

.modal-kicker {
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--muted);
}
.modal-title {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.2;
}
.modal-date { margin: 0 0 18px; font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.modal-copy { margin: 0 0 26px; font-size: 14px; line-height: 1.65; color: #4a4a51; }

.modal-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.modal-row { display: flex; gap: 8px; }

.modal-form input {
  flex: 1 1 auto;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  letter-spacing: -0.01em;
  transition: border-color .25s var(--ease);
}
.modal-form input:focus { outline: 0; border-color: #111; }
.modal-form input.is-invalid { border-color: #e0565b; }

.modal-form button {
  flex: 0 0 auto;
  height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: #000;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.modal-form button:hover:not(:disabled) { opacity: .82; }
.modal-form button:disabled { opacity: .5; cursor: progress; }

.field-error { margin: 10px 0 0; font-size: 12px; color: #d9484d; min-height: 1em; }
.field-ok { margin: 10px 0 0; font-size: 12px; color: #15803d; min-height: 1em; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .page { padding: calc(var(--header-h) + 32px) 16px 64px; }
  .page-lede { font-size: 15px; }
  .post-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .toolbar { margin: 20px 0 28px; }
  .search { min-width: 100%; }

  .tour-row {
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
    padding: 20px 4px;
  }
  .tour-date { grid-column: 1 / -1; }
  .tour-row:hover { padding-left: 4px; }
  .tour-city strong { font-size: 18px; }
  .tour-status { padding: 8px 14px; font-size: 11px; }

  .tour-note { margin-top: 48px; padding: 24px 20px; }

  .modal-panel { padding: 34px 22px 26px; }
  .modal-row { flex-direction: column; }
  .modal-form button { width: 100%; }
}
