:root {
  --ink: #151515;
  --paper: #f7f6f1;
  --white: #ffffff;
  --red: #e7472e;
  --blue: #1677ff;
  --yellow: #ffd84d;
  --mint: #b8edcf;
  --muted: #686760;
  --line: #c9c6bb;
  --sans: "IBM Plex Sans", "Trebuchet MS", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --display: "Bebas Neue", Impact, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --wrap: min(1180px, calc(100% - 48px));
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--red); }
button, input, textarea { font: inherit; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
  font-family: var(--sans);
}

.skip-link:focus { top: 16px; }

.topline {
  background: var(--ink);
  color: var(--white);
  font: 600 12px/1.2 var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.topline-inner {
  width: var(--wrap);
  min-height: 34px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.topline a { color: var(--yellow); text-decoration: none; }

.site-header {
  position: relative;
  z-index: 50;
  border-bottom: 2px solid var(--ink);
  background: rgba(247, 246, 241, .98);
}

.header-inner {
  width: var(--wrap);
  min-height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  color: var(--ink);
  font: 400 clamp(24px, 3vw, 38px)/.9 var(--display);
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark em {
  color: var(--red);
  font-style: normal;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font: 600 14px/1 var(--sans);
}

.site-nav a { text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--red); }

.nav-cta {
  border: 2px solid var(--ink);
  padding: 11px 16px;
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.wrap { width: var(--wrap); margin-inline: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font: 600 12px/1.3 var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 4px;
  background: var(--red);
}

.hero {
  min-height: 650px;
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
  background: var(--yellow);
}

.hero-grid {
  width: var(--wrap);
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  align-items: stretch;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 86px 64px 70px 0;
  align-self: center;
}

.hero h1,
.page-hero h1 {
  max-width: 940px;
  margin: 0;
  font: 400 clamp(64px, 9vw, 128px)/.82 var(--display);
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 mark {
  color: var(--paper);
  background: var(--blue);
  padding: 0 .07em;
}

.hero-deck {
  max-width: 690px;
  margin: 30px 0 0;
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.35;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  padding: 11px 18px;
  background: var(--ink);
  color: var(--white);
  font: 600 14px/1.1 var(--sans);
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--red);
}

.button:hover { color: var(--ink); background: var(--white); }
.button.alt { color: var(--ink); background: transparent; box-shadow: none; }
.button.alt:hover { background: var(--white); }

.hero-portrait {
  position: relative;
  min-width: 0;
  border-left: 2px solid var(--ink);
  background: var(--blue);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-portrait::before {
  content: "Writer / strategist / practical optimist";
  position: absolute;
  left: -58px;
  top: 62px;
  padding: 10px 14px;
  background: var(--paper);
  border: 2px solid var(--ink);
  font: 600 11px/1.3 var(--mono);
  text-transform: uppercase;
  transform: rotate(-4deg);
}

.hero-portrait img {
  width: min(100%, 360px);
  max-height: 520px;
  object-fit: contain;
  object-position: center bottom;
  filter: saturate(.9) contrast(1.04);
}

.portrait-caption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  max-width: 220px;
  padding: 12px 14px;
  background: var(--paper);
  border: 2px solid var(--ink);
  font: 600 12px/1.35 var(--mono);
}

.proof-strip {
  border-bottom: 2px solid var(--ink);
  background: var(--red);
  color: var(--white);
  overflow: hidden;
}

.proof-strip-track {
  width: var(--wrap);
  margin: 0 auto;
  padding: 12px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 34px;
  font: 600 13px/1 var(--mono);
  text-transform: uppercase;
}

.proof-strip-track span { margin: 0; }
.proof-strip-track span:nth-child(n+7) { display: none; }

.home-articles {
  padding: 34px 0 38px;
  border-bottom: 2px solid var(--ink);
  background: var(--white);
}

.home-articles-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 22px;
}

.home-articles-head h2 {
  margin: 0;
  font: 400 31px/1 var(--display);
  text-transform: uppercase;
}

.home-articles-head a { font: 700 13px/1 var(--sans); }

.home-article-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
}

.home-article-link {
  min-width: 0;
  padding: 17px 18px 17px 0;
  border-right: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.home-article-link:not(:first-child) { padding-left: 18px; }
.home-article-link:last-child { border-right: 0; }
.home-article-link span { display: block; margin-bottom: 9px; font: 500 10px/1.3 var(--mono); color: var(--red); text-transform: uppercase; }
.home-article-link strong { display: block; font: 700 16px/1.25 var(--sans); }
.home-article-link:hover { color: var(--blue); background: var(--paper); }

.band { padding: 86px 0; border-bottom: 1px solid var(--line); }
.band-white { background: var(--white); }
.band-ink { background: var(--ink); color: var(--white); }
.band-blue { background: var(--blue); color: var(--white); }

.section-head {
  display: grid;
  grid-template-columns: minmax(220px, .55fr) minmax(0, 1.45fr);
  gap: 52px;
  align-items: start;
  margin-bottom: 46px;
}

.section-kicker {
  margin: 0;
  font: 600 12px/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.section-title {
  margin: 0;
  font: 400 clamp(42px, 6vw, 76px)/.9 var(--display);
  text-transform: uppercase;
}

.section-intro {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: 21px;
}

.service-list { border-top: 2px solid currentColor; }

.service-row {
  display: grid;
  grid-template-columns: 72px minmax(210px, .8fr) minmax(0, 1.2fr) 36px;
  gap: 24px;
  padding: 25px 0;
  border-bottom: 1px solid currentColor;
  align-items: start;
  text-decoration: none;
}

.service-row:hover { color: inherit; background: var(--yellow); }
.band-ink .service-row:hover { color: var(--ink); }
.service-no { font: 500 12px/1 var(--mono); }
.service-row h3 { margin: 0; font: 700 21px/1.2 var(--sans); }
.service-row p { margin: 0; max-width: 620px; }
.service-arrow { font: 400 26px/1 var(--sans); }

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 2px solid var(--ink);
  background: var(--white);
}

.method-step {
  min-width: 0;
  min-height: 280px;
  padding: 24px;
  border-right: 1px solid var(--ink);
}

.method-step:last-child { border-right: 0; }
.method-step strong { display: block; font: 400 62px/1 var(--display); color: var(--red); }
.method-step h3 { margin: 32px 0 10px; font: 700 19px/1.2 var(--sans); }
.method-step p { margin: 0; font-size: 16px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.feature {
  padding-top: 20px;
  border-top: 6px solid var(--red);
}

.feature:nth-child(2) { border-color: var(--blue); }
.feature:nth-child(3) { border-color: var(--yellow); }
.feature img { width: 32px; height: 32px; object-fit: contain; margin-bottom: 24px; }
.feature h3 { margin: 0 0 10px; font: 700 20px/1.25 var(--sans); }
.feature p { margin: 0; }

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.article-card {
  min-width: 0;
  border: 2px solid var(--ink);
  background: var(--white);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.article-card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 6px 6px 0 var(--ink); }
.article-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-bottom: 2px solid var(--ink); }
.article-card-body { padding: 20px; display: flex; flex: 1; flex-direction: column; }
.article-meta { font: 500 11px/1.3 var(--mono); text-transform: uppercase; color: var(--muted); }
.article-card h3 { margin: 14px 0 12px; font: 700 22px/1.18 var(--sans); }
.article-card p { margin: 0 0 18px; font-size: 16px; }
.article-card .read { margin-top: auto; font: 600 13px/1 var(--sans); }

.quote-wall {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: center;
}

.quote-wall blockquote {
  margin: 0;
  font: 600 clamp(34px, 4.5vw, 62px)/1.05 var(--serif);
}

.quote-wall blockquote mark { background: var(--yellow); padding: 0 .1em; }
.quote-wall figure { margin: 0; border: 2px solid var(--ink); background: var(--blue); }
.quote-wall figure img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top center; }
.quote-wall figcaption { padding: 12px; background: var(--paper); border-top: 2px solid var(--ink); font: 600 12px/1.4 var(--mono); }

.page-hero {
  padding: 72px 0 64px;
  border-bottom: 2px solid var(--ink);
  background: var(--yellow);
}

.page-hero h1 { max-width: 1080px; font-size: clamp(58px, 8vw, 108px); }
.page-hero .deck { max-width: 780px; margin: 28px 0 0; font-size: clamp(20px, 2vw, 26px); }

.content-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 760px);
  gap: 64px;
  align-items: start;
}

