/* Kadara shared component grammar. Small and deliberate. Consumes theme.css.
   Real headings, not eyebrows. `k-` namespace. */

:root{
  /* type scale */
  --fs-display: clamp(44px, 5vw, 64px);
  --fs-title: clamp(30px, 3.4vw, 44px);
  --fs-section: clamp(30px, 3vw, 42px);
  --fs-sub: clamp(19px, 1.7vw, 23px);
  --fs-lead: clamp(17px, 1.35vw, 20px);
  /* spacing: three deliberate modes */
  --space-tight: 22px;      /* content grouping */
  --space-section: 84px;    /* normal section transition */
  --space-major: 120px;     /* major narrative transition */
  --wrap-max: 1160px;
  --measure: 62ch;
}
@media (max-width: 640px){ :root{ --space-section: 60px; --space-major: 80px; } }

.k-wrap{ max-width: var(--wrap-max); margin: 0 auto; padding: 0 24px; }
.k-section{ padding: var(--space-section) 0; }
.k-section--large{ padding: var(--space-major) 0; }

/* headings + text */
.k-title{ font-family: var(--ff-heading); font-size: var(--fs-display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; color: var(--ink); margin: 0; }
.k-section-title{ font-family: var(--ff-heading); font-size: var(--fs-section); font-weight: 700; letter-spacing: -0.015em; line-height: 1.14; color: var(--ink); margin: 0; max-width: 24ch; }
.k-sub{ font-family: var(--ff-heading); font-size: var(--fs-sub); font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; color: var(--ink); margin: 0; }
.k-lead{ font-size: var(--fs-lead); line-height: 1.6; color: var(--sub); margin: 18px 0 0; max-width: var(--measure); }
.k-body{ font-size: 16px; line-height: 1.65; color: var(--sub); margin: 16px 0 0; max-width: var(--measure); }

/* actions + subordinate links */
.k-actions{ display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.k-link{ font-family: var(--ff-heading); font-size: 14px; font-weight: 600; color: var(--brand-verdigris-text); text-decoration: none; }
.k-link:hover{ color: var(--brand-verdigris); }
.k-related{ display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; }
.k-related a{ font-size: 14px; color: var(--sub); text-decoration: none; }
.k-related a:hover{ color: var(--brand-verdigris-text); }

/* card primitive */
.k-card{ background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
a.k-card, .k-card--hover{ text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
a.k-card:hover, .k-card--hover:hover{ border-color: var(--brand-verdigris-line); transform: translateY(-2px); }
.k-card--soft{ background: var(--brand-verdigris-soft); border-color: var(--brand-verdigris-line); }
.k-card--dark{ background: #0B1613; border-color: #0B1613; color: #fff; }
.k-card--dark .k-card-t{ color: #fff; } .k-card--dark .k-card-d{ color: rgba(255,255,255,.72); }
.k-card .k-card-t{ font-family: var(--ff-heading); font-size: var(--fs-sub); font-weight: 700; letter-spacing: -0.015em; color: var(--ink); margin: 0 0 8px; }
.k-card .k-card-d{ font-size: 15px; line-height: 1.55; color: var(--sub); margin: 0; }

/* grids */
.k-grid-2{ display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.k-grid-3{ display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.k-grid-4{ display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
@media (max-width: 860px){ .k-grid-3, .k-grid-4{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .k-grid-2, .k-grid-3, .k-grid-4{ grid-template-columns: 1fr; } }

/* photo + proof */
.k-photo{ border-radius: 20px; overflow: hidden; background: var(--bg-section); }
.k-photo img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.k-photo--portrait{ aspect-ratio: 4 / 5; }
.k-photo--wide{ aspect-ratio: 16 / 10; }
@media (max-width: 900px){ .k-photo--portrait{ aspect-ratio: 16 / 10; } }
.k-proof{ position: relative; }

/* three reusable photographic treatments (varied composition, consistent radius/crop) */
.k-photo-split{ display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.k-photo-split .k-ps-media{ border-radius: 20px; overflow: hidden; aspect-ratio: 4/5; }
.k-photo-split .k-ps-media img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.k-photo-split.is-media-left .k-ps-media{ order: -1; }
@media (max-width: 860px){ .k-photo-split{ grid-template-columns: 1fr; gap: 26px; } .k-photo-split .k-ps-media{ aspect-ratio: 16/10; } .k-photo-split.is-media-left .k-ps-media{ order: 0; } }
.k-photo-wide{ border-radius: 22px; overflow: hidden; }
.k-photo-wide img{ width: 100%; display: block; object-fit: cover; aspect-ratio: 16/6; object-position: 50% 30%; }
@media (max-width: 640px){ .k-photo-wide img{ aspect-ratio: 16/11; } }
.k-photo-inline{ display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 34px; align-items: center; }
.k-photo-inline .k-pi-media{ border-radius: 18px; overflow: hidden; aspect-ratio: 4/3; }
.k-photo-inline .k-pi-media img{ width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 760px){ .k-photo-inline{ grid-template-columns: 1fr; gap: 20px; } }

/* hero split (content + media) */
.k-hero-split{ display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 48px; align-items: center; }
@media (max-width: 940px){ .k-hero-split{ grid-template-columns: 1fr; gap: 32px; } }

/* icon standard: 24 canvas / 1.75 stroke / boxed container */
.k-ic{ width: 40px; height: 40px; border-radius: 10px; background: var(--brand-verdigris-soft); color: var(--brand-verdigris-text); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.k-ic svg{ width: 20px; height: 20px; }
.k-ic--sm{ width: 28px; height: 28px; border-radius: 8px; } .k-ic--sm svg{ width: 16px; height: 16px; }

/* feature rows (icon + title + body), used sparingly */
.k-featlist{ list-style: none; margin: 0; padding: 0; }
.k-featrow{ display: grid; grid-template-columns: 40px 1fr; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); align-items: start; }
.k-featrow:last-child{ border-bottom: 1px solid var(--line); }
.k-featrow .k-feat-t{ font-family: var(--ff-heading); font-size: 16px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 4px; }
.k-featrow .k-feat-b{ font-size: 14.5px; line-height: 1.55; color: var(--sub); margin: 0; }

@media (prefers-reduced-motion: reduce){ a.k-card, .k-card--hover{ transition: none !important; } }
