/* Typography: one typeface, Hanken Grotesk, set with care on every page.
   Loaded last so these refinements apply everywhere without touching each page's own styles. */
:root {
  --type-stack: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: var(--type-stack); --font-mono: var(--type-stack); --fm: var(--type-stack); --cl-mono: var(--type-stack);
}
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
  font-kerning: normal;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--type-stack);
  font-feature-settings: "kern", "liga", "calt";
  letter-spacing: -0.006em;
}
/* Headings: tight at display sizes, balanced line breaks, no orphaned last words */
h1, h2, h3, h4 { font-family: var(--type-stack); text-wrap: balance; }
h1 { letter-spacing: -0.042em; }
h2 { letter-spacing: -0.034em; }
h3 { letter-spacing: -0.022em; }
h4 { letter-spacing: -0.012em; }
p, li, dd, blockquote, figcaption { text-wrap: pretty; }
strong, b { font-weight: 650; }
/* Form controls inherit the page typeface instead of the browser's */
button, input, select, textarea, optgroup { font-family: inherit; letter-spacing: inherit; }
::placeholder { opacity: .62; }
/* Numbers line up: stats, prices, tables, times, counts and badges */
table, time, td, th, output,
[class*="stat"], [class*="count"], [class*="badge"], [class*="price"], [class*="kpi"], [class*="num"], [class*="time"] {
  font-variant-numeric: tabular-nums lining-nums;
}
/* Small labels that used to be monospace: sentence-weight, gently tracked */
[class*="eyebrow"], [class*="label"], [class*="kicker"], th, legend { letter-spacing: 0.01em; }
[class*="eyebrow"], [class*="kicker"] { font-weight: 600; }
/* Code and technical strings stay readable in the same family */
code, kbd, samp, pre { font-family: var(--type-stack); font-size: .94em; font-variant-numeric: tabular-nums; letter-spacing: 0; }
/* Links and selection */
a { text-underline-offset: .2em; text-decoration-thickness: .06em; }
::selection { background: rgba(18, 136, 154, .22); color: inherit; }
/* Long-form reading (legal pages and blog posts) */
.legal-body, .legal-content, article, .post, .blog-post { line-height: 1.7; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ── Blog layout: spacing + polish (append to the END of public/typography.css) ── */
.blog-hero { padding: clamp(128px, 16vw, 176px) clamp(20px, 4vw, 64px) clamp(40px, 6vw, 64px) !important; }
.blog-hero span { font-size: 12px !important; font-weight: 600; letter-spacing: .14em !important; margin-bottom: 20px !important; }
.blog-hero h1 { margin-bottom: 24px !important; }
.blog-hero p { font-size: clamp(16px, 1.6vw, 18px) !important; line-height: 1.65; max-width: 600px !important; }

.blog-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)) !important;
  gap: clamp(16px, 2vw, 28px) !important;
  background: none !important; border: 0 !important;
  padding: 0 clamp(20px, 4vw, 64px) clamp(80px, 10vw, 140px) !important;
}
.blog-card {
  padding: clamp(24px, 2.4vw, 34px) !important; gap: 14px !important;
  border: 1px solid #E7E2DD !important; border-radius: 20px !important;
  background: rgba(255,255,255,.72) !important;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease !important;
}
.blog-card:hover { transform: translateY(-3px); background: #fff !important; border-color: #D0CBC5 !important; box-shadow: 0 14px 36px rgba(17,17,17,.07) !important; }
.blog-card-meta { align-items: center; font-size: 11.5px !important; letter-spacing: .04em !important; margin-bottom: 2px; }
.blog-card-meta span:first-child { padding: 4px 11px; border-radius: 999px; background: #EFEAE6; color: #0B252A; font-weight: 600; }
.blog-card-meta span:not(:first-child) { color: #8F8983; }
.blog-card-meta span:nth-child(2) { display: none; }
.blog-card h2 { font-size: clamp(19px, 1.7vw, 22px) !important; line-height: 1.28 !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card p { font-size: 15px !important; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; flex-grow: 1; }
.blog-card .read-more { margin-top: 6px; padding-top: 16px; border-top: 1px solid #E7E2DD; font-size: 13px !important; font-weight: 600; color: #0B252A !important; transition: gap .2s ease; }
.blog-card:hover .read-more { gap: 10px; }

.post { padding-top: clamp(120px, 14vw, 168px) !important; padding-bottom: clamp(64px, 8vw, 100px) !important; }
.post-meta { font-size: 12.5px !important; margin-bottom: 20px !important; }
.post h1 { margin-bottom: 40px !important; line-height: 1.1 !important; }
.post p { font-size: 17px !important; line-height: 1.8 !important; margin-bottom: 24px !important; }
.post h2 { font-size: clamp(22px, 3vw, 27px) !important; margin: 56px 0 18px !important; line-height: 1.25; }
.post ul { margin: 0 0 28px 22px !important; line-height: 1.75; }
.post li { margin-bottom: 12px !important; padding-left: 4px; }
.post blockquote { margin: 44px 0 !important; padding: 4px 0 4px 24px !important; border-left: 3px solid #0B252A !important; font-size: 19px; line-height: 1.55; font-style: normal !important; color: #111 !important; }
.post-cta { margin-top: 64px !important; padding: clamp(28px, 4vw, 44px) !important; }
.post-cta p { font-size: 16px !important; line-height: 1.65 !important; margin-bottom: 22px !important; }
.back-link { margin-top: 40px !important; font-size: 13.5px !important; font-weight: 600; }
@media (max-width: 640px) { .post p { font-size: 16.5px !important; } .post blockquote { font-size: 17.5px; } }
