/* Johnson's Blog — restored stylesheet */

:root {
  --accent: #8a6a3d;
  --accent-dark: #6b5130;
  --teal: #2f8f9d;
  --ink: #3a3a3a;
  --heading: #22201d;
  --muted: #82807c;
  --line: #e6e2db;
  --cream: #f6f4ef;
  --dark: #22201d;
  --wrap: 1120px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: #fff;
}

h1, h2, h3 { margin: 0; line-height: 1.3; color: var(--heading); }
p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

:where(a, button):focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: 4px;
}
.btn:hover { background: var(--accent-dark); color: #fff; text-decoration: none; }
.btn--ghost { background: transparent; border: 2px solid var(--accent); color: var(--accent); padding: 10px 28px; }
.btn--ghost:hover { background: var(--accent); color: #fff; }

.section { padding: 58px 0; }
.section-title { font-size: 28px; text-align: center; }
.section-title--left { text-align: left; margin-bottom: 14px; }
.section-title--sub { margin-top: 46px; }
.section-lead { max-width: 720px; margin: 12px auto 32px; text-align: center; color: var(--muted); }
.featured-by .section-title, .services .section-title, .blog .section-title { margin-bottom: 28px; }

/* ---------- header ---------- */

.top-bar { background: var(--dark); color: #ddd7cd; font-size: 14px; }
.top-bar__inner { display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: space-between; padding-top: 7px; padding-bottom: 7px; }
.top-bar a { color: #fff; font-weight: 700; }
.tagline { font-style: italic; }

.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: 92px; }
.brand { flex: none; }
.brand img { width: 190px; height: auto; }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; flex-wrap: wrap; }
.primary-nav a {
  display: block;
  padding: 10px 16px;
  color: var(--heading);
  font-weight: 700;
  font-size: 15px;
}
.primary-nav a:hover { color: var(--accent); text-decoration: none; }

.nav-toggle {
  display: none;
  position: relative;
  margin-left: auto;
  width: 44px; height: 40px;
  padding: 0;
  background: var(--accent);
  border: 0; border-radius: 5px;
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  position: absolute; left: 50%;
  width: 21px; height: 2px; margin-left: -10px;
  background: #fff; content: "";
}
.nav-toggle__bars { top: 19px; }
.nav-toggle__bars::before { top: -7px; left: 0; margin-left: 0; }
.nav-toggle__bars::after { top: 7px; left: 0; margin-left: 0; }

/* ---------- hero ---------- */

.hero { position: relative; background: #2b3a42; }
.hero img { width: 100%; max-height: 460px; object-fit: cover; }
.hero::after {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.5));
  content: "";
}
.hero__caption {
  position: absolute;
  z-index: 2;
  left: 0; right: 0; bottom: 12%;
  padding: 0 20px;
  text-align: center;
  color: #fff;
}
.hero h1 {
  font-size: clamp(28px, 4.6vw, 48px);
  color: #fff;
  text-shadow: 0 3px 12px rgba(0,0,0,.6);
}
.hero__caption p { margin-top: 10px; font-size: 18px; text-shadow: 0 2px 10px rgba(0,0,0,.6); }

/* ---------- featured by ---------- */

.featured-by { background: var(--cream); }
.featured-by__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px 60px;
}
.featured-by__list img { width: auto; max-height: 56px; }

/* ---------- about ---------- */

.about__grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}
.about__figure { margin: 0; }
.about__figure img { width: 100%; border-radius: 8px; }
.about__text p + p { margin-top: 12px; }
.signature { margin-top: 16px; font-size: 20px; font-style: italic; color: var(--accent); }

/* ---------- cta ---------- */

.cta {
  padding: 52px 0;
  background: var(--dark);
  color: #ddd7cd;
  text-align: center;
}
.cta h2 { color: #fff; font-size: 26px; margin-bottom: 14px; }
.cta p { max-width: 780px; margin: 0 auto; }
.cta p:last-child { margin-top: 22px; }

/* ---------- services ---------- */

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.services__grid > * { min-width: 0; }
.service {
  padding: 26px 24px;
  background: var(--cream);
  border-radius: 8px;
  border-top: 4px solid var(--accent);
}
.service h3 { font-size: 18px; margin-bottom: 10px; }

/* ---------- blog ---------- */

.blog { background: var(--cream); }
.posts { display: grid; gap: 22px; }
.post {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  background: #fff;
  border-radius: 8px;
}
/* contain, not cover: several covers are title cards with text to the edges */
.post img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: var(--cream); border-radius: 6px; }
.post h3 { font-size: 20px; margin-bottom: 8px; }
.post p { color: var(--muted); }
.posts--compact .post { grid-template-columns: 170px minmax(0, 1fr); }
.posts--compact h3 { font-size: 17px; margin-bottom: 0; }
.meta { font-size: 13px; color: var(--muted); margin-bottom: 5px; }

.blog__note {
  margin-top: 34px;
  text-align: center;
  font-style: italic;
  color: var(--muted);
}

/* ---------- footer ---------- */

.site-footer {
  padding: 44px 0 18px;
  background: var(--dark);
  color: #bdb7ac;
  font-size: 15px;
}
.site-footer h2 { margin-bottom: 12px; font-size: 19px; color: #fff; }
.site-footer a { color: #e0c89a; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 34px;
}
.footer__grid > * { min-width: 0; }
.footer__col li { padding: 4px 0; }
.footer__col ul { margin-top: 10px; }
.footer__logo { width: 96px; margin-top: 18px; border-radius: 8px; }
.site-footer .btn--ghost { border-color: #e0c89a; color: #e0c89a; }
.site-footer .btn--ghost:hover { background: #e0c89a; color: var(--dark); }

.copyright {
  max-width: var(--wrap);
  margin: 30px auto 0;
  padding: 15px 18px 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- scroll top ---------- */

.scroll-top {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 40;
  width: 44px; height: 44px;
  padding: 0;
  background: var(--accent);
  border: 0; border-radius: 50%;
  cursor: pointer;
}
.scroll-top svg { width: 26px; height: 26px; margin: 0 auto; fill: #fff; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .about__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .about__figure img { max-width: 300px; }
  .services__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
  .section { padding: 40px 0; }
  .section-title { font-size: 23px; }

  .nav-toggle { display: block; }
  .primary-nav { display: none; order: 3; width: 100%; margin-left: 0; padding-bottom: 8px; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: block; }
  .primary-nav li + li { border-top: 1px solid var(--line); }
  .site-header__inner { flex-wrap: wrap; }

  .post, .posts--compact .post { grid-template-columns: minmax(0, 1fr); }
  .post img { max-width: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
