:root {
  --paper: #ffffff;
  --paper-deep: #f4f4f2;
  --ink: #171717;
  --muted: #555555;
  --line: #deded9;
  --accent: #222a26;
  --accent-soft: #f2f2ef;
  --white: #ffffff;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
}

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

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

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

::selection {
  background: #b9c9bd;
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #b45f35;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.65rem 1rem;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell,
.content-shell {
  width: min(100% - 3rem, 1200px);
  margin-inline: auto;
}

.site-header {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-grid;
  gap: 0.05rem;
  text-decoration: none;
  line-height: 1.05;
}

.wordmark span:first-child {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.wordmark span:last-child {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem 1.65rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.035em;
}

.site-nav a {
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  border-color: currentColor;
}

.hero {
  position: relative;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  align-content: center;
  gap: 2rem 5rem;
  padding: 7.5rem 0 6rem;
  border-bottom: 1px solid var(--line);
}

.hero-kicker,
.eyebrow {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-kicker {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--accent);
}

.hero-kicker span {
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: currentColor;
}

.hero h1,
.section-heading h2,
.about-copy h2,
.contact-section h2,
.listing-title,
.article-header h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(3.65rem, 7.1vw, 7.1rem);
  line-height: 0.91;
}

.hero h1 em {
  color: var(--accent);
  font-weight: inherit;
}

.hero-summary {
  align-self: end;
  max-width: 420px;
  padding-bottom: 0.45rem;
}

.hero-summary p {
  margin: 0 0 2rem;
  color: #404842;
  font-size: 1.02rem;
  line-height: 1.75;
}

.hero-index {
  position: absolute;
  right: 0;
  top: 2rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  min-width: 240px;
  padding: 0.95rem 1.05rem;
  border: 1px solid transparent;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: var(--white);
}

.button-primary:hover {
  background: var(--ink);
}

.section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 5rem;
  padding: 8.5rem 0;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 2rem;
  color: var(--accent);
}

.section-heading h2,
.about-copy h2 {
  max-width: 520px;
  font-size: clamp(2.45rem, 4.4vw, 4.3rem);
  line-height: 1.02;
}

.section-intro {
  max-width: 470px;
  margin: 2rem 0 0;
  color: var(--muted);
}

.service-list {
  border-top: 1px solid var(--ink);
}

.service-item {
  display: grid;
  grid-template-columns: 42px minmax(180px, 0.75fr) minmax(220px, 1fr);
  gap: 1.5rem;
  padding: 2.1rem 0 2.3rem;
  border-bottom: 1px solid var(--line);
}

.service-item:last-child {
  border-bottom: 0;
}

.item-number,
.process-list span {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--accent);
}

