/* ───────────────────────────────────────────────────
   ARTICOLO (11/11/2026, style «J» chosen by the founder) — rebuilt on measured references (Anthropic, Vercel, Linear, Stripe).
   One spacing scale: 4 8 12 16 24 32 48 64 96 128. Proximity: a heading sits 16px from its text
   and 64px from what comes before. No cards, no tinted boxes, hairlines instead of frames.
   Colour: ink for titles, ink-soft for text, muted for meta, accent only for links, the active
   index item and the one button. Tokens from styles.css.
   ─────────────────────────────────────────────────── */
.ar { --m: 680px; --hair: #E8E8E6; background: #fff; color: var(--ink-soft); }
body:has(main.ar) { overflow-x: clip; background: #fff; }
.ar-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--ink); z-index: 2000; }

/* header block: crumb 16 title 16 lead 24 meta */
.ar-head { max-width: 1168px; margin: 0 auto; padding: 152px 24px 0; }
.ar-crumb { display: flex; gap: 8px; align-items: center; font-size: 13px; line-height: 20px; color: var(--muted); margin: 0 0 16px; }
.ar-crumb a { color: var(--muted); }
.ar-crumb a:hover { color: var(--ink); }
.ar-crumb span[aria-hidden] { color: #C4C4C4; }
.ar-title { font: 600 clamp(34px, 4.4vw, 48px)/1.12 'Sora', system-ui, sans-serif; letter-spacing: -0.04em; color: var(--ink); margin: 0 0 16px; text-wrap: balance; }
.ar-lead { font: 400 19px/30px 'Montserrat', system-ui, sans-serif; color: var(--ink-soft); margin: 0 0 24px; text-wrap: pretty; }
.ar-by { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 20px; color: var(--muted); }
.ar-by img { width: 28px; height: 28px; border-radius: 8px; }
.ar-by b { color: var(--ink); font-weight: 600; }

/* cover: 48 below the header, 64 above the text */
.ar-cover { max-width: 1168px; margin: 48px auto 0; padding: 0 24px; }
.ar-cover img { display: block; width: 100%; height: auto; aspect-ratio: 2.2 / 1; object-fit: cover; border-radius: 16px; }

/* the text */
.ar-body { font: 400 17px/28px 'Montserrat', system-ui, sans-serif; min-width: 0; }
.ar-body > :first-child { margin-top: 0; }
.ar-body p { margin: 0 0 24px; text-wrap: pretty; }
.ar-body h2 { font: 600 26px/34px 'Sora', system-ui, sans-serif; letter-spacing: -0.03em; color: var(--ink); margin: 64px 0 16px; scroll-margin-top: 104px; text-wrap: balance; }
.ar-body h3 { font: 600 18px/26px 'Sora', system-ui, sans-serif; letter-spacing: -0.02em; color: var(--ink); margin: 32px 0 8px; }
.ar-body a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(79,70,229,.45); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ar-body a:hover { color: var(--accent); }
.ar-body strong { color: var(--ink); font-weight: 600; }
.ar-body ul, .ar-body ol { margin: 0 0 24px; padding: 0 0 0 20px; }
/* styles.css azzera i punti di tutte le liste (ul, ol { list-style: none }): nel testo li rimettiamo.
   L'indice (.ar-box ol) e i passi (ol.ar-steps) hanno i loro numeri e restano senza. */
.ar-body ul { list-style: disc; }
.ar-body ol { list-style: decimal; }
.ar-body li { margin: 0 0 8px; padding-left: 4px; }
.ar-body ul li::marker { color: var(--muted); }
.ar-body ol li::marker { color: var(--muted); font: 600 15px 'Sora', system-ui, sans-serif; }
.ar-body hr { border: 0; border-top: 1px solid var(--hair); margin: 48px 0; }
.ar-body hr:has(+ h2) { display: none; }
/* proximity: whatever follows a heading sits 16px from it */
.ar-body h2 + * { margin-top: 0 !important; }
.ar-body blockquote { margin: 32px 0; padding: 0 0 0 24px; border-left: 2px solid var(--ink); font: italic 500 19px/30px 'Noto Serif', Georgia, serif; color: var(--ink); }
.ar-body .table-wrap { overflow-x: auto; margin: 32px 0; -webkit-overflow-scrolling: touch; }
.ar-body table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; border-top: 1px solid var(--ink); }
.ar-body th { text-align: left; font: 600 13px/20px 'Sora', system-ui, sans-serif; color: var(--ink); padding: 12px 16px 12px 0; border-bottom: 1px solid var(--hair); white-space: nowrap; }
.ar-body td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--hair); vertical-align: top; min-width: 120px; }
/* a note: bold first words, hairline on the left, no tint */
.ar-body .ar-note, .ar-body .article-callout { margin: 32px 0; padding: 0 0 0 24px; border-left: 2px solid var(--accent); background: none; border-radius: 0; font-size: 16px; line-height: 26px; color: var(--ink); }
/* in short: a label and a plain list between two hairlines */
.ar-sum { margin: 0 0 48px; padding: 24px 0 16px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--hair); }
.ar-sum h2 { margin: 0 0 12px !important; font: 500 12px/16px 'Sora', system-ui, sans-serif !important; letter-spacing: .06em !important; text-transform: uppercase; color: var(--muted) !important; }
.ar-sum ul { margin: 0 !important; }
.ar-sum li { color: var(--ink); }
/* steps */
.ar-body ol.ar-steps { list-style: none; padding: 0; counter-reset: s; }
.ar-body ol.ar-steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 8px; margin: 0; padding: 12px 0; border-top: 1px solid var(--hair); }
.ar-body ol.ar-steps li:last-child { border-bottom: 1px solid var(--hair); }
.ar-body ol.ar-steps li::before { content: counter(s); font: 600 15px/28px 'Sora', system-ui, sans-serif; color: var(--accent); font-variant-numeric: tabular-nums; }
/* record: label left, text right */
.ar-rec { margin: 32px 0; border-top: 1px solid var(--ink); }
.ar-rec div { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.ar-rec dt { color: var(--ink); font-weight: 600; font-size: 15px; line-height: 24px; }
.ar-rec dt small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; line-height: 20px; }
.ar-rec dd { margin: 0; font-size: 16px; line-height: 26px; }
/* questions: hairline accordion */
.ar-faq { border-top: 1px solid var(--ink); margin: 0 0 24px; }
.ar-faq details { border-bottom: 1px solid var(--hair); }
.ar-faq summary { display: flex; justify-content: space-between; gap: 24px; padding: 16px 0; cursor: pointer; list-style: none; font: 600 16px/24px 'Sora', system-ui, sans-serif; letter-spacing: -0.01em; color: var(--ink); }
.ar-faq summary::-webkit-details-marker { display: none; }
.ar-faq summary::after { content: '+'; font: 400 20px/24px 'Sora', system-ui, sans-serif; color: var(--muted); transition: transform .2s; }
.ar-faq details[open] summary::after { transform: rotate(45deg); }
.ar-faq details p { margin: -4px 0 16px; padding-right: 40px; font-size: 16px; line-height: 26px; }
/* author */
.ar-author { display: flex; gap: 12px; align-items: center; margin: 48px 0 0; padding: 24px 0 0; border-top: 1px solid var(--hair); font-size: 14px; line-height: 20px; color: var(--muted); }
.ar-author img { width: 40px; height: 40px; border-radius: 10px; }
.ar-author b { display: block; color: var(--ink); font-weight: 600; }

