/* ==========================================================================
   Small Business Happenings — style.css
   Direction: "Main Street" palette (cream / forest / ochre) + Spectral / IBM Plex Sans
   Compiled equivalent of css/sass/style.scss. Edit both together.
   ========================================================================== */

:root {
  --paper: #f5f1e8;
  --paper-2: #fbf9f3;
  --card: #ffffff;
  --ink: #14261e;
  --ink-2: #1c3327;
  --ink-soft: #3c473f;
  --muted: #656c62;
  --ochre: #c08a2d;
  --ochre-deep: #8f6114;
  --line: #e4ddcf;
  --line-strong: #cdc5b3;

  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1120px;
  --wrap-narrow: 760px;
}

/* ----- base ----- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: 700; line-height: 1.16; margin: 0 0 .5em; letter-spacing: -.005em; }
p { margin: 0 0 1.1rem; }
a { color: var(--ochre-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: var(--wrap-narrow); margin-left: auto; margin-right: auto; }
.skip-nav { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 200; }
.skip-nav:focus { left: 8px; top: 8px; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ochre-deep);
  margin: 0 0 .9rem;
}

/* ----- masthead ----- */
.masthead { background: var(--paper); border-bottom: 1px solid var(--line-strong); }
.masthead-top {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  padding: 9px 0; border-bottom: 1px solid var(--line);
}
.masthead-top .tagline-mini { font-weight: 600; }
.masthead-main { text-align: center; padding: 26px 0 18px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-lockup svg { width: 46px; height: 46px; flex: 0 0 auto; }
.brand-wm { text-align: left; line-height: 1.02; }
.brand-wm .l1 { display: block; font-family: var(--serif); font-weight: 700; font-size: 27px; color: var(--ink); letter-spacing: -.01em; }
.brand-wm .l2 { display: block; font-family: var(--serif); font-weight: 500; font-size: 25px; color: var(--ochre-deep); }

.mast-nav { border-top: 1px solid var(--line); }
.mast-nav .navbar-nav { gap: 4px; }
.mast-nav .nav-link {
  font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); padding: 13px 16px;
}
.mast-nav .nav-link:hover { color: var(--ochre-deep); }
.mast-nav .btn-subscribe {
  border: 1px solid var(--ink); border-radius: 2px; color: var(--ink);
  padding: 9px 18px; margin-left: 6px; text-transform: uppercase; font-size: 12.5px; letter-spacing: .1em; font-weight: 600;
}
.mast-nav .btn-subscribe:hover { background: var(--ink); color: var(--paper); }
.mast-nav .nav-link.active { color: var(--ochre-deep); }
.navbar-toggler { border: 1px solid var(--line-strong); border-radius: 2px; padding: 6px 10px; font-size: 13px; }

/* ----- buttons ----- */
.btn-ink {
  display: inline-block; background: var(--ink); color: var(--paper);
  font-family: var(--sans); font-weight: 600; font-size: 14px; letter-spacing: .06em;
  padding: 13px 26px; border-radius: 2px; border: 1px solid var(--ink); text-decoration: none; transition: background .15s, color .15s;
}
.btn-ink:hover { background: transparent; color: var(--ink); }
.btn-outline {
  display: inline-block; background: transparent; color: var(--ink);
  font-family: var(--sans); font-weight: 600; font-size: 14px; letter-spacing: .06em;
  padding: 12px 24px; border-radius: 2px; border: 1px solid var(--line-strong); text-decoration: none;
}
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.link-arrow { font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.link-arrow:hover .arw { transform: translateX(3px); }
.link-arrow .arw { display: inline-block; transition: transform .15s; }

/* ----- section rhythm ----- */
section { padding: 72px 0; }
.section-eyebrow-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 34px; }
.section-eyebrow-row h2 { margin: 0; font-size: 24px; letter-spacing: .01em; }
.section-eyebrow-row .kick { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ochre-deep); }

/* ----- lede / hero ----- */
.lede { padding: 72px 0 60px; }
.lede-banner { display: block; margin-top: 40px; }
.lede-banner img { width: 100%; height: clamp(230px, 42vw, 520px); object-fit: cover; object-position: center 42%; display: block; border-radius: 5px; border: 1px solid var(--line-strong); }
.lede h1 { font-size: clamp(2.3rem, 5.4vw, 3.7rem); font-weight: 700; max-width: 20ch; margin-bottom: .35em; }
.lede .standfirst { font-family: var(--serif); font-size: clamp(1.15rem, 2.1vw, 1.5rem); color: var(--ink-soft); font-weight: 400; max-width: 46ch; line-height: 1.45; }
.lede .lede-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.lede-rule { height: 1px; background: var(--line); margin-top: 60px; }

/* ----- what I cover ----- */
.covers { background: var(--paper-2); }
.covers-grid { display: grid; grid-template-columns: 1fr; gap: 34px; }
@media (min-width: 820px) { .covers-grid { grid-template-columns: 1fr 1fr; gap: 54px; } }
.cover-item { border-top: 2px solid var(--ochre); padding-top: 18px; }
.cover-item .ck { font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ochre-deep); display: block; margin-bottom: 10px; }
.cover-item h3 { font-size: 22px; margin-bottom: .4em; }
.cover-item p { margin: 0; color: var(--ink-soft); }

