/* Inbox Cardinal design tokens (Brand Identity Manual) */
:root {
  --red: #C8102E;
  --ink: #16161D;
  --paper: #F7F5F0;
  --ash: #5D5C58; /* darkened from #6B6A66 for WCAG AA small-text contrast on paper */
  --slate: #3E6CA8;
  --slate-bg: #E7EEF7;
  --slate-border: #C7D6EA;
  --card: #FFFFFF;
  --line: #E4E1D8;
  --font-display: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;
}
/* Fonts: self-host via @font-face when ready (no third-party font CDNs; keeps the
   no-trackers promise). System fallbacks render acceptably until then. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.65;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
a { color: var(--red); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--slate); outline-offset: 2px; border-radius: 2px;
}
img { max-width: 100%; height: auto; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 22px; }

/* Header */
.site-header { background: var(--ink); color: #fff; }
.site-header .wrap { display: flex; align-items: center; gap: 22px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.brand img { width: 30px; height: 30px; }
.site-nav { display: flex; gap: 18px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.site-nav a { color: #EDEBE4; text-decoration: none; font-size: 15px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.btn {
  display: inline-block; background: var(--red); color: #fff !important; text-decoration: none;
  padding: 11px 22px; border-radius: 8px; font-weight: 600; font-family: var(--font-display); border: 0; cursor: pointer;
}
.btn:hover { background: #A50D26; }
.btn.secondary { background: transparent; color: var(--ink) !important; border: 2px solid var(--ink); }
.site-header .btn { padding: 9px 18px; font-size: 15px; }

/* Hero */
.hero { padding: 64px 0 46px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.hero h1 { font-family: var(--font-display); font-size: clamp(34px, 5vw, 52px); line-height: 1.1; margin: 0 0 16px; }
.hero h1 em { color: var(--red); font-style: normal; }
.hero p.lede { font-size: 19px; color: var(--ash); margin: 0 0 26px; }
.kicker { color: var(--red); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: 13px; font-family: var(--font-display); }
.founder-strip { display: flex; align-items: center; gap: 12px; margin-top: 30px; font-size: 15px; color: var(--ash); }
.founder-strip img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }

/* Feed mock */
.feedmock { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 40px rgba(22,22,29,.10); padding: 18px; }
.feedmock .fm-title { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--ash); margin: 0 0 12px; text-transform: uppercase; letter-spacing: .06em; }
.fm-item { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 11px 8px; border-top: 1px solid var(--line); align-items: center; }
.fm-item:first-of-type { border-top: 0; }
.fm-score { font-family: var(--font-mono); font-weight: 700; font-size: 17px; text-align: center; background: var(--paper); border-radius: 8px; padding: 7px 0; }
.fm-item.critical .fm-score { background: var(--red); color: #fff; }
.fm-from { font-weight: 600; font-size: 15px; }
.fm-sub { font-size: 14px; color: var(--ash); }
.fm-chips { margin-top: 4px; }
.chip { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .05em; padding: 2px 8px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ash); margin-right: 6px; }
.chip.alert { background: #FBE9EC; border-color: #EFC2CA; color: var(--red); }
.fm-caption { font-size: 12.5px; color: var(--ash); margin: 10px 4px 0; }

/* Sections */
section { padding: 52px 0; }
section.alt { background: #EFEDE6; }
h2 { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; margin: 0 0 14px; }
.sec-intro { max-width: 720px; color: var(--ash); font-size: 18px; }
.grid { display: grid; gap: 18px; margin-top: 30px; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.card h3 { font-family: var(--font-display); font-size: 18px; margin: 0 0 8px; }
.card p { margin: 0; font-size: 15.5px; color: var(--ash); }
.pill { display: inline-block; text-transform: uppercase; font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--slate); background: var(--slate-bg); border: 1px solid var(--slate-border); border-radius: 999px; padding: 3px 9px; margin-bottom: 10px; }

/* FAQ */
details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; margin-top: 12px; }
summary { cursor: pointer; font-weight: 600; font-family: var(--font-display); padding: 15px 18px; }
details > div { padding: 0 18px 16px; color: var(--ash); }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; text-align: center; padding: 62px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #C9C7BE; max-width: 640px; margin: 0 auto 26px; }
.cta-alt { margin-top: 14px; font-size: 14.5px; color: #A5A39A; }
.cta-alt a { color: #EDEBE4; }

/* Prose pages (why, blog) */
.prose { max-width: 720px; }
.prose p { margin: 0 0 18px; }
.prose h2 { margin-top: 38px; font-size: 26px; }
.byline { display: flex; align-items: center; gap: 12px; margin: 18px 0 30px; color: var(--ash); font-size: 15px; }
.byline img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.post-meta { color: var(--ash); font-size: 14.5px; }
.post-list article { border-top: 1px solid var(--line); padding: 24px 0; }
.post-list h3 { font-family: var(--font-display); margin: 0 0 6px; font-size: 21px; }
.post-list p { margin: 6px 0 0; color: var(--ash); }

/* Trust page facts */
.fact { border-left: 4px solid var(--red); background: var(--card); border-radius: 0 10px 10px 0; padding: 14px 18px; margin-top: 14px; }
.fact strong { font-family: var(--font-display); }

/* Footer */
.site-footer { background: var(--ink); color: #A5A39A; padding: 40px 0; font-size: 14.5px; }
.site-footer a { color: #EDEBE4; }
.site-footer .cols { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .grid.c3, .grid.c4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid.c3, .grid.c4 { grid-template-columns: 1fr; }
  .site-nav { gap: 12px; }
}
