/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

.sw-hidden {
  display: none;
}

.sw-text-center {
  text-align: center;
}

.sw-block {
  display: block;
}

.sw-inline-block {
  display: inline-block;
}

.sw-full-width {
  width: 100%;
}

section,
.sw-section {
  margin-block: 1.5rem;
}

.sw-image {
  text-align: center;
  margin: 0.5rem;
  max-width: 100%;
  display: flex;
}
.sw-image img {
  overflow: hidden;
}

.sw-border-radius {
  border-radius: 4px;
}

.sw-space-block-1 {
  margin-block: 1rem;
}

.sw-space-block-2 {
  margin-block: 2rem;
}

.sw-space-block-3 {
  margin-block: 3rem;
}

.sw-space-block-4 {
  margin-block: 4rem;
}

.sw-space-block-5 {
  margin-block: 5rem;
}

.sw-space-block-6 {
  margin-block: 6rem;
}

.sw-space-block-7 {
  margin-block: 7rem;
}

.sw-space-block-8 {
  margin-block: 8rem;
}

.sw-wrap-balance {
  text-wrap: balance;
}

.sw-underline {
  text-decoration: underline;
}

.sw-collapse {
  margin: 0;
  padding: 0;
  width: fit-content;
}

.sw-button {
  padding: 0.5rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  column-gap: 0.5ch;
  background-color: var(--accent-color);
  border-radius: 4px;
  text-decoration: none;
  color: black;
}
.sw-button:hover, .sw-button:focus {
  background-color: var(--menu-item-hover-color);
  color: var(--navigation-clr__active-link);
}

.sw-icon {
  display: inline-block;
  height: 0.9rem;
  width: auto;
}

.sw-caption-bubble {
  border-radius: 100vw;
  padding: 0.25rem 0.5rem;
  background-color: var(--tertiary-color);
}

a:has(svg.sw-icon),
button:has(svg.sw-icon) {
  display: inline-flex;
  align-items: center;
  column-gap: 0.75ch;
}

.sw-flex {
  display: flex;
  flex-flow: row wrap;
}
.sw-flex.sw-row-gap-1,
.sw-flex .sw-row-gap-1 {
  row-gap: 1rem;
}
.sw-flex .sw-fd-column {
  flex-direction: column;
}
.sw-flex.sw-gap-1,
.sw-flex .sw-gap-1 {
  gap: 1rem;
}
.sw-flex .sw-expanded {
  width: 100%;
}
.sw-flex .sw-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
}
.sw-flex .sw-row.sw-column-gap-1 {
  column-gap: 1rem;
}
.sw-flex .sw-row.sw-column-gap-1 .sw-column {
  flex: 1 1 calc(50% - 1rem);
  min-width: 20rem;
}
.sw-flex .sw-row.sw-column-gap-1 .sw-column.sw-flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}
.sw-flex .sw-row.sw-gap-1 {
  gap: 1rem;
}
.sw-flex .sw-row.sw-gap-1 .sw-column {
  flex: 1 1 calc(50% - 0.5rem);
  min-width: 20rem;
}
.sw-flex .sw-row.sw-gap-1 .sw-column.sw-flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}
.sw-flex .sw-row .sw-column {
  flex: 1 1 50%;
  min-width: 20rem;
}
.sw-flex .sw-row .sw-column.sw-flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.sw-flex-start {
  align-items: flex-start;
}

.sw-justify-center {
  justify-content: center;
}

.sw-sidebar ::-webkit-scrollbar {
  width: 5px;
}

.sw-sidebar ::-webkit-scrollbar-thumb {
  background: #787578;
  border-radius: 10px;
}

.sw-sidebar ::-webkit-scrollbar-track {
  margin: 0;
}

.sw-sidebar {
  position: sticky;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--navigation-width);
  height: 100vh;
  height: 100dvh;
  scrollbar-gutter: stable;
  display: flex;
  flex-direction: column;
  flex: 0;
  z-index: var(--sidebar-zindex);
  color: var(--navigation-clr, var(--text-clr));
  box-shadow: 10px 0 10px 0 hsla(0, 0%, 0%, 0.4);
  background-color: var(--navigation-bg-clr);
  grid-area: navigation;
  transition: 200ms ease;
}

.sw-scrollbox {
  overflow: auto;
  visibility: hidden;
  height: 100%;
  padding-bottom: 2rem;
  scrollbar-width: thin;
  scrollbar-color: #787578 var(--navigation-bg-clr);
}

.sw-scrollbox-inner,
.sw-scrollbox:hover {
  visibility: visible;
}

.sw-scrollbox-inner {
  display: flex;
  flex-direction: column;
}

.sw-scrollbox-inner p {
  font-size: 16px;
  color: #fff;
}

.sw-sidebar ul {
  list-style: none;
  position: sticky;
  top: 0;
}

.sw-sidebar .sw-button {
  margin-top: 1rem;
}

.sw-sidebar ul li:not(:has(.sw-button)) {
  border-bottom: 2px solid #000;
}

.sw-sidebar ul li:nth-last-of-type(2) {
  border-bottom: none;
}

.sw-sidebar ul li:has(.sw-button) {
  margin-left: 1rem;
}

.sw-sidebar ul a:not(.sw-button) {
  text-decoration: none;
  color: inherit;
  transition: background-color 200ms ease;
}

