/* ==========================================================================
   Business Netwalking — "Field Guide" design system
   Editorial / print-inspired: warm chalk paper, deep moss ink, waypoint rail.
   No CSS framework. Nothing is hidden waiting on JavaScript.
   ========================================================================== */

:root {
  --ink:        #1b221d;
  --ink-soft:   #47544a;
  --ink-faint:  #6f7d72;

  --moss:       #2f4a37;
  --moss-deep:  #1c2c21;
  --moss-mid:   #3f6149;
  --sage:       #8aa08e;
  --sage-pale:  #c6d2c6;

  --paper:      #f7f3ea;
  --paper-2:    #efe8da;
  --paper-3:    #e4dbc8;
  --white:      #fffdf8;

  --rust:       #a34f36;
  --gold:       #c9a227;

  --rule:       #d6cdb8;
  --rule-firm:  #b9ad92;

  --measure:    68ch;
  --wrap:       1180px;
  --r:          3px;

  --f-display:  "Fraunces", Georgia, "Times New Roman", serif;
  --f-body:     "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.68;
  font-weight: 400;
  /* faint horizon rule at the very top, a nod to a field notebook */
  background-image: linear-gradient(180deg, var(--paper-2) 0, var(--paper) 240px);
  background-repeat: no-repeat;
}

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

a { color: var(--moss); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--rust); text-decoration-thickness: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2.4rem); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--moss-deep); color: var(--paper);
  padding: .7rem 1.1rem; z-index: 99; text-decoration: none;
}
.skip:focus { left: 0; }

/* ------------------------------------------------------------- the dot motif */
.dot {
  display: inline-block;
  width: .58em; height: .58em;
  border-radius: 50%;
  background: var(--gold);
  margin-right: .55em;
  vertical-align: baseline;
  flex: none;
}

/* -------------------------------------------------------------------- header */
.site-head {
  background: var(--moss-deep);
  color: var(--paper);
  border-bottom: 3px solid var(--gold);
  position: static;              /* never covers content */
}

.head-wrap {
  display: flex;
  flex-wrap: wrap;               /* nav wraps, never clips */
  align-items: center;
  gap: .6rem clamp(1rem, 3vw, 2.2rem);
  padding-top: .85rem;
  padding-bottom: .85rem;
  min-width: 0;
}

.mark {
  display: flex; align-items: center;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.16rem;
  letter-spacing: .012em;
  color: var(--paper);
  text-decoration: none;
  min-width: 0;
  margin-right: auto;
}
.mark:hover { color: var(--white); }
.mark-text { white-space: nowrap; }

.site-nav { min-width: 0; }
.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;               /* the fix for nav overflow: wrap, never shrink-clip */
  gap: .1rem 1.35rem;
  margin: 0; padding: 0;
  min-width: 0;
}
.site-nav a {
  color: var(--sage-pale);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .045em;
  text-transform: uppercase;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
  display: inline-block;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--white); border-bottom-color: var(--gold); }
.site-nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--gold); }

/* ---------------------------------------------------------------------- hero */
.hero { padding: clamp(2.2rem, 5vw, 3.6rem) 0 0; }

.hero-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.4rem, 3vw, 2.4rem);
  align-items: start;
}

.hero-card {
  background: var(--white);
  border: 1px solid var(--rule-firm);
  border-left: 5px solid var(--moss);
  border-radius: var(--r);
  padding: clamp(1.5rem, 3.4vw, 2.6rem);
  min-width: 0;
}

.kicker {
  display: flex; align-items: center;
  margin: 0 0 .9rem;
  font-size: .765rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.hero h1 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.15rem);
  line-height: 1.06;
  letter-spacing: -.017em;
  margin: 0 0 1rem;
  color: var(--moss-deep);
  text-wrap: balance;
}

.lede {
  font-size: clamp(1.06rem, 1.6vw, 1.235rem);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  max-width: 62ch;
}

.hero-fig { margin: 0; min-width: 0; }
.hero-fig img {
  width: 100%;
  border: 1px solid var(--rule-firm);
  border-radius: var(--r);
  filter: saturate(.94);
}

/* inner pages: card left, picture right, from wide-tablet up */
@media (min-width: 900px) {
  .hero-wrap { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); align-items: center; }
}

/* home page: full-width picture with the card riding over its lower-left */
@media (min-width: 900px) {
  .hero-home .hero-wrap {
    grid-template-columns: minmax(0, 1fr);
    position: relative;
    padding-bottom: 0;
  }
  .hero-home .hero-fig { order: -1; }
  .hero-home .hero-fig img { max-height: 30rem; object-fit: cover; }
  .hero-home .hero-card {
    width: min(60ch, 82%);
    margin: -5.5rem 0 0 clamp(1.1rem, 4vw, 2.4rem);
    position: relative;
    z-index: 1;
    box-shadow: none;
  }
}

