/* Only the site's December skin uses these properties. Art, dialogue and layout stay with the host theme. */
@media screen and (forced-colors: none) {
  body.bafc-winter-site {
    --bafcw-pine: #173d33;
    --bafcw-evergreen: #255044;
    --bafcw-berry: #792e41;
    --bafcw-gold: #b49458;
    --bafcw-light-gold: #e7d3a0;
    --bafcw-ink: #28382f;
    --bafcw-muted: #605b50;
    --bafcw-paper: #fffcf4;
    --bafcw-line: #d4c9ad;
    --bafcw-wash: #eef2e7;
    --bafcw-ribbon: repeating-linear-gradient(120deg,
        #234c40 0 12px, #8c3a4b 12px 20px, #e2c890 20px 22px, #49675a 22px 29px);
    --bafcw-cloth:
      radial-gradient(ellipse 90% 40rem at 50% 2rem, #fffaf0 10%, transparent 100%),
      repeating-linear-gradient(45deg, transparent 0 32px, #3558490d 32px 34px, transparent 34px 38px, #3558490d 38px 39px, transparent 39px 72px),
      repeating-linear-gradient(-45deg, transparent 0 32px, #9c714a0c 32px 34px, transparent 34px 72px);
    color: var(--bafcw-ink);
    background-color: #eff1e7;
    background-image: var(--bafcw-cloth);
  }
  .bafc-winter-site .bf-site,
  .bafc-winter-site #container {
    background-color: #eff1e7;
    background-image: var(--bafcw-cloth);
  }
  .bafc-winter-site #content, .bafc-winter-site #content-in { background-color: transparent; }

  /* A woven ribbon and small points of light frame the masthead and footer. */
  .bafc-winter-site .bf-site .bf-header,
  .bafc-winter-site :is(#header-container, #footer),
  .bafc-winter-site .bf-site .bf-footer {
    color: #fff9e8;
    background-color: var(--bafcw-pine);
    background-image:
      var(--bafcw-ribbon),
      radial-gradient(circle at 19px 12px, #d0b57f5c 0 1px, transparent 1.8px),
      radial-gradient(circle at 46px 24px, #d3bb8d3d 0 1px, transparent 1.65px),
      linear-gradient(105deg,#173a30,#254c3d 52%,#173a30);
    background-size: 100% 4px, 76px 49px, 91px 55px, cover;
    background-repeat: no-repeat, repeat, repeat, no-repeat;
    border-bottom: 1px solid var(--bafcw-gold);
  }
  .bafc-winter-site .bf-site .bf-header {
    box-shadow: 0 0 0 100vmax var(--bafcw-pine);
    clip-path: inset(0 -100vmax);
  }
  .bafc-winter-site :is(#header,#header-in,#header-container-in,#footer-in) { background-color: transparent; }
  .bafc-winter-site #navi { background-color: #214639; border-block: 1px solid #789078; }
  .bafc-winter-site :is(.bf-header,.bf-footer,#header,#navi,#footer) :is(a,.site-name-text,.menu-caption,.menu-description) { color: #fff9e8; }
  .bafc-winter-site :is(.bf-header,#header,#footer) :is(.bf-brand-sub,.tagline,.site-description,.copyright) { color: #ecdbb1; }
  .bafc-winter-site .bf-site .bf-header nav a { border-color: #c7b78c88; }
  .bafc-winter-site :is(.bf-header nav,#navi) a:hover,
  .bafc-winter-site #navi .sub-menu { background: #365a49; color: #fff9e8; }
  .bafc-winter-site .bf-site .bf-footer,
  .bafc-winter-site #footer { border-top: 1px solid var(--bafcw-gold); }

  /* Preserve generous pale space around text and illustrations. */
  .bafc-winter-site :is(#main,#sidebar,.bf-detail,.bfp-results,.bafc-panel) {
    background-color: var(--bafcw-paper);
    border-color: var(--bafcw-line);
    color: var(--bafcw-ink);
  }
  .bafc-winter-site .bf-site :is(.bf-directory,.bf-editorial,.bf-normal-daily-card,.bf-support-summary,.bf-support-section),
  .bafc-winter-site :is(.bf-home-ranking-link,.bfp-results,.bafc-bbs,.bafc-visitor-home,.bafc-visitor-form) {
    border: 1px solid var(--bafcw-line);
    border-top: 3px solid var(--bafcw-gold);
    border-radius: 12px;
    background-color: var(--bafcw-paper);
    color: var(--bafcw-ink);
  }
  .bafc-winter-site :is(.bafc-bbs,.bafc-visitor-home,.bafc-visitor-form) {
    padding: clamp(.8rem, 2.3vw, 1.45rem);
    background-image: linear-gradient(145deg, #e9efdf 0, transparent 11rem);
  }
  .bafc-winter-site .bf-site .bf-home-ranking-link {
    background: linear-gradient(120deg, #e6eedf, #fffbef 68%);
    border-color: #b9c5a7;
    color: var(--bafcw-ink);
  }
  .bafc-winter-site .bf-site .bf-home-ranking-link:hover { border-color: var(--bafcw-berry); }
  .bafc-winter-site .bf-home-ranking-group { background-color: #fffdf6; border-color: var(--bafcw-line); }
  .bafc-winter-site .bf-home-ranking #bf-home-ranking-action { background: var(--bafcw-berry); color: #fff; }

  /* The card trim never covers an image or changes its crop. */
  .bafc-winter-site :is(.bf-character,.bf-support-art-card,.bf-support-card,.bf-moment-card,.bf-team-card,
    .bf-xmas-card,.bfd-collection-card,.bfp-card,.bf-event-archive,.bafc-visitor-card) {
    background-color: var(--bafcw-paper);
    border: 1px solid var(--bafcw-line);
    border-bottom: 3px solid #829b82;
    box-shadow: 0 3px 12px #1a372411;
    color: var(--bafcw-ink);
  }
  .bafc-winter-site :is(.bf-character,.bf-support-art-card,.bf-moment-card,.bf-team-card,.bf-xmas-card,.bfp-card):focus-within {
    border-bottom-color: var(--bafcw-berry);
  }
  .bafc-winter-site :is(.bf-team-body,.bf-moment-body,.bf-support-art-info,.bf-xmas-copy,.bfp-card-content) {
    background-color: var(--bafcw-paper);
    color: var(--bafcw-ink);
  }
  .bafc-winter-site :is(.bf-section-head,.bf-detail-head,.bfp-directory-heading,.bafc-bbs-feed) > :is(h1,h2,h3),
  .bafc-winter-site :is(.bf-team-body,.bf-moment-body,.bf-xmas-copy,.bfd-collection-copy,.bfp-card-content) :is(h2,h3) {
    color: var(--bafcw-pine);
  }
  .bafc-winter-site :is(.bf-section-head,.bfp-directory-heading,.bafc-bbs-feed) > :is(h2,h3),
  .bafc-winter-site :is(.bfp-results,.bf-team-series,.bafc-visitor-form) > h2 {
    border-inline-start: 4px solid var(--bafcw-berry);
    padding-inline-start: .55em;
  }
  .bafc-winter-site :is(.bf-section-head,.bafc-bbs-feed,.bfp-directory-heading) > :is(h2,h3)::after,
  .bafc-winter-site :is(.bf-event-intro,.bf-xmas-intro,.bf-moment-intro,.bfp-results,.bafc-visitor-form,.entry-content) > :is(h1,h2)::after {
    content: "";
    display: inline-block;
    width: 1.25em;
    height: .72em;
    margin-inline-start: .35em;
    vertical-align: .04em;
    background:
      radial-gradient(circle at 57% 64%, #ae3e50 0 9%, transparent 11%),
      radial-gradient(circle at 46% 77%, #802e40 0 10%, transparent 12%),
      radial-gradient(circle at 43% 54%, #b34a57 0 9%, transparent 11%),
      radial-gradient(ellipse 44% 25% at 26% 42%, #48795d 0 74%, transparent 80%),
      radial-gradient(ellipse 43% 25% at 72% 36%, #2f5a42 0 74%, transparent 80%);
    transform: rotate(-12deg);
    pointer-events: none;
  }
  .bafc-winter-site #main :is(.entry-content,.bafc-visitor-form) > h2 {
    color: var(--bafcw-pine);
    background-color: #edf1e5;
    border-inline-start: 4px solid var(--bafcw-berry);
  }
  .bafc-winter-site :is(.bf-card-note,.bf-art-credit,.bf-team-credit,.bf-moment-note,.bfp-results-note,.bafc-bbs-meta) { color: var(--bafcw-muted); }
  .bafc-winter-site :is(.bf-support-art-card,.bf-team-card,.bf-moment-card,.bf-xmas-card,.bfd-collection-card,.bfp-results,.bafc-bbs-feed) a:not([class]) {
    color: #743447;
    text-underline-offset: .16em;
  }

  .bafc-winter-site :is(.bf-support-search,.bf-moment-search,.bf-art-search,.bf-team-tools,
    .bfp-daybar,.bfp-selection-head,.bafc-bbs-form fieldset,.bafc-visitor-form fieldset) {
    background-color: var(--bafcw-wash);
    color: var(--bafcw-ink);
    border-color: #a9b8a0;
  }
  .bafc-winter-site :is(.bfp-tabs,.bafc-bbs-form fieldset,.bafc-visitor-form fieldset) { border-color: #a9b8a0; }
  .bafc-winter-site :is(.bfp-tabs [role=tab][aria-selected=true],.bafc-bbs-submit,.bafc-submit) {
    color: #fffaf0;
    background-color: var(--bafcw-pine);
    border-color: var(--bafcw-pine);
  }
  .bafc-winter-site :is(.bafc-bbs,.bafc-widget,.bafc-visitor-form,.bfp,.bf-art-search,
    .bf-moment-search,.bf-team-tools,#commentform) :is(input[type=text],input[type=search],textarea,select) {
    background-color: #fffef9;
    color: var(--bafcw-ink);
    border-color: #8a9687;
  }
  .bafc-winter-site :is(.bafc-bbs-entry,.bfp-result-list li,.bfp-results-more) { border-color: var(--bafcw-line); }
  .bafc-winter-site .bfp-result-rank { color: var(--bafcw-berry); }
  .bafc-winter-site .bfp-vote-button:not(:disabled) { border-color: var(--bafcw-berry); }
  .bafc-winter-site :is(.bf-site,#main,#sidebar,#footer,#navi) :is(a,button,input,textarea,select,summary):focus-visible {
    outline: 3px solid #9a561f;
    outline-offset: 2px;
  }
  .bafc-winter-site :is(.bf-header,.bf-footer,#header,#navi,#footer) a:focus-visible { outline-color: #f5d58a; }
  @media (max-width: 600px) {
    .bafc-winter-site :is(.bafc-bbs,.bafc-visitor-home,.bafc-visitor-form) { padding: .8rem; }
    .bafc-winter-site :is(#main,#sidebar) { min-width: 0; }
    .bafc-winter-site .mobile-menu-buttons {
      background: var(--bafcw-pine);
      border-top: 2px solid var(--bafcw-gold);
      color: #fff9e8;
    }
    .bafc-winter-site .mobile-menu-buttons .menu-button,
    .bafc-winter-site .mobile-menu-buttons .menu-button :is(a,label,span,div) {
      color: #fff9e8;
      background-color: transparent;
    }
  }
}