.content-aside {
  position: sticky;
  top: 28px;
  font: 500 13px/1.5 var(--sans);
}

.content-aside .aside-box { border-top: 4px solid var(--red); padding-top: 14px; }
.content-aside p { margin: 0 0 18px; }
.content-aside a { font-weight: 700; }

.prose { min-width: 0; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 54px 0 18px; font: 400 clamp(34px, 4vw, 48px)/.98 var(--display); text-transform: uppercase; }
.prose h3 { margin: 34px 0 12px; font: 700 22px/1.25 var(--sans); }
.prose p { margin: 0 0 22px; }
.prose ul, .prose ol { padding-left: 25px; margin: 0 0 24px; }
.prose li { margin-bottom: 8px; }
.prose blockquote { margin: 34px 0; padding: 24px 26px; border-left: 8px solid var(--red); background: var(--white); font-size: 23px; line-height: 1.4; }
.prose img { margin: 34px 0; border: 2px solid var(--ink); }
.prose .callout { margin: 34px 0; padding: 24px; border: 2px solid var(--ink); background: var(--yellow); }
.prose .checklist { list-style: none; padding: 0; }
.prose .checklist li { position: relative; padding: 13px 0 13px 34px; border-bottom: 1px solid var(--line); }
.prose .checklist li::before { content: "✓"; position: absolute; left: 3px; color: var(--red); font: 700 18px/1 var(--sans); }

