/* Afer newsroom — shared styles. Plain static pages: no framework, no runtime. */

:root {
  --brand: #5B21D6;
  --brand-dark: #3F1699;
  --ink: #111827;
  --body: #374151;
  --muted: #6B7280;
  --faint: #9CA3AF;
  --line: #E5E7EB;
  --sunken: #FCFCFD;
  --page: 1160px;
  --gut: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #FFFFFF; color: var(--ink);
  font-family: Inter, -apple-system, system-ui, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; text-wrap: pretty;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 760px; }

/* header */
.site-head { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(12px); position: sticky; top: 0; z-index: 40; }
.site-head .wrap { display: flex; align-items: center; gap: 14px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 20px; letter-spacing: -.4px; }
.brand img { height: 42px; width: auto; display: block; }
.sep { color: #D1D5DB; font-size: 18px; }
.crumb { font-size: 16px; font-weight: 600; color: var(--muted); }
.crumb[aria-current] { color: var(--ink); }
.head-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ghost-sm { height: 38px; padding: 0 14px; border-radius: 11px; border: 1.5px solid var(--line); background: #FFFFFF; color: var(--ink); font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.ghost-sm:hover { border-color: var(--brand); color: var(--brand); }

/* hero */
.hero { padding: clamp(44px, 6vw, 76px) 0 0; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
h1 { margin: 12px 0 0; font-size: clamp(34px, 5.4vw, 60px); line-height: 1.03; letter-spacing: -.035em; font-weight: 800; max-width: 20ch; }
.lede { margin: 20px 0 0; max-width: 60ch; font-size: clamp(16.5px, 1.6vw, 19px); line-height: 1.6; color: var(--body); }
.hero-meta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 14px; color: var(--muted); }
.hero-meta strong { color: var(--ink); font-weight: 600; }

/* filters */
.filters { margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #FFFFFF; color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: background .18s, border-color .18s, color .18s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #FFFFFF; }

/* cards */
.feed { margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: #FFFFFF; transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(17,24,39,.10); }
.card a.cover { display: block; aspect-ratio: 16 / 9; background: #F0F1F3; overflow: hidden; }
.card a.cover img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { margin: 0; font-size: 19px; line-height: 1.3; letter-spacing: -.02em; font-weight: 700; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--brand); }
.card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.card .meta { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 12.5px; color: var(--faint); }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: #F2ECFD; color: var(--brand); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.tag.company { background: #E9F0FB; color: #2C63D6; }
.tag.product { background: #E7F3EC; color: #0C8F5F; }
.tag.explainer { background: #FDF3E7; color: #9A5B00; }

/* featured */
.featured { margin: 28px 0 0; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.featured .cover { background: #F0F1F3; min-height: 300px; }
.featured .cover img { width: 100%; height: 100%; object-fit: cover; }
.featured .txt { padding: clamp(26px, 3.4vw, 44px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.featured h2 { margin: 0; font-size: clamp(24px, 2.7vw, 34px); line-height: 1.18; letter-spacing: -.028em; font-weight: 800; }
.featured h2 a { color: var(--ink); }
.featured h2 a:hover { color: var(--brand); }
.featured p { margin: 0; font-size: 16px; line-height: 1.62; color: var(--body); }

/* sections */
section { padding-top: clamp(52px, 6vw, 84px); }
h2.sec { margin: 10px 0 0; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.15; letter-spacing: -.028em; font-weight: 800; }
.sec-lede { margin: 14px 0 0; max-width: 62ch; font-size: 16px; line-height: 1.62; color: var(--body); }

/* article body */
.article { padding-top: 34px; }
.article .kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 13.5px; color: var(--muted); }
.article h1 { max-width: 24ch; font-size: clamp(30px, 4.4vw, 50px); }
figure.hero-img { margin: 34px 0 0; border-radius: 24px; overflow: hidden; background: #F0F1F3; }
figure.hero-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
figure.hero-img figcaption { padding: 12px 4px 0; font-size: 13px; color: var(--faint); }
.prose { margin-top: 34px; }
.prose > * + * { margin-top: 20px; }
.prose p { font-size: 17px; line-height: 1.72; color: var(--body); }
.prose h2 { margin-top: 44px; font-size: 25px; line-height: 1.25; letter-spacing: -.022em; font-weight: 700; color: var(--ink); }
.prose h3 { margin-top: 32px; font-size: 19px; line-height: 1.3; font-weight: 700; color: var(--ink); }
.prose ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.prose li { display: flex; gap: 12px; align-items: baseline; font-size: 16.5px; line-height: 1.62; color: var(--body); }
.prose li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--brand); }
.prose blockquote { margin: 34px 0; padding: 0 0 0 22px; border-left: 3px solid var(--brand); font-size: 20px; line-height: 1.5; letter-spacing: -.01em; color: var(--ink); font-weight: 600; }
.prose table, .tablewrap table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td, .tablewrap th, .tablewrap td { text-align: left; vertical-align: top; padding: 13px 14px; border-bottom: 1px solid var(--line); line-height: 1.5; }
.prose th, .tablewrap th { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--sunken); }
.tablewrap tr:last-child td { border-bottom: 0; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }

/* boxes */
.box { border: 1px solid var(--line); border-radius: 20px; padding: 24px 26px; background: var(--sunken); }
.box h3 { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.box p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--body); }
.box p + p { margin-top: 10px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }

/* swatches + assets */
.swatches { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.swatch { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; width: 148px; }
.swatch .fill { height: 74px; }
.swatch .lbl { padding: 10px 12px; font-size: 12.5px; line-height: 1.45; }
.swatch .lbl b { display: block; font-size: 13px; }
.swatch .lbl span { color: var(--muted); font-variant-numeric: tabular-nums; }
.asset { border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.asset .frame { border-radius: 14px; background: var(--sunken); border: 1px solid var(--line); min-height: 128px; display: flex; align-items: center; justify-content: center; padding: 18px; }
.asset .frame img { max-height: 92px; width: auto; }
.asset h3 { margin: 0; font-size: 15.5px; font-weight: 700; }
.asset p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }

/* cta band */
.band { margin-top: clamp(52px, 6vw, 84px); border-radius: 26px; padding: clamp(28px, 4vw, 48px); background: linear-gradient(135deg, #7C3AED 0%, #5B21D6 60%, #4E1BC0 100%); color: #FFFFFF; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.band h2 { margin: 0; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -.025em; font-weight: 800; max-width: 20ch; }
.band p { margin: 10px 0 0; font-size: 15.5px; line-height: 1.6; color: rgba(255,255,255,.88); max-width: 46ch; }
.btn { display: inline-flex; align-items: center; height: 50px; padding: 0 22px; border-radius: 14px; font-size: 15px; font-weight: 600; }
.btn.light { background: #FFFFFF; color: var(--brand); }
.btn.light:hover { background: #F2ECFD; color: var(--brand-dark); }
.btn.primary { background: var(--brand); color: #FFFFFF; box-shadow: 0 6px 14px rgba(91,33,214,.28); }
.btn.primary:hover { background: #4E1BC0; color: #FFFFFF; }
.btn.ghost { background: #FFFFFF; color: var(--ink); border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); }
.cta-row { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }

/* footer */
.site-foot { margin-top: clamp(60px, 7vw, 96px); border-top: 1px solid var(--line); }
.site-foot .wrap { padding-top: 34px; padding-bottom: 44px; display: flex; flex-wrap: wrap; gap: 16px 30px; align-items: center; font-size: 13.5px; color: var(--muted); }
.site-foot a { color: var(--body); }
.site-foot a:hover { color: var(--brand); }
.site-foot .legal { width: 100%; font-size: 12px; color: var(--faint); line-height: 1.6; }

@media (max-width: 900px) {
  .featured { grid-template-columns: 1fr; }
  .featured .cover { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .site-head { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
