/* ==========================================================================
   Kaitago — Homepage template styles
   Scoped to .kt-home. No gradients, no shadows, no JS-driven motion.
   ========================================================================== */

.kt-home {
  --kt-off-white: #f6f5f0;
  --kt-ink: #151716;
  --kt-olive: #46563c;
  --kt-olive-dark: #364229;
  --kt-olive-light: #eceee6;
  --kt-blue: #5d7b82;
  --kt-orange: #d66b45;
  --kt-grey: #daddd7;
  --kt-text-2: #4a4d49;
  --kt-text-muted: #7d817c;
  --kt-serif: "Newsreader", Georgia, serif;
  --kt-sans: "Manrope", system-ui, -apple-system, sans-serif;

  background: var(--kt-off-white);
  color: var(--kt-ink);
  font-family: var(--kt-sans);
  overflow-x: hidden;
}

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

.kt-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: clamp(20px, 5vw, 40px);
  padding-right: clamp(20px, 5vw, 40px);
}

/* ---------- type ---------- */
.kt-eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.kt-eyebrow--olive  { color: var(--kt-olive); }
.kt-eyebrow--muted  { color: var(--kt-text-muted); }
.kt-eyebrow--orange { color: var(--kt-orange); }
.kt-eyebrow--blue   { color: var(--kt-blue); font-size: 11px; }

.kt-rule {
  display: block;
  width: 56px;
  height: 2px;
  background: var(--kt-olive);
  margin: 20px 0 24px;
}

.kt-display {
  font-family: var(--kt-serif);
  font-weight: 400;
  font-size: clamp(2.05rem, 3.6vw, 3.4rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 20ch;
  text-wrap: pretty;
}

.kt-h2 {
  font-family: var(--kt-serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 2.4vw, 2.4rem);
  line-height: 1.2;
  margin: 0;
  text-wrap: pretty;
}
.kt-h2--tight  { margin-top: 16px; max-width: 30ch; line-height: 1.22; }
.kt-h2--sm     { font-size: clamp(1.6rem, 2.2vw, 2.15rem); margin-top: 14px; }
.kt-h2--invert { color: var(--kt-off-white); max-width: 26ch; }

.kt-lede {
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.7;
  color: var(--kt-text-2);
  margin: 24px 0 0;
  max-width: 52ch;
  text-wrap: pretty;
}

.kt-body { font-size: 15px; line-height: 1.65; color: var(--kt-text-2); margin: 0; }
.kt-body--wide { margin-top: 18px; max-width: 56ch; line-height: 1.7; }
.kt-body--lg   { font-size: 16px; line-height: 1.75; margin-top: 20px; max-width: 56ch; }

.kt-index { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--kt-text-muted); }

.kt-label {
  font-family: var(--kt-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 14px 0 10px;
}

.kt-caption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--kt-text-muted);
  letter-spacing: 0.04em;
}

/* ---------- buttons & links ---------- */
.kt-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.kt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: var(--kt-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .16s ease-out, color .16s ease-out, border-color .16s ease-out;
}
.kt-btn--primary { background: var(--kt-olive); border-color: var(--kt-olive); color: var(--kt-off-white); }
.kt-btn--primary:hover,
.kt-btn--primary:focus-visible { background: var(--kt-olive-dark); border-color: var(--kt-olive-dark); color: var(--kt-off-white); text-decoration: none; }
.kt-btn--outline { background: transparent; border-color: var(--kt-olive); color: var(--kt-olive); }
.kt-btn--outline:hover,
.kt-btn--outline:focus-visible { background: var(--kt-olive-light); color: var(--kt-olive-dark); text-decoration: none; }
.kt-btn--inverse { background: var(--kt-off-white); border-color: var(--kt-off-white); color: var(--kt-ink); font-weight: 700; padding: 16px 32px; }
.kt-btn--inverse:hover,
.kt-btn--inverse:focus-visible { background: var(--kt-grey); border-color: var(--kt-grey); color: var(--kt-ink); text-decoration: none; }

.kt-textlink-wrap { margin: clamp(28px, 3vw, 44px) 0 0; }
.kt-textlink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--kt-olive);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--kt-olive);
  text-decoration: none;
}
.kt-textlink:hover,
.kt-textlink:focus-visible { color: var(--kt-olive-dark); border-color: var(--kt-olive-dark); text-decoration: none; }

.kt-home a:focus-visible { outline: 2px solid var(--kt-blue); outline-offset: 3px; }

