/**
 * Friseur-News CI
 * Version 1.0.0
 * Based on the project's binding CI profile.
 */

body.fn-ci-active {
  --fn-ci-copper: #a65f3c;
  --fn-ci-copper-dark: #6f3d29;
  --fn-ci-copper-light: #d8a083;
  --fn-ci-text: #222222;
  --fn-ci-text-muted: #666666;
  --fn-ci-border: #e4e1de;
  --fn-ci-surface: #f7f5f2;
  --fn-ci-white: #ffffff;
  --fn-ci-content: 760px;
  --fn-ci-container: 1280px;
  --fn-ci-gutter: clamp(16px, 3vw, 32px);
  --fn-ci-radius: 6px;
  background: var(--fn-ci-white);
  color: var(--fn-ci-text);
  font-family: Inter, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.fn-ci-active *,
body.fn-ci-active *::before,
body.fn-ci-active *::after {
  box-sizing: border-box;
}

body.fn-ci-active :where(.site, .wp-site-blocks) {
  min-width: 0;
}

body.fn-ci-active :where(main, .site-main) {
  min-width: 0;
}

body.fn-ci-active.single-post :where(.site-main, main) > article,
body.fn-ci-active.page :where(.site-main, main) > article {
  margin-inline: auto;
  max-width: var(--fn-ci-container);
  padding-inline: var(--fn-ci-gutter);
}

body.fn-ci-active.single-post :where(.entry-header, .post-header) {
  margin: 0 auto 32px;
  max-width: var(--fn-ci-content);
}

body.fn-ci-active.single-post :where(.entry-content, .post-content, .wp-block-post-content) > :where(:not(.alignwide):not(.alignfull)),
body.fn-ci-active.page :where(.entry-content, .post-content, .wp-block-post-content) > :where(p, h2, h3, h4, h5, h6, ul, ol, blockquote, table, figure:not(.alignwide):not(.alignfull)) {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--fn-ci-content);
}

body.fn-ci-active :where(.entry-content, .post-content, .wp-block-post-content) p {
  color: var(--fn-ci-text);
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(17px, 1.6vw, 18px);
  line-height: 1.65;
  margin-block: 0 24px;
}

body.fn-ci-active :where(h1, h2, h3, h4, h5, h6, .entry-title, .wp-block-post-title) {
  color: var(--fn-ci-copper-dark);
  font-family: Inter, Arial, sans-serif;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

body.fn-ci-active :where(h1, .entry-title) {
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.12;
  margin-block: 0 16px;
}

body.fn-ci-active h2 {
  font-size: clamp(28px, 4vw, 34px);
  line-height: 1.2;
  margin-block: 48px 20px;
}

body.fn-ci-active h3 {
  font-size: clamp(22px, 3vw, 25px);
  line-height: 1.25;
  margin-block: 40px 16px;
}

body.fn-ci-active h4 {
  font-size: clamp(19px, 2.2vw, 20px);
  line-height: 1.3;
  margin-block: 32px 12px;
}

body.fn-ci-active :where(.entry-meta, .post-meta, .wp-block-post-date, .wp-block-post-author) {
  color: var(--fn-ci-text-muted);
  display: flex !important;
  flex-wrap: wrap;
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  gap: 8px 16px;
  line-height: 1.4;
}

body.fn-ci-active a {
  color: var(--fn-ci-copper-dark);
  text-decoration-color: var(--fn-ci-copper);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

body.fn-ci-active :where(.entry-content, .post-content, .wp-block-post-content) a {
  text-decoration-line: underline;
}

body.fn-ci-active a:hover {
  color: var(--fn-ci-copper);
}

body.fn-ci-active :where(a, button, input, select, textarea, summary):focus-visible {
  border-radius: 2px;
  outline: 3px solid var(--fn-ci-copper-dark);
  outline-offset: 3px;
}

body.fn-ci-active :where(img, video, iframe) {
  height: auto;
  max-width: 100%;
}

body.fn-ci-active.single-post :where(.post-thumbnail, .wp-block-post-featured-image, .entry-content figure) img {
  border-radius: var(--fn-ci-radius);
}

body.fn-ci-active :where(figcaption, .wp-caption-text) {
  color: var(--fn-ci-text-muted);
  font-size: 14px;
  line-height: 1.4;
  margin-top: 8px;
}

body.fn-ci-active :where(blockquote, .wp-block-quote) {
  border-left: 4px solid var(--fn-ci-copper);
  color: var(--fn-ci-text);
  margin-block: 32px;
  padding: 16px 24px;
}

body.fn-ci-active :where(ul, ol) {
  padding-left: 1.4em;
}

body.fn-ci-active :where(li + li) {
  margin-top: 8px;
}

body.fn-ci-active :where(.wp-block-button__link, button, input[type="button"], input[type="submit"]) {
  align-items: center;
  background: var(--fn-ci-copper-dark);
  border: 2px solid var(--fn-ci-copper-dark);
  border-radius: var(--fn-ci-radius);
  color: var(--fn-ci-white);
  display: inline-flex;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  justify-content: center;
  line-height: 1.25;
  min-height: 44px;
  padding: 10px 20px;
  text-decoration: none;
}

body.fn-ci-active :where(.wp-block-button__link, button, input[type="button"], input[type="submit"]):hover {
  background: var(--fn-ci-copper);
  border-color: var(--fn-ci-copper);
  color: var(--fn-ci-white);
}

body.fn-ci-active :where(input:not([type="button"]):not([type="submit"]), select, textarea) {
  background: var(--fn-ci-white);
  border: 1px solid var(--fn-ci-border);
  border-radius: var(--fn-ci-radius);
  color: var(--fn-ci-text);
  font: inherit;
  min-height: 44px;
  padding: 10px 12px;
}

body.fn-ci-active :where(table) {
  border-collapse: collapse;
  display: block;
  max-width: 100%;
  overflow-x: auto;
  width: max-content;
}

body.fn-ci-active :where(th, td) {
  border: 1px solid var(--fn-ci-border);
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
}

body.fn-ci-active th {
  background: var(--fn-ci-surface);
}

body.fn-ci-active :where(.navigation, .post-navigation, .posts-navigation, .pagination) {
  border-top: 1px solid var(--fn-ci-border);
  margin-top: 48px;
  padding-top: 24px;
}

body.fn-ci-active :where(.wp-block-post-template) {
  gap: 24px;
}

body.fn-ci-active :where(.wp-block-post-template > li, article.post) {
  min-width: 0;
}

body.fn-ci-active :where(.wp-block-post-featured-image img) {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@media (max-width: 767px) {
  body.fn-ci-active {
    font-size: 17px;
  }

  body.fn-ci-active.single-post :where(.site-main, main) > article,
  body.fn-ci-active.page :where(.site-main, main) > article {
    padding-inline: 16px;
  }

  body.fn-ci-active :where(.wp-block-columns) {
    flex-direction: column;
  }

  body.fn-ci-active :where(.wp-block-column) {
    flex-basis: 100% !important;
    width: 100%;
  }

  body.fn-ci-active :where(.main-navigation a, .wp-block-navigation-item__content) {
    align-items: center;
    display: flex;
    min-height: 44px;
  }
}

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

