@font-face {
  font-family: "Anton";
  src:
    url("../fonts/Anton-Regular.woff2") format("woff2"),
    url("../fonts/Anton-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --kf-width-narrow: 35rem;
  --kf-width-editorial: 44rem;
  --kf-width-media: 82rem;
  --kf-width-immersive: 100rem;
  --kf-page-gutter: clamp(1.25rem, 4vw, 4rem);
  --jcd-mobile-gutter: 20px;

  --kf-space-xs: var(--wp--preset--spacing--xs);
  --kf-space-s: var(--wp--preset--spacing--s);
  --kf-space-m: var(--wp--preset--spacing--m);
  --kf-space-l: var(--wp--preset--spacing--l);
  --kf-space-xl: var(--wp--preset--spacing--xl);
  --kf-section-space: var(--kf-space-xl);

  /* Stable semantic type aliases. WordPress may normalize h2/h3/h4 slugs as h-2/h-3/h-4. */
  --kf-font-size-h1: clamp(2.25rem, 1.86rem + 1.22vw, 3rem);
  --kf-font-size-h2: var(--wp--preset--font-size--h-2, var(--wp--preset--font-size--h2, clamp(1.75rem, 1.43rem + 1.01vw, 2.375rem)));
  --kf-font-size-h3: var(--wp--preset--font-size--h-3, var(--wp--preset--font-size--h3, clamp(1.375rem, 1.18rem + .61vw, 1.75rem)));
  --kf-font-size-h4: var(--wp--preset--font-size--h-4, var(--wp--preset--font-size--h4, 1.375rem));

  --kf-color-base: var(--wp--preset--color--background);
  --kf-color-surface: var(--wp--preset--color--surface);
  --kf-color-text: var(--wp--preset--color--foreground);
  --kf-color-primary: var(--wp--preset--color--accent);
  --kf-color-primary-dark: var(--wp--preset--color--accent-dark);
  --jcd-color-red: var(--wp--preset--color--accent);
  --jcd-color-red-bright: var(--wp--preset--color--red-bright);
  --jcd-color-red-dark: var(--wp--preset--color--accent-dark);
  --jcd-color-text: var(--wp--preset--color--foreground);
  --jcd-color-white-warm: var(--wp--preset--color--white-warm);
  --jcd-color-light-grey: var(--wp--preset--color--light-grey);
  --jcd-color-judo: var(--wp--preset--color--judo);
  --jcd-color-ju-jitsu: var(--wp--preset--color--ju-jitsu);
  --jcd-color-aikido: var(--wp--preset--color--aikido);
  --jcd-gradient-soft: linear-gradient(270deg, rgba(255, 255, 255, 0) 42.45%, #ffffff 54.35%, #f1f1f1 100%), #ffffff;
  --kf-color-muted: var(--wp--preset--color--muted);
  --kf-color-border: color-mix(in srgb, var(--kf-color-text) 12%, transparent);
  --kf-radius: 4px;
  --kf-shadow: 0 .5rem 2rem color-mix(in srgb, var(--kf-color-text) 8%, transparent);
  --kf-header-height: 9.375rem;
  --kf-header-height-compact: 5.125rem;
  --kf-transition: 220ms ease;
  --jcd-icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 14 12'%3E%3Cpath fill='%23000' d='M7.933 11.999a.47.47 0 0 1-.33-.136.457.457 0 0 1 0-.653l4.803-4.749H.466A.464.464 0 0 1 0 6c0-.255.209-.461.466-.461h11.942L7.604.788a.457.457 0 0 1 0-.652.47.47 0 0 1 .66 0l5.6 5.537a.46.46 0 0 1 0 .654l-5.6 5.537a.47.47 0 0 1-.33.136z'/%3E%3C/svg%3E");

  --kf-header-background: var(--kf-color-base);
  --kf-header-link-color: var(--wp--preset--color--foreground);
  --kf-header-secondary-link-color: var(--wp--preset--color--foreground);
  --kf-mobile-menu-background: #ffffff;
  --kf-mobile-menu-link-color: var(--wp--preset--color--foreground);
  --kf-mobile-menu-secondary-link-color: var(--wp--preset--color--foreground);
  --kf-mobile-menu-divider-color: color-mix(in srgb, var(--wp--preset--color--foreground) 14%, transparent);
  --kf-mobile-menu-focus-color: var(--wp--preset--color--accent);
  --kf-mobile-menu-active-color: var(--kf-color-primary);
  --kf-mobile-logo-fill: var(--kf-mobile-menu-link-color);
  --kf-mobile-logo-stroke: var(--kf-mobile-menu-link-color);
  --kf-header-current-height: var(--kf-header-height);
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-wrap: break-word;
  font-family: var(--wp--preset--font-family--body-sans);
}

/* Heading rhythm ---------------------------------------------------------
 * Reset browser defaults and provide a deliberate editorial rhythm.
 * Component-specific titles (cards, heroes, archive headers) can still
 * override these values in their own stylesheets. */
:is(h1, h2, h3, h4, h5, h6, .wp-block-post-title, .wp-block-heading) {
  font-family: var(--wp--preset--font-family--heading-display);
  font-weight: 400;
  letter-spacing: .025em;
  line-height: 1.3;
  text-transform: uppercase;
  text-wrap: balance;
}

:is(h1, .wp-block-post-title) {
  margin-block: 0 .55em;
  font-size: var(--kf-font-size-h1);
}

.has-lead-font-size {
  font-weight: 700;
}

.has-display-font-size,
.has-h-1-font-size,
.has-h1-font-size {
  font-size: var(--kf-font-size-h1) !important;
}

h2 {
  margin-block: 1.35em .48em;
}

h2 {
  font-size: var(--kf-font-size-h2);
}

.has-h-2-font-size,
.has-h2-font-size {
  font-size: var(--kf-font-size-h2) !important;
}

h3 {
  margin-block: 1.25em .45em;
}

h3 {
  font-size: var(--kf-font-size-h3);
}

.has-h-3-font-size,
.has-h3-font-size {
  font-size: var(--kf-font-size-h3) !important;
}

h4 {
  margin-block: 1.15em .4em;
}

h5 {
  margin-block: 1.05em .35em;
}

h6 {
  margin-block: 1em .3em;
}

/* A heading opening a content container does not need artificial space
 * above it. This also keeps patterns and editor sections aligned. */
:where(.entry-content, .wp-block-post-content, .kf-section, .kf-container,
  .kf-container-narrow, .kf-container-editorial, .kf-container-media,
  .kf-container-immersive, .editor-styles-wrapper)
  > :is(h1, h2, h3, h4, h5, h6, .wp-block-heading, .wp-block-post-title):first-child {
  margin-block-start: 0;
}

/* Consecutive heading levels belong to the same semantic group. */
:is(h1, h2, h3, h4, h5) + :is(h2, h3, h4, h5, h6) {
  margin-block-start: .65em;
}

:where(p, li, figcaption) {
  text-wrap: pretty;
}

:where(small, figcaption, .wp-element-caption) {
  font-size: var(--wp--preset--font-size--caption);
  line-height: 1.45;
}

.wp-block-separator,
.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
  width: 100%;
  border: 0;
  border-top: 1px solid currentColor;
  opacity: .5;
}

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

:focus-visible {
  outline: 3px solid var(--wp--preset--color--accent);
  outline-offset: 3px;
}

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

/* Editorial links -------------------------------------------------------- */
:where(.entry-content, .wp-block-post-content, .kf-section, .kf-hero__content) a:not(.wp-element-button):not(.wp-block-button__link):not([class*="kf-"]) {
  color: var(--kf-color-primary-dark);
  text-decoration-line: underline;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  transition: color var(--kf-transition), text-decoration-color var(--kf-transition), text-underline-offset var(--kf-transition);
}

:where(.entry-content, .wp-block-post-content, .kf-section, .kf-hero__content) a:not(.wp-element-button):not(.wp-block-button__link):not([class*="kf-"]):hover {
  color: var(--kf-color-primary);
  text-decoration-color: currentColor;
  text-underline-offset: .24em;
}

/* Buttons and CTAs ------------------------------------------------------ */
:root :where(.wp-element-button, .wp-block-button__link) {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  padding: .75rem 0 .375rem;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: var(--jcd-color-red);
  box-shadow: none;
  font-family: var(--wp--preset--font-family--heading-display);
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: .025em;
  line-height: 1;
  text-transform: uppercase;
  transition:
    color var(--kf-transition),
    background-color var(--kf-transition),
    border-color var(--kf-transition),
    box-shadow var(--kf-transition),
    transform var(--kf-transition);
}

:root :where(.wp-element-button, .wp-block-button__link)::after {
  content: "";
  display: inline-block;
  width: .875rem;
  height: .75rem;
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask: var(--jcd-icon-arrow) center / contain no-repeat;
  mask: var(--jcd-icon-arrow) center / contain no-repeat;
}

:root :where(.wp-element-button, .wp-block-button__link):hover {
  background: transparent;
  color: var(--jcd-color-red-dark);
  box-shadow: none;
  transform: none;
}

:root :where(.wp-element-button, .wp-block-button__link):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--kf-color-primary) 65%, white);
  outline-offset: 3px;
  background: transparent;
  color: var(--jcd-color-red-dark);
}

