:root {
  --bg: #faf9fc;
  --ink: #221f2e;
  --ink-soft: #4c4860;
  --ink-faint: #8b87a0;
  --accent: #53419e;
  --border: #e5e2ee;
  --page-width: 1060px;
  --prose-width: 780px;

  /* category palette, built around the brand violet */
  --violet-bg: #ece6f9;
  --violet-ink: #483896;
  --teal: #178577;
  --teal-bg: #d9f1ec;
  --teal-ink: #0d6456;
  --amber: #e9a23b;
  --amber-bg: #fcecd1;
  --amber-ink: #8a5c08;
  --rose: #d26074;
  --rose-bg: #fae3e8;
  --rose-ink: #a53950;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

::selection {
  background: var(--accent);
  color: #ffffff;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 40px;
}

.prose-container {
  max-width: var(--prose-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- Margin decorations ---------- */

.page-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.page-decor span {
  position: absolute;
  display: block;
  will-change: transform;
}

.page-decor .d1 {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #ddd3f0;
  top: 190px;
  left: 3vw;
  transform: rotate(14deg);
}

.page-decor .d2 {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #b9e0d7;
  top: 46%;
  left: 5.5vw;
}

.page-decor .d3 {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #f6dcab;
  bottom: 16%;
  left: 2.8vw;
  transform: rotate(-12deg);
}

.page-decor .d4 {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #f1c9d3;
  top: 31%;
  right: 4.5vw;
}

.page-decor .d5 {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #cdeae3;
  top: 58%;
  right: 3vw;
  transform: rotate(9deg);
}

.page-decor .d6 {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: #e4ddf5;
  bottom: 10%;
  right: 6vw;
  transform: rotate(-18deg);
}

@media (max-width: 1360px) {
  .page-decor {
    display: none;
  }
}

/* ---------- Header ---------- */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border), 0 10px 30px -24px rgba(34, 31, 46, 0.4);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.site-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.site-title:hover {
  text-decoration: none;
}

.site-title span {
  color: var(--accent);
}

.logo-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.site-title:hover .logo-mark {
  transform: rotate(-8deg);
}

nav.site-nav {
  display: flex;
  align-items: center;
}

nav.site-nav a {
  position: relative;
  color: var(--ink-soft);
  font-size: 0.93rem;
  font-weight: 500;
  margin-left: 26px;
  padding: 6px 0;
}

nav.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

nav.site-nav a:hover {
  color: var(--ink);
  text-decoration: none;
}

nav.site-nav a:not(.nav-cta):hover::after,
nav.site-nav a:not(.nav-cta)[aria-current="page"]::after {
  transform: scaleX(1);
}

nav.site-nav a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
}

nav.site-nav a.nav-cta {
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(34, 31, 46, 0.15);
  transition: background 0.12s ease, transform 0.12s ease;
}

nav.site-nav a.nav-cta:hover,
nav.site-nav a.nav-cta[aria-current="page"] {
  background: #463687;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

main {
  padding: 64px 0 104px;
}

/* ---------- Category label ---------- */

.pill {
  display: inline-block;
  background: var(--violet-bg);
  color: var(--violet-ink);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 4px 11px;
  border-radius: 999px;
}

.pill.pill-operations {
  background: var(--teal-bg);
  color: var(--teal-ink);
}

.pill.pill-growth {
  background: var(--amber-bg);
  color: var(--amber-ink);
}

.pill.pill-strategy {
  background: var(--rose-bg);
  color: var(--rose-ink);
}

a.pill:hover {
  text-decoration: none;
}

.meta-line {
  font-size: 0.85rem;
  color: var(--ink-faint);
}

.meta-line .dot {
  margin: 0 6px;
}

/* ---------- Home: hero ---------- */

.hero {
  position: relative;
  background-color: #efeaf9;
  background-image: radial-gradient(#d9cfef 1px, transparent 1px);
  background-size: 20px 20px;
  min-height: calc(100vh - 65px);
  display: flex;
  align-items: center;
  padding: 48px 0 130px;
  overflow: hidden;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 90px;
  display: block;
}

.kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.5rem);
  max-width: 700px;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
  border-bottom: 5px solid var(--amber);
}

.hero p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 600px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}

