/* Signal — R/N design system, blog variant. Shares tokens/header/footer with the homepage so / and /blog/* read as one site. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/fonts/archivo-latin.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/plexmono-400-latin.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/plexmono-500-latin.woff2") format("woff2"); }

:root {
  --signal-white: #ECECE7;
  --paper: #F6F6F2;
  --signal-black: #2B2B2C;
  --signal-blue: #005387;
  --signal-orange: #DD5A1E;
  --signal-grey: #9B9B9B;
  --ink-2: #5E5F61;
  --rule: rgba(43, 43, 44, 0.18);

  --font-sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(20px, 4vw, 40px);
  --max: 1240px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--signal-white); color: var(--signal-black); font-family: var(--font-sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
a { color: var(--signal-blue); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--signal-black); }
:focus-visible { outline: 3px solid var(--signal-blue); outline-offset: 3px; }
::selection { background: rgba(221, 90, 30, 0.28); }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--signal-black); color: var(--signal-white); padding: 10px 16px; }
.skip:focus { left: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 8px 24px; font-family: var(--font-sans); font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; border: 1px solid transparent; transition: background-color .15s ease, color .15s ease; }
.btn-primary { background: var(--signal-blue); color: #FFFFFF; }
.btn-primary:hover { background: #00406A; color: #FFFFFF; }

/* Header (shared with homepage) */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--signal-black); text-decoration: none; }
.brand:hover { color: var(--signal-black); }
.brand svg { width: 40px; height: 40px; }
.brand span { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; color: var(--signal-black); text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.nav a[aria-current="page"] { text-decoration: underline; }
.nav .btn { min-height: 44px; padding: 0 18px; font-size: 15px; color: #FFFFFF; }
.nav .btn:hover { text-decoration: none; color: #FFFFFF; }

/* Blog index */
.blog-hero { padding-block: clamp(48px, 6vw, 72px) clamp(32px, 4vw, 56px); display: flex; flex-direction: column; gap: 16px; }
.label { font-family: var(--font-mono); font-size: 12px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.blog-hero h1 { font-size: clamp(36px, 6vw, 64px); line-height: 0.98; letter-spacing: -0.035em; }
.blog-hero .lede { max-width: 40em; font-size: clamp(17px, 1.3vw, 19px); color: var(--ink-2); }

.post-list { padding-block: 0 clamp(48px, 6vw, 80px); display: flex; flex-direction: column; }
.post-list .item { padding: 28px 0; border-top: 2px solid var(--signal-black); display: flex; flex-direction: column; gap: 10px; }
.post-list .item-meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.post-list h2 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; letter-spacing: -0.02em; }
.post-list h2 a { color: inherit; text-decoration: none; }
.post-list h2 a:hover { text-decoration: underline; }
.post-list p { max-width: 42em; color: var(--ink-2); }

/* Article */
.post-head { padding-block: clamp(40px, 6vw, 72px) 28px; display: flex; flex-direction: column; gap: 16px; border-bottom: 1px solid var(--rule); margin-bottom: clamp(32px, 4vw, 48px); }
.post-head h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.03em; max-width: 24em; }
.byline { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }

article { max-width: 42em; padding-bottom: clamp(32px, 4vw, 48px); }
article h2 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; letter-spacing: -0.02em; margin: 2em 0 0.6em; }
article p { margin: 0 0 1.1em; }
article ul, article ol { margin: 0 0 1.1em 1.3em; padding: 0; }
article li { margin-bottom: 0.4em; }
article strong { font-weight: 700; }
article em { font-style: italic; }

.cta-box { max-width: 42em; background: var(--paper); border: 1px solid var(--signal-black); padding: 28px; margin-bottom: clamp(32px, 4vw, 48px); display: flex; flex-direction: column; gap: 14px; }
.cta-box h3 { font-size: 20px; letter-spacing: -0.01em; }
.cta-box p { color: var(--ink-2); }
.cta-box .btn { align-self: flex-start; }

.up-next { max-width: 42em; border-top: 1px solid var(--rule); padding-top: 24px; margin-bottom: clamp(48px, 6vw, 72px); display: flex; flex-direction: column; gap: 8px; }
.up-next a { font-weight: 600; text-decoration: none; }
.up-next a:hover { text-decoration: underline; }

/* Footer (shared with homepage) */
.site-footer { border-top: 1px solid var(--rule); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; padding-block: 20px; font-size: 14px; color: var(--ink-2); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--signal-black); }
