/* ============================================================
   Sherlock — agentic search optimization
   Base stylesheet. No framework, no build step.
   ============================================================ */

/* --- Design tokens --- */
:root {
  /* Neutral palette */
  --ink:        #1c1a18;   /* near-black body text */
  --ink-soft:   #4a453f;   /* muted body / secondary */
  --paper:      #faf8f5;   /* off-white page background */
  --paper-alt:  #f1ece5;   /* alt section background */
  --line:       #e2dbd1;   /* hairline borders */

  /* One accent: oxblood / burgundy */
  --accent:      #7a1f2b;
  --accent-dark: #5c141d;

  /* Type */
  --serif: Georgia, "Iowan Old Style", "Times New Roman", Times, serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --measure: 44rem;   /* comfortable reading width */
  --wide:    64rem;   /* wider container for nav/footer */
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* --- Headings: serif --- */
h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 0.5em;
}

h1 { font-size: 2.5rem; letter-spacing: -0.01em; }
h2 { font-size: 1.75rem; margin-top: 2.25em; }
h3 { font-size: 1.25rem; margin-top: 1.75em; }

p { margin: 0 0 1.15em; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover { color: var(--accent-dark); }

strong { font-weight: 700; }

/* --- Layout containers --- */
.container {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container--wide { max-width: var(--wide); }

.section { padding: 3.5rem 0; }
.section--alt { background: var(--paper-alt); }
.section + .section { border-top: 1px solid var(--line); }

/* --- Skip link (accessibility) --- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ============================================================
   Header / navigation
   ============================================================ */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.site-header .container--wide {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.brand:hover { color: var(--ink); }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  font-family: var(--sans);
  font-size: 0.98rem;
  color: var(--ink-soft);
  text-decoration: none;
}
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
}

/* ============================================================
   Hero (Home only)
   ============================================================ */
.hero {
  background: var(--paper-alt);
  border-bottom: 1px solid var(--line);
}
.hero .container--wide {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}
.hero__title { font-size: 2.9rem; margin-bottom: 0.4em; }
.hero__subhead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  margin-bottom: 0;
}
.hero__image {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--line);
  display: block;
}

/* --- Lead paragraph under page headers --- */
.lead {
  font-size: 1.28rem;
  color: var(--ink-soft);
}

/* --- Eyebrow label --- */
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.6rem;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border: 1px solid var(--accent);
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

/* ============================================================
   Klaviyo CTA blocks
   ============================================================ */
.cta {
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2rem;
  margin-top: 1rem;
}
.cta h2 { margin-top: 0; }

/* Give the Klaviyo mount point a little breathing room */
.klaviyo-form-VcBSHJ { margin-top: 1rem; }

/* --- Blog list --- */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.post-list li:first-child { border-top: 0; }
.post-list h3 { margin-top: 0; }
.post-list p { color: var(--ink-soft); margin-bottom: 0.4rem; }

/* --- Values / plain list --- */
.article-list { padding-left: 1.25rem; margin: 0.5rem 0 0; }
.article-list li { margin-bottom: 0.7rem; }

/* --- Article helpers --- */
.article ol { padding-left: 1.25rem; }
.article ol li { margin-bottom: 0.6rem; }
.article ul { padding-left: 1.25rem; }
.article ul li { margin-bottom: 0.4rem; }
.post-meta { color: var(--ink-soft); font-size: 0.95rem; }

/* ============================================================
   Footer — compact email capture on every page
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: #d9d2c9;
  margin-top: 3rem;
  padding: 2.5rem 0;
}
.site-footer .container--wide {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}
.site-footer a { color: #f0e9df; }
.footer-brand {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.3rem;
}
.footer-tagline { font-size: 0.95rem; color: #b7ada0; margin: 0; max-width: 24rem; }
.footer-signup { min-width: 16rem; }
.footer-signup h2 {
  font-family: var(--sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.6rem;
  color: #fff;
}
.footer-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0;
  margin: 1.5rem 0 0;
  font-size: 0.9rem;
}
.footer-legal {
  width: 100%;
  border-top: 1px solid #3a352f;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: #8f8579;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 720px) {
  body { font-size: 1.06rem; }
  h1 { font-size: 2rem; }
  .hero__title { font-size: 2.1rem; }
  .hero .container--wide {
    grid-template-columns: 1fr;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
  .hero__image { order: -1; }   /* image above text on mobile */
  .section { padding: 2.5rem 0; }
  .lead { font-size: 1.15rem; }
}