.byline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  font: 500 13px/1.4 var(--sans);
}

.byline img { width: 54px; height: 54px; border: 2px solid var(--ink); border-radius: 50%; object-fit: cover; }

.service-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--ink);
  background: var(--ink);
}

.service-block { padding: 30px; background: var(--white); }
.service-block .number { font: 400 46px/1 var(--display); color: var(--red); }
.service-block h2 { margin: 22px 0 12px; font: 700 25px/1.2 var(--sans); }
.service-block p { margin: 0 0 18px; }
.service-block a { font: 700 14px/1 var(--sans); }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.filter-bar button {
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: 8px 13px;
  font: 600 13px/1 var(--sans);
  cursor: pointer;
}

.filter-bar button.active { color: var(--white); background: var(--ink); }
.article-card[hidden] { display: none; }

.article-library-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin: 0 0 24px;
}

.article-library-label h2 { margin: 0; font: 400 42px/1 var(--display); text-transform: uppercase; }
.article-library-label p { margin: 0; color: var(--muted); font: 500 13px/1.4 var(--sans); }
.dynamic-library:has(.published-list:empty) { display: none; }
.published-list:empty { display: none; }
.published-list:not(:empty) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 58px;
}
.published-list:not(:empty) > * { min-width: 0; }
.curated-library { border-top: 2px solid var(--ink); padding-top: 28px; }
.dynamic-library + .curated-library { margin-top: 58px; }
.dynamic-library:has(.published-list:empty) + .curated-library { margin-top: 0; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .75fr);
  gap: 60px;
}

.contact-sheet {
  padding: 32px;
  border: 2px solid var(--ink);
  background: var(--white);
  box-shadow: 8px 8px 0 var(--blue);
}

.contact-sheet h2 { margin: 0 0 18px; font: 400 44px/1 var(--display); text-transform: uppercase; }
.contact-sheet dl { margin: 28px 0 0; }
.contact-sheet dt { font: 600 11px/1.3 var(--mono); text-transform: uppercase; color: var(--muted); }
.contact-sheet dd { margin: 6px 0 20px; font: 700 20px/1.3 var(--sans); overflow-wrap: anywhere; }

.footer {
  color: var(--white);
  background: var(--ink);
}

