/* Shared blog styles, copied from the homepage (index.html) plus article styles */
:root {
  --forest: #0e4316;      /* brand Dark Green 2 (primary) */
  --forest-deep: #00301d; /* brand Dark Green 1 */
  --sage: #799c53;        /* brand Green 1 */
  --sage-text: #5f8a3a;   /* deeper Green 1 for large text on light (AA 3:1+) */
  --green-3: #82c55d;     /* brand Green 3 accent */
  --green-light: #b9dba0; /* brand Light Green 1 */
  --sage-soft: #dbecca;   /* brand Light Green 2 */
  --sage-softer: #eef5e3; /* brand Light Green 3 */
  --paper: #f4f9f0;       /* brand Light Green 4 */
  --card: #ffffff;
  --ink: #17231a;
  --muted: #4d5a50;
  --rule: #c1c1c1;        /* brand Gray */
  --rule-light: #dedede;  /* brand Light Gray */
  --tan: #82c55d;         /* decorative accent, mapped to brand Green 3 */
  --leather: #00301d;     /* accent text, mapped to brand Dark Green 1 */
  --on-dark: #eef5e3;
  --on-dark-muted: #b9dba0;
  --danger: #9b2c1f;
  --danger-soft: #f7e3df;

  --font-display: "Saira Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-accent: "Roboto Slab", Georgia, serif;
  --font-body: "Libre Franklin", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  --step-4: clamp(2.4rem, 1.6rem + 3.6vw, 4rem);

  --wrap: 1180px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: var(--forest); }
a:hover { color: var(--leather); }
:focus-visible { outline: 3px solid var(--tan); outline-offset: 3px; }

.wrap {
  max-width: calc(var(--wrap) + 32px);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--forest); color: #fff; padding: 8px 14px;
}
.skip:focus { left: 12px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; text-wrap: balance; margin: 0; color: var(--forest); }
h2 { font-size: var(--step-3); text-transform: uppercase; letter-spacing: 0.01em; }
h3 { font-size: var(--step-1); text-transform: uppercase; letter-spacing: 0.04em; }
p { margin: 0; }

.eyebrow {
  font-family: var(--font-accent); font-weight: 500; font-size: var(--step--1);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--leather);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--tan); }

/* Placeholder marker for copy Justin should replace */
.ph {
  background: #fff3d6; color: #6b4a12; border-bottom: 1px dashed #b88a2e;
  padding: 0 4px; border-radius: 2px; font-style: normal;
}

/* Buttons: notched ends echo the notches in the wordmark */
.btn {
  --notch: 9px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  padding: 14px 28px; border: 0; cursor: pointer;
  background: var(--forest); color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 38%, calc(100% - var(--notch)) 50%, 100% 62%, 100% 100%, 0 100%, 0 62%, var(--notch) 50%, 0 38%);
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: var(--forest-deep); color: #fff; transform: translateY(-1px); }
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--tan); }
.btn--light { background: var(--on-dark); color: var(--forest); }
.btn--light:hover { background: #fff; color: var(--forest); }
.btn--ghost {
  background: transparent; color: var(--forest); clip-path: none;
  padding-inline: 4px; border-bottom: 2px solid var(--sage);
}
.btn--ghost:hover { background: transparent; color: var(--leather); border-color: var(--tan); }

/* ---------- Header ---------- */
.masthead { padding-block: 22px 18px; }
.masthead .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 22px; text-decoration: none; }
.brand img { width: clamp(132px, 16vw, 176px); height: auto; }
.brand-contact { display: grid; gap: 2px; padding-left: 22px; border-left: 2px solid var(--rule); }
.brand-contact .label { font-family: var(--font-accent); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.brand-contact a { font-weight: 600; font-size: 1.02rem; text-decoration: none; word-break: break-all; }
.brand-contact a:hover { text-decoration: underline; }
.masthead .btn { margin-bottom: 4px; }

.navbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--paper);
  border-top: 2px solid var(--forest); border-bottom: 2px solid var(--forest);
  box-shadow: 0 3px 0 -1px var(--paper), 0 4px 0 -1px var(--rule);
}
.navbar ul {
  list-style: none; margin: 0 auto; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 clamp(14px, 4vw, 54px);
}
.navbar a {
  display: block; padding: 13px 4px; text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--forest);
  border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.navbar a:hover, .navbar a[aria-current="true"] { border-bottom-color: var(--sage); color: var(--forest); }
