/* ═══════════════════════════════════════════════════════════
   BLOG STYLESHEET — Brennan Keller
   Shared across the blog index and every post.
   Reuses the site's design tokens, fonts, nav, and footer so
   the writing section feels native to brennan-keller.com.
   ═══════════════════════════════════════════════════════════ */

/* ── FONTS ─────────────────────────────────────────────── */
@font-face {
  font-family: 'Rocket Sharpie Bold';
  src: url('../font-rocket-sharpie-bold.otf') format('opentype'),
       url('../font-rocket-sharpie-bold.ttf') format('truetype');
  font-display: swap;
}

/* ── TOKENS (mirror of the homepage :root) ─────────────── */
:root {
  --warm-white: #FAFAF6;
  --cream:      #F5EFE6;
  --cream-2:    #EDE3D6;
  --cream-3:    #E0D4C4;
  --stone:      #B8A890;

  --forest:     #263D34;
  --forest-2:   #1A2C24;
  --forest-3:   #102018;

  --ink:        #1C1814;
  --ink-2:      #3C3028;
  --ink-3:      #7A6E60;

  --amber:      #C08040;
  --amber-2:    #D49A60;
  --amber-pale: #EDD5A8;

  --sage:       #7A9A86;
  --sage-pale:  #C4D8CC;

  --rule:       rgba(28,24,20,.1);
  --rule-2:     rgba(28,24,20,.05);

  --sans:  'Outfit', -apple-system, system-ui, sans-serif;
  --serif: 'Iowan Old Style', 'Palatino Linotype', 'Palatino', Georgia, serif;
  --hand:  'Rocket Sharpie Bold', cursive;
  --type:  'Special Elite', 'Courier New', monospace;

  --ease:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --measure: 720px;
}

/* ── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ── NAV (matches the homepage) ────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 60px; padding: 0 56px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(245,239,230,.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 1px 24px rgba(28,24,20,.06);
}
.nav-logo {
  font-family: var(--hand); font-size: 24px; font-weight: 700;
  color: var(--ink); text-decoration: none;
}
.nav-logo span { color: var(--amber); }
.nav-links {
  display: flex; gap: 40px; list-style: none;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-link-wrap { position: relative; padding-bottom: 2px; overflow: hidden; }
.nav-link-wrap a {
  font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3); transition: color .2s; text-decoration: none;
}
.nav-link-wrap a:hover, .nav-link-wrap a[aria-current="page"] { color: var(--ink); }
.nav-link-wrap a[aria-current="page"] { color: var(--amber); }
.nav-link-line {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 1px;
  background: var(--amber); transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav-link-wrap:hover .nav-link-line { transform: scaleX(1); }
.nav-cta {
  font-size: 10px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--amber); transition: opacity .2s;
  text-decoration: none;
}
.nav-cta:hover { opacity: .65; }

/* ── SHARED LABELS ─────────────────────────────────────── */
.eyebrow {
  font-family: var(--type); font-size: 12px; font-weight: 400;
  letter-spacing: .18em; text-transform: uppercase; color: var(--amber-2);
}

/* ═══════════════════════════════════════════════════════
   BLOG INDEX
   ═══════════════════════════════════════════════════════ */
.blog-head {
  max-width: 920px; margin: 0 auto; padding: 132px 56px 40px;
  display: flex; align-items: flex-start; gap: 30px;
}
.blog-avatar {
  flex: 0 0 auto; width: 120px; height: 120px; margin-top: 6px;
  border-radius: 50%; object-fit: cover; object-position: 50% 50%;
  box-shadow: 0 10px 30px rgba(28,24,20,.18);
}
.blog-head .eyebrow { display: block; margin-bottom: 16px; }
.blog-head h1 {
  font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(40px, 6vw, 76px); font-weight: 900;
  letter-spacing: -.04em; line-height: .92; color: var(--ink);
  margin: 0 0 22px; max-width: 760px;
}
.blog-head h1 .soft { color: var(--stone); }
.blog-head .lede {
  font-size: 18px; line-height: 1.7; color: var(--ink-2); max-width: 620px;
}

.post-list {
  max-width: 920px; margin: 0 auto; padding: 24px 56px 96px;
  list-style: none;
}
.post-card {
  display: block; text-decoration: none; color: inherit;
  padding: 34px 0; border-top: 1px solid var(--rule);
  transition: padding-left .35s var(--ease-out);
}
.post-card:last-child { border-bottom: 1px solid var(--rule); }
.post-card:hover { padding-left: 10px; }
.post-meta {
  font-family: var(--type); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3);
  display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 12px;
}
.post-meta .tag { color: var(--amber); }
.post-card h2 {
  font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(24px, 3.4vw, 34px); font-weight: 800;
  letter-spacing: -.025em; line-height: 1.08; color: var(--ink);
  margin: 0 0 12px; max-width: 760px;
}
.post-card:hover h2 { color: var(--amber); }
.post-card .dek {
  font-size: 16.5px; line-height: 1.65; color: var(--ink-2); max-width: 640px;
}
.post-card .more {
  display: inline-block; margin-top: 16px;
  font-family: var(--type); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3);
}
.post-card:hover .more { color: var(--amber); }

/* ═══════════════════════════════════════════════════════
   ARTICLE (single post)
   ═══════════════════════════════════════════════════════ */