/* end: related as a list, then one call to action */
.ar-more { max-width: 1168px; margin: 96px auto 0; padding: 0 24px; }
.ar-more h2 { font: 500 12px/16px 'Sora', system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.ar-more ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; border-top: 1px solid var(--ink); }
.ar-more a { display: block; padding: 16px 0 24px; }
.ar-more b { display: block; font: 600 17px/24px 'Sora', system-ui, sans-serif; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 8px; }
.ar-more span { font-size: 14px; line-height: 20px; color: var(--muted); }
.ar-more a:hover b { color: var(--accent); }
.ar-end { max-width: 1168px; margin: 96px auto 0; padding: 64px 24px 96px; border-top: 1px solid var(--hair); text-align: center; }
.ar-end h2 { font: 600 clamp(28px, 3.4vw, 40px)/1.15 'Sora', system-ui, sans-serif; letter-spacing: -0.04em; color: var(--ink); margin: 0 0 16px; text-wrap: balance; }
.ar-end p { font-size: 17px; line-height: 28px; color: var(--muted); margin: 0 0 32px; }
.ar-end a { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 12px; background: var(--ink); color: #fff; font: 600 15px/20px 'Sora', system-ui, sans-serif; transition: background .15s; }
.ar-end a:hover { background: var(--accent); }

@media (max-width: 1180px) {
  .ar-head, .ar-cover { max-width: calc(var(--m) + 48px); }
  .ar-more ul { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .ar-head { padding-top: 112px; }
  .ar-title { font-size: 32px; line-height: 38px; }
  .ar-lead { font-size: 17px; line-height: 28px; }
  .ar-cover { margin-top: 32px; }
  .ar-cover img { aspect-ratio: 16 / 10; border-radius: 12px; }
  .ar-grid { margin-top: 48px; }
  .ar-body h2 { font-size: 23px; line-height: 30px; margin-top: 48px; }
  .ar-rec div { grid-template-columns: 1fr; gap: 4px; }
  .ar-more, .ar-end { margin-top: 64px; }
}

/* one column, index on demand, cards at the end */
.ar--one .ar-head { max-width: calc(var(--m) + 48px); }
.ar--one .ar-cover { max-width: calc(var(--m) + 48px); margin-top: 32px; }
.ar--one .ar-cover img { aspect-ratio: 16 / 9; border-radius: 16px; }
.ar-grid { margin-left: auto; margin-right: auto; padding: 0 24px; display: grid;
   max-width: calc(var(--m) + 48px); grid-template-columns: minmax(0, var(--m)); margin-top: 48px; }

/* the index: a closed box at the start of the article */
.ar-box { margin: 0 0 48px; border: 1px solid var(--hair); border-radius: 14px; }
.ar-box summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; cursor: pointer; list-style: none; font: 600 15px/20px 'Sora', system-ui, sans-serif; color: var(--ink); }
.ar-box summary::-webkit-details-marker { display: none; }
.ar-box summary small { font: 400 13px/20px 'Montserrat', system-ui, sans-serif; color: var(--muted); margin-left: 8px; }
.ar-box summary i { color: var(--muted); transition: transform .2s; }
.ar-box[open] summary i { transform: rotate(180deg); }
.ar-box ol { list-style: none; margin: 0; padding: 4px 12px 12px; counter-reset: x; border-top: 1px solid var(--hair); }
.ar-box li { counter-increment: x; margin: 0; padding: 0; }
.ar-box li a { display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 8px; border-radius: 8px; font-size: 15px; line-height: 22px; color: var(--ink-soft); text-decoration: none; }
.ar-box li a::before { content: counter(x, decimal-leading-zero); font: 500 12px/22px 'Sora', system-ui, sans-serif; color: #B5B5B5; }
.ar-box li a:hover { background: var(--paper-2); color: var(--ink); }

/* related: cards with picture, and the way to the whole blog */
.ar-rel { max-width: 1168px; margin: 96px auto 0; padding: 0 24px; }
.ar-rel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 24px; }
.ar-rel-head h2 { font: 600 24px/32px 'Sora', system-ui, sans-serif; letter-spacing: -0.03em; color: var(--ink); margin: 0; }
.ar-rel-head a { font: 600 14px/20px 'Sora', system-ui, sans-serif; color: var(--ink); white-space: nowrap; }
.ar-rel-head a:hover { color: var(--accent); }
.ar-rel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.ar-rel-grid a { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--hair); border-radius: 16px; overflow: hidden; background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s; }
.ar-rel-grid a:hover { border-color: #D6D6D6; box-shadow: 0 16px 40px -28px rgba(20,20,40,.35); transform: translateY(-2px); }
.ar-rel-grid img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--paper-2); }
.ar-rel-grid .ar-rel-in { padding: 16px 20px 24px; }
.ar-rel-grid small { display: block; font: 500 12px/16px 'Sora', system-ui, sans-serif; color: var(--muted); margin: 0 0 8px; }
.ar-rel-grid b { display: block; font: 600 17px/24px 'Sora', system-ui, sans-serif; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 8px; }
.ar-rel-grid span { font-size: 14px; line-height: 20px; color: var(--muted); }

/* call to action in a card */
.ar-ctacard { max-width: 1168px; margin: 64px auto 96px; padding: 0 24px; }
.ar-ctacard > div { border-radius: 24px; background: var(--ink); color: #fff; padding: 64px 48px; text-align: center; }
.ar-ctacard h2 { font: 600 clamp(26px, 3.2vw, 36px)/1.2 'Sora', system-ui, sans-serif; letter-spacing: -0.035em; margin: 0 0 16px; text-wrap: balance; color: #fff; }
.ar-ctacard p { font-size: 17px; line-height: 28px; color: rgba(255,255,255,.7); margin: 0 0 32px; }
.ar-ctacard a { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 12px; background: #fff; color: var(--ink); font: 600 15px/20px 'Sora', system-ui, sans-serif; transition: background .15s; }
.ar-ctacard a:hover { background: #E9E8FF; }
@media (max-width: 900px) { .ar-rel-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .ar-rel, .ar-ctacard { padding: 0 20px; }
  .ar-rel { margin-top: 64px; }
  .ar-ctacard { margin-bottom: 64px; }
  .ar-ctacard > div { padding: 48px 24px; border-radius: 20px; }
  .ar-rel-head { flex-direction: column; gap: 8px; }
}
