/* ==========================================================================
   Participações — "o que os outros escreveram"
   The one page of the record the group did not write itself. So it is set as
   correspondence, not as a feed: a dated column down the left, the text at
   reading measure on the right, each entry closed by a signature and separated
   by a single hairline. No cards, no boxes, no avatars.
   ========================================================================== */

.pt {

  /* Fixed so every relato starts on the same vertical edge. Sized for
     "03-05-2020" in mono, which is the widest date on record. */
  --pt-data-w: 8.5rem;
}

/* 1. Abertura ------------------------------------------------------------
   The opening is the shared .abertura (main.css). Nothing to add here. */

/* 2. Os relatos ---------------------------------------------------------- */

.pt-relatos {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
  border-top: 1px solid var(--c-border);
}

/* main.css gives every bare <article> a surface, a border and a top margin.
   Nothing here is a card: strip all of it. */
.pt-relato {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--c-border);
  border-radius: 0;
  padding: clamp(2.25rem, 5vw, 3.5rem) 0;
  margin: 0;
  display: grid;
  grid-template-columns: var(--pt-data-w) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
}

.pt-relato + .pt-relato { margin-top: 0; }

.pt-relato:last-child { border-bottom: 0; }

.pt-relato-data {
  font-family: var(--font-mono);
  font-size: var(--t-sm);
  letter-spacing: 0.06em;
  color: var(--c-text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  /* Optically aligned with the first line of the title beside it. */
  padding-top: 0.45em;
}

.pt-relato-titulo {
  font-family: var(--font-display);
  font-size: clamp(var(--t-xl), 2.5vw, var(--t-3xl));
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: normal;
  color: var(--c-text);
  margin: 0 0 var(--s-5);
  text-wrap: balance;
}

/* The text is the object on this page, so it gets the full reading measure and
   the full leading. */
.pt-relato-texto {
  max-width: 66ch;
}

.pt-relato-texto p {
  font-size: var(--t-lg);
  line-height: 1.9;
  color: var(--c-text);
  margin: 0 0 var(--s-5);
}

.pt-relato-texto p:last-child { margin-bottom: 0; }

.pt-relato-texto a {
  color: var(--c-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.pt-relato-texto a:hover { color: var(--c-primary-2); }

.pt-relato-texto ul,
.pt-relato-texto ol {
  font-size: var(--t-lg);
  line-height: 1.9;
  margin: 0 0 var(--s-5);
  padding-left: var(--s-6);
}

.pt-relato-texto img {
  max-width: 100%;
  height: auto;
  border-radius: 2px;
}

/* The signature. main.css styles bare <footer>, so this is a plain paragraph
   ruled off with a short hairline instead. */
.pt-assinatura {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s-2) var(--s-3);
  margin: var(--s-6) 0 0;
  padding-top: var(--s-4);
  border-top: 1px solid var(--c-border);
  max-width: 66ch;
}

.pt-assinatura-rotulo {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}

.pt-assinatura-nome {
  font-family: var(--font-display);
  font-size: var(--t-lg);
  font-weight: 600;
  color: var(--c-text);
}

/* The photographs belong to the relato above them, so they are grouped tight
   to it and labelled with a count rather than a heading. */
.pt-relato-fotos { margin-top: var(--s-8); }

.pt-fotos-rotulo {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  font-variant-numeric: tabular-nums;
  margin: 0 0 var(--s-3);
}

.pt-relato-fotos .photo-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
}

/* 3. Sem relatos --------------------------------------------------------- */

.pt-vazio {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) var(--gutter) clamp(3rem, 8vw, 5rem);
  border-top: 1px solid var(--c-border);
}

.pt-vazio-texto {
  font-family: var(--font-display);
  font-size: clamp(var(--t-xl), 2.5vw, var(--t-3xl));
  font-weight: 600;
  line-height: 1.25;
  color: var(--c-text);
  margin: 0 0 var(--s-4);
  max-width: 28ch;
}

.pt-vazio-nota {
  font-size: var(--t-lg);
  line-height: 1.8;
  color: var(--c-text-muted);
  margin: 0 0 var(--s-6);
  max-width: 44ch;
}

.pt-vazio-accao,
.pt-convite-accao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: var(--s-3) var(--s-6);
  border-radius: var(--radius-full);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
}

.pt-vazio-accao {
  border: 1px solid var(--c-border-2);
  color: var(--c-text);
}

.pt-vazio-accao:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
}

/* 4. O convite ----------------------------------------------------------- */

/* The page's one committed band. Not a plate: the set-piece here is the
   writing above, so the invitation closes on the quieter ground instead. */
.pt-convite {
  background: var(--c-bg-2);
  border-top: 1px solid var(--c-border);
}

.pt-convite-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 4.5rem) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}

.pt-convite-titulo {
  font-family: var(--font-display);
  font-size: clamp(var(--t-2xl), 3vw, var(--t-4xl));
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--c-text);
  margin: 0 0 var(--s-4);
}

.pt-convite-texto {
  font-size: var(--t-lg);
  line-height: 1.8;
  color: var(--c-text-muted);
  max-width: 52ch;
  margin: 0;
}

.pt-convite-accao {
  background: var(--c-primary);
  color: var(--c-on-primary);
  border: 1px solid var(--c-primary);
}

.pt-convite-accao:hover {
  background: var(--c-primary-2);
  border-color: var(--c-primary-2);
  color: var(--c-on-primary);
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 900px) {
  /* The date stops being a column and becomes the entry's first line, so the
     text keeps the full width of a phone. */
  .pt-relato {
    grid-template-columns: 1fr;
    gap: var(--s-3);
  }

  .pt-relato-data { padding-top: 0; }

  .pt-convite-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .pt-convite-accao { width: 100%; }
}
