/* =========================================================================
   Strides Advisory — site styles
   Aesthetic: black on white, geometric sans, generous whitespace
   ========================================================================= */

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* Tokens */
:root {
  --color-bg: #ffffff;
  --color-ink: #0a0a0a;
  --color-text: #1f1f1f;
  --color-muted: #6b6b6b;
  --color-line: #e8e8e8;
  --color-line-strong: #d0d0d0;
  --color-hover: #000000;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --max-content: 720px;
  --max-layout: 1180px;

  --space-page-x: clamp(1.5rem, 5vw, 4rem);
  --space-section: clamp(3rem, 5.5vw, 5rem);
}

/* Base */
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--color-ink);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
  display: block;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  letter-spacing: -0.02em;
  font-weight: 500;
  margin-left: -0.04em; /* optical alignment — counteracts first-letter side-bearing at large sizes */
}

h2 {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: var(--color-ink);
}

p {
  margin-bottom: 1.25rem;
  color: var(--color-text);
}

p:last-child { margin-bottom: 0; }

strong { font-weight: 600; color: var(--color-ink); }

a.inline {
  border-bottom: 1px solid var(--color-line-strong);
  transition: border-color 0.15s ease;
}
a.inline:hover { border-bottom-color: var(--color-ink); }

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-layout);
  margin: 0 auto;
  padding-left: var(--space-page-x);
  padding-right: var(--space-page-x);
}

.container--narrow {
  max-width: calc(var(--max-content) + (var(--space-page-x) * 2));
}

.section {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}

.section--tight {
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(0.75rem, 1.5vw, 1.25rem);
}

.section + .section { padding-top: 0; }

/* Header / Nav */
.site-header {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--color-line);
}

.site-header__inner {
  max-width: var(--max-layout);
  margin: 0 auto;
  padding-left: var(--space-page-x);
  padding-right: var(--space-page-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand img {
  height: clamp(52px, 5vw, 68px);
  width: auto;
}

.brand-fallback {
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--color-ink);
}

.nav {
  display: flex;
  gap: 2rem;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.nav a {
  color: var(--color-text);
  transition: color 0.15s ease;
  position: relative;
  padding-bottom: 2px;
}

.nav a:hover { color: var(--color-hover); }

.nav a.is-active {
  color: var(--color-ink);
  font-weight: 500;
}
.nav a.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--color-ink);
}

@media (max-width: 640px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .nav {
    gap: 1.25rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
  }
}

/* Hero — home page */
.hero {
  padding-top: clamp(3rem, 7vw, 6rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fafafa 0%, #f3f3f3 100%);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('images/banner.png');
  background-repeat: no-repeat;
  /* Banner sized slightly taller than hero (vertical alignment with H1)
     and shifted rightward via background-position-x — pulling the
     parallelograms toward the right edge of the hero so they don't
     intrude on the text area. */
  background-size: auto 122%;
  background-position: 90% bottom;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
  /* Banner is invisible across the left half of the hero where the
     text lives, then fades in gradually all the way to the right edge —
     never reaching full visibility, only continuously softening. */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 50%, black 100%);
  mask-image: linear-gradient(to right, transparent 0%, transparent 50%, black 100%);
}

@media (max-width: 720px) {
  .hero__bg {
    background-size: cover;
    background-position: right bottom;
    opacity: 0.4;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 40%, black 90%, black 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, transparent 40%, black 90%, black 100%);
  }
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  margin-bottom: 1.75rem;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.hero p.lead {
  font-size: clamp(1.125rem, 1.6vw, 1.25rem);
  color: var(--color-text);
  margin-bottom: 2.5rem;
  max-width: 620px;
  line-height: 1.55;
}

/* CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  background: var(--color-ink);
  color: #ffffff;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--color-ink);
  transition: background 0.15s ease, color 0.15s ease;
  cursor: pointer;
}
.btn:hover { background: #ffffff; color: var(--color-ink); }

.btn--ghost {
  background: transparent;
  color: var(--color-ink);
}
.btn--ghost:hover { background: var(--color-ink); color: #ffffff; }

.arrow { display: inline-block; transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* Body content blocks */
.prose {
  max-width: var(--max-content);
  margin: 0 auto;
}

.prose p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text);
}

.prose h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  margin-top: 2.5rem;
}

.prose ul {
  margin: 0 0 1.5rem 0;
  padding-left: 0;
}
.prose ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.65;
}
.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  background: var(--color-ink);
  transform: skewX(-20deg);
}