.hero-media {
  position: relative;
  z-index: 1;
}

.hero-media::before {
  content: "";
  position: absolute;
  top: -44px;
  right: -56px;
  width: 460px;
  height: 460px;
  background: #e2d9f6;
  border-radius: 43% 57% 54% 46% / 46% 41% 59% 54%;
  z-index: 0;
}

.hero-photo-main {
  position: relative;
  z-index: 1;
}

.hero-photo-main img {
  display: block;
  width: 100%;
  height: 500px;
  object-fit: cover;
  border: 8px solid #ffffff;
  border-radius: 26px;
  box-shadow: 0 2px 4px rgba(34, 31, 46, 0.08), 0 30px 60px -30px rgba(34, 31, 46, 0.5);
}

.hero-photo-sub {
  position: absolute;
  bottom: -42px;
  left: -52px;
  width: 230px;
  z-index: 2;
  transform: rotate(-5deg);
}

.hero-photo-sub img {
  display: block;
  width: 100%;
  height: 165px;
  object-fit: cover;
  border: 6px solid #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 4px rgba(34, 31, 46, 0.08), 0 20px 40px -22px rgba(34, 31, 46, 0.5);
}

.hero-badge {
  position: absolute;
  top: 24px;
  left: -40px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 2px 4px rgba(34, 31, 46, 0.08), 0 18px 36px -20px rgba(34, 31, 46, 0.45);
  transform: rotate(2deg);
}

.hero-badge strong {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.hero-badge span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  max-width: 120px;
  line-height: 1.35;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid #ddd3f0;
}

.hero-stats span {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.hero-stats strong {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.2;
}

.hero-stats span:nth-child(2) strong {
  color: var(--teal);
}

.hero-stats span:nth-child(3) strong {
  color: var(--rose);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 11px 22px;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(34, 31, 46, 0.12);
  transition: transform 0.12s ease, background 0.12s ease;
}

.btn:hover {
  background: #463687;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn.secondary {
  background: #ffffff;
  color: var(--accent);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn.secondary:hover {
  background: #ffffff;
  border-color: var(--accent);
}

/* ---------- Subpage header band ---------- */

.page-head {
  background-color: #efeaf9;
  background-image: radial-gradient(#d9cfef 1px, transparent 1px);
  background-size: 20px 20px;
  border-bottom: 1px solid var(--border);
  padding: 60px 0 52px;
}

.page-head h1 {
  font-size: 2.1rem;
}

.page-head p {
  color: var(--ink-soft);
  margin-top: 8px;
  max-width: 620px;
}

/* ---------- Home: featured ---------- */

.featured {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 44px;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 10px;
  padding: 44px 48px;
  margin-bottom: 72px;
  box-shadow: 0 1px 2px rgba(34, 31, 46, 0.04), 0 10px 30px -22px rgba(34, 31, 46, 0.35);
}

.featured-media {
  overflow: hidden;
  border-radius: 10px;
}

.featured-media img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.featured:hover .featured-media img {
  transform: scale(1.04);
}

.featured .pill {
  margin-bottom: 10px;
}

.featured h2 {
  font-size: 2rem;
  margin: 6px 0 14px;
}

.featured h2 a {
  color: var(--ink);
}

.featured h2 a:hover {
  color: var(--accent);
  text-decoration: none;
}

.featured p.excerpt {
  color: var(--ink-soft);
  font-size: 1.02rem;
  margin-bottom: 14px;
  max-width: 660px;
}

/* ---------- Home: article grid ---------- */

.post-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 76px;
  counter-reset: card;
}

.post-card {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 30px 32px;
  counter-increment: card;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.post-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  z-index: 2;
}

.post-card:has(.pill-operations)::before {
  background: var(--teal);
}

.post-card:has(.pill-growth)::before {
  background: var(--amber);
}

.post-card:has(.pill-strategy)::before {
  background: var(--rose);
}

.post-card:hover::before {
  transform: scaleX(1);
}

.post-card::after {
  content: "0" counter(card);
  position: absolute;
  top: 38px;
  right: 40px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 2.1rem;
  font-weight: 600;
  font-style: italic;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 10px rgba(34, 31, 46, 0.55);
  line-height: 1;
  pointer-events: none;
}

.card-media {
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 16 / 10;
  margin-bottom: 18px;
}

.card-media .card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.post-card:hover .card-media .card-img {
  transform: scale(1.06);
}

.post-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.post-card:hover h3 a {
  color: var(--accent);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
}

.card-link .arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.post-card:hover .card-link .arrow {
  transform: translateX(5px);
}

.post-card:hover {
  border-color: #cfc8e4;
  transform: translateY(-2px);
  box-shadow: 0 1px 2px rgba(34, 31, 46, 0.04), 0 12px 28px -20px rgba(34, 31, 46, 0.4);
}

.post-card .pill {
  margin-bottom: 6px;
}

.post-card h3 {
  font-size: 1.25rem;
  margin: 2px 0 8px;
}

.post-card h3 a {
  color: var(--ink);
}

.post-card h3 a:hover {
  color: var(--accent);
  text-decoration: none;
}

.post-card p.excerpt {
  color: var(--ink-soft);
  font-size: 0.94rem;
  margin-bottom: 10px;
}

/* ---------- Home: topics ---------- */

.topics {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  padding-top: 8px;
  margin-bottom: 76px;
}

.topic-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 30px 32px;
}

.topic-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
}

