/* ============================================================
   news.wpbuildai.com: the reading surface.
   Palette from server/brand.ts (served as /assets/brand.css).
   Type: Schibsted Grotesk (display), Hanken Grotesk (body), self-hosted.
   ============================================================ */
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("/assets/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2"); }

:root { --maxw: 1180px; --measure: 42rem; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-weight: 450; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.03em; color: var(--ink); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100; }
.skip:focus { left: 0; }

.container { max-width: var(--maxw); margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 18px; }
.eyebrow.muted { color: var(--faint); }

.btn { display: inline-block; text-decoration: none; font-weight: 600; border-radius: 999px; transition: transform .16s ease, background .2s ease, border-color .2s ease; cursor: pointer; border: 1px solid transparent; font: inherit; font-weight: 600; }
.btn:active { transform: scale(.96); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { transform: translateY(-2px); }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-sm { font-size: 15px; padding: 11px 20px; }
.btn-md { font-size: 16px; padding: 14px 26px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav { max-width: var(--maxw); margin: 0 auto; padding: 16px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: baseline; gap: 1px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.04em; color: var(--ink); }
.brand .dot { color: var(--accent); }
.brand .news { font-family: var(--font-body); font-weight: 600; font-size: 13px; letter-spacing: 0; color: var(--muted); margin-left: 8px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current='page'] { color: var(--ink); }
.site-header { overflow: hidden; }
@media (max-width: 720px) { .nav { flex-wrap: wrap; gap: 10px 16px; padding: 12px 20px; } .nav-links { gap: 14px; } .nav-links a { font-size: 14px; } .nav-links a:nth-child(n+4) { display: none; } .nav .btn { display: none; } .brand .news { display: none; } }

/* ---------- hero ---------- */
.hero { max-width: var(--maxw); margin: 0 auto; padding: 84px 28px 40px; text-align: center; }
.hero h1 { font-weight: 800; font-size: clamp(38px, 6.4vw, 78px); line-height: 0.98; letter-spacing: -0.038em; margin: 0 auto; max-width: 14ch; text-wrap: balance; }
.hero .sub { font-size: clamp(17px, 2.1vw, 21px); line-height: 1.5; color: var(--muted); max-width: 58ch; margin: 24px auto 0; }
.page-hero { max-width: var(--maxw); margin: 0 auto; padding: 64px 28px 24px; }
.page-hero h1 { font-weight: 800; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.02; margin: 0; max-width: 20ch; text-wrap: balance; }
.page-hero .sub { font-size: 18px; color: var(--muted); max-width: 60ch; margin: 16px 0 0; }

/* ---------- subscribe ---------- */
.subscribe { max-width: 720px; margin: 36px auto 0; padding: 0 28px; }
.sform { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.sform input[type=email], .sform input[type=text], .sform select { font: inherit; padding: 13px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); min-width: 16rem; flex: 1 1 16rem; }
.sform input:focus-visible, .sform select:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fineprint { font-size: 13.5px; color: var(--faint); text-align: center; margin: 14px auto 0; max-width: 60ch; }
.msg { border-radius: 12px; padding: 12px 16px; font-size: 15px; margin: 14px auto 0; max-width: 60ch; }
.msg.ok { background: var(--tint); border: 1px solid var(--tint-line); color: var(--ink); }
.msg.bad { background: var(--raised); border: 1px solid var(--line); color: var(--ink); }

/* ---------- lists ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 56px 28px 0; }
.section h2 { font-weight: 800; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.05; margin: 0 0 22px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 26px; text-decoration: none; color: inherit; transition: transform .3s cubic-bezier(.22,.7,.2,1), box-shadow .3s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 26px 48px -30px rgba(20,18,14,0.42); }
.card .cat { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 12px; }
.card h3 { font-weight: 700; font-size: 21px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 10px; }
.card p { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 0 0 18px; }
.card .meta { margin-top: auto; font-size: 13px; color: var(--faint); display: flex; gap: 8px; flex-wrap: wrap; }
.stack { max-width: 760px; }
.row { display: grid; grid-template-columns: 7rem 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.row .when { font-size: 13px; color: var(--faint); padding-top: 4px; }
.row .t { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; }
.row .t:hover { color: var(--accent-text); }
.row .x { color: var(--muted); font-size: 15px; margin: 6px 0 0; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; gap: 4px; } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips a { text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; color: var(--muted); }
.chips a:hover, .chips a[aria-current] { border-color: var(--ink); color: var(--ink); }

/* ---------- an issue on the web ---------- */
.issue { max-width: 760px; margin: 0 auto; padding: 0 28px; }
.issue-head { text-align: center; padding: 64px 0 20px; }
.issue-head h1 { font-weight: 800; font-size: clamp(32px, 4.8vw, 54px); line-height: 1.04; margin: 14px 0 0; text-wrap: balance; }
.issue-head .lede { font-size: clamp(17px, 2vw, 20px); line-height: 1.5; color: var(--muted); max-width: 60ch; margin: 18px auto 0; }
.issue-head .meta { font-size: 14px; color: var(--faint); margin-top: 18px; }
.pn { padding: 30px 0; border-top: 1px solid var(--line); }
.pn:first-child { border-top: 0; }
.pn-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 12px; }
.pn-heading { font-weight: 800; font-size: clamp(22px, 3vw, 30px); line-height: 1.15; margin: 0 0 12px; }
.pn-heading a { text-decoration: none; }
.pn-heading a:hover { color: var(--accent-text); }
.pn-text { font-size: 18px; line-height: 1.65; color: var(--body); margin: 0 0 12px; }
.pn--tip { background: var(--tint); border: 1px solid var(--tint-line); border-left: 4px solid var(--accent); border-radius: 16px; padding: 26px 28px; margin: 8px 0; }
.pn-steps { margin: 12px 0; padding-left: 26px; font-size: 17px; line-height: 1.6; color: var(--body); }
.pn-steps li { margin: 0 0 10px; padding-left: 4px; }
.pn-steps li::marker { font-family: var(--font-display); font-weight: 800; color: var(--accent-text); }
.pn-note { font-size: 15.5px; line-height: 1.55; color: var(--muted); margin: 10px 0 0; }
.pn-note .k { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); margin-right: 8px; }
.pn-story { display: block; text-decoration: none; background: var(--raised); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 0 0 12px; transition: transform .2s ease, box-shadow .2s ease; }
.pn-story:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -24px rgba(20,18,14,0.4); }
.pn-story .t { display: block; font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.3; letter-spacing: -0.02em; margin-bottom: 6px; }
.pn-story .w { display: block; font-size: 15.5px; line-height: 1.55; color: var(--body); }
.pn-story .s { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-top: 10px; }
.pn-list { list-style: none; margin: 0; padding: 0; }
.pn-list li { padding: 11px 0; border-top: 1px solid var(--hair); font-size: 16.5px; line-height: 1.5; color: var(--body); }
.pn-list li:first-child { border-top: 0; }
.pn-list a { color: var(--accent-text); font-weight: 600; text-decoration: none; }
.pn-list a:hover { text-decoration: underline; }
.pn-list .m { font-size: 13px; color: var(--faint); margin-left: 8px; }
.pn-src { font-size: 14px; }
.pn-src a { color: var(--accent-text); font-weight: 600; text-decoration: none; }
.pn-options { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.pn-options .opt { text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 11px 16px; font-weight: 600; font-size: 15px; color: var(--ink); }
.pn-options .opt:hover { border-color: var(--ink); }
.pn-cta { margin: 14px 0 0; }

/* ---------- prose pages ---------- */
.prose { max-width: 740px; margin: 0 auto; padding: 0 28px 40px; font-size: 17.5px; line-height: 1.7; color: var(--body); }
.prose h2 { font-weight: 800; font-size: clamp(24px, 3.2vw, 32px); line-height: 1.15; margin: 44px 0 14px; }
.prose h3 { font-weight: 700; font-size: 21px; margin: 30px 0 10px; }
.prose p { margin: 0 0 18px; }
.prose a { color: var(--accent-text); text-underline-offset: 2px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 24px; }
.prose li { margin: 0 0 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 20px 0; }
.prose th, .prose td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { background: var(--raised); font-weight: 700; color: var(--ink); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; background: var(--raised); padding: 2px 6px; border-radius: 6px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.ok { color: var(--accent-text); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 72px; }
.footer-top { max-width: var(--maxw); margin: 0 auto; padding: 60px 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; }
.footer-brand { max-width: 32ch; }
.footer-brand p { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 14px 0 0; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col .h { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.footer-col a { text-decoration: none; color: var(--muted); font-size: 15px; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom .inner { max-width: var(--maxw); margin: 0 auto; padding: 24px 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13.5px; color: var(--faint); }