/* ---------- CTA band ---------- */
.cta-band { background: var(--forest-deep); color: var(--on-dark); padding-block: clamp(48px, 6vw, 80px); }
.cta-band .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; }
.cta-band img { width: 92px; height: auto; background: var(--paper); padding: 10px; border-radius: 50%; aspect-ratio: 1; object-fit: contain; }
.cta-band h2 { color: #fff; font-size: var(--step-3); }
.cta-band p { color: var(--on-dark-muted); margin-top: 8px; max-width: 54ch; }
/* ---------- Footer ---------- */
.footer { background: var(--card); border-top: 2px solid var(--forest); padding-block: 48px 28px; }
.footer .top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 32px 48px; align-items: center; padding-bottom: 32px; border-bottom: 1px solid var(--rule); }
.footer .top img { width: 132px; height: auto; }
.footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; }
.footer nav a { font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; }
.footer .mail { text-align: right; display: grid; gap: 2px; }
.footer .mail span { font-family: var(--font-accent); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.footer .mail a { font-weight: 600; text-decoration: none; word-break: break-all; }
.footer .social { justify-self: end; margin-top: 12px; width: 40px; height: 40px; display: grid; place-items: center; border: 2px solid var(--forest); color: var(--forest); text-decoration: none; transition: background .2s, color .2s; }
.footer .social:hover { background: var(--forest); color: #fff; }
.footer .social:hover img { filter: invert(1); }
.footer .social img { width: 18px; height: 18px; }
.footer .social-fallback { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1; }
@media (max-width: 860px) { .footer .social { justify-self: center; } }
.footer .bottom { padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 0.86rem; color: var(--muted); }

/* ---------- Blog ---------- */
.page-head { padding-block: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 44px); }
.page-head .wrap { display: grid; gap: 16px; max-width: calc(780px + 32px); }
.page-head h1 { font-size: var(--step-4); text-transform: uppercase; }
.page-head p { color: var(--muted); font-size: var(--step-1); line-height: 1.55; }
.post-list { display: grid; gap: 20px; padding-bottom: clamp(56px, 7vw, 96px); max-width: 780px; margin-inline: auto; }
.post-card { background: var(--card); border: 2px solid var(--forest); padding: 28px 26px; display: grid; gap: 12px; transition: transform .25s ease, box-shadow .25s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: 8px 8px 0 var(--sage-soft); }
.post-card h2 { font-size: var(--step-2); }
.post-card h2 a { text-decoration: none; }
.post-card p { color: var(--muted); }
.meta { font-family: var(--font-accent); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--leather); }
.more { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.92rem; text-decoration: none; }
.article { max-width: 780px; margin-inline: auto; padding-bottom: clamp(56px, 7vw, 96px); }
.article .lede { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem); line-height: 1.6; border-top: 2px solid var(--forest); border-bottom: 2px solid var(--forest); padding-block: 22px; margin-bottom: 8px; }
.article h2 { font-size: var(--step-2); margin: 40px 0 14px; }
.article p { margin: 0 0 18px; }
.article { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem); line-height: 1.75; }
.article ul { margin: 0 0 22px; padding: 0; list-style: none; }
.article li { display: block; position: relative; padding-left: 26px; margin: 0 0 12px; }
.article li::before { content: ""; position: absolute; left: 4px; top: 0.7em; width: 8px; height: 8px; background: var(--sage); transform: rotate(45deg); }
.article li strong, .article p strong { color: var(--forest); }
.article .btn { margin-top: 8px; }
.crumbs { font-size: 0.9rem; color: var(--muted); }
.crumbs a { text-decoration: none; }
@media (max-width: 860px) {
  .masthead .btn { display: none; }
  .cta-band .wrap { grid-template-columns: minmax(0, 1fr); }
  .cta-band img { display: none; }
  .footer .top { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .footer .mail { text-align: center; }
}
@media (max-width: 600px) {
  .brand { gap: 14px; flex-wrap: wrap; }
  .brand img { width: 120px; }
  .brand-contact { padding-left: 14px; }
  .navbar ul { gap: 0 18px; }
  .navbar a { font-size: 0.9rem; letter-spacing: .12em; padding: 10px 2px; }
}

/* ---------- Blog images ---------- */
.banner { display: block; margin-top: 12px; }
.banner img, .thumb img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: var(--card); border: 2px solid var(--forest); border-radius: 6px; box-shadow: 8px 8px 0 var(--sage-soft); }
.thumb { display: block; margin-bottom: 6px; }
.thumb img { box-shadow: none; border-width: 1px; border-color: var(--rule); }