.article-head {
  max-width: var(--measure); margin: 0 auto; padding: 128px 24px 0;
}
.article-back {
  display: inline-block; margin-bottom: 30px;
  font-family: var(--type); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3);
  text-decoration: none; padding-bottom: 3px;
  border-bottom: 1px solid var(--rule);
}
.article-back:hover { color: var(--amber); border-color: var(--amber); }
.article-meta {
  font-family: var(--type); font-size: 11.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3);
  display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px;
}
.article-meta .tag { color: var(--amber); }
.article-head h1 {
  font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(34px, 5.2vw, 60px); font-weight: 900;
  letter-spacing: -.035em; line-height: 1.0; color: var(--ink);
  margin: 0 0 22px;
}
.article-head .standfirst {
  font-size: 20px; line-height: 1.6; color: var(--ink-2);
  font-weight: 400; margin: 0 0 8px;
}
.article-rule {
  max-width: var(--measure); margin: 36px auto 0; padding: 0 24px;
}
.article-rule hr {
  border: 0; border-top: 1px solid var(--rule);
}

.article-body {
  max-width: var(--measure); margin: 0 auto; padding: 36px 24px 0;
  font-size: 19px; line-height: 1.78; color: var(--ink-2);
}
.article-body > * + * { margin-top: 1.35em; }
.article-body p { font-size: 19px; line-height: 1.78; }
.article-body h2 {
  font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 28px; font-weight: 800; letter-spacing: -.02em;
  line-height: 1.15; color: var(--ink); margin-top: 1.9em;
}
.article-body h3 {
  font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 21px; font-weight: 700; letter-spacing: -.01em;
  color: var(--ink); margin-top: 1.7em;
}
.article-body a {
  color: var(--ink); text-decoration: underline;
  text-decoration-color: var(--amber); text-underline-offset: 3px;
  text-decoration-thickness: 1.5px; transition: color .2s;
}
.article-body a:hover { color: var(--amber); }
.article-body strong { color: var(--ink); font-weight: 700; }
.article-body em { font-style: italic; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li { margin-top: .5em; line-height: 1.7; }
.article-body li::marker { color: var(--amber); }
.article-body blockquote {
  border-left: 3px solid var(--amber); padding: 4px 0 4px 26px;
  margin-left: 0; color: var(--ink);
  font-size: 23px; line-height: 1.5; font-weight: 500;
  letter-spacing: -.01em;
}
.article-body blockquote p { font-size: inherit; line-height: inherit; }
.article-body figure { margin: 2em 0; }
.article-body figure img { border-radius: 4px; }
.article-body figcaption {
  font-family: var(--type); font-size: 12px; letter-spacing: .04em;
  color: var(--ink-3); margin-top: 10px; text-align: center;
}
.article-body code {
  font-family: var(--type); font-size: .85em;
  background: var(--cream-2); padding: 2px 6px; border-radius: 3px;
}

/* author / sign-off */
.article-foot {
  max-width: var(--measure); margin: 56px auto 0; padding: 0 24px;
}
.article-foot hr { border: 0; border-top: 1px solid var(--rule); margin-bottom: 28px; }
.article-byline {
  display: flex; align-items: center; gap: 16px;
}
.article-byline .ab-mark {
  font-family: var(--hand); font-size: 30px; color: var(--ink); line-height: 1;
}
.article-byline .ab-mark span { color: var(--amber); }
.article-byline .ab-avatar {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
  flex: 0 0 auto; box-shadow: 0 4px 14px rgba(28,24,20,.16);
}
.article-byline .ab-text { font-size: 15px; line-height: 1.55; color: var(--ink-3); }
.article-byline .ab-text strong { color: var(--ink); }
.article-byline .ab-text a { color: var(--amber); text-decoration: none; }
.article-byline .ab-text a:hover { text-decoration: underline; }

.article-cta {
  max-width: var(--measure); margin: 44px auto 0; padding: 0 24px 96px;
}
.article-cta-inner {
  background: var(--forest); color: var(--cream);
  border-radius: 6px; padding: 36px 40px;
}
.article-cta-inner h3 {
  font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px;
}
.article-cta-inner p { color: var(--sage-pale); font-size: 16px; line-height: 1.6; margin-bottom: 20px; }
.article-cta-inner a {
  display: inline-block; font-family: var(--sans);
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--forest); background: var(--amber-pale);
  padding: 13px 24px; border-radius: 2px; text-decoration: none;
  transition: background .2s, transform .4s var(--ease-out);
}
.article-cta-inner a:hover { background: #fff; transform: translateY(-2px); }

/* ── FOOTER (matches the homepage) ─────────────────────── */
footer {
  padding: 24px 56px; background: var(--cream-3);
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
footer p { font-family: var(--hand); font-size: 14px; color: var(--ink-3); }
footer .foot-links {
  margin-top: 10px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  font-family: var(--type); opacity: .7;
}
footer .foot-links a { color: inherit; text-decoration: none; margin-right: 14px; }
footer .foot-links a:hover { color: var(--amber); }

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 720px) {
  .nav { padding: 0 24px; }
  .nav-links { display: none; }
  .blog-head { padding: 112px 24px 28px; gap: 18px; align-items: center; }
  .blog-avatar { width: 76px; height: 76px; margin-top: 0; }
  .post-list { padding: 16px 24px 72px; }
  .article-head { padding: 104px 22px 0; }
  .article-body { padding: 30px 22px 0; font-size: 18px; }
  .article-body p { font-size: 18px; }
  .article-foot, .article-cta, .article-rule { padding-left: 22px; padding-right: 22px; }
  .article-cta-inner { padding: 28px 24px; }
  footer { padding: 20px 24px; }
}
