/* Estils de les pàgines del blog i dels textos legals (la portada té els seus a index.html). */
:root {
  --paper: #FFFFFF;
  --paper-2: #F5F5F5;
  --ink: #111111;
  --ink-2: #555555;
  --ink-3: #6B6B6B;
  --line: #E6E6E6;
  --radius: 6px;
  --shadow: 0 24px 60px -30px rgba(0,0,0,.25);
  --head: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.7 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-family: var(--head); }
h1 b, h2 b { font-weight: 600; }
.eyebrow { font: 500 12px/1.4 var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 18px; }
.lead { color: var(--ink-2); font-size: 18px; max-width: 60ch; }

/* Logo: «less», bola negra amb «is», «more» */
.brand { display: inline-flex; align-items: center; text-decoration: none; font: 400 18px/1 var(--head); letter-spacing: .03em; color: var(--ink); }
.brand i { display: inline-grid; place-items: center; width: 2.1em; height: 2.1em; margin: 0 .2em; border-radius: 50%; background: var(--ink); color: #fff; font: normal 700 .68em/1 var(--head); letter-spacing: 0; }
.brand em { font-style: normal; color: var(--ink-3); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 24px; border-radius: var(--radius); border: 1px solid var(--ink); background: var(--ink); color: #fff; font: 500 14px var(--head); letter-spacing: .04em; white-space: nowrap; text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: #fff; color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.small { height: 38px; padding: 0 16px; font-size: 13px; }
a:focus-visible, button:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; border-radius: var(--radius); }

header.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; position: relative; }
.nav ul { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0; font: 400 14px var(--head); letter-spacing: .04em; color: var(--ink-2); }
.nav ul a { text-decoration: none; }
.nav ul a:hover { color: var(--ink); }
.nav .actions { display: flex; gap: 10px; align-items: center; }
.m-only { display: none; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
@media (max-width: 560px) { .hide-sm { display: none; } }
@media (max-width: 860px) {
  .nav ul, .nav .actions .ghost { display: none; }
  .menu-btn { display: block; }
  .nav.open ul .m-only { display: list-item; }
  .nav.open ul { display: flex; flex-direction: column; position: absolute; top: 76px; left: -16px; right: -16px; background: #fff; padding: 24px 16px 32px; gap: 20px; border-bottom: 1px solid var(--line); font-size: 17px; }
}

/* Articles i pàgines legals */
.crumbs { font-size: 13px; color: var(--ink-3); margin: 0 0 40px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.article { max-width: 760px; padding: 56px 0 40px; }
.article h1, .blog-head h1 { font-weight: 300; font-size: clamp(30px, 4.6vw, 46px); letter-spacing: -.02em; }
.article .meta { color: var(--ink-3); font-size: 14px; margin: 16px 0 28px; }
.article .lead { margin: 0 0 40px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.prose { font-size: 17px; color: #222; }
.prose h2 { font-size: 26px; font-weight: 500; letter-spacing: -.01em; margin: 48px 0 14px; }
.prose h3 { font-size: 19px; font-weight: 600; margin: 32px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 24px; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px 10px 0; text-align: left; vertical-align: top; }
.prose th { font-weight: 600; }
.prose blockquote { margin: 0 0 18px; padding: 16px 20px; background: var(--paper-2); border-radius: var(--radius); }
.legal .prose { font-size: 16px; }
.legal .prose h2 { font-size: 21px; margin-top: 40px; }

.cta-box { margin: 64px 0 0; padding: 40px 36px; border: 1px solid var(--ink); border-radius: calc(var(--radius) * 1.5); }
.cta-box h2 { font-weight: 300; font-size: clamp(24px, 3.2vw, 32px); letter-spacing: -.015em; }
.cta-box p:not(.eyebrow) { color: var(--ink-2); margin: 14px 0 24px; }
.cta-box .cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 560px) { .cta-box { padding: 28px 22px; } }

.related { margin-top: 72px; }
.related h2 { font-size: 22px; font-weight: 500; margin-bottom: 20px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.cards a { display: grid; gap: 6px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .2s; }
.cards a:hover { border-color: var(--ink); }
.cards .eyebrow { margin: 0; }
.cards strong { font: 500 19px/1.3 var(--head); }
.cards span:last-child { color: var(--ink-2); font-size: 15px; }
.blog-head { padding: 56px 0 0; }
.blog-head .lead { margin: 20px 0 48px; }
.cards.list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }

footer.foot { background: #0B0B0B; color: #A3A3A3; font-size: 14px; margin-top: 160px; padding: 96px 0 104px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 56px; padding-bottom: 72px; border-bottom: 1px solid #262626; }
.foot .brand { color: #fff; font-size: 20px; }
.foot .brand i { background: #fff; color: #0B0B0B; }
.foot .brand em { color: #8F8F8F; }
.foot-brand p { margin: 24px 0 28px; max-width: 36ch; line-height: 1.7; }
.foot-cta { display: inline-block; color: #fff; text-decoration: none; padding-bottom: 4px; border-bottom: 1px solid #fff; font-weight: 500; }
.foot-col { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.foot-col .foot-h { font: 500 11px/1 Inter, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #fff; margin: 6px 0 12px; }
.foot a, .foot button { color: inherit; text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; transition: color .2s; }
.foot a:hover, .foot button:hover { color: #fff; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-top: 32px; font-size: 13px; color: #8F8F8F; }
.foot-bottom nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.foot a:focus-visible, .foot button:focus-visible { outline-color: #fff; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 48px 32px; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 340px) { .foot-grid { grid-template-columns: 1fr; } }
  @media (max-width: 480px) { footer.foot { padding-top: 72px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } html { scroll-behavior: auto; } }
