/* The wall of season 1 (season-1.html, wall.js).

   Every message that was not refused, as the ticket it was or would have been:
   same paper, same one ink, torn at the top and at the bottom like the ticket
   on the social card (tools/og.html), because each one was cut off a roll.
   They lie where they fell - a little turned, a little off the line - and the
   page only goes down: the width is the screen's, nothing scrolls sideways. */

body.wall-page {
  margin: 0;
  background: #f6f6f4;            /* the desk under the paper, a step off white */
  overflow-x: hidden;
}

/* --- the bar --- */
.wall-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.6rem 1.25rem;
  flex-wrap: wrap;
  padding: 0.85rem 1rem;
  background: rgba(246, 246, 244, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px dashed var(--rule);
}
@media (min-width: 720px) { .wall-bar { padding: 0.9rem 2rem; } }

.wall-bar__home {
  font-family: var(--display);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-decoration: none;
}
.wall-bar__what {
  margin: 0;
  display: flex;
  gap: 0.75rem;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}
.wall-bar__resume {
  margin-left: auto;
  padding: 0.5rem 0.85rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.12s linear, color 0.12s linear;
}
.wall-bar__resume:hover { background: var(--paper); color: var(--ink); }
.wall-bar__resume[hidden] { display: none; }
.wall-bar__resume[hidden] + .wall-bar__tabs { margin-left: auto; }

.wall-bar__tabs { display: flex; gap: 1.1rem; font-size: 13px; }
.wall-bar__tabs a {
  color: var(--mute);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.12s linear, border-color 0.12s linear;
}
.wall-bar__tabs a:hover { color: var(--ink); }
.wall-bar__tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.wall-bar__n { color: var(--mute); font-size: 12px; }

/* --- the wall --- */
.wall {
  position: relative;
  max-width: none;                 /* <main> is a 31rem column elsewhere on the site */
  margin: 0;
  padding: 0;
  min-height: 60vh;
}
.wall__loading {
  padding: 3rem 1rem;
  text-align: center;
  font-size: 13px;
  color: var(--mute);
}

/* One ticket. Placed by wall.js (left, top, width, turn); the paper is here. */
.slip {
  position: absolute;
  box-sizing: border-box;
  margin: 0;
  padding: 0.95rem 1.05rem 0.85rem;
  background: var(--paper);
  border-left: 1px solid #ececea;
  border-right: 1px solid #ececea;
  border-top: 1px dashed var(--ink);       /* torn here */
  border-bottom: 1px dashed var(--ink);    /* and here */
  box-shadow: 0 10px 22px -16px rgba(14, 14, 14, 0.45);
  transform: rotate(var(--turn, 0deg));
  font-family: var(--mono);
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.4s ease-out;
}
.slip.is-in { opacity: 1; }
.slip { cursor: pointer; }
/* kept: a black outline around the paper, nothing else changes */
.slip.is-fav { outline: 2px solid var(--ink); outline-offset: 5px; }
.slip:focus-visible { outline: 2px dashed var(--ink); outline-offset: 5px; }
.slip.is-fav:focus-visible { outline-style: solid; }
/* the ticket the bar took you back to: a moment of shadow, so the eye finds it */
.slip.is-held { box-shadow: 0 0 0 6px rgba(14, 14, 14, 0.12), 0 10px 22px -16px rgba(14, 14, 14, 0.45); }

.slip__head {
  margin: 0 0 0.6rem;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
}
.slip__text {
  margin: 0;
  padding: 0.6rem 0;
  border-top: 1px dashed var(--rule);
  border-bottom: 1px dashed var(--rule);
  font-size: 13.5px;
  line-height: 1.5;
  white-space: pre-wrap;           /* a message's own line breaks and spacing are part of it */
  overflow-wrap: anywhere;
}
.slip__sig {
  margin: 0.55rem 0 0;
  font-size: 12px;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.slip__foot {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0.55rem 0 0;
  font-size: 11px;
  letter-spacing: 0.09em;
  color: #9a9a9a;
}
.slip__printed { color: var(--ink); letter-spacing: 0.16em; text-transform: uppercase; font-size: 10px; }

.wall__empty {
  padding: 4rem 1rem;
  text-align: center;
  font-size: 13px;
  color: var(--mute);
}
.wall__empty[hidden] { display: none; }

.wall__end {
  padding: 3rem 1rem 4rem;
  text-align: center;
  font-size: 13px;
  color: var(--mute);
}
.wall__end[hidden] { display: none; }
.wall__end a { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .slip { transition: none; }
  .wall-bar__resume { transition: none; }
}
