/* CH 10 · Cordel · woodcut.
   A chapbook hanging from a string with a wooden clothespin, as at the fairs of the Brazilian northeast:
   coloured cover paper, a black woodcut with gouge marks (cordel.svg), slab woodtype, and verses set
   in an old letterpress face. */

.ch-cordel {
  --ink: #141210; --cover: #EBB9AE; --lime: #EFE7D6;
  padding: clamp(56px, 8vw, 110px) var(--gutter) 24px;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.5), transparent 60%),
    repeating-linear-gradient(0deg, rgba(120, 100, 70, 0.05) 0 2px, transparent 2px 7px),
    var(--lime);
}
.cordel-wrap { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }

.varal { position: relative; padding-top: 34px; }
/* The string comes in from the left edge, sags over the chapbook and ends on a nail */
.varal::before {
  content: ""; position: absolute; left: -50vw; right: -34px; top: -6px; height: 26px; pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 26' preserveAspectRatio='none'><path d='M0 3 Q 74 34 100 2' fill='none' stroke='%238B6B47' stroke-width='2' vector-effect='non-scaling-stroke'/></svg>") 0 0 / 100% 100% no-repeat;
}
.varal::after { content: ""; position: absolute; right: -40px; top: -9px; width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #e9e6df, #6d675c 70%); box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.3); }
.folheto {
  position: relative; width: min(330px, 100%); margin: 0 auto; padding: 20px 20px 16px;
  background: var(--cover); color: var(--ink);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12), 6px 14px 26px rgba(60, 40, 20, 0.28);
  transform-origin: 50% -20px; animation: balanco 5.5s ease-in-out infinite;
}
.folheto::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply; opacity: 0.5;
  background: repeating-linear-gradient(90deg, rgba(120, 60, 50, 0.07) 0 1px, transparent 1px 4px);
}
@keyframes balanco { 0%, 100% { transform: rotate(-1.6deg); } 50% { transform: rotate(1.4deg); } }
.pregador {
  position: absolute; left: 50%; top: -30px; width: 16px; height: 46px; margin-left: -8px; z-index: 2;
  background: linear-gradient(90deg, #B98A55, #D9AF77 45%, #A97842); border-radius: 3px 3px 5px 5px;
  box-shadow: inset 0 0 0 1px rgba(80, 50, 20, 0.35), 0 2px 3px rgba(0, 0, 0, 0.25);
}
.pregador::after { content: ""; position: absolute; left: -3px; right: -3px; top: 15px; height: 5px; border-radius: 3px; background: linear-gradient(#ccc, #777); }
.folheto-autor { font-family: 'Alfa Slab One', var(--f-serif); font-size: 13px; letter-spacing: 0.08em; text-align: center; text-transform: uppercase; }
.folheto-xilo { width: 100%; height: auto; margin: 12px 0; mix-blend-mode: multiply; }
.folheto-titulo { font-family: 'Alfa Slab One', var(--f-serif); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.05; text-align: center; text-transform: uppercase; }
.folheto-preco { margin-top: 10px; font-family: 'IM Fell English', var(--f-serif); font-size: 14px; text-align: right; }
.seed-xilo { left: 6px; top: -14px; z-index: 3; width: 20px; height: 30px; transform: rotate(14deg); }
.seed-xilo svg { fill: var(--ink); }
.seed-xilo svg .pinhao-seam { stroke: var(--lime); stroke-width: 1.4px; }

.cordel-kicker { font-family: 'IM Fell English', var(--f-serif); font-style: italic; font-size: 18px; color: #6A4E33; }
.cordel-title { margin: 6px 0 16px; font-family: 'Alfa Slab One', var(--f-serif); font-weight: 400; font-size: clamp(32px, 4.4vw, 58px); line-height: 1; text-transform: uppercase; letter-spacing: 0.01em; }
.cordel-note { max-width: 52ch; padding: 10px 14px; margin-bottom: 26px; border: 2px solid var(--ink); font-family: 'IM Fell English', var(--f-serif); font-size: 18px; line-height: 1.45; background: rgba(255, 255, 255, 0.35); }
.estrofes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px 36px; font-family: 'IM Fell English', var(--f-serif); font-size: 20px; line-height: 1.5; }
.estrofes p { position: relative; padding-top: 22px; }
.estrofes p::before { content: "✦"; position: absolute; left: 0; top: 0; font-size: 14px; color: #8B3A2B; letter-spacing: 0.5em; }

.ch-cordel .placa { margin-top: 34px; }
.ch-cordel > .placa { margin-right: max(var(--gutter), calc((100% - 1180px) / 2)); }
.ch-cordel .placa-gralha { fill: var(--ink); filter: url(#carve); }

@media (max-width: 820px) {
  .cordel-wrap { grid-template-columns: 1fr; }
  .varal::before { left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 26' preserveAspectRatio='none'><path d='M0 2 Q 50 36 100 2' fill='none' stroke='%238B6B47' stroke-width='2' vector-effect='non-scaling-stroke'/></svg>"); }
  .varal::after { display: none; }
}
