:root {
  --background-default: #ffffff;
  --background-paper: #fbfbfb;
  --text-primary: #292929;
  --text-secondary: #767676;
  --primary-main: #292929;
  --primary-light: #292929;
  --secondary-main: #fbfbfb;
  --secondary-light: #fbfbfb;
  --border-primary: #e8e8e8;
  --border-secondary: #e8e8e8;
  --border-color: #e8e8e8;
  --accent: #8a5a2b;
  --accent-soft: rgba(138, 90, 43, 0.09);
}
:root[data-theme='dark'] {
  --background-default: #111111;
  --background-paper: #050404;
  --text-primary: #e0e0e0;
  --text-secondary: #8a8a8a;
  --primary-main: #e0e0e0;
  --primary-light: #e0e0e0;
  --secondary-main: #050404;
  --secondary-light: #050404;
  --border-primary: #2a2a2a;
  --border-secondary: #2a2a2a;
  --border-color: #2a2a2a;
  --accent: #c99a63;
  --accent-soft: rgba(201, 154, 99, 0.14);
}

/* Custom CSS */
/* Site-wide custom CSS: page transitions.

   This file is not linked by any page. Its contents go into the admin panel's
   Design > Custom CSS field, which the site service serves as /site-design.css
   on every page. Keep this copy and that field the same.

   Moving between pages, the header, the sidebar and the footer hold still and
   only the reading column changes: the old page lifts away and the new one
   settles in from just below. Browsers without cross-document view transitions
   ignore all of it and navigate as before. */

@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }

  .site-header { view-transition-name: site-header; }
  .docs-sidebar { view-transition-name: site-sidebar; }
  .docs-main { view-transition-name: site-main; }
  .site-footer { view-transition-name: site-footer; }

  /* Everything not named above cross-fades quickly and quietly. */
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.18s;
  }

  /* The parts that are the same on every page do not animate at all. */
  ::view-transition-group(site-header),
  ::view-transition-group(site-sidebar) {
    animation: none;
  }
  ::view-transition-old(site-header),
  ::view-transition-old(site-sidebar) {
    display: none;
  }
  ::view-transition-new(site-header),
  ::view-transition-new(site-sidebar) {
    animation: none;
  }

  /* Pages differ in height, so the column is anchored to its top edge rather
     than stretched from one height to the other. */
  ::view-transition-group(site-main) {
    animation-duration: 0.32s;
  }
  ::view-transition-old(site-main),
  ::view-transition-new(site-main) {
    height: auto;
    width: 100%;
    object-fit: none;
    object-position: top;
  }
  ::view-transition-old(site-main) {
    animation: page-leave 0.14s ease-in both;
  }
  ::view-transition-new(site-main) {
    animation: page-arrive 0.32s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s both;
  }
}

@keyframes page-leave {
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}
@keyframes page-arrive {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