.footer-main { padding: 64px 0 44px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 48px; }
.footer .wordmark { color: var(--white); white-space: normal; }
.footer p { max-width: 430px; color: #d2d0c7; }
.footer h2 { margin: 0 0 16px; color: var(--yellow); font: 600 12px/1.3 var(--mono); text-transform: uppercase; }
.footer nav { display: grid; gap: 8px; font: 500 14px/1.4 var(--sans); }
.footer a { text-decoration: none; }
.footer-bottom { border-top: 1px solid #454545; padding: 18px 0; font: 500 11px/1.4 var(--mono); color: #aaa; }
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 20px; }

.reading-progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 200;
  width: 0;
  height: 4px;
  background: var(--red);
}

.not-found { min-height: 70vh; display: grid; place-items: center; padding: 80px 0; text-align: center; }
.not-found strong { display: block; font: 400 clamp(110px, 20vw, 260px)/.7 var(--display); color: var(--blue); }
.not-found h1 { margin: 24px 0 12px; font: 400 54px/1 var(--display); text-transform: uppercase; }
.not-found p { max-width: 580px; margin: 0 auto 24px; }

@media (max-width: 980px) {
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 22px 24px;
    border-bottom: 2px solid var(--ink);
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .site-nav .nav-cta { margin-top: 12px; padding: 13px; text-align: center; }
  .nav-toggle { display: block; flex: 0 0 auto; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 290px; }
  .hero h1 { font-size: clamp(64px, 10vw, 94px); }
  .method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-step:nth-child(2) { border-right: 0; }
  .method-step:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-article-link { border-bottom: 1px solid var(--line); }
  .home-article-link:nth-child(2n) { border-right: 0; }
  .home-article-link:last-child { border-bottom: 0; }
  .published-list:not(:empty) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 720px) {
  :root { --wrap: min(100% - 28px, 1180px); }
  body { font-size: 17px; }
  .topline-inner { min-height: 38px; }
  .topline-inner span:last-child { display: none; }
  .header-inner { min-height: 72px; gap: 14px; }
  .wordmark { font-size: clamp(23px, 8vw, 30px); white-space: normal; }
  .hero { min-height: 0; }
  .hero-grid { min-height: 0; display: block; width: 100%; }
  .hero-copy { width: var(--wrap); margin: 0 auto; padding: 44px 0 38px; }
  .hero h1 { font-size: clamp(54px, 18vw, 70px); }
  .hero-deck { font-size: 20px; }
  .hero-deck { margin-top: 24px; }
  .hero-actions { margin-top: 24px; gap: 10px; }
  .hero-actions .button { min-height: 44px; padding: 9px 12px; font-size: 12px; }
  .hero-portrait { display: none; }
  .band { padding: 62px 0; }
  .section-head { display: block; margin-bottom: 34px; }
  .section-kicker { margin-bottom: 20px; }
  .section-title { font-size: clamp(44px, 15vw, 64px); }
  .service-row { grid-template-columns: 42px minmax(0, 1fr) 28px; gap: 12px; }
  .service-row p { grid-column: 2 / 4; }
  .method-grid { display: block; }
  .method-step, .method-step:nth-child(2) { min-height: 0; border-right: 0; border-bottom: 1px solid var(--ink); }
  .method-step:last-child { border-bottom: 0; }
  .feature-grid, .article-grid, .service-rail { grid-template-columns: 1fr; }
  .home-articles { padding: 27px 0 30px; }
  .home-articles-head, .article-library-label { align-items: flex-start; flex-direction: column; gap: 8px; }
  .home-article-grid { grid-template-columns: 1fr; }
  .home-article-link, .home-article-link:not(:first-child) { padding: 14px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .published-list:not(:empty) { grid-template-columns: 1fr; }
  .quote-wall { grid-template-columns: 1fr; gap: 34px; }
  .quote-wall figure { max-width: 300px; }
  .page-hero { padding: 54px 0 44px; }
  .page-hero h1 { font-size: clamp(52px, 17vw, 78px); overflow-wrap: anywhere; }
  .page-hero .deck { font-size: 19px; }
  .content-layout { display: block; }
  .content-aside { position: static; margin-bottom: 42px; }
  .contact-grid, .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-sheet { padding: 24px; box-shadow: 5px 5px 0 var(--blue); }
  .footer-bottom .wrap { display: block; }
  .footer-bottom span { display: block; margin-bottom: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .proof-strip-track { animation: none; }
  .article-card { transition: none; }
}
