/* Notes (Notas): the site's texts. Loaded after site.css, only on /notes/ pages.
   Idea: each note is a printed page in two colours. Black for the text, plus one spot ink
   chosen for that note (--ink2 for display, --ink2-text for small type), set per page.
   The opening is art-directed: a very large title in the note's ink, its second line set on the
   text column. (Until 05/12/2026 it overprinted the first lines of the text, as on a magazine
   spread; on screen that read badly, so the title now stands clear.) Below it the page goes quiet: one
   reading column on the 12-column grid, margin notes on the left, like a book. */

.note,.ix{padding:0 var(--pad)}

/* ---------- opening ---------- */
/* sizes tuned by Saulo by eye at 1800 px (type tuner, 05/12/2026), scaled with the window */
.n-meta{display:grid;grid-template-columns:repeat(12,1fr);column-gap:var(--pad);align-items:start;margin-top:clamp(36px,8vh,96px);font-size:clamp(14px,1.556vw,32px);letter-spacing:.025em} /* 28 px at 1800 */
.n-kicker{grid-column:1 / 4;display:flex;gap:.9em;text-transform:uppercase;font-weight:500}
.n-kicker a{color:var(--ink2-text);text-decoration:none}
.n-kicker a:hover{text-decoration:underline}
.n-no{font-variant-numeric:tabular-nums}
.n-dek{grid-column:5 / 10;font:400 clamp(18px,1.667vw,34px)/1.3 var(--serif);letter-spacing:0;color:var(--mute);text-wrap:balance}
.n-dek cite,.n-p cite,figcaption cite{font-style:normal}
.n-date span{display:block}
.n-date{grid-column:10 / 13;text-align:right;text-transform:uppercase;color:var(--mute);font-variant-numeric:tabular-nums}

.n-title{margin:clamp(24px,5vh,64px) 0 clamp(36px,6vh,88px); /* clear of the text: printed overlap read badly on screen (Saulo, 05/12/2026) */
  font:800 clamp(40px,12.78vw,300px)/.86 var(--sans); /* .86: room for accents (HERÓIS) */letter-spacing:-.05em;text-transform:uppercase;
  color:var(--ink2)}
.n-title span{display:block}
.n-title span+span{padding-left:calc((100% + var(--pad)) / 12 * 4)} /* second line starts on the text column */
/* a word too long for the width: the desktop uses the hyphenated lines too (set by the page script) */
.n-long h1.n-title{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;margin:0}
.n-long .n-title-m{display:block}
.n-long .n-title-m span+span{padding-left:0}

/* ---------- reading ---------- */
.n-body.prose{max-width:none;font-size:clamp(19px,1.889vw,38px);line-height:1.5} /* 34 px at 1800 */
.blk{display:grid;grid-template-columns:repeat(12,1fr);column-gap:var(--pad)}
.blk+.blk{margin-top:1.15em}
.n-p{grid-column:5 / 11;grid-row:1}
.lead-in{font:600 1em/1 var(--sans);letter-spacing:.16em;text-transform:uppercase;hyphens:manual;-webkit-hyphens:manual} /* never break the capitals */

/* margin notes: on the left, level with their paragraph, under a hairline in the note's ink */
.n-side{grid-column:1 / 4;grid-row:1;align-self:start;margin-top:.45em;padding-top:10px;border-top:1px solid var(--ink2);
  font:400 max(15px,.56em)/1.45 var(--sans);color:var(--mute);font-variant-numeric:normal} /* scales with the text: 19 px at 1800 */

/* the painting: full width of the grid, caption on the text column */
.n-fig{margin:2.2em 0 2.4em}
.n-plate{grid-column:1 / 10;position:relative;background:var(--plate);overflow:hidden}
.n-plate img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.n-await{position:absolute;inset:0;display:grid;place-items:center;font:800 clamp(80px,16vw,320px)/1 var(--sans);letter-spacing:-.05em;color:var(--ink2)} /* no image yet: the note's number, in its ink */
.n-fig figcaption{grid-column:10 / 13;align-self:end;font:400 max(16px,.6em)/1.4 var(--serif);color:var(--mute)} /* scales with the text */
/* further images in a note: on the right, from the text column to the edge; caption in the margin, on the left */
.n-fig-alt .n-plate{grid-column:4 / 13;grid-row:1}
.n-fig-alt figcaption{grid-column:1 / 4;grid-row:1;padding-top:10px;border-top:1px solid var(--ink2);font-family:var(--sans);font-size:max(15px,.56em);line-height:1.45}