.topic-card.t-operations h3 {
  border-bottom-color: var(--teal);
}

.topic-card.t-growth h3 {
  border-bottom-color: var(--amber);
}

.topic-card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ---------- Home: article boxes ---------- */

.post-box {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 40px 44px;
  margin-bottom: 32px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.post-box .box-media {
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
}

.post-box .box-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.post-box:hover .box-img {
  transform: scale(1.05);
}

.post-box:hover {
  border-color: #cfc8e4;
  box-shadow: 0 1px 2px rgba(34, 31, 46, 0.04), 0 12px 28px -20px rgba(34, 31, 46, 0.4);
}

.post-box .pill {
  margin-bottom: 8px;
}

.post-box h2 {
  font-size: 1.75rem;
  margin: 4px 0 14px;
}

.post-box h2 a {
  color: var(--ink);
}

.post-box h2 a:hover {
  color: var(--accent);
  text-decoration: none;
}

.post-box p.excerpt {
  color: var(--ink-soft);
  font-size: 1rem;
  margin-bottom: 14px;
  max-width: 660px;
}

.post-box .meta-line {
  margin-bottom: 16px;
}

.read-link {
  font-size: 0.95rem;
  font-weight: 600;
}

/* ---------- Home: section head ---------- */

.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: 0.8rem;
  font-family: inherit;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-faint);
}

/* ---------- Article page ---------- */

.back-link {
  display: inline-block;
  margin-bottom: 36px;
  font-size: 0.9rem;
  color: var(--ink-faint);
}

article.post header.post-header {
  margin-bottom: 36px;
}

article.post h1 {
  font-size: 2.05rem;
  margin: 10px 0 14px;
}

.byline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
}

.avatar {
  display: none;
}

.byline .who {
  font-size: 0.9rem;
}

.byline .who strong {
  font-weight: 600;
  color: var(--ink-soft);
}

.byline .who strong::after {
  content: " · ";
  color: var(--ink-faint);
  font-weight: 400;
}

.byline .who span {
  color: var(--ink-faint);
}

.post-hero-img {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 28px;
}

