/* lucabarberis.com shared stylesheet. Design tokens locked. */

  :root {
    --paper: #FDFDFC;
    --ink: #0E0E0E;
    --red: #E2231A;
    --grey: #6E6E6E;
    --hair: #0E0E0E;
    --hair-soft: #D9D7D2;
    --unit: 8px;
    --maxw: 1180px;
    --pad: 64px;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

  body {
    background: var(--paper);
    color: var(--ink);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.5;
    font-weight: 400;
  }

  ::selection { background: var(--red); color: #fff; }

  .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

  /* ---------- MASTHEAD ---------- */
  .masthead {
    position: sticky; top: 0; z-index: 50;
    background: var(--paper);
    border-bottom: 1px solid var(--hair);
  }
  .masthead .wrap {
    display: flex; justify-content: space-between; align-items: center;
    height: 56px;
  }
  .wordmark {
    font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    text-decoration: none; color: var(--ink);
  }
  .nav { display: flex; gap: 28px; }
  .nav a {
    font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    text-decoration: none; color: var(--ink); position: relative; padding: 4px 0;
  }
  .nav a.active { color: var(--red); }
  .nav a:not(.active):hover { border-bottom: 1px solid var(--ink); }

  /* ---------- HERO ---------- */
  .hero { padding: calc(var(--unit) * 11) 0 calc(var(--unit) * 8); }
  .hero h1 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 500; line-height: 1.18; letter-spacing: -0.015em;
    max-width: 620px;
  }
  .hero .lede {
    margin-top: calc(var(--unit) * 3);
    max-width: 60ch;
    font-size: clamp(17px, 1.8vw, 20px);
    font-weight: 400; line-height: 1.45; letter-spacing: 0; color: var(--grey);
  }

  /* ---------- SECTION SYSTEM ---------- */
  section.block { border-top: 1px solid var(--hair); padding: calc(var(--unit) * 8) 0; }
  .grid {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 48px;
  }
  .sec-label { }
  .sec-num { font-size: 13px; font-weight: 700; color: var(--red); letter-spacing: 0.05em; }
  .sec-title { margin-top: 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }

  .prose p { max-width: 64ch; }
  .prose p + p { margin-top: calc(var(--unit) * 2.5); }
  .prose .short { font-size: 21px; line-height: 1.45; letter-spacing: -0.01em; }
  .prose .more { margin-top: calc(var(--unit) * 4); color: #2a2a2a; }

  /* quick facts table */
  .qf { margin-top: calc(var(--unit) * 5); border-top: 1px solid var(--hair-soft); max-width: 64ch; }
  .qf .row { display: grid; grid-template-columns: 130px 1fr; padding: 12px 0; border-bottom: 1px solid var(--hair-soft); }
  .qf .k { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey); padding-top: 3px; }
  .qf .v { font-size: 16px; }

  /* experience */
  .role { padding: calc(var(--unit) * 3.5) 0; border-bottom: 1px solid var(--hair-soft); }
  .role:first-child { padding-top: 0; }
  .role:last-child { border-bottom: none; }
  .role .top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
  .role .title { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
  .role .co { font-size: 15px; color: var(--grey); margin-top: 3px; }
  .role .when { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
  .role .desc { margin-top: 12px; max-width: 70ch; color: #2a2a2a; font-size: 16px; }

  /* inline metric highlight inside experience */
  .role .desc .hl { font-weight: 700; color: var(--ink); }
  .role .desc .hlr { font-weight: 700; color: var(--red); }

  /* expertise */
  .exp { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 48px; }
  .exp .cluster h3 { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
  .exp .cluster p { margin-top: 12px; font-size: 15px; color: #2a2a2a; }

  /* elsewhere */
  .else-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--hair-soft); }
  .else-cell { padding: calc(var(--unit) * 4) 0; }
  .else-cell:first-child { border-right: 1px solid var(--hair-soft); padding-right: 40px; }
  .else-cell:last-child { padding-left: 40px; }
  .else-cell h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
  .else-cell p { margin-top: 12px; font-size: 15px; color: #2a2a2a; max-width: 40ch; }
  .else-cell .go { display: inline-block; margin-top: 18px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--red); padding-bottom: 3px; }
  .else-cell .go:hover { color: var(--red); }

  /* contact */
  .contact .qf { margin-top: 0; }

  /* footer */
  footer { border-top: 1px solid var(--hair); padding: calc(var(--unit) * 5) 0 calc(var(--unit) * 8); }
  footer .wrap { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 16px; }
  footer .links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
  footer a { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
  footer a:hover { color: var(--red); }
  .colophon { font-size: 11px; letter-spacing: 0.06em; color: var(--grey); text-transform: uppercase; }

  /* reveal */
  @media (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 0; transform: translateY(12px); animation: rise 0.7s cubic-bezier(0.2,0.7,0.2,1) forwards; }
    .d1{animation-delay:.05s}.d2{animation-delay:.12s}.d3{animation-delay:.19s}.d4{animation-delay:.26s}
    @keyframes rise { to { opacity: 1; transform: none; } }
  }

  /* responsive */
  @media (max-width: 880px) {
    :root { --pad: 24px; }
    .grid { grid-template-columns: 1fr; gap: 20px; }
    .exp, .else-grid { grid-template-columns: 1fr; }
    .else-cell:first-child { border-right: none; padding-right: 0; }
    .else-cell:last-child { padding-left: 0; border-top: 1px solid var(--hair-soft); }
  }


/* ---------- /personal additions ---------- */
.item { padding: calc(var(--unit) * 3) 0; border-bottom: 1px solid var(--hair-soft); }
.item:first-child { padding-top: 0; }
.item:last-child { border-bottom: none; }
.item .pt { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; max-width: 52ch; }
.item .pm { margin-top: 6px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey); }
.item .pd { margin-top: 12px; font-size: 15px; color: #2a2a2a; max-width: 56ch; }

.go { display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--red); padding-bottom: 3px; }
.go:hover { color: var(--red); }

.golinks { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 16px; }
.golinks .go { margin-top: 0; }

/* ================= ARTICLE / BLOG POST ================= */
.post-hero { padding: calc(var(--unit)*9) 0 calc(var(--unit)*6); }
.post-hero .kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); margin-bottom: calc(var(--unit)*2); }
.post-hero h1 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 500; line-height: 1.12; letter-spacing: -0.018em; max-width: 680px; }
.post-hero h1 .pd { color: var(--red); font-weight: 500; }
.post-hero .lede { margin-top: calc(var(--unit)*3); max-width: 62ch; font-size: clamp(17px, 1.9vw, 21px); line-height: 1.45; color: var(--grey); }
.post-hero .post-meta { margin-top: calc(var(--unit)*4); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey); }