/* quotation set apart, hanging quote marks */
.blk .n-quote{grid-column:4 / 12;margin:.6em 0 .4em;color:var(--ink2-text)}
.n-quote p:first-child,.n-statement{font-size:1.882em;line-height:1.2;text-indent:-.42em;text-wrap:balance}
.n-statement{text-indent:0} /* no quotation marks to hang */
.n-cite{display:inline-block;margin-top:1em;padding-top:8px;border-top:1px solid var(--ink2);font:500 var(--fs-label)/1.4 var(--sans);letter-spacing:.08em;text-transform:uppercase;color:var(--mute)}

/* end mark: a small square of the note's ink, as in magazines */
.n-end{display:inline-block;width:.5em;height:.5em;margin-left:.35em;background:var(--ink2);vertical-align:.02em}

.n-foot{display:flex;justify-content:space-between;gap:24px;margin-top:var(--row-end);margin-bottom:clamp(48px,8vh,96px);padding-top:14px;border-top:1px solid var(--ink);font-size:var(--fs-label);text-transform:uppercase}
.n-foot a{text-decoration:none}
.n-foot a:hover{text-decoration:underline}
.n-foot span{color:var(--mute)}

/* ---------- index: a table of contents in the manner of a printed poster ---------- */
/* masthead at the scale of a note's title; then the series, numbered, its next places in outline */
.ix-mast{display:grid;grid-template-columns:repeat(12,1fr);column-gap:var(--pad);align-items:end;margin-top:clamp(28px,6vh,72px)}
.ix-h1{grid-column:1 / -1;font:800 clamp(40px,12.78vw,300px)/.86 var(--sans);letter-spacing:-.05em;text-transform:uppercase}
.ix-intro{grid-column:5 / 10;margin-top:24px;max-width:22em;font:400 clamp(18px,1.667vw,34px)/1.3 var(--serif);color:var(--mute);text-wrap:balance}
.ix-count{grid-column:10 / 13;text-align:right;font-size:var(--fs-label);text-transform:uppercase;color:var(--mute)}
.ix-grid{list-style:none;display:grid;grid-template-columns:repeat(3,1fr);column-gap:var(--pad);row-gap:clamp(48px,8vh,96px);margin:clamp(48px,9vh,120px) 0 var(--row-end);padding-top:clamp(28px,4vh,48px);border-top:1px solid var(--ink)}
.ix-next{padding-top:14px;border-top:5px solid var(--faint)}
.ix-next .ix-no{color:transparent;-webkit-text-stroke:1px var(--mute)}
.ix-cell a{display:block;padding-top:14px;border-top:5px solid var(--ink2);text-decoration:none}
.ix-img{display:block;aspect-ratio:4 / 3;margin-bottom:16px;background:var(--plate);overflow:hidden} /* one shape for every note, so the numbers line up across the row */
.ix-img img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .6s cubic-bezier(.16,1,.3,1)}
.ix-cell a:hover .ix-img img{transform:scale(1.03)}
@media (prefers-reduced-motion:reduce){.ix-img img{transition:none}}
.ix-no{display:block;font:700 clamp(52px,4.6vw,88px)/1 var(--sans);letter-spacing:-.04em;font-variant-numeric:tabular-nums;transition:color .2s}
.ix-title{margin-top:.2em;font:700 clamp(26px,2.2vw,42px)/.98 var(--sans);letter-spacing:-.03em;text-transform:uppercase}
.ix-dek{margin-top:.9em;font:400 19px/1.35 var(--serif);color:var(--mute)}
.ix-dek cite,.ix-ex cite{font-style:normal}
.ix-ex{margin-top:.7em;max-width:24em;font-size:19px;line-height:1.45}
.ix-meta{margin-top:1.1em;font-size:var(--fs-label);text-transform:uppercase;color:var(--mute)}
.ix-cell a:hover .ix-no{color:var(--ink2-text)}
.ix-cell a:hover .ix-title{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:.12em}
.ix-cell a:focus-visible{outline:2px solid var(--ink);outline-offset:6px}

/* the phone version of the title (three hyphenated lines) exists only for phones */
.n-title-m{display:none}

/* ---------- tablets (iPad: 821 to 1279 px) ----------
   Until 05/12/2026 the desktop page, tuned at 1800 px, was only shrunk here: a six-column text
   measure, small type and margin notes squeezed into 180 px. Here the text takes seven or eight columns
   and its size grows with the window to meet the desktop at 1280 px. Upright (up to 1023 px) the text
   moves one column left and the margin notes and captions go under what they belong to. */
