/* Arjentum marketing site: what every page shares. Colours and type follow brand/tokens.json; the home page adds home.css. */
@font-face { font-family: "Schibsted Grotesk"; font-weight: 600; font-display: swap; src: url(/fonts/schibsted-grotesk-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 700; font-display: swap; src: url(/fonts/schibsted-grotesk-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-display: swap; src: url(/fonts/public-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-display: swap; src: url(/fonts/public-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }

:root {
  --paper: #F4F3EF;
  --surface: #FFFFFF;
  --sunk: #E9E8E2;
  --brand-ink: #16191D;
  --ink: #16191D;
  --ink-2: #1E2228;
  --ink-3: #2A3038;
  --ink-line: #333A43;
  --slate: #58606B;
  --line: #D7D8D2;
  --gold: #7D6229;
  --gold-bright: #D4B26A;
  --gold-soft: #F6EEDC;
  --on-gold: #16191D;
  --sky: #3B6A88;
  --sky-bright: #9CC3DA;
  --good: #0E6475;
  --good-bright: #5EC1D2;
  --rail-fg: #ECE9E1;
  --rail-muted: #9AA1AA;
  --rail-hover: #232830;
  --negative: #B03A2E;
  --display: "Schibsted Grotesk", system-ui, sans-serif;
  --text: "Public Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
/* Smooth only for a click within the page: opening a page at #security lands there, rather than scrolling down to it. */
html:focus-within { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--sky); }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(36px, 5.2vw, 58px); }
h2 { font-size: clamp(28px, 3.4vw, 40px); max-width: 22ch; }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0 0 16px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: max(clamp(16px, 4vw, 40px), env(safe-area-inset-left, 0px)); padding-right: max(clamp(16px, 4vw, 40px), env(safe-area-inset-right, 0px)); }
section.wrap { padding-top: 96px; padding-bottom: 96px; }
.eyebrow { font: 600 13px/1 var(--text); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.lede { font-size: 19px; color: var(--slate); max-width: 56ch; }

/* The dark band: heroes and the closing call */
.band { background: var(--brand-ink); color: var(--rail-fg); }
.band .lede { color: var(--rail-muted); }
.band .eyebrow { color: var(--gold-bright); }

/* The menu: stays at the top of every page, and tightens once the page scrolls (site.js). */
.nav-bar { position: sticky; top: 0; z-index: 50; background: var(--brand-ink); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav-bar.is-scrolled { border-bottom-color: var(--ink-line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; transition: padding .3s var(--ease); }
.nav-bar.is-scrolled .nav { padding-top: 10px; padding-bottom: 10px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.btn) { color: var(--rail-fg); text-decoration: none; font-size: 15px; padding: 10px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.nav-links a:not(.btn):hover { background: var(--ink-3); color: #FFFFFF; }
.nav-links a.is-current { color: var(--gold-bright); }
.nav-links .btn { margin-left: 10px; }

.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--gold-bright); color: var(--on-gold); font: 600 16px/1 var(--text); text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; }
.btn:hover { background: #E0C07A; transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(212, 178, 106, .7); }
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--rail-fg); box-shadow: inset 0 0 0 1px var(--ink-line); }
.btn-ghost:hover { background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--rail-muted); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }

/* A screenshot in a plain window frame: a brand-ink title bar like the app's header */
.shot { margin: 0; background: var(--surface); border: 1px solid var(--line); border-top: 14px solid var(--brand-ink); border-radius: 10px; overflow: hidden; box-shadow: 0 18px 48px rgba(22, 25, 29, 0.14); }
.shot picture { display: block; }
.shot img { width: 100%; }
.shot-phone { justify-self: center; width: min(300px, 80%); border: 8px solid var(--brand-ink); border-radius: 32px; }

.closing { padding: 104px 0; }
.closing h2 { color: #FFFFFF; max-width: 24ch; }

.footer { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding-top: 32px; padding-bottom: 40px; font-size: 14px; color: var(--slate); }
.footer p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-left: auto; }
.footer-links a { color: var(--slate); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }

.notfound { padding-top: 96px; padding-bottom: 160px; }
.notfound h1 { color: #FFFFFF; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* The inner pages: a capability or a guide (2026-11-03). */
.page-hero { padding-top: 40px; padding-bottom: 72px; }
.page-hero h1 { color: #FFFFFF; max-width: 22ch; font-size: clamp(32px, 4.4vw, 50px); }
.crumbs { font-size: 14px; color: var(--rail-muted); margin-bottom: 28px; }
.crumbs a { color: var(--rail-fg); text-decoration: none; }
.crumbs a:hover { color: var(--gold-bright); }
.prose { padding-top: 72px; padding-bottom: 88px; }
.prose > * { max-width: 760px; }
.prose h2 { font-size: clamp(24px, 2.6vw, 30px); max-width: none; margin-top: 48px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 28px; margin-bottom: 8px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.prose .shot { margin: 32px 0; }
.prose .note { font-size: 15px; color: var(--slate); border-left: 2px solid var(--gold-bright); padding-left: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 24px; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { font-weight: 600; color: var(--slate); font-size: 14px; }
.related { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.related li { margin: 0; }
.related a { display: block; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; text-decoration: none; color: var(--ink); transition: transform .3s var(--ease), border-color .2s; }
.related a:hover { border-color: var(--gold-bright); transform: translateY(-3px); }
.related strong { display: block; font: 600 17px/1.3 var(--display); margin-bottom: 4px; }
.related span { color: var(--slate); font-size: 15px; }
/* Between the inner pages: the section's bar under the heading, the guide's contents, previous and next. */
.subnav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-top: 1px solid #2B3139; border-bottom: 1px solid #2B3139; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { flex-shrink: 0; color: var(--rail-muted); text-decoration: none; font-size: 15px; padding: 14px 12px 12px; border-bottom: 3px solid transparent; white-space: nowrap; }
.subnav a:first-child { padding-left: 0; }
.subnav a:hover { color: var(--rail-fg); }
.subnav a[aria-current="page"] { color: #FFFFFF; border-bottom-color: var(--gold-bright); }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 18px 22px; margin-bottom: 40px; }
.toc p { font: 600 13px/1 var(--text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc li { margin-bottom: 6px; break-inside: avoid; font-size: 15px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.prose h2[id] { scroll-margin-top: 84px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 56px 0 8px; }
.pager a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; text-decoration: none; color: var(--ink); }
.pager a:hover { border-color: var(--gold-bright); }
.pager .next { text-align: right; grid-column: 2; }
.pager span { display: block; font-size: 13px; color: var(--slate); }
.pager span::before { content: "← "; }
.pager .next span::before { content: ""; }
.pager .next span::after { content: " →"; }
.pager strong { font: 600 18px/1.3 var(--display); }
.prose .shot-phone { width: min(300px, 80%); margin: 32px auto; }

@media (max-width: 860px) { .nav-links a:not(.btn) { display: none; } }
@media (max-width: 640px) {
  body { font-size: 16px; }
  section.wrap { padding-top: 64px; padding-bottom: 64px; }
  .closing { padding: 64px 0; }
  .page-hero { padding-top: 24px; padding-bottom: 48px; }
  .prose { padding-top: 48px; padding-bottom: 56px; }
  .footer-links { margin-left: 0; }
  .toc ol { columns: 1; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
}

/* Moving between pages: the menu and section tabs hold still while the page beneath them fades across. */
@view-transition { navigation: auto; }
.nav { view-transition-name: site-nav; }
.subnav { view-transition-name: section-tabs; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 160ms; }
@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  @view-transition { navigation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
