/* Resilient Agility theme. Tokens from the RA Design System v1.0. */
@font-face { font-family: "Source Sans 3"; src: url("../fonts/SourceSans3-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/SourceSans3-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
    --surface: #FFFFFF;
    --ink: #1E252B;
    --ink-muted: #646A70;
    --rule: #D5D7D9;
    --fill: #EEF0F1;
    --accent: #CC781C;
    --font: var(--gh-font-body, "Source Sans 3", Arial, sans-serif);
    --font-heading: var(--gh-font-heading, "Source Sans 3", Arial, sans-serif);
    --wrap: 1200px;
    --text: 720px;
    --gutter: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font); font-size: 20px; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: var(--ink-muted); }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.15; margin: 0; }
p { margin: 0; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--surface); padding: 12px 16px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 10; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap-text { max-width: calc(var(--text) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap-wide { max-width: calc(1000px + 2 * var(--gutter)); margin: 48px auto 0; padding: 0 var(--gutter); }
.section { padding-top: 96px; padding-bottom: 96px; }
.section-tight { padding-bottom: 96px; }
.section h2 { font-size: 40px; margin-bottom: 40px; }
.section-intro { margin: -24px 0 40px; }
.section-more { margin-top: 40px; font-weight: 700; }
.band-rule { border-top: 1px solid var(--rule); }
.band-fill { background: var(--fill); }
.muted { color: var(--ink-muted); }
.small { font-size: 16px; margin-top: 16px; }
.strong { font-weight: 700; }
.narrow-left > * { max-width: 680px; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 24px; padding-bottom: 24px; }
.site-title { font-size: 24px; font-weight: 700; text-decoration: none; }
.site-nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; font-size: 18px; }
.site-nav-links .nav { display: flex; flex-wrap: wrap; gap: 32px; list-style: none; margin: 0; padding: 0; }
.site-nav-links .nav a { text-decoration: none; }
.site-nav-links .nav-current a { font-weight: 700; }

/* Buttons: square corners, flat */
.btn { display: inline-block; font-family: var(--font); font-size: 20px; font-weight: 700; text-decoration: none; padding: 16px 32px; border: 1px solid transparent; border-radius: 0; cursor: pointer; line-height: 1.2; }
.btn-sm { font-size: 18px; padding: 12px 24px; }
.btn-accent { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.btn-accent:hover { color: var(--ink); background: #B86A16; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 48px; }

/* Hero */
.hero { padding-top: 128px; padding-bottom: 112px; }
.hero h1 { font-size: 72px; line-height: 1.08; max-width: 900px; }
.lede { font-size: 24px; line-height: 1.45; max-width: 760px; margin-top: 32px; }
.lede-sm { font-size: 22px; line-height: 1.5; margin: 24px 0 40px; }
.hero .btn-accent { margin-top: 48px; }
.hero .btn-row .btn-accent { margin-top: 0; }
.hero-note { margin-top: 64px; max-width: 760px; }
.page-title { font-size: 56px; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; }
.card { border-top: 1px solid var(--ink); padding-top: 24px; }
.card-tag { font-size: 16px; color: var(--ink-muted); }
.card-tag a { color: var(--ink-muted); }
.card-title { font-size: 28px; line-height: 1.25; margin-top: 12px; }
.card-title a { text-decoration: none; }
.card-excerpt { font-size: 18px; margin-top: 16px; }

/* Topics */
.topic-list { display: flex; flex-direction: column; border-bottom: 1px solid var(--rule); }
.topic-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; padding: 28px 0; border-top: 1px solid var(--rule); text-decoration: none; font-size: 18px; }
.topic-name { font-size: 24px; font-weight: 700; }

/* Work With Us block */
.split { display: flex; flex-wrap: wrap; gap: 64px; }
.split > div { flex: 1 1 420px; min-width: 0; }
.split h2 { margin-bottom: 0; }
.price-list { border-bottom: 1px solid var(--rule); }
.price-row { display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; border-top: 1px solid var(--rule); }
.price-row-first { border-top-color: var(--ink); }

/* About */
.about { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.about > div { flex: 1 1 480px; min-width: 0; }
.about h2 { margin-bottom: 0; }
.about-photo { flex: 0 0 280px; width: 280px; height: 280px; object-fit: cover; }
.values { font-size: 18px; line-height: 1.7; margin-bottom: 24px; }

/* Subscribe */
.subscribe-form { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.subscribe-form input { flex: 1 1 320px; min-width: 0; font-family: var(--font); font-size: 20px; padding: 16px 20px; border: 1px solid var(--ink-muted); border-radius: 0; background: var(--surface); color: var(--ink); }
.form-msg { display: none; flex-basis: 100%; font-size: 16px; }
.subscribe-form.success .form-msg-success, .subscribe-form.error .form-msg-error { display: block; }
.subscribe-form.loading button { opacity: .7; }
.subscribe-box { background: var(--fill); padding: 48px; margin-top: 72px; }
.subscribe-box h2 { font-size: 32px; }
.subscribe-box > p { margin: 16px 0 28px; }

/* Post */
.post-head { padding-top: 112px; }
.post-head h1 { font-size: 56px; line-height: 1.1; margin-top: 16px; }
.dek { font-size: 24px; line-height: 1.45; color: var(--ink-muted); margin-top: 24px; }
.byline { font-size: 18px; color: var(--ink-muted); margin-top: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--rule); }
.feature figcaption { font-size: 16px; color: var(--ink-muted); margin-top: 12px; }
.post-end { padding-bottom: 96px; }
.offer-block { border-top: 1px solid var(--ink); padding-top: 32px; margin-top: 72px; }
.offer-block h2 { font-size: 32px; }
.offer-block p { margin: 16px 0 28px; }
.series-nav { margin-top: 72px; border-top: 1px solid var(--rule); padding-top: 24px; }
.series-head { font-weight: 700; }
.series-nav ol { margin: 12px 0 0; padding-left: 24px; }
.author-block { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--rule); }
.author-photo { width: 96px; height: 96px; object-fit: cover; }
.author-block > div { flex: 1 1 300px; min-width: 0; }
.author-name { font-weight: 700; }
.author-bio { font-size: 18px; margin-top: 8px; }

/* Post content (Koenig) */
.gh-content { font-size: 21px; line-height: 1.65; }
.gh-content > * + * { margin-top: 28px; }
.gh-content h2 { font-size: 32px; line-height: 1.25; margin-top: 56px; }
.gh-content h3 { font-size: 26px; margin-top: 48px; }
.gh-content blockquote { margin: 48px 0 0; padding: 0; border: 0; font-size: 32px; line-height: 1.35; font-weight: 700; }
.gh-content ul, .gh-content ol { padding-left: 28px; }
.gh-content li + li { margin-top: 8px; }
.gh-content figcaption { font-size: 16px; color: var(--ink-muted); margin-top: 12px; }
.gh-content hr { border: 0; border-top: 1px solid var(--rule); margin: 56px 0; }
.gh-content table { width: 100%; border-collapse: collapse; font-size: 18px; }
.gh-content th { text-align: left; border-bottom: 1px solid var(--ink); padding: 0 16px 12px 0; }
.gh-content td { border-bottom: 1px solid var(--rule); padding: 16px 16px 16px 0; }
.kg-width-wide { position: relative; width: 85vw; min-width: 100%; margin-left: calc(50% - 50vw); transform: translateX(calc(50vw - 50%)); max-width: 1000px; }
.kg-width-full { position: relative; width: 100vw; margin-left: calc(50% - 50vw); }
.kg-width-full img { width: 100%; }

/* Pagination */
.pagination { display: flex; justify-content: space-between; gap: 24px; margin-top: 64px; font-size: 18px; }
.pagination .page-number { color: var(--ink-muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); font-size: 16px; color: var(--ink-muted); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.footer-grid a { display: block; color: var(--ink-muted); text-decoration: none; line-height: 1.9; }
.footer-grid a:hover { color: var(--ink); }
.footer-head { font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.footer-base { padding-bottom: 40px; }

@media (max-width: 720px) {
    :root { --gutter: 24px; }
    body { font-size: 18px; }
    .hero { padding-top: 72px; padding-bottom: 64px; }
    .hero h1 { font-size: 44px; }
    .page-title, .post-head h1 { font-size: 40px; }
    .section { padding-top: 64px; padding-bottom: 64px; }
    .section h2 { font-size: 32px; }
    .topic-row { grid-template-columns: 1fr; gap: 8px; }
    .about-photo { width: 200px; height: 200px; flex-basis: 200px; }
    .subscribe-box { padding: 32px 24px; }
    .gh-content { font-size: 19px; }
}
