:root {
  --kes-container: 1200px;
  --kes-wide: 1440px;
  --kes-ink: #12202f;
  --kes-navy: #1d2d3f;
  --kes-navy-deep: #0c1722;
  --kes-gold: #dca93b;
  --kes-gold-dark: #bb8423;
  --kes-bronze: #704013;
  --kes-cream: #f6f1e8;
  --kes-paper: #fffdf9;
  --kes-muted: #667180;
  --kes-line: rgba(18, 32, 47, .12);
  --kes-shadow: 0 24px 70px rgba(18, 32, 47, .12);
  --kes-radius: 24px;
  --kes-display: Manrope, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --kes-body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--kes-paper);
  color: var(--kes-muted);
  font-family: var(--kes-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar .kes-site-header { top: 32px; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, h4, h5, h6 { color: var(--kes-ink); font-family: var(--kes-display); line-height: 1.08; }

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.kes-container {
  width: min(calc(100% - 48px), var(--kes-container));
  margin-inline: auto;
}

.kes-skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100000;
  padding: 12px 18px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--kes-gold);
  color: var(--kes-ink);
  font-weight: 800;
}

.kes-skip-link:focus { transform: none; }

.kes-site-header {
  position: relative;
  z-index: 1000;
  width: 100%;
  background: var(--kes-paper);
}