:root :where(.wp-element-button, .wp-block-button__link):active {
  transform: translateY(0) scale(.985);
  box-shadow: none;
}

:root .wp-block-button.is-jcd-CTA-plain .wp-block-button__link,
:root .wp-block-button.is-style-jcd-cta-plain .wp-block-button__link,
:root :where(.wp-element-button, .wp-block-button__link).is-jcd-CTA-plain,
:root :where(.wp-element-button, .wp-block-button__link).is-style-jcd-cta-plain {
  gap: .75rem;
  padding-block: .65rem .58rem;
  padding-inline: 1.375rem;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--jcd-color-red);
  color: var(--wp--preset--color--white);
  font-size: 1rem;
}

:root .wp-block-button.is-jcd-CTA-plain .wp-block-button__link::after,
:root .wp-block-button.is-style-jcd-cta-plain .wp-block-button__link::after,
:root :where(.wp-element-button, .wp-block-button__link).is-jcd-CTA-plain::after,
:root :where(.wp-element-button, .wp-block-button__link).is-style-jcd-cta-plain::after {
  content: none;
}

:root .wp-block-button.is-jcd-CTA-plain .wp-block-button__link:hover,
:root .wp-block-button.is-jcd-CTA-plain .wp-block-button__link:focus-visible,
:root .wp-block-button.is-style-jcd-cta-plain .wp-block-button__link:hover,
:root .wp-block-button.is-style-jcd-cta-plain .wp-block-button__link:focus-visible,
:root :where(.wp-element-button, .wp-block-button__link).is-jcd-CTA-plain:hover,
:root :where(.wp-element-button, .wp-block-button__link).is-jcd-CTA-plain:focus-visible,
:root :where(.wp-element-button, .wp-block-button__link).is-style-jcd-cta-plain:hover,
:root :where(.wp-element-button, .wp-block-button__link).is-style-jcd-cta-plain:focus-visible {
  background: var(--jcd-color-red-dark);
  color: var(--wp--preset--color--white);
  transform: translateY(-2px);
  box-shadow: 0 .45rem 1rem color-mix(in srgb, var(--jcd-color-red-dark) 18%, transparent);
}
