:root {
  --ink: #1B1B1F;
  --body: #4A4A55;
  --muted: #6B6B76;
  --line: #E6E6EA;
  --line2: #C9C9D1;
  --soft: #F6F6F8;
  --accent: #2E4BE6;
  --tint: #E7EBFF;
  --dark: #16161A;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'DM Sans', system-ui, sans-serif; color: var(--ink); background: #fff; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
svg { display: block; }
h1, h2, h3, .disp { font-family: 'Schibsted Grotesk', system-ui, sans-serif; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: clamp(16px, 4vw, 48px); padding-right: clamp(16px, 4vw, 48px); }
.narrow { max-width: 760px; }
.flex { display: flex; flex-wrap: wrap; }
.col { display: flex; flex-direction: column; }
.between { justify-content: space-between; }
.center { align-items: center; }
.end { align-items: flex-end; }
.start { align-items: flex-start; }
.g8 { gap: 8px; } .g10 { gap: 10px; } .g12 { gap: 12px; } .g16 { gap: 16px; } .g20 { gap: 20px; } .g24 { gap: 24px; } .g32 { gap: 32px; } .g40 { gap: 40px; } .g56 { gap: 56px; }
.grow > * { flex: 1 1 300px; min-width: 0; }
.sec { padding-top: clamp(64px, 8vw, 96px); padding-bottom: clamp(64px, 8vw, 96px); }
.soft { background: var(--soft); }
.dark { background: var(--dark); color: #fff; }
.blue { background: var(--accent); color: #fff; }
.m0 { margin: 0; }

/* header + footer */
.site-head { border-bottom: 1px solid var(--line); background: #fff; }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-family: 'Schibsted Grotesk', sans-serif; font-weight: 700; font-size: 19px; }
.mark { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; flex: none; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-size: 16px; font-weight: 500; }
.nav a { color: var(--body); text-decoration: none; padding: 10px 0; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav a.pill { color: var(--ink); padding: 9px 18px; border-radius: 999px; font-weight: 600; border: 1px solid var(--ink); }
.nav a.pill[aria-current="page"] { background: var(--ink); color: #fff; text-decoration: none; }
.site-foot { background: var(--dark); color: #B4B4BE; font-size: 14px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 28px; padding-bottom: 28px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-foot a { color: #E6E6EA; text-decoration: none; padding: 10px 0; }
.site-foot a:hover { text-decoration: underline; }

/* type */
.eyebrow { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.label { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.h1 { margin: 0; font-size: clamp(40px, 5.4vw, 64px); line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; }
.h1.xl { font-size: clamp(46px, 6.4vw, 84px); line-height: 1.02; }
.h2 { margin: 0; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
.h3 { margin: 0; font-size: 22px; line-height: 1.25; font-weight: 700; }
.lead { margin: 0; font-size: clamp(18px, 1.7vw, 21px); color: var(--body); max-width: 620px; }
.p { margin: 0; color: var(--body); font-size: 16px; }
.p18 { margin: 0; color: var(--body); font-size: 18px; }
.meta { font-size: 14px; color: var(--muted); font-weight: 500; }
.on-dark { color: #B4B4BE; }

/* buttons + links */
.btn { display: inline-block; text-decoration: none; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 16px; border: 1px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.3; }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-line-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn-line-light:hover { background: rgba(255, 255, 255, 0.1); }
.link { color: var(--accent); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }
.chip { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink); background: #fff; }
a.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; }
.dark .chip { background: transparent; color: #E6E6EA; border-color: #4A4A55; }
.dark .chip.on { background: #fff; color: var(--dark); border-color: #fff; }

/* cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
a.card:hover { border-color: var(--line2); box-shadow: 0 8px 24px rgba(27, 27, 31, 0.06); }
.card .viz { background: var(--soft); padding: 16px; }
.card .viz.tint { background: var(--tint); }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
.card-body .link { margin-top: auto; padding-top: 6px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.cover { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--tint); }

/* photo */
.photo { aspect-ratio: 4 / 5; border-radius: 24px; background: var(--tint); display: flex; align-items: center; justify-content: center; text-align: center; font-size: 15px; color: var(--body); padding: 24px; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.status { position: absolute; left: -12px; bottom: 28px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; box-shadow: 0 10px 30px rgba(27, 27, 31, 0.10); display: flex; align-items: center; gap: 10px; max-width: 270px; }
@media (max-width: 520px) { .status { left: 8px; } }

/* notes list rows */
.rows { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.row-link { text-decoration: none; color: var(--ink); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 32px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.row-link:hover .row-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.row-date { flex: 0 0 110px; font-size: 15px; color: var(--muted); }
.row-main { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.row-title { font-family: 'Schibsted Grotesk', sans-serif; font-size: clamp(20px, 1.9vw, 23px); font-weight: 600; line-height: 1.3; }
.row-thumb { flex: 0 0 140px; aspect-ratio: 16 / 10; border-radius: 12px; object-fit: cover; background: var(--tint); }
.dark .rows { border-top-color: #34343C; }
.dark .row-link { color: #fff; border-bottom-color: #34343C; }
.dark .row-date, .dark .row-sub { color: #B4B4BE; }
.arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #4A4A55; display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .lbl { font-size: 15px; font-weight: 600; }
.input { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line2); border-radius: 12px; background: #fff; color: var(--ink); width: 100%; }
.input.round { border-radius: 999px; padding: 12px 16px; }
textarea.input { resize: vertical; min-height: 150px; }
.err { color: #B42318; font-size: 14px; margin: 0; }
.ok-msg { font-size: 17px; font-weight: 600; margin: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pills label { font-size: 15px; padding: 9px 16px; border-radius: 999px; cursor: pointer; background: #fff; color: var(--ink); border: 1px solid var(--line2); font-weight: 500; }
.pills input:checked + label { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; }
.pills input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.newsletter { background: var(--tint); border-radius: 24px; padding: clamp(28px, 4vw, 52px); display: flex; flex-wrap: wrap; align-items: center; gap: 32px; }

/* article */
.article { font-size: 19px; line-height: 1.75; color: #2E2E35; }
.article > * { margin: 0 0 22px; }
.article h2, .article h3, .article h4 { color: var(--ink); line-height: 1.25; letter-spacing: -0.01em; margin-top: 40px; }
.article h2 { font-size: 30px; }
.article h3 { font-size: 24px; }
.article h4 { font-size: 20px; }
.article a { color: var(--accent); text-underline-offset: 3px; }
.article ul, .article ol { padding-left: 26px; }
.article li { margin: 6px 0; }
.article li p { margin: 0; }
.article blockquote { margin: 28px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent); font-family: 'Schibsted Grotesk', sans-serif; font-size: 23px; line-height: 1.45; font-weight: 600; color: var(--ink); }
.article blockquote p { margin: 0; }
.article pre { background: var(--dark); color: #E6E6EA; border-radius: 14px; padding: 20px 22px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 14px; line-height: 1.7; overflow-x: auto; }
.article figure { margin: 32px 0; }
.article figure img { border-radius: 14px; margin: 0 auto; }
.article figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 10px; }
.article hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.skeleton { background: linear-gradient(90deg, #F1F1F4 0%, #E8E8EC 50%, #F1F1F4 100%); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: 10px; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } html { scroll-behavior: auto; } }