/* Quoted Ghost theme — brand-matched to gotquoted.com (site/style.css).
   Editorial, evidence-led, restrained. */

:root {
  --bg-white: #ffffff;
  --bg-surface: #f7f7f5;
  --text-primary: #1a1a1a;
  --text-secondary: #6b6b6b;
  --border: #e5e5e3;
  --accent-navy: #1e3a5f;
  --accent-navy-hover: #152d4a;
  --accent-amber: #f2503b;
  --accent-amber-hover: #d9402d;
  --data-positive: #2d8a4e;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-headline: 'Instrument Serif', Georgia, 'Times New Roman', serif;

  --container-max: 760px;
  --container-wide: 1100px;
  --transition: 0.2s ease;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-family);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-amber); }

img { max-width: 100%; height: auto; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header / nav --- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header__inner {
  max-width: var(--container-wide);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 80px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.site-logo {
  font-family: var(--font-headline);
  font-size: 28px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.site-logo:hover { color: var(--text-primary); }
.site-logo img { height: 53px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 22px; position: relative; }
.site-nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}
.site-nav a:hover { color: var(--text-primary); }
.site-nav__cta {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-navy) !important;
}

/* --- Home intro --- */
.page-intro { padding: 72px 0 40px; text-align: center; }
.page-intro__title {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.page-intro__desc {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Post feed --- */
.site-main { min-height: 60vh; padding-bottom: 80px; }
.post-feed {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 32px;
  padding: 24px 0 0;
}
.post-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-white);
  transition: border-color var(--transition), transform var(--transition);
}
.post-card:hover { border-color: var(--accent-navy); transform: translateY(-2px); }
.post-card__link { display: block; color: inherit; }
.post-card__link:hover { color: inherit; }
.post-card__image { aspect-ratio: 16 / 9; background-size: cover; background-position: center; background-color: var(--bg-surface); }
.post-card__body { padding: 22px 24px 26px; }
.post-card__tag {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-amber);
}
.post-card__title {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 8px 0 10px;
}
.post-card__excerpt { color: var(--text-secondary); font-size: 16px; margin: 0 0 16px; }
.post-card__meta { font-family: var(--font-display); font-size: 13px; color: var(--text-secondary); display: flex; gap: 8px; }

/* --- Single post --- */
.post { padding-top: 56px; }
.post-header { text-align: center; margin-bottom: 36px; }
.post-header__tag {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-amber);
}
.post-header__title {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: 52px;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 14px 0 18px;
}
.post-header__excerpt { font-size: 21px; line-height: 1.5; color: var(--text-secondary); margin: 0 auto 22px; max-width: 640px; }
.post-header__meta {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.post-header__author { font-weight: 600; color: var(--text-primary); }
.post-image { margin: 0 0 40px; border-radius: 12px; overflow: hidden; }
.post-image figcaption { font-size: 13px; color: var(--text-secondary); text-align: center; padding-top: 8px; }

/* --- Post content typography (gh-content) --- */
.gh-content { font-size: 19px; line-height: 1.75; }
.gh-content > * + * { margin-top: 1.4em; }
.gh-content h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-top: 2em;
}
.gh-content h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; margin-top: 1.8em; }
.gh-content a { text-decoration: underline; text-underline-offset: 2px; }
.gh-content ul, .gh-content ol { padding-left: 1.3em; }
.gh-content li + li { margin-top: 0.4em; }
.gh-content blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--accent-amber);
  color: var(--text-secondary);
  font-style: italic;
}
.gh-content hr { border: none; border-top: 1px solid var(--border); margin: 2.4em 0; }
.gh-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: var(--bg-surface);
  padding: 2px 6px;
  border-radius: 4px;
}
.gh-content pre {
  background: #1a1a1a;
  color: #f7f7f5;
  padding: 18px 20px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 15px;
}
.gh-content pre code { background: none; padding: 0; color: inherit; }
.gh-content img { border-radius: 10px; }
.gh-content figcaption { font-size: 14px; color: var(--text-secondary); text-align: center; margin-top: 8px; }

/* Koenig editor card widths — required so wide/full-bleed cards break out
   of the narrow text column. */
.gh-content .kg-width-wide {
  width: 85vw;
  max-width: 1100px;
  margin-left: 50%;
  transform: translateX(-50%);
}
.gh-content .kg-width-full {
  width: 100vw;
  max-width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  border-radius: 0;
}
.gh-content .kg-width-full img { border-radius: 0; }

/* --- Post footer tags --- */
.post-footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }
.post-footer__tags { display: flex; flex-wrap: wrap; gap: 10px; }
.post-footer__tag {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--text-secondary);
}

/* --- Pagination --- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 48px 0 0;
  font-family: var(--font-display);
  font-size: 15px;
}

/* --- Subscribe form --- */
.subscribe { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; }
.subscribe__input {
  font-family: var(--font-family);
  font-size: 14px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-white);
  color: var(--text-primary);
  min-width: 0;
}
.subscribe__input:focus { outline: none; border-color: var(--accent-navy); }
.subscribe__btn {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 16px;
  border: none;
  border-radius: 8px;
  background: var(--accent-amber);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition);
}
.subscribe__btn:hover { background: var(--accent-amber-hover); }
.subscribe__btn:disabled { opacity: 0.6; cursor: default; }
.subscribe__msg { font-size: 12.5px; margin: 0; width: 100%; min-height: 0; }
.subscribe__msg[data-state="ok"] { color: var(--data-positive); }
.subscribe__msg[data-state="error"] { color: var(--accent-amber-hover); }

/* nav variant — compact, inline */
.subscribe--nav { gap: 6px; }
.subscribe--nav .subscribe__input { width: 170px; padding: 7px 10px; }
.subscribe--nav .subscribe__btn { padding: 7px 13px; }
.subscribe--nav .subscribe__msg {
  position: absolute;
  top: 100%;
  right: 24px;
  width: auto;
  background: var(--bg-white);
  padding: 2px 8px;
  border-radius: 0 0 6px 6px;
}
.subscribe--nav .subscribe__msg:empty { display: none; }

/* footer variant — centered, roomier */
.subscribe--footer { justify-content: center; max-width: 440px; margin: 0 auto; }
.subscribe--footer .subscribe__input { flex: 1; min-width: 220px; padding: 11px 14px; font-size: 15px; }
.subscribe--footer .subscribe__btn { padding: 11px 20px; font-size: 15px; }
.subscribe--footer .subscribe__msg { text-align: center; }

/* --- Footer --- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-surface); padding: 48px 0 40px; }
.site-footer__inner { max-width: var(--container-wide); text-align: center; }
.site-footer__subscribe { margin: 0 auto 36px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.site-footer__subscribe-title { font-family: var(--font-headline); font-weight: 400; font-size: 26px; margin: 0 0 6px; }
.site-footer__subscribe-desc { color: var(--text-secondary); font-size: 15px; margin: 0 0 18px; }
.site-footer__note { color: var(--text-secondary); font-size: 15px; max-width: 620px; margin: 0 auto 10px; }
.site-footer__meta { font-family: var(--font-display); font-size: 13px; color: var(--text-secondary); }

/* --- Responsive --- */
@media (max-width: 720px) {
  body { font-size: 17px; }
  .post-feed { grid-template-columns: 1fr; gap: 28px; }
  .page-intro__title { font-size: 40px; }
  .post-header__title { font-size: 36px; }
  .gh-content { font-size: 18px; }
  .site-nav ul { display: none; }
  /* The compact nav form crowds small screens — the footer form covers
     mobile signups. */
  .subscribe--nav { display: none; }
  .site-logo img { height: 44px; }
}