/* Section headers */
.section-header {
  max-width: var(--max-content);
  margin: 0 auto 3rem auto;
  text-align: left;
}

.section-header h2 {
  margin-bottom: 1.25rem;
}

.section-header p {
  font-size: 1.0625rem;
  color: var(--color-muted);
}

/* Engagement table */
.engagement-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--color-line);
  margin-top: 1rem;
}

.engagement {
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-line);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 720px) {
  .engagement {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1.75rem 0;
  }
}

.engagement__name {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink);
}

.engagement__shape {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.engagement__when {
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.55;
}

/* Vignette / case card */
.vignettes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .vignettes { grid-template-columns: 1fr; gap: 1.5rem; }
}

.vignette {
  padding: 2rem;
  border: 1px solid var(--color-line);
}

.vignette h3 {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--color-muted);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.vignette p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.vignette__label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
  display: block;
  margin-top: 1.25rem;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

/* Notes / essay list */
.essay-list {
  border-top: 1px solid var(--color-line);
  margin-top: 2rem;
}

.essay-item {
  display: block;
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-line);
  transition: padding 0.2s ease;
}

.essay-item:hover { padding-left: 0.5rem; }

.essay-item__date {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  display: block;
  margin-bottom: 0.6rem;
}

.essay-item__title {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-ink);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.essay-item__excerpt {
  color: var(--color-muted);
  max-width: 640px;
  line-height: 1.55;
}

/* Contact */
.contact-block {
  max-width: var(--max-content);
  margin: 0 auto;
}

.contact-block ol {
  list-style: none;
  counter-reset: q;
  padding: 0;
  margin: 2rem 0 2.5rem 0;
}

.contact-block ol li {
  counter-increment: q;
  padding: 1rem 0 1rem 3rem;
  border-bottom: 1px solid var(--color-line);
  position: relative;
  color: var(--color-text);
  font-size: 1rem;
}
.contact-block ol li::before {
  content: counter(q, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-muted);
}

.email-display {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-ink);
  letter-spacing: -0.005em;
  margin: 2rem 0;
  display: inline-block;
  border-bottom: 1px solid var(--color-line-strong);
  padding-bottom: 0.25rem;
  transition: border-color 0.15s ease;
}
.email-display:hover { border-bottom-color: var(--color-ink); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-line);
  padding: 3rem 0;
  margin-top: var(--space-section);
}