@media (min-width:821px) and (max-width:1279px){
  .n-meta{font-size:16px}
  .n-dek{grid-column:4 / 10;font-size:clamp(20px,calc(8px + 1.5vw),26px)}
  .n-body.prose{font-size:clamp(21px,calc(9.5px + 1.15vw),24.2px)}
  .n-p,.blk .n-quote{grid-column:5 / 12} /* seven columns: about 50 to 55 characters a line, as on the desktop */
  .n-side{font-size:16px;line-height:1.45}
  .n-fig figcaption{font-size:17px}
  .n-fig-alt figcaption{font-size:16px}
  .ix-intro{grid-column:4 / 10;font-size:clamp(20px,calc(8px + 1.5vw),26px)}
}
@media (min-width:821px) and (max-width:1023px){
  .n-p,.blk .n-quote{grid-column:4 / 12}
  .n-side{grid-column:4 / 12;grid-row:2;margin-top:.9em;max-width:32em}
  .n-fig .n-plate,.n-fig-alt .n-plate{grid-column:1 / -1;grid-row:1}
  .n-fig figcaption,.n-fig-alt figcaption{grid-column:4 / 12;grid-row:2;align-self:start;margin-top:14px}
  .ix-grid{grid-template-columns:repeat(2,1fr)}
  .ix-next{display:none}
}

/* ---------- phones ----------
   A poster first, then a book. The title is set as big as a phone allows (hyphenated
   when a word is too long), clear of the text below it.
   Sizes tuned by Saulo by eye at 440 px (type tuner, 05/12/2026; index too). */
@media (max-width:820px){
  .note-page{--pad:16px}
  .n-meta{grid-template-columns:1fr auto;column-gap:16px;row-gap:12px;margin-top:28px;font-size:19px;letter-spacing:0}
  .n-kicker{grid-column:1;grid-row:1}
  .n-date{grid-column:2;grid-row:1;text-align:right}
  .n-dek{grid-column:1 / -1;grid-row:2;font-size:38px}

  h1.n-title{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;margin:0}
  .n-title-m span+span{padding-left:0}
  .n-title-m{display:block;font-size:23.5vw;line-height:.8;letter-spacing:-.045em;margin:22px 0 36px}

  .n-body.prose{font-size:29px;letter-spacing:0;hyphens:auto;-webkit-hyphens:auto} /* not the site's -.04em: long reads */
  .lead-in{font-size:.862em;letter-spacing:.1em} /* 25 px */
  .blk{grid-template-columns:minmax(0,1fr)}
  .n-p,.n-side,.n-plate,.n-fig figcaption,.blk .n-quote{grid-column:1 / -1}
  .n-side{grid-row:2;margin-top:.9em;font-size:20px;letter-spacing:-.01em}
  .n-fig{margin:1.8em 0 2em}
  .n-plate{margin:0 calc(var(--pad) * -1)}
  .n-fig figcaption{margin-top:10px;font-size:21px}
  .n-fig-alt .n-plate,.n-fig-alt figcaption{grid-column:1 / -1;grid-row:auto}
  .n-statement,.n-quote{hyphens:manual;-webkit-hyphens:manual} /* display lines: no broken words */
  .n-fig-alt figcaption{font-size:20px}
  .blk .n-quote{margin:.4em 0}
  .n-quote p:first-child,.n-statement{font-size:1.25em}
  .n-foot{flex-direction:column;gap:6px}

  .ix-mast{grid-template-columns:1fr}
  .ix-h1,.ix-intro,.ix-count{grid-column:1 / -1;text-align:left}
  .ix-h1{font-size:26vw;letter-spacing:-.01em}
  .ix-intro{font-size:30px;line-height:1.07}
  .ix-count{margin-top:14px;font-size:17px;letter-spacing:0}
  .ix-no{font-size:39px}
  .ix-title{font-size:min(52px,calc((100vw - 32px) / 6.7));line-height:.93;letter-spacing:0} /* 52 px; shrinks only where VERDADEIROS would not fit */
  .ix-dek{font-size:23px}
  .ix-ex{font-size:20px;line-height:1.17}
  .ix-meta{font-size:15px;letter-spacing:.005em}
  .ix-grid{grid-template-columns:1fr;row-gap:56px;margin-top:40px}
  .ix-next{display:none}
}
