:root {
    --accent: var(--ghost-accent-color, #1f5c4a);
    --text: #1b1d1f;
    --muted: #5d636a;
    --line: #e3e5e8;
    --bg: #ffffff;
    --soft: #f5f6f4;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --serif: Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
    :root { --text: #e8e9ea; --muted: #a2a7ad; --line: #2c3034; --bg: #141618; --soft: #1c1f22; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 18px; line-height: 1.6; font-family: var(--gh-font-body, var(--font)); }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--gh-font-heading, var(--serif)); line-height: 1.2; margin: 0 0 .5em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.center { text-align: center; }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.site-title { font: 700 22px/1 var(--serif); color: var(--text); text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.site-nav ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a { color: var(--text); text-decoration: none; font-size: 16px; }
.site-nav a:hover { color: var(--accent); }
.site-footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 32px 0; font-size: 15px; color: var(--muted); }
.site-footer ul { list-style: none; display: flex; gap: 16px; padding: 0; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.disclaimer { font-weight: 600; color: var(--text); }

/* Buttons and sign-up */
.btn { display: inline-block; background: var(--accent); color: #fff !important; border: 0; border-radius: 6px; padding: 12px 20px; font: 600 16px/1.2 var(--font); cursor: pointer; text-decoration: none; }
.btn-small { padding: 8px 14px; font-size: 15px; }
.btn-outline { background: transparent; color: var(--accent) !important; border: 2px solid var(--accent); }
.signup-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.signup-email { flex: 1 1 260px; padding: 12px 14px; font-size: 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--text); }
.signup-note { width: 100%; margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.signup-msg { display: none; width: 100%; margin: 4px 0 0; font-size: 15px; }
.signup-form.success .signup-success, .signup-form.error .signup-error { display: block; }
.signup-form.success .signup-email, .signup-form.success .btn, .signup-form.success .signup-note { display: none; }
.signup-form.loading .btn { opacity: .6; }

/* Home */
.hero { padding: 72px 0 56px; }
.hero-title { font-size: clamp(34px, 6vw, 52px); }
.hero-sub { font-size: 20px; color: var(--muted); }
.features { padding: 24px 0 48px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.feature h3 { font-size: 22px; }
.band { background: var(--soft); padding: 48px 0; }
.sample, .latest, .promise { padding: 48px 0 0; }

/* Lists */
.page-title { font-size: clamp(30px, 5vw, 42px); margin-top: 48px; }
.page-sub { color: var(--muted); }
.post-card { padding: 22px 0; border-bottom: 1px solid var(--line); }
.post-card-date { font-size: 14px; color: var(--muted); }
.post-card-title { font-size: 24px; margin: 4px 0 6px; }
.post-card-title a { color: var(--text); text-decoration: none; }
.post-card-title a:hover { color: var(--accent); }
.post-card-excerpt { margin: 0; color: var(--muted); }
.post-card-lock { font-size: 13px; color: var(--accent); font-weight: 600; }
.pagination { display: flex; justify-content: space-between; padding: 24px 0; color: var(--muted); }

/* Articles */
.article-header { padding: 48px 0 16px; }
.article-date { font-size: 15px; color: var(--muted); }
.article-title { font-size: clamp(30px, 5vw, 44px); }
.article-summary { font-size: 20px; color: var(--muted); }
.gh-content > * + * { margin-top: 1.1em; }
.gh-content h2 { margin-top: 1.8em; font-size: 28px; }
.gh-content h3 { margin-top: 1.5em; font-size: 22px; }
.gh-content blockquote { margin-left: 0; padding-left: 18px; border-left: 3px solid var(--accent); color: var(--muted); }
.gh-content table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.gh-content th, .gh-content td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.gh-content figcaption { font-size: 14px; color: var(--muted); text-align: center; }
.article-signup { margin-top: 48px; padding: 28px; background: var(--soft); border-radius: 8px; }

/* Ghost editor card widths */
.kg-width-wide { position: relative; width: 85vw; min-width: 100%; margin-left: calc(50% - 50vw); transform: translateX(calc(50vw - 50%)); }
.kg-width-full { position: relative; width: 100vw; left: 50%; margin-left: -50vw; }
.kg-width-full img { width: 100%; }
@media (max-width: 760px) { .kg-width-wide { width: 100%; margin-left: 0; transform: none; } }


/* Language menu */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lang-form { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.lang-select { font: inherit; font-size: 0.9rem; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 6px 28px 6px 10px; min-height: 36px; cursor: pointer; }
.lang-select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