.hero-plain .hero-card { border-left-color: var(--gold); }

/* --------------------------------------------------------------------- prose */
.prose {
  max-width: var(--measure);
  margin: clamp(2.4rem, 5vw, 3.6rem) 0 clamp(3rem, 6vw, 4.6rem);
  padding-left: 0;
  position: relative;
  min-width: 0;
}

/* the waypoint rail — a dotted trail down the left of the article */
@media (min-width: 780px) {
  .prose { padding-left: 3.1rem; max-width: calc(var(--measure) + 3.1rem); }
  .prose::before {
    content: "";
    position: absolute;
    left: .62rem; top: .55rem; bottom: .5rem;
    border-left: 2px dotted var(--rule-firm);
  }
}

.prose > * { min-width: 0; }

.prose h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.42rem, 2.5vw, 1.86rem);
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--moss-deep);
  margin: 2.7rem 0 .85rem;
  position: relative;
  text-wrap: balance;
}
.prose h2:first-child { margin-top: 0; }

@media (min-width: 780px) {
  .prose h2::before {
    content: "";
    position: absolute;
    left: -3.1rem; top: .5em;
    width: 13px; height: 13px;
    margin-top: -6px;
    border-radius: 50%;
    background: var(--gold);
    border: 3px solid var(--paper);
    box-sizing: content-box;
  }
}

.prose h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.16rem;
  color: var(--moss);
  margin: 1.9rem 0 .55rem;
}

.prose p { margin: 0 0 1.15rem; }

.prose p > strong, .prose li > strong { color: var(--moss-deep); font-weight: 700; }

.prose ul, .prose ol { margin: 0 0 1.35rem; padding-left: 1.35rem; }
.prose li { margin-bottom: .62rem; padding-left: .15rem; }
.prose ul { list-style: none; padding-left: 1.5rem; }
.prose ul > li { position: relative; }
.prose ul > li::before {
  content: "";
  position: absolute;
  left: -1.05rem; top: .68em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--sage);
}
.prose ol { list-style: decimal; }
.prose ol > li::marker { color: var(--moss); font-weight: 700; font-family: var(--f-display); }

.prose em { font-style: italic; color: var(--ink-soft); }

/* pull the first paragraph of each section forward very slightly */
.prose h2 + p { color: var(--ink); }

/* external links get a subtle mark so citations read as citations */
.prose a[target="_blank"] {
  color: var(--rust);
  text-decoration-color: rgba(163, 79, 54, .45);
}
.prose a[target="_blank"]:hover { text-decoration-color: currentColor; }

/* -------------------------------------------------------------------- footer */
.site-foot {
  background: var(--moss-deep);
  color: var(--sage-pale);
  border-top: 3px solid var(--gold);
  padding: clamp(2.4rem, 5vw, 3.4rem) 0 clamp(1.6rem, 3vw, 2.2rem);
  margin-top: auto;
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.9rem clamp(1.4rem, 3vw, 2.6rem);
}
@media (min-width: 700px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .foot-grid { grid-template-columns: 1.25fr repeat(3, minmax(0, 1fr)); } }

.foot-mark {
  display: flex; align-items: center;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--paper);
  margin: 0 0 .5rem;
}
.foot-tag { margin: 0; font-size: .92rem; color: var(--sage); max-width: 30ch; }

.foot-h {
  font-family: var(--f-body);
  font-size: .755rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 .75rem;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: .45rem; }
.foot-col a {
  color: var(--sage-pale);
  text-decoration: none;
  font-size: .92rem;
  border-bottom: 1px solid transparent;
}
.foot-col a:hover { color: var(--white); border-bottom-color: var(--gold); }

.foot-note {
  margin: clamp(1.9rem, 4vw, 2.6rem) 0 0;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(198, 210, 198, .22);
  font-size: .875rem;
  line-height: 1.6;
  color: var(--sage);
  max-width: 78ch;
}

.foot-legal {
  margin: .75rem 0 0;
  font-size: .8rem;
  color: rgba(138, 160, 142, .82);
}

/* ------------------------------------------------------------------- motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* Safeguard: if any scroll-reveal markup is ever introduced, content stays visible. */
[data-aos] { opacity: 1 !important; transform: none !important; }

/* ------------------------------------------------------------------ print */
@media print {
  .site-head, .site-foot, .hero-fig, .skip { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .prose { padding-left: 0; max-width: none; }
  .prose::before, .prose h2::before { display: none; }
}
