:root {
  --jd-ivory: #f7f4ec;
  --jd-paper: #fffdf8;
  --jd-navy: #0b1930;
  --jd-cobalt: #2457ff;
  --jd-gray: #657086;
  --jd-line: rgba(11, 25, 48, 0.14);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--jd-ivory);
  color: var(--jd-navy);
  font-family: Arial, Helvetica, sans-serif;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

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

.screen-reader-text:focus {
  top: 8px;
  left: 8px;
  z-index: 100000;
  width: auto;
  height: auto;
  padding: 14px 18px;
  clip: auto;
  background: #fff;
  color: var(--jd-navy);
  font-weight: 700;
}

.site-header {
  position: relative;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 88px;
  padding: 0 5vw;
  border-bottom: 1px solid var(--jd-line);
  background: rgba(247, 244, 236, 0.96);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  color: var(--jd-navy);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--jd-cobalt);
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0;
}

.custom-logo {
  display: block;
  width: auto;
  max-width: 190px;
  max-height: 42px;
}

.desktop-nav,
.desktop-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 44px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.desktop-nav a {
  color: #38445a;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}

.jd-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 750;
  text-decoration: none;
}

.jd-button-small {
  justify-self: end;
  min-height: 44px;
  padding: 0 18px;
  border-color: var(--jd-navy);
  font-size: 0.77rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--jd-line);
  border-radius: 8px;
  background: transparent;
  color: var(--jd-navy);
  font: inherit;
  cursor: pointer;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  content: "";
}

.menu-toggle-lines {
  position: relative;
}

.menu-toggle-lines::before {
  position: absolute;
  top: -6px;
}

.menu-toggle-lines::after {
  position: absolute;
  top: 6px;
}

.site-main,
.wp-content-shell {
  width: min(100% - 40px, 1240px);
  min-height: 55vh;
  margin: 0 auto;
  padding: 90px 0;
}

.builder-content,
.builder-content.site-main {
  width: 100%;
  max-width: none;
  padding: 0;
}

.entry-header,
.entry-content,
.entry-footer {
  width: min(100%, 820px);
  margin-right: auto;
  margin-left: auto;
}

.page-template-template-full-width .entry-header,
.page-template-template-full-width .entry-content,
.page-template-template-full-width .entry-footer {
  width: 100%;
  max-width: none;
}

.entry-title,
.archive-title {
  margin: 0 0 30px;
  font-size: clamp(2.5rem, 5vw, 5rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.entry-content {
  font-size: 1.04rem;
  line-height: 1.75;
}

.entry-content > * {
  max-width: 820px;
  margin-right: auto;
  margin-left: auto;
}

.entry-content > .alignwide {
  max-width: 1240px;
}

.entry-content > .alignfull {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
}

.post-card {
  padding: 28px 0;
  border-bottom: 1px solid var(--jd-line);
}

.post-card h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.post-card a {
  text-decoration: none;
}

.post-meta,
.archive-description {
  color: var(--jd-gray);
  font-size: 0.84rem;
}

.content-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 70px;
}

.widget {
  margin-bottom: 35px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--jd-line);
}

.widget-title {
  font-size: 1rem;
}

.pagination {
  margin-top: 44px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto auto;
  align-items: center;
  gap: 40px;
  min-height: 110px;
  padding: 26px 5vw;
  background: var(--jd-navy);
  color: white;
}

.site-footer p,
.site-footer small {
  margin: 0;
  color: #9ba8bc;
  font-size: 0.72rem;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer > nav ul,
.site-footer > div.footer-links {
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #cbd3e0;
  font-size: 0.73rem;
}

.footer-brand .brand-mark {
  background: white;
  color: var(--jd-cobalt);
}

.site-footer > .footer-widget-area {
  display: block;
  grid-column: 1 / -1;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.search-form {
  display: flex;
  align-items: stretch;
  gap: 10px;
  max-width: 620px;
  margin-top: 28px;
}

.search-form label {
  flex: 1;
}

.search-field,
.entry-content input:not([type="submit"]),
.entry-content textarea,
.entry-content select {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--jd-line);
  border-radius: 8px;
  background: #fff;
  color: var(--jd-navy);
  font: inherit;
}

.entry-content textarea {
  min-height: 150px;
}

.comments-area,
.post-navigation {
  max-width: 820px;
  margin: 60px auto 0;
}

.comment-list {
  padding-left: 24px;
}

.comment-body {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--jd-line);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(36, 87, 255, 0.38);
  outline-offset: 4px;
}

.woocommerce .site-main {
  max-width: 1240px;
}

@media (max-width: 1050px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
    gap: 12px;
  }

  .menu-toggle {
    display: grid;
  }

  .desktop-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    padding: 24px 5vw;
    border-top: 1px solid var(--jd-line);
    border-bottom: 1px solid var(--jd-line);
    background: var(--jd-paper);
    box-shadow: 0 18px 35px rgba(11, 25, 48, 0.1);
  }

  body .desktop-nav.is-open {
    display: block;
  }

  .desktop-nav ul,
  .desktop-nav.is-open {
    flex-direction: column;
    align-items: flex-start;
  }

  .content-with-sidebar {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .search-form {
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 74px;
    padding: 0 20px;
  }

  .site-header > .jd-button {
    display: none;
  }

  .brand > span:last-child {
    display: none;
  }

  .site-main,
  .wp-content-shell {
    width: min(100% - 32px, 1240px);
    padding: 65px 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 40px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