.post-body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 2px; }
.post-body a:hover { color: var(--red); }
.post-body .short { font-size: clamp(19px,2vw,21px); line-height: 1.45; letter-spacing: -0.01em; max-width: 62ch; }
.post-body .lead { font-weight: 700; }
.post-body .drop { font-weight: 700; }
.post-body strong, .post-body b { font-weight: 700; }

.post-body .pull, .post-body .punch { font-size: clamp(19px,2.1vw,22px); font-weight: 500; line-height: 1.36; letter-spacing: -0.015em; color: var(--ink); max-width: 60ch; margin: calc(var(--unit)*4) 0; }
.post-body .pull { padding-left: 20px; border-left: 2px solid var(--red); }

.post-body .quote { font-size: 15px; line-height: 1.55; border-left: 2px solid var(--hair-soft); padding: 4px 0 4px 18px; margin: calc(var(--unit)*3) 0; color: #2a2a2a; max-width: 60ch; }
.post-body .quote .sp { display: block; color: var(--grey); }
.post-body .quote .sp b { color: var(--ink); font-weight: 700; }

.post-body .tw, .post-body .tbl-wrap, .post-body .breakout { margin: calc(var(--unit)*4) 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.post-body table { border-collapse: collapse; width: 100%; font-size: 14.5px; line-height: 1.45; }
.post-body caption { caption-side: top; text-align: left; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey); font-weight: 700; padding-bottom: 12px; line-height: 1.5; max-width: 74ch; }
.post-body th, .post-body td { text-align: left; vertical-align: top; padding: 11px 18px 11px 0; border-bottom: 1px solid var(--hair-soft); }
.post-body thead th { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--ink); }
.post-body tbody th { font-weight: 700; white-space: nowrap; }
.post-body td.ex, .post-body td.why { color: var(--grey); }
.post-body .meta { display: block; font-weight: 400; color: var(--grey); font-size: 11px; text-transform: none; letter-spacing: 0; }
.post-body .verdict { font-weight: 700; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.post-body .v-g { color: var(--ink); } .post-body .v-r { color: var(--red); } .post-body .v-a, .post-body .v-n { color: var(--grey); }

.post-body .grid2 { display: grid; grid-template-columns: 150px 1fr 1fr; gap: 1px; background: var(--hair-soft); border: 1px solid var(--hair-soft); margin: calc(var(--unit)*4) 0; font-size: 13.5px; max-width: 780px; }
.post-body .grid2 .gh { background: var(--paper); font-weight: 700; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey); padding: 10px 12px; align-self: end; }
.post-body .grid2 .rh { background: var(--paper); font-weight: 700; font-size: 13px; padding: 12px; align-self: center; }
.post-body .grid2 .cell { background: var(--paper); padding: 12px; line-height: 1.35; }
.post-body .grid2 .cell .t { display: block; font-weight: 700; margin-bottom: 3px; }
.post-body .cell.die .t { color: var(--red); } .post-body .cell.live .t { color: var(--ink); } .post-body .cell.split .t, .post-body .cell.rare .t { color: var(--grey); }