/* ----- latest / blog feed ----- */
.feed-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 680px) { .feed-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .feed-grid { grid-template-columns: 1fr 1fr 1fr; } }
.post-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; height: 100%; }
.post-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.post-card .thumb { aspect-ratio: 16 / 10; background: var(--paper-2); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .pc-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.post-card .pc-kicker { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ochre-deep); margin-bottom: 9px; }
.post-card h3 { font-size: 20px; line-height: 1.2; margin-bottom: .45em; }
.post-card p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 1rem; }
.post-card .pc-more { margin-top: auto; font-family: var(--sans); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.feed-empty { grid-column: 1 / -1; text-align: center; border: 1px dashed var(--line-strong); border-radius: 4px; padding: 48px 24px; background: var(--paper-2); }
.feed-empty p { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); margin: 0 auto .3rem; max-width: 44ch; }
.feed-empty small { color: var(--muted); }
.feed-foot { text-align: center; margin-top: 40px; }
.spinner-wrap { grid-column: 1 / -1; text-align: center; padding: 40px 0; color: var(--muted); }

/* ----- about ----- */
.about { background: var(--ink); color: #e7e9e4; }
.about h2, .about h3 { color: #fff; }
.about .eyebrow { color: #d8b06a; }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
@media (min-width: 860px) { .about-grid { grid-template-columns: 220px 1fr; gap: 56px; } }
.about-photo { }
.about-photo img { width: 190px; height: 190px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.14); }
.about-photo .byline { margin-top: 16px; }
.about-photo .byline .nm { font-family: var(--serif); font-size: 20px; color: #fff; }
.about-photo .byline .rl { font-size: 13px; color: #a9b3ab; letter-spacing: .04em; }
.about-body h2 { font-size: 30px; max-width: 20ch; }
.about-body p { color: #cfd6cf; }
.about-body p a { color: #e9c987; }
.about-body p a:hover { color: #fff; }

/* ----- editorial standards ----- */
.standards .std-list { display: grid; grid-template-columns: 1fr; gap: 26px; margin-top: 6px; }
@media (min-width: 820px) { .standards .std-list { grid-template-columns: 1fr 1fr; gap: 26px 48px; } }
.std-item { border-top: 2px solid var(--ochre); padding-top: 16px; }
.std-item h3 { font-size: 18px; margin-bottom: .3em; }
.std-item p { margin: 0; font-size: 15.5px; color: var(--ink-soft); }
.standards-note { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); max-width: 62ch; }

/* ----- subscribe ----- */
.subscribe { background: var(--paper-2); }
.subscribe-card { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 44px clamp(22px, 4vw, 52px); max-width: 720px; margin: 0 auto; }
.subscribe-card .eyebrow { text-align: center; }
.subscribe-card h2 { text-align: center; font-size: 30px; margin-bottom: .3em; }
.subscribe-card .sub-lead { text-align: center; color: var(--ink-soft); max-width: 48ch; margin: 0 auto 30px; }
.sub-form .form-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 620px) { .sub-form .form-row { grid-template-columns: 1fr 1fr; } }
.sub-form label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.sub-form .form-control {
  width: 100%; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 2px;
  padding: 12px 14px; font-family: var(--sans); font-size: 16px; color: var(--ink);
}
.sub-form .form-control:focus { outline: none; border-color: var(--ochre); box-shadow: 0 0 0 3px rgba(192,138,45,.16); }
.sub-consent { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0 6px; }
.sub-consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--ochre-deep); flex: 0 0 auto; }
.sub-consent label { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 14.5px; color: var(--ink-soft); margin: 0; }
.sub-hp { position: absolute; left: -5000px; height: 0; overflow: hidden; }
.sub-submit { text-align: center; margin-top: 22px; }
.sub-privacy { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 16px; }
.help-block { color: #b23a2e; font-size: 13px; margin: 6px 0 0; }
.control-group.error .form-control { border-color: #b23a2e; }

/* ----- footer ----- */
.site-footer { background: var(--ink-2); color: #c6cdc6; padding: 56px 0 30px; }
.site-footer .brand-wm .l1 { color: #fff; }
.site-footer .brand-wm .l2 { color: var(--ochre); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: start; }
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.4fr 1fr; } }
.footer-about p { color: #aab3ab; font-size: 14.5px; max-width: 46ch; margin-top: 16px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.footer-nav a { color: #dfe4df; text-decoration: none; font-size: 14px; font-weight: 500; }
.footer-nav a:hover { color: var(--ochre); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; color: #97a099; }
.footer-bottom a { color: #97a099; }
.footer-bottom a:hover { color: var(--ochre); }
.footer-legal a { text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a + a { margin-left: 18px; }

/* ----- back to top ----- */
.totop {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: center; text-decoration: none;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s;
  box-shadow: 0 4px 14px rgba(20,38,30,.28);
}
.totop.show { opacity: 1; visibility: visible; transform: none; }
.totop svg { width: 18px; height: 18px; }

/* ----- reveal on scroll ----- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ----- legal / content pages ----- */
.legal { padding: 64px 0 72px; }
.legal h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); margin-bottom: .4em; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 2rem; }
.legal h2 { font-size: 22px; margin-top: 2.1rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 1.15rem; margin: 0 0 1.1rem; }
.legal li { margin-bottom: .5rem; }

/* ----- thank-you page ----- */
.ty { min-height: 52vh; display: flex; align-items: center; text-align: center; padding: 80px 0; }
.ty h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.ty p { max-width: 52ch; margin-left: auto; margin-right: auto; color: var(--ink-soft); }