article.post h2 {
  font-size: 1.4rem;
  margin: 52px 0 18px;
}

article.post > h2 {
  position: relative;
  padding-top: 14px;
}

article.post > h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}

article.post h3 {
  font-size: 1.1rem;
  margin: 28px 0 10px;
}

article.post p {
  margin-bottom: 20px;
}

article.post ul, article.post ol {
  margin: 0 0 20px 24px;
}

article.post li {
  margin-bottom: 8px;
}

.callout {
  border-left: 2px solid var(--border);
  padding: 2px 0 2px 18px;
  margin: 32px 0;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--ink-faint);
}

.tag-row {
  margin: 36px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--ink-faint);
}

.tag {
  color: var(--ink-faint);
}

.tag:not(:last-child)::after {
  content: " · ";
}

/* ---------- Closing CTA ---------- */

.cta-box {
  background: #fdf5e6;
  border: 1px solid #f1dcb4;
  border-left: 3px solid var(--amber);
  border-radius: 8px;
  padding: 24px 28px;
  margin: 40px 0 0;
}

article.post .cta-box h2 {
  font-size: 1.2rem;
  margin: 0 0 10px;
}

article.post .cta-box p {
  margin: 0;
  color: var(--ink-soft);
}

/* ---------- Related posts ---------- */

.related {
  margin-top: 56px;
}

.related h2 {
  font-size: 0.8rem;
  font-family: inherit;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-faint);
  margin-bottom: 4px;
}

.related-grid {
  display: block;
}

.related-card {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.related-card:last-child {
  border-bottom: none;
}

.related-card:hover {
  text-decoration: none;
}

.related-card .meta-line {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  margin-bottom: 2px;
}

.related-card strong {
  font-family: Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

.related-card:hover strong {
  color: var(--accent);
}

/* ---------- Footer ---------- */

footer.site-footer {
  background: #241f33;
  padding: 68px 0 48px;
  font-size: 0.9rem;
  color: #b7b1cc;
}

.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 44px;
}

.footer-cols h3 {
  font-size: 0.78rem;
  font-family: inherit;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8e87ab;
  margin-bottom: 10px;
}

.footer-cols > div:first-child h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.footer-cols p {
  color: #b7b1cc;
  font-size: 0.88rem;
}

.footer-cols ul {
  list-style: none;
}

.footer-cols li {
  margin-bottom: 7px;
}

.footer-cols a {
  color: #d4d0e4;
}

.footer-cols a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #8e87ab;
  font-size: 0.82rem;
}

.footer-bottom a {
  color: #d4d0e4;
}

.footer-bottom a:hover {
  color: #ffffff;
}

/* ---------- Responsive ---------- */

@media (max-width: 600px) {
  .container,
  .prose-container {
    padding: 0 22px;
  }

  main {
    padding: 44px 0 72px;
  }

  .site-header .container {
    flex-direction: column;
    gap: 8px;
  }

  nav.site-nav a {
    margin: 0 10px;
  }

  article.post h1 {
    font-size: 1.6rem;
  }

  .hero {
    min-height: 0;
    padding: 56px 0 100px;
  }

  .hero h1 {
    font-size: 1.95rem;
  }

  .hero-stats {
    gap: 22px;
  }

  .featured {
    padding: 26px 24px;
  }

  .featured h2 {
    font-size: 1.55rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-photo-main img {
    height: 320px;
  }

  .hero-photo-sub {
    display: none;
  }

  .hero-badge {
    left: 10px;
    top: -18px;
  }

  .hero-media::before {
    width: 300px;
    height: 300px;
    top: -24px;
    right: -30px;
  }

  .featured {
    grid-template-columns: 1fr;
  }

  .featured-media img {
    height: 220px;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .post-box {
    grid-template-columns: 1fr;
  }

  .topics {
    grid-template-columns: 1fr;
  }

  .post-box h2 {
    font-size: 1.4rem;
  }

  .footer-cols {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