.post-body tr.band td, .post-body tr.band th { font-weight: 700; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey); padding-top: 26px; border-bottom: 1px solid var(--ink); }
.post-body table.score { font-size: 12.5px; min-width: 900px; }
.post-body table.score th, .post-body table.score td { padding: 9px 11px; border-bottom: 1px solid var(--hair-soft); vertical-align: middle; }
.post-body .bands th { font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--grey); font-weight: 700; border-bottom: 1px solid var(--ink); }
.post-body .cos th { font-size: 11px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--ink); white-space: nowrap; }
.post-body .cos th span { display: block; font-weight: 400; color: var(--grey); font-size: 10px; }
.post-body .score .lbl { font-weight: 700; color: var(--ink); white-space: normal; min-width: 150px; }
.post-body .score .lbl .sub { display: block; font-weight: 400; color: var(--grey); font-size: 11px; margin-top: 2px; }
.post-body .pill { font-weight: 700; font-size: 11px; white-space: nowrap; }
.post-body .pill.bad { color: var(--red); } .post-body .pill.good { color: var(--ink); } .post-body .pill.mid { color: var(--grey); }
.post-body .score .build { border-left: 2px solid var(--red); }
.post-body .scrollhint { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey); margin: 6px 0 calc(var(--unit)*2); }
.post-body .legend { font-size: 12px; color: var(--grey); display: flex; flex-wrap: wrap; gap: 18px; margin: 0 0 calc(var(--unit)*2); }
.post-body .legend > span { display: inline-flex; align-items: center; gap: 7px; }
.post-body .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.post-body .dot.bad { background: var(--red); } .post-body .dot.good { background: var(--ink); } .post-body .dot.mid { background: var(--grey); }

.post-body .notes { font-size: 14px; color: var(--grey); line-height: 1.6; max-width: 76ch; }
.post-body .notes h3 { font-size: 13px; font-weight: 700; color: var(--ink); margin: 16px 0 6px; }
.post-body .notes ul { margin: 8px 0; padding-left: 18px; }
.post-body .notes li { margin: 0 0 8px; }
.post-body .notes b { color: var(--ink); font-weight: 700; }
.post-body .notes i { color: var(--ink); font-style: italic; }
.post-body.readnext a { display: block; font-weight: 700; color: var(--ink); text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--hair-soft); font-size: 16px; letter-spacing: -0.01em; max-width: 60ch; }
.post-body.readnext a:first-child { padding-top: 0; }
.post-body.readnext a:last-child { border-bottom: none; }
.post-body.readnext a:hover { color: var(--red); }