.site-footer__inner {
  max-width: var(--max-layout);
  margin: 0 auto;
  padding-left: var(--space-page-x);
  padding-right: var(--space-page-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  letter-spacing: 0.03em;
}

.site-footer a:hover { color: var(--color-ink); }

@media (max-width: 640px) {
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Divider mark — small parallelogram echo of the brand */
.divider-mark {
  display: flex;
  gap: 4px;
  margin: 1.5rem auto;
  width: 60px;
}

/* When a divider follows a .section--tight (page heading), the divider's
   default top margin combined with section--tight's small bottom padding
   leaves it visually off-centre. Add extra top margin to compensate. */
.section--tight + .container > .divider-mark {
  margin-top: var(--space-section);
}

/* When a divider follows a .section--tight (page heading), the divider's
   default top margin combined with section--tight's small bottom padding
   leaves it visually off-centre. Add extra top margin to compensate. */
.section--tight + .container > .divider-mark {
  margin-top: var(--space-section);
}

/* When a divider follows a .section--tight (page heading), the divider's
   default top margin combined with section--tight's small bottom padding
   leaves it visually off-centre. Add extra top margin to compensate. */
.section--tight + .container > .divider-mark {
  margin-top: var(--space-section);
}

/* When a divider follows a .section--tight (page heading), the divider's
   default top margin combined with section--tight's small bottom padding
   leaves it visually off-centre. Add extra top margin to compensate. */
.section--tight + .container > .divider-mark {
  margin-top: var(--space-section);
}
.divider-mark span {
  display: block;
  width: 16px;
  height: 6px;
  background: var(--color-ink);
  transform: skewX(-25deg);
}
.divider-mark span:nth-child(2) { opacity: 0.55; }
.divider-mark span:nth-child(3) { opacity: 0.25; }

/* Two-column "what an engagement looks like" */
.steps {
  display: grid;
  gap: 2rem;
  margin: 2rem 0 0 0;
}

.step {
  padding: 1.5rem 0;
}

.step:last-child {
  padding-bottom: 0;
}

.step + .step {
  border-top: 1px solid var(--color-line);
}

.step:first-child {
  border-top: none;
  padding-top: 0;
}

.step:first-child {
  border-top: none;
  padding-top: 0;
}

.step:first-child {
  border-top: none;
  padding-top: 0;
}

.step__label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
  display: block;
  font-weight: 500;
}

.step h3 {
  font-size: 1.25rem;
  text-transform: none;
  letter-spacing: -0.005em;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

/* =========================================================================
   Article / essay page
   ========================================================================= */

.back-link {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  margin: 0 auto 2.5rem;
  max-width: 660px;
  transition: color 0.15s ease;
}
.back-link:hover { color: var(--color-ink); }

/* Article header elements share the body's 660px reading column */
article .eyebrow,
.article-title,
.article-deck,
.article-meta {
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}

.article-title {
  font-size: clamp(2rem, 4.2vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 500;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.article-deck {
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--color-muted);
  margin-bottom: 2rem;
  font-weight: 400;
}

.article-meta {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-line);
}
.article-meta__sep { opacity: 0.5; }

/* Article body uses a serif for long-form reading */
.article-body {
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-size: 1.18rem;
  line-height: 1.75;
  color: var(--color-text);
  max-width: 660px;
  margin: 0 auto;
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body em {
  font-style: italic;
  color: var(--color-ink);
}

.article-body h2 {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--color-ink);
  margin-top: 3.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.25;
}

.article-body strong {
  font-weight: 600;
  color: var(--color-ink);
}

.article-end {
  border-top: 1px solid var(--color-line);
  padding-top: 2rem;
  max-width: 660px;
  margin: 0 auto;
}

.article-end__byline {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-muted);
}

/* =========================================================================
   Share buttons
   ========================================================================= */

.share {
  max-width: 660px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.share--top {
  padding: 1rem 0 1.5rem 0;
  border-bottom: 1px solid var(--color-line);
  margin-bottom: 2rem;
}

.share--bottom {
  padding: 2rem 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  margin: 1rem auto 0 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.share--bottom .share__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.share__label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 500;
  margin-right: 0.5rem;
}

.share--bottom .share__label { font-size: 0.95rem; text-transform: none; letter-spacing: 0.01em; color: var(--color-ink); font-weight: 500; }

.share__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  font-weight: 500;
  color: var(--color-text);
  background: transparent;
  border: 1px solid var(--color-line-strong);
  border-radius: 0;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  font-family: inherit;
  line-height: 1;
}

.share__btn:hover {
  background: var(--color-ink);
  color: #ffffff;
  border-color: var(--color-ink);
}

.share__btn.is-copied {
  background: var(--color-ink);
  color: #ffffff;
  border-color: var(--color-ink);
}

.share__btn svg { flex-shrink: 0; }

@media (max-width: 540px) {
  .share { gap: 0.4rem; }
  .share__btn { padding: 0.45rem 0.7rem; font-size: 0.78rem; }
}

/* =========================================================================
   Notes index — make published essays distinguishable from "coming soon"
   ========================================================================= */

.essay-item--live .essay-item__title {
  color: var(--color-ink);
}

.essay-item--coming .essay-item__title,
.essay-item--coming .essay-item__excerpt {
  opacity: 0.55;
}

.essay-item--coming { pointer-events: none; }

/* =========================================================================
   Footer additions, primary engagement, subscribe block
   ========================================================================= */

/* Footer separator dot */
.footer-sep {
  margin: 0 0.5em;
  color: var(--color-muted);
}

/* Primary engagement (Diagnostic stands alone, framed) */
.engagement--primary {
  border: 1.5px solid var(--color-ink);
  border-bottom: 1.5px solid var(--color-ink);
  padding: 2rem 2.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0;
  align-items: start;
}

@media (max-width: 720px) {
  .engagement--primary {
    padding: 1.5rem 1.5rem;
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* Bridge text between Diagnostic and follow-on shapes */
.engagement-bridge {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.95rem;
  margin: 2.25rem auto 0;
  max-width: 540px;
}

/* Subscribe block on Notes */
.subscribe-block {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--color-line);
}

.subscribe-block h2 {
  margin-bottom: 1rem;
}

.subscribe-block p {
  color: var(--color-muted);
  max-width: 540px;
  margin: 0 auto 2rem;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.subscribe-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.subscribe-alt {
  font-size: 0.9rem;
  color: var(--color-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--color-line);
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.subscribe-alt:hover {
  color: var(--color-ink);
  border-bottom-color: var(--color-ink);
}