.kes-topbar {
  min-height: 34px;
  background: var(--kes-bronze);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.kes-topbar__inner {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.kes-topbar nav { display: flex; gap: 22px; }
.kes-topbar a { text-decoration: none; }
.kes-topbar a:last-child { color: #ffd773; }

.kes-nav-shell {
  border-bottom: 1px solid var(--kes-line);
  background: rgba(255, 253, 249, .98);
  box-shadow: 0 8px 30px rgba(18, 32, 47, .04);
}

.kes-nav-row {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.kes-brand { flex: 0 0 auto; max-width: 300px; }
.kes-brand .custom-logo-link, .kes-brand__fallback { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.kes-brand .custom-logo { width: auto; max-width: 260px; max-height: 72px; object-fit: contain; }
.kes-brand__fallback > img { width: 64px; height: 64px; object-fit: contain; }
.kes-brand__fallback > span { display: grid; gap: 2px; }
.kes-brand__fallback strong { max-width: 190px; color: var(--kes-ink); font-family: var(--kes-display); font-size: 15px; line-height: 1.12; text-transform: uppercase; }
.kes-brand__fallback small { color: var(--kes-bronze); font-family: Georgia, serif; font-size: 10px; font-style: italic; }

.kes-primary-nav { display: flex; align-items: center; gap: 30px; }
.kes-menu, .kes-footer-main ul { list-style: none; margin: 0; padding: 0; }
.kes-menu { display: flex; align-items: center; gap: 28px; }
.kes-menu > li { position: relative; }
.kes-menu a { display: inline-flex; padding: 16px 0; color: var(--kes-ink); font-size: 13px; font-weight: 800; text-decoration: none; }
.kes-menu > li > a::after { position: absolute; right: 0; bottom: 8px; left: 0; height: 2px; content: ""; transform: scaleX(0); transform-origin: right; background: var(--kes-gold); transition: transform .2s ease; }
.kes-menu > li:hover > a::after, .kes-menu > .current-menu-item > a::after, .kes-menu > .current-menu-ancestor > a::after { transform: scaleX(1); transform-origin: left; }
.kes-menu .sub-menu { position: absolute; top: calc(100% - 4px); left: -20px; z-index: 20; display: none; min-width: 230px; padding: 12px 20px; border: 1px solid var(--kes-line); border-radius: 16px; background: #fff; box-shadow: var(--kes-shadow); list-style: none; }
.kes-menu li:hover > .sub-menu, .kes-menu li:focus-within > .sub-menu { display: block; }
.kes-menu .sub-menu a { display: block; padding: 9px 0; }

.kes-header-cta, .kes-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 25px;
  border: 1px solid var(--kes-gold);
  border-radius: 999px;
  background: var(--kes-gold);
  color: var(--kes-ink);
  font-weight: 850;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.kes-header-cta:hover, .kes-button:hover { transform: translateY(-2px); background: #e6b64d; box-shadow: 0 14px 28px rgba(187, 132, 35, .22); }
.kes-nav-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--kes-line); border-radius: 12px; background: #fff; }
.kes-nav-toggle > span:not(.screen-reader-text) { display: block; height: 2px; margin: 5px 0; background: var(--kes-ink); }

.kes-site-main { min-height: 60vh; }
.kes-page, .kes-page-content { width: 100%; }
.kes-builder-page .kes-page-content > :first-child { margin-top: 0; }
.kes-default-page-header { padding: 100px 0 70px; background: var(--kes-navy); }
.kes-default-page-header h1 { margin: 0; color: #fff; font-size: clamp(42px, 7vw, 78px); }

.kes-newsletter { background: var(--kes-bronze); color: #fff; }
.kes-newsletter__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, .8fr); gap: 70px; align-items: center; min-height: 190px; padding-block: 40px; }
.kes-newsletter h2 { max-width: 630px; margin: 8px 0 0; color: #fff; font-size: clamp(28px, 3.2vw, 43px); }
.kes-footer-eyebrow, .kes-kicker { color: #f1c35f; font-size: 10px; font-weight: 900; letter-spacing: .24em; text-transform: uppercase; }
.kes-footer-eyebrow::before, .kes-kicker::before { display: inline-block; width: 28px; height: 1px; margin-right: 12px; vertical-align: middle; background: currentColor; content: ""; }
.kes-newsletter__form { display: flex; align-items: end; gap: 12px; }
.kes-newsletter__form label { display: grid; flex: 1; gap: 7px; color: #fff; font-size: 11px; font-weight: 800; }
.kes-newsletter__form input { width: 100%; height: 52px; padding: 0 16px; border: 1px solid rgba(255,255,255,.24); border-radius: 10px; outline: none; background: rgba(255,255,255,.09); color: #fff; }
.kes-newsletter__form input:focus { border-color: #f1c35f; box-shadow: 0 0 0 3px rgba(241,195,95,.18); }
.kes-newsletter__form button { height: 52px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--kes-gold); color: var(--kes-ink); font-weight: 850; cursor: pointer; }

.kes-footer-main { background: var(--kes-navy-deep); color: #aab2bb; }
.kes-footer-grid { display: grid; grid-template-columns: 1.25fr .7fr .8fr 1fr; gap: 70px; padding-block: 72px 56px; }
.kes-footer-grid h3 { margin: 0 0 20px; color: #fff; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.kes-footer-grid p { margin: 17px 0; font-size: 14px; }
.kes-footer-grid li + li { margin-top: 10px; }
.kes-footer-grid a { display: block; color: #c0c6cd; font-size: 13px; text-decoration: none; }
.kes-footer-grid a:hover { color: #fff; }
.kes-footer-brand .kes-brand__fallback strong { color: #fff; }
.kes-footer-brand .kes-brand__fallback small { color: #f1c35f; }
.kes-footer-brand .custom-logo { max-width: 190px; max-height: 88px; object-fit: contain; }
.kes-social-links { display: flex; flex-wrap: wrap; gap: 8px; }
.kes-social-links a { padding: 6px 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; font-size: 10px; }
.kes-footer-bottom { display: flex; min-height: 80px; align-items: center; justify-content: space-between; gap: 30px; border-top: 1px solid rgba(255,255,255,.1); font-size: 11px; }
.kes-footer-bottom nav { display: flex; gap: 18px; }
.kes-footer-bottom a { color: inherit; text-decoration: none; }

.kes-archive, .kes-single, .kes-error-page { padding: 90px 0; }
.kes-archive header, .kes-single__header { margin-bottom: 55px; }
.kes-archive h1, .kes-single h1, .kes-error-page h1 { margin: 12px 0; font-size: clamp(46px, 7vw, 82px); }
.kes-archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.kes-post-card { overflow: hidden; border: 1px solid var(--kes-line); border-radius: 20px; background: #fff; }
.kes-post-card__image { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.kes-post-card__image img { width: 100%; height: 100%; object-fit: cover; }
.kes-post-card > div { padding: 24px; }
.kes-post-card h2 { font-size: 24px; }
.kes-post-card h2 a, .kes-text-link { text-decoration: none; }
.kes-single__image { overflow: hidden; max-height: 700px; margin-bottom: 60px; border-radius: var(--kes-radius); }
.kes-single__image img { width: 100%; max-height: 700px; object-fit: cover; }
.kes-prose { width: min(calc(100% - 48px), 780px); margin-inline: auto; }
.kes-prose > * + * { margin-top: 1.4em; }
.kes-error-page { display: grid; min-height: 55vh; place-items: center; text-align: center; }
.kes-error-page p { margin: 0 auto 28px; max-width: 580px; }

@media (max-width: 1100px) {
  .kes-nav-row { gap: 20px; }
  .kes-menu { gap: 18px; }
  .kes-primary-nav { gap: 20px; }
  .kes-header-cta { padding-inline: 18px; }
  .kes-footer-grid { gap: 40px; }
}

@media (max-width: 980px) {
  body.admin-bar .kes-site-header { top: 46px; }
  .kes-nav-row { min-height: 78px; }
  .kes-brand__fallback > img { width: 52px; height: 52px; }
  .kes-nav-toggle { display: block; }
  .kes-primary-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; max-height: calc(100vh - 120px); overflow: auto; padding: 20px 24px 28px; border-top: 1px solid var(--kes-line); background: #fff; box-shadow: 0 22px 40px rgba(18, 32, 47, .12); }
  .is-menu-open .kes-primary-nav { display: block; }
  .kes-menu { display: grid; gap: 0; }
  .kes-menu a { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--kes-line); }
  .kes-menu > li > a::after { display: none; }
  .kes-menu .sub-menu { position: static; display: block; padding: 0 0 0 18px; border: 0; box-shadow: none; }
  .kes-header-cta { width: 100%; margin-top: 18px; }
  .kes-newsletter__inner { grid-template-columns: 1fr; gap: 24px; }
  .kes-footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .kes-footer-grid > :last-child { grid-column: 2 / -1; }
  .kes-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .kes-container { width: min(calc(100% - 32px), var(--kes-container)); }
  .kes-topbar__inner > span { display: none; }
  .kes-topbar__inner { justify-content: flex-end; }
  .kes-topbar nav { gap: 16px; }
  .kes-brand { max-width: 235px; }
  .kes-brand__fallback strong { font-size: 13px; }
  .kes-brand__fallback small { display: none; }
  .kes-newsletter__form { display: grid; }
  .kes-newsletter__form button { width: max-content; }
  .kes-footer-grid { grid-template-columns: 1fr 1fr; gap: 38px 24px; }
  .kes-footer-grid > :first-child, .kes-footer-grid > :last-child { grid-column: 1 / -1; }
  .kes-footer-bottom { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 20px; }
  .kes-archive-grid { grid-template-columns: 1fr; }
  .kes-archive, .kes-single, .kes-error-page { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

