/* Building blocks for content pages (Resources, blog,
 * legal pages). Load after legal.css, which brings tokens, header and footer.
 * Page-specific styles go in a <style> block on the page itself. */

.page { padding-bottom: clamp(48px, 8vh, 96px); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 820px; }

/* Small label with the orange dot, as on the new pages. */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink); }
.eyebrow::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--accent); }

.hero { padding: clamp(56px, 10vh, 120px) 0 clamp(40px, 6vh, 72px); }
.hero h1 { margin-top: 14px; max-width: 18ch; font-size: clamp(40px, 5.6vw, 72px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.04; text-wrap: balance; }
.hero .lead { margin-top: 22px; max-width: 60ch; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--ink-2); }
.hero .actions { margin-top: 32px; }

.section { padding: clamp(48px, 9vh, 112px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section h2 { max-width: 22ch; font-size: clamp(30px, 3.6vw, 48px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
.section .eyebrow + h2 { margin-top: 12px; }
.section .intro { margin-top: 18px; max-width: 62ch; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.section .media { margin-top: clamp(28px, 5vh, 48px); }

.media img, .media video { display: block; width: 100%; height: auto; border-radius: var(--radius, 16px); background: var(--tint); }

.grid { display: grid; gap: clamp(16px, 2vw, 28px); margin-top: clamp(28px, 5vh, 48px); }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }

.card { display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 2vw, 28px); border: 1px solid var(--line); border-radius: var(--radius, 16px); background: var(--paper); text-decoration: none; color: inherit; }
.card.tint { background: var(--tint); border-color: transparent; }
.card img { width: 100%; height: auto; border-radius: 10px; }
.card h3 { font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.card p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.card .meta { font-size: 13px; color: var(--ink-2); }
a.card { transition: border-color .2s, transform .2s; }
a.card:hover { border-color: var(--ink-3); transform: translateY(-2px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 12px; border-radius: 999px; background: var(--tint); font-size: 13px; font-weight: 500; color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 10px; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; border: 0; }
.btn.primary { color: #fff; background: linear-gradient(180deg, #FF7A4F, #FF5523); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.btn.ghost { color: var(--ink); background: var(--tint-2); }
.btn.ghost:hover { background: #E8E6E0; }
.btn::after { content: "\2192"; transition: transform .25s; } .btn:hover::after { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Blog */
.post-head { padding: clamp(40px, 7vh, 80px) 0 0; }
.post-head .back { font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.post-head .back:hover { color: var(--accent); }
.post-head .eyebrow { display: flex; }
.post-head h1 { margin-top: 18px; font-size: clamp(34px, 4.4vw, 60px); font-weight: 500; letter-spacing: -0.045em; line-height: 1.04; text-wrap: balance; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 20px; font-size: 14px; color: var(--ink-2); }
.post-meta .author { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; }
.post-meta .author img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.post-hero { margin-top: clamp(28px, 5vh, 48px); }
.post-hero img { display: block; width: 100%; height: auto; border-radius: var(--radius, 16px); }
.post-hero figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.post-body { margin-top: clamp(32px, 5vh, 56px); font-size: 17px; line-height: 1.75; }
.post-body > * + * { margin-top: 1.1em; }
.post-body h2 { margin-top: 2em; font-size: 26px; font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; }
.post-body h3 { margin-top: 1.6em; font-size: 20px; font-weight: 600; line-height: 1.3; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li + li { margin-top: .45em; }
.post-body a { color: var(--accent); text-underline-offset: 2px; }
.post-body img { max-width: 100%; height: auto; border-radius: 12px; }
.post-body figure { margin: 2em 0; }
.post-body figcaption { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.post-body blockquote { padding-left: 18px; border-left: 3px solid var(--accent); color: var(--ink-2); }
.post-body table { width: 100%; border-collapse: collapse; font-size: 15px; }
.post-body th, .post-body td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.post-body hr { margin: 2.4em 0; border: 0; border-top: 1px solid var(--line); }
/* Closing call to action inside a post: a headline and one button. */
.post-cta { margin: 2.4em 0; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius, 16px); background: var(--tint); }
.post-cta > * + * { margin-top: 14px; }
.post-cta strong { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.share { display: flex; gap: 14px; margin-top: clamp(32px, 5vh, 48px); padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
.share a, .share button { all: unset; cursor: pointer; color: var(--ink-2); font-weight: 500; }
.share a:hover, .share button:hover { color: var(--accent); }

/* A few imported posts set small labels in Roboto Mono inline; the site uses Manrope only. */
.post-body [style*="Roboto Mono"] { font-family: var(--font) !important; font-size: 14px !important; font-weight: 600 !important; letter-spacing: 0 !important; text-transform: none !important; }
