:root {
  --font-display: 'Literata', Georgia, serif;
  --font-body: 'Faustina', Georgia, serif;
  
  --color-primary: #3a2a4d;
  --color-secondary: #7d6f8c;
  --color-accent: #c8553d;
  --color-surface: #f7f4f2;
  --color-ink: #1d1826;
  --color-border: #e2dbd5;
  --color-border-subtle: #eee8e3;

  --max-width: 860px;
  --header-height: 48px;
}

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

html {
  font-size: 18px;
  background-color: var(--color-surface);
  color: var(--color-ink);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--color-primary);
}

/* Sticky Mini Navigation Bar */
.kp-nav-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: var(--color-primary);
  color: var(--color-surface);
  box-shadow: 0 2px 8px rgba(29, 24, 38, 0.12);
}

.kp-nav-inner {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kp-brand-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--color-surface);
  text-decoration: none;
}

.kp-brand-link:hover {
  color: #ffffff;
}

.kp-menu-list {
  display: flex;
  list-style: none;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.kp-menu-link {
  color: #d8cedf;
  text-decoration: none;
  font-size: 0.9rem;
  font-family: var(--font-display);
  font-weight: 500;
  transition: color 0.15s ease;
}

.kp-menu-link:hover,
.kp-menu-link.kp-menu-active {
  color: #ffffff;
}

/* Main Container with generous whitespace below sticky header */
.kp-page-container {
  flex: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 4.5rem 1.25rem 4rem 1.25rem;
}

/* Homepage Typographic Statement Opening */
.kp-statement-header {
  margin-bottom: 3.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 2px solid var(--color-primary);
}

.kp-statement-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  letter-spacing: -0.025em;
}

.kp-statement-tagline {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--color-secondary);
  line-height: 1.45;
  white-space: normal;
  max-width: 100%;
}

/* Homepage Intro & Content styling */
.kp-home-content {
  margin-bottom: 3.5rem;
  font-size: 1.05rem;
  line-height: 1.75;
}

.kp-home-content p {
  margin-bottom: 1.25rem;
}

.kp-home-content h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-primary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

/* MANDATORY LIST RULE FOR BOTH ARTICLE AND HOME CONTENT */
.kp-home-content ul,
.kp-home-content ol,
.kp-article-body ul,
.kp-article-body ol {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  list-style-position: outside;
}

.kp-home-content ul {
  list-style-type: disc;
}

.kp-home-content ol {
  list-style-type: decimal;
}

.kp-article-body ul {
  list-style-type: disc;
}

.kp-article-body ol {
  list-style-type: decimal;
}

.kp-home-content li,
.kp-article-body li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.kp-home-content li::marker,
.kp-article-body li::marker {
  color: var(--color-accent);
}

/* Section Headings */
.kp-section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

/* Pillars Section */
.kp-pillars-block {
  margin-bottom: 3.5rem;
}

.kp-pillars-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.kp-pillar-row {
  padding: 1.25rem 1.5rem;
  background-color: #ffffff;
  border-left: 4px solid var(--color-accent);
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.kp-pillar-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: 0.35rem;
}

.kp-pillar-text {
  color: var(--color-ink);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* Dense Index Article Listing */
.kp-catalog-block {
  margin-bottom: 3.5rem;
}

.kp-dense-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.kp-dense-item {
  margin-bottom: 0.65rem;
}

.kp-dense-link {
  display: flex;
  align-items: baseline;
  text-decoration: none;
  color: var(--color-ink);
  padding: 0.25rem 0;
  transition: color 0.15s ease;
}

.kp-dense-link:hover {
  color: var(--color-accent);
}

.kp-dense-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  flex-shrink: 0;
  max-width: 75%;
}

.kp-dense-dots {
  flex-grow: 1;
  border-bottom: 1px dotted var(--color-secondary);
  margin: 0 0.6rem;
  opacity: 0.6;
  position: relative;
  top: -4px;
}

.kp-dense-date {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.kp-dense-link:hover .kp-dense-dots {
  border-bottom-color: var(--color-accent);
  opacity: 1;
}

/* List Page Header */
.kp-list-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--color-primary);
}

.kp-list-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.kp-list-desc {
  font-size: 1.15rem;
  color: var(--color-secondary);
}

/* Single Article Styling */
.kp-article {
  max-width: 100%;
}

.kp-article-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--color-border);
}

.kp-article-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.7rem);
  line-height: 1.2;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.kp-article-lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--color-secondary);
  font-style: italic;
  margin-bottom: 1rem;
}

.kp-article-meta {
  font-size: 0.9rem;
  color: var(--color-secondary);
  font-family: var(--font-body);
}

.kp-article-body {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--color-ink);
}

.kp-article-body h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--color-primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.kp-article-body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

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

.kp-article-body blockquote {
  margin: 1.75rem 0;
  padding: 1rem 1.5rem;
  border-left: 3px solid var(--color-accent);
  background-color: rgba(200, 85, 61, 0.05);
  font-style: italic;
}

.kp-article-body blockquote p:last-child {
  margin-bottom: 0;
}

/* Footer Styling */
.kp-site-footer {
  background-color: var(--color-primary);
  color: var(--color-surface);
  padding: 2.5rem 1.25rem;
  margin-top: auto;
  border-top: 3px solid var(--color-accent);
}

.kp-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

@media (min-width: 600px) {
  .kp-footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.kp-footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.kp-footer-sub {
  font-size: 0.85rem;
  color: #c9bfd3;
}

.kp-footer-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.kp-footer-link {
  color: #ffffff;
  text-decoration: none;
}

.kp-footer-link:hover {
  text-decoration: underline;
}

.kp-footer-sep {
  color: var(--color-secondary);
  font-size: 0.75rem;
}

/* Responsive adjustments for mobile (375px target) */
@media (max-width: 599px) {
  .kp-page-container {
    padding-top: 3rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Brand + three menu labels at the default 1.25rem gap measure 387px, so the
     sticky bar pushed the whole page 12px wider than a 375px viewport. */
  .kp-menu-list {
    gap: 0.85rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .kp-dense-link {
    flex-wrap: wrap;
  }

  .kp-dense-title {
    max-width: 100%;
    width: 100%;
  }

  .kp-dense-dots {
    display: none;
  }

  .kp-dense-date {
    margin-top: 0.15rem;
    font-size: 0.8rem;
  }
}