.sw-sidebar ul a:not(.sw-button) {
  display: inline-flex;
  align-items: center;
  height: 100%;
  width: 100%;
  padding: 0.5rem 1rem;
}

.sw-sidebar ul a.sw-active,
.sw-sidebar ul a:hover {
  background-color: var(--menu-item-hover-color);
  color: var(--navigation-clr__active-link);
}

.sw-sidebar .sw-icon,
.sw-sidebar .sw-icon rect {
  stroke: currentColor;
}

.sw-sidebar.sw-sidebar-visible {
  transform: translateX(0%);
  box-shadow: 10px 0 10px 0 hsla(0, 0%, 0%, 0.4);
}

.sw-sidebar-toggle {
  position: absolute;
  width: 50px;
  height: 50px;
  background-color: red;
  left: 100%;
  display: none;
  z-index: var(--sidebar-toggle-zindex);
}

.sw-sidebar-backdrop {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  width: 100dvw;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: var(--sidebar-backdrop-zindex);
}

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

:root {
  /*#region generic*/
  --font-family: Calibri, Candara, Segoe, Segoe UI, Optima, Arial, sans-serif;
  --max-page-width: 1600px;
  /*#endregion generic*/
  --primary-heading-font-size: 2rem;
  --secondary-heading-font-size: 1.4rem;
  --font-size: 16px;
  /*#region navigation*/
  --navigation-width: 185px;
  --navigation-clr: var(--text-clr);
  --navigation-clr__active-link: var(--navigation-clr);
  /*#endregion navigation*/
  /*#region colors*/
  --scrollbar-thumb-color: #000;
  --scrollbar-track-color: #e0e0e0;
  --selection-bg-clr: #fff;
  --selection-clr: #000;
  --text-clr: #000;
  --navigation-bg-clr: #F3EEF1;
  --menu-item-hover-color: #cb7cad;
  --accent-color: #cfa0bd;
  --tertiary-color: rgb(160, 107, 140);
  /*#endregion colors*/
  /*#region z-index*/
  --sidebar-zindex: 10;
  --sidebar-toggle-zindex: 10;
  --sidebar-backdrop-zindex: 5;
  /*#endregion z-index*/
}

html {
  font-size: var(--font-size);
  scrollbar-color: var(--scrollbar-thumb-color) var(--scrollbar-track-color); /* thumb-clr track-clr */
  scrollbar-width: thin;
}

body {
  font-family: var(--font-family), sans-serif;
  color: var(--text-clr);
}

::selection {
  background-color: var(--selection-bg-clr);
  color: var(--selection-clr);
}

.sw-wrapper {
  display: grid;
  grid-template-areas: "navigation content";
  grid-template-columns: var(--navigation-width) 1fr;
  max-width: var(--max-page-width);
  margin: 0 auto;
}

noscript {
  background-color: orangered;
  width: 90%;
  padding: 1rem;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  margin: 1rem auto;
}

/*#region content*/
.sw-content {
  grid-area: content;
  line-height: 1.25rem;
  padding-bottom: 2rem;
  overflow: hidden;
}

.sw-content > * {
  padding-inline: 2rem;
}

.sw-content .sw-heading {
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-block: 1rem 0.5rem;
  text-wrap: balance;
}
.sw-content .sw-heading.sw-primary, .sw-content .sw-heading.sw-secondary {
  text-decoration: none;
  width: 100%;
  text-align: center;
}
.sw-content .sw-heading.sw-secondary {
  font-size: var(--secondary-heading-font-size);
}
.sw-content .sw-heading.sw-primary {
  font-size: var(--primary-heading-font-size);
  margin-block: 1.5rem;
}

.sw-content .sw-button {
  width: 16rem;
  text-align: center;
}

/*#endregion content*/
/*#region media queries*/
@media only screen and (width < 700px) {
  .sw-wrapper {
    grid-template-areas: "content";
    grid-template-columns: 1fr;
  }
  .sw-sidebar {
    /* display: none; */
    position: fixed;
    top: 0;
    transform: translateX(-100%);
    box-shadow: none;
  }
  .sw-sidebar-toggle {
    display: block;
  }
}
@media only print {
  .sw-wrapper {
    grid-template-areas: "content";
    grid-template-columns: 1fr;
  }
  .sw-sidebar {
    display: none;
  }
  noscript {
    display: none;
  }
}
/* TODO: setup correct colors */
@media only screen and (prefers-color-scheme: dark) {
  :root {
    /*#region colors*/
    --text-clr: #fff;
    /* --navigation-bg-clr: #676767; */
    --navigation-bg-clr: #4B4B4B;
    --navigation-clr: #ffffff;
    --navigation-clr__active-link: #000000;
    --menu-item-hover-color: #cb7cad;
    /*#endregion colors*/
  }
  body {
    background-color: #3c3c3c;
  }
}
/*#endregion media queries*/
.sw-gallery {
  margin: 2rem 0;
  display: block;
  columns: 20rem;
  gap: 1rem;
}
.sw-gallery figure {
  margin: 0;
  margin-bottom: 1rem;
  break-inside: avoid;
}
.sw-gallery figure figcaption {
  padding: 0.5rem 1rem 0.4rem;
  background: #ddd;
  color: #333;
  border-radius: 1rem 1rem 0 0;
  text-align: end;
}
.sw-gallery figure img {
  width: 100%;
  display: block;
  border-radius: 4px;
}