/* ---------- frames & media ---------- */
.kt-frame { position: relative; border: 1px solid var(--kt-grey); background: var(--kt-off-white); overflow: hidden; }
.kt-frame--white { background: #fff; }
.kt-frame--pad { padding: clamp(8px, 1vw, 14px); }

.kt-ratio { width: 100%; }
.kt-ratio--4x5 { aspect-ratio: 4 / 5; }
.kt-ratio--4x3 { aspect-ratio: 4 / 3; }
.kt-ratio--3x2 { aspect-ratio: 3 / 2; }
.kt-ratio--16x10 { aspect-ratio: 16 / 10; }

.kt-img,
.kt-fallback {
  display: block;
  width: 100%;
  height: 100%;
}
.kt-img--contain { object-fit: contain; object-position: center; }
.kt-img--cover   { object-fit: cover; }
.kt-fallback { background: var(--kt-grey); }

/* ---------- 01 hero ---------- */
.kt-hero { padding: clamp(48px, 7vw, 104px) 0 clamp(40px, 6vw, 88px); }
.kt-hero__inner { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 72px); align-items: flex-start; }
.kt-hero__text { flex: 1 1 420px; min-width: min(100%, 300px); }
.kt-hero__media { flex: 1 1 460px; min-width: min(100%, 300px); margin: 0; }

/* ---------- sections ---------- */
.kt-section { padding: clamp(48px, 6vw, 88px) 0; }
.kt-section--ruled { border-top: 1px solid var(--kt-grey); }
.kt-section--card { background: #fff; border-top: 1px solid var(--kt-grey); border-bottom: 1px solid var(--kt-grey); }

.kt-sectionhead {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: baseline;
  justify-content: space-between;
}

.kt-grid { display: grid; gap: clamp(20px, 2.5vw, 36px); margin-top: clamp(28px, 4vw, 52px); }
.kt-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kt-grid--work { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }

.kt-col { border-top: 1px solid var(--kt-ink); padding-top: 20px; }
.kt-workitem { margin: 0; }

/* ---------- 04 journal ---------- */
.kt-post__link { display: block; color: inherit; text-decoration: none; }
.kt-post__link:hover .kt-post__title { color: var(--kt-olive); }
.kt-post .kt-eyebrow { margin-top: 16px; }
.kt-post__title {
  font-family: var(--kt-serif);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.35;
  margin: 10px 0 0;
  text-wrap: pretty;
  transition: color .16s ease-out;
}
.kt-post__date { margin: 10px 0 0; font-size: 12px; color: var(--kt-text-muted); }

/* ---------- 05 about ---------- */
.kt-section--about { background: #ffffff; }
.kt-about { display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 64px); align-items: flex-start; }
.kt-about__media { flex: 0 1 280px; min-width: min(100%, 220px); margin: 0; }
.kt-about__text { flex: 1 1 380px; min-width: min(100%, 280px); }
.kt-about--noimage .kt-about__text { flex-basis: 100%; }
.kt-about--noimage .kt-body--lg { max-width: 62ch; }

/* ---------- 06 final CTA ---------- */
.kt-cta { background: var(--kt-olive); color: var(--kt-off-white); padding: clamp(52px, 6vw, 96px) 0; }
.kt-cta__inner { display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 64px); align-items: flex-end; justify-content: space-between; }
.kt-cta__body { font-size: 16px; line-height: 1.7; margin: 20px 0 0; max-width: 48ch; color: rgba(246, 245, 240, .82); }
.kt-cta__action { margin: 0; flex: 0 0 auto; }

/* ---------- tablet ---------- */
@media (max-width: 900px) {
  .kt-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kt-grid--work { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kt-hero__media { flex-basis: 100%; max-width: 560px; }
}

/* ---------- mobile (390px reference) ---------- */
@media (max-width: 640px) {
  .kt-grid--3,
  .kt-grid--work { grid-template-columns: minmax(0, 1fr); }
  .kt-hero { padding-top: 40px; }
  .kt-display { max-width: none; }
  .kt-sectionhead { gap: 8px; }
  .kt-sectionhead .kt-eyebrow { order: -1; }
  .kt-actions .kt-btn { flex: 1 1 100%; }
  .kt-about__media { max-width: 240px; }
  .kt-cta__inner { align-items: flex-start; }
  .kt-cta__action .kt-btn { width: 100%; }
}