.service-item h3 {
  margin: -0.2rem 0 0;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.service-item > p:last-child {
  margin: -0.15rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.process-section {
  background: var(--accent-soft);
  margin-inline: calc((100vw - min(100vw - 3rem, 1200px)) / -2);
  padding-inline: max(1.5rem, calc((100vw - 1200px) / 2));
  border-bottom: 0;
}

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.process-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.25rem;
  padding: 1.7rem 0;
  border-bottom: 1px solid #b9c4b8;
}

.process-list li:last-child {
  border-bottom: 0;
}

.process-list p {
  max-width: 590px;
  margin: 0;
  font-size: 1rem;
}

.about-section {
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
}

.about-label {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.monogram {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 2.1rem;
  letter-spacing: -0.08em;
}

.about-copy {
  max-width: 720px;
}

.about-copy h2 {
  margin-bottom: 2.5rem;
}

.about-copy > p {
  max-width: 650px;
  margin: 0 0 1.25rem;
  color: #404842;
  font-size: 1rem;
}

.text-link {
  display: inline-block;
  margin-top: 1.3rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
}

.contact-section {
  position: relative;
  margin: 0 calc((100vw - min(100vw - 3rem, 1200px)) / -2);
  padding: 8.5rem max(1.5rem, calc((100vw - 1200px) / 2));
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.contact-section::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -140px;
  bottom: -260px;
  border: 1px solid #5e6962;
  border-radius: 50%;
}

.contact-section .eyebrow {
  color: #a8b9ad;
}

.contact-section h2 {
  max-width: 900px;
  font-size: clamp(3rem, 6vw, 6.2rem);
  line-height: 0.96;
}

.contact-section > p:not(.eyebrow) {
  max-width: 580px;
  margin: 2.25rem 0 2rem;
  color: #c6cdc8;
}

.button-light {
  position: relative;
  z-index: 1;
  min-width: min(100%, 360px);
  background: var(--white);
  color: var(--ink);
}

.button-light:hover {
  background: var(--accent-soft);
}

.site-footer {
  min-height: 128px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
}

.content-main {
  min-height: 65vh;
  padding: 6.5rem 0 8rem;
}

.listing-header {
  max-width: 760px;
  margin-bottom: 4.5rem;
}

.listing-title,
.article-header h1 {
  font-size: clamp(3.25rem, 7vw, 6.25rem);
  line-height: 0.98;
}

.listing-description {
  max-width: 600px;
  margin: 1.5rem 0 0;
  color: var(--muted);
}

.entry-list {
  max-width: 900px;
  border-top: 1px solid var(--ink);
}

.entry {
  border-bottom: 1px solid var(--line);
}

.entry a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 2rem;
  padding: 2rem 0;
  text-decoration: none;
}

.entry h2 {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.entry a:hover h2 {
  color: var(--accent);
}

.entry p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.entry time,
.article-meta {
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--muted);
  letter-spacing: 0.035em;
}

.empty-state,
.more-writing {
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.article {
  width: min(100%, 780px);
  margin-inline: auto;
}

.article-header {
  margin-bottom: 4rem;
}

.article-header h1 {
  margin-bottom: 1.3rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.toc {
  margin: 0 0 3rem;
  padding: 1.5rem 0;
  border-block: 1px solid var(--line);
}

.toc h2 {
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.toc ul {
  margin: 0;
  padding-left: 1.2rem;
}

.prose {
  color: #343c37;
  font-size: 1.02rem;
  line-height: 1.75;
  overflow-wrap: break-word;
}

.prose h2,
.prose h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.prose h2 {
  margin: 3.5rem 0 1.25rem;
  font-size: 2.4rem;
}

.prose h3 {
  margin: 2.5rem 0 1rem;
  font-size: 1.7rem;
}

.prose a {
  color: var(--accent);
}

.prose code {
  padding: 0.12em 0.35em;
  border: 1px solid var(--line);
  background: var(--paper-deep);
  font-family: var(--mono);
  font-size: 0.84em;
}

.prose pre {
  max-width: 100%;
  margin: 2rem 0;
  padding: 1.25rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: #ebe7dd;
  line-height: 1.55;
}

.prose pre code {
  padding: 0;
  border: 0;
  background: none;
}

.prose blockquote {
  margin: 2rem 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.3rem;
}

.prose img,
.prose video {
  max-width: 100%;
  height: auto;
}

.prose table {
  display: block;
  width: 100%;
  margin: 2rem 0;
  overflow-x: auto;
  border-collapse: collapse;
}

.prose th,
.prose td {
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.article-back {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.7rem;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 6rem 0;
  }

  .hero-summary {
    max-width: 600px;
    margin-top: 1rem;
  }

  .section {
    grid-template-columns: 1fr;
    gap: 4rem;
    padding-block: 6.5rem;
  }

  .about-label {
    flex-direction: row;
    align-items: flex-start;
  }

  .monogram {
    width: 88px;
    height: 88px;
    font-size: 1.75rem;
  }
}

@media (max-width: 680px) {
  .site-shell,
  .content-shell {
    width: min(100% - 2rem, 1200px);
  }

  .site-header {
    min-height: 0;
    padding: 1.4rem 0 1.25rem;
    align-items: flex-start;
  }

  .site-nav {
    max-width: 190px;
    gap: 0.3rem 1rem;
  }

  .site-nav a[href="#services"] {
    display: none;
  }

  .hero {
    gap: 1.7rem;
    padding: 5.25rem 0 4.75rem;
  }

  .hero h1 {
    font-size: clamp(3.35rem, 16vw, 5rem);
  }

  .hero-summary p {
    font-size: 0.95rem;
  }

  .button {
    width: 100%;
  }

  .section {
    gap: 3rem;
    padding-block: 5rem;
  }

  .section-heading h2,
  .about-copy h2 {
    font-size: 2.75rem;
  }

  .service-item {
    grid-template-columns: 34px 1fr;
    gap: 0.7rem;
  }

  .service-item > p:last-child {
    grid-column: 2;
    margin-top: 0.2rem;
  }

  .process-section {
    margin-inline: -1rem;
    padding-inline: 1rem;
  }

  .about-label {
    align-items: center;
  }

  .contact-section {
    margin-inline: -1rem;
    padding: 5.5rem 1rem;
  }

  .contact-section h2 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .site-footer {
    min-height: 0;
    padding: 2.5rem 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    flex-direction: column;
  }

  .content-main {
    padding: 4.5rem 0 6rem;
  }

  .listing-header {
    margin-bottom: 3rem;
  }

  .listing-title,
  .article-header h1 {
    font-size: 3.3rem;
  }

  .entry a {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .entry time {
    grid-row: 1;
  }

  .article-header {
    margin-bottom: 3rem;
  }

  .prose {
    font-size: 0.98rem;
  }

  .prose pre {
    margin-inline: -1rem;
    border-inline: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Compact consultancy homepage */
.compact-home {
  width: min(100% - 3rem, 1120px);
}

.compact-home .site-header {
  min-height: 72px;
}

.compact-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  gap: 4rem;
  padding: 2.25rem 0 2.5rem;
}

.intro-main .eyebrow,
.founder-note .eyebrow,
.compact-section-label .eyebrow {
  margin-bottom: 1rem;
}

.intro-main h1 {
  max-width: 700px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.85rem, 4.5vw, 3.95rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.intro-summary {
  max-width: 640px;
  margin: 1.25rem 0 0;
  color: #3f3f3f;
  font-size: 0.98rem;
  line-height: 1.68;
}

.intro-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  margin-top: 1.5rem;
}

.compact-home .button {
  min-width: 210px;
  padding: 0.78rem 0.9rem;
}

.plain-email {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.66rem;
}

.founder-note {
  align-self: stretch;
  padding: 0.25rem 0 0 2rem;
  border-left: 1px solid var(--line);
}

.founder-note h2 {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.founder-note p:not(.eyebrow) {
  margin: 0 0 0.75rem;
  color: #474747;
  font-size: 0.86rem;
  line-height: 1.62;
}

.founder-note .text-link {
  margin-top: 0.2rem;
  font-size: 0.64rem;
}

.compact-services,
.compact-process {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 2.25rem;
  padding: 1.7rem 0;
  border-top: 1px solid var(--line);
}

.compact-section-label h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.compact-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.compact-service-grid article {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-content: start;
  column-gap: 0.45rem;
}

.compact-service-grid h3 {
  margin: -0.15rem 0 0.65rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.compact-service-grid p {
  grid-column: 2;
  margin: 0;
  color: #4a4a4a;
  font-size: 0.81rem;
  line-height: 1.58;
}

.compact-process ol {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.compact-process li {
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 0.45rem;
}

.compact-process li span {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--muted);
}

.compact-process li p {
  margin: -0.15rem 0 0;
  color: #3f3f3f;
  font-size: 0.78rem;
  line-height: 1.52;
}

.compact-contact {
  display: grid;
  grid-template-columns: 1fr 1.15fr auto;
  align-items: center;
  gap: 2rem;
  padding: 1.25rem 1.4rem;
  background: var(--ink);
  color: var(--white);
}

.compact-contact h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.15;
}

.compact-contact p {
  margin: 0;
  color: #d8d8d5;
  font-size: 0.76rem;
  line-height: 1.55;
}

.compact-contact a {
  font-family: var(--mono);
  font-size: 0.66rem;
  white-space: nowrap;
}

.compact-home .site-footer {
  min-height: 64px;
}

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

  .founder-note {
    padding: 1.5rem 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .compact-services,
  .compact-process {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .compact-contact {
    grid-template-columns: 1fr 1fr;
  }

  .compact-contact a {
    grid-column: 1 / -1;
  }

  .compact-service-grid {
    gap: 1.5rem;
  }
}

@media (max-width: 680px) {
  .compact-home {
    width: min(100% - 2rem, 1120px);
  }

  .compact-home .site-nav {
    max-width: 210px;
    gap: 0.25rem 0.8rem;
    font-size: 0.62rem;
  }

  .compact-home .site-nav a[href="#services"] {
    display: inline-block;
  }

  .compact-intro {
    gap: 2rem;
    padding: 3.5rem 0 2.5rem;
  }

  .intro-main h1 {
    font-size: clamp(2.75rem, 13vw, 3.8rem);
  }

  .intro-summary {
    font-size: 0.94rem;
  }

  .compact-service-grid,
  .compact-process ol {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .compact-services,
  .compact-process {
    padding: 2.25rem 0;
  }

  .compact-service-grid p {
    font-size: 0.86rem;
  }

  .compact-process li p {
    font-size: 0.84rem;
  }

  .compact-contact {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    margin-inline: -1rem;
    padding: 1.5rem 1rem;
  }

  .compact-contact a {
    grid-column: auto;
    white-space: normal;
  }
}
