@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap");

:root {
  --p-max-width: 65ch;
  --nav-bar-width: 15rem;
}

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

* {
  margin: 0;
  padding: 0;
  font: inherit;
}

html {
  font-family: "JetBrains Mono", monospace;
  /* color-scheme: dark light; */
  hanging-punctuation: first last;
}

body {
  min-height: 100svh;
  background-color: hsl(0, 0%, 98%);
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

p,
li {
  max-width: var(--p-max-width);
  text-wrap: pretty;
}

@media (prefers-reduced-motion: no-preference) {
  :has(:target) {
    scroll-behavior: smooth;
  }
}

.sidebar-menu {
  position: fixed;
  top: 0;
  padding: 2rem;
  background-color: gold;
  height: 100svh;
  width: var(--nav-bar-width);
  overflow: auto;
}

.sidebar-menu ul li {
  list-style-type: none;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.sidebar-menu ul li a:hover {
  transform: translateX(1px);
  font-weight: bold;
}

.sidebar-menu a {
  text-decoration: none;
  color: black;
}

.content-wrapper {
  margin-left: var(--nav-bar-width);
  padding: 2rem;
  padding-left: 5rem;
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 3rem;
  row-gap: 0.5rem;
}

.syydistus-wrapper {
  position: relative;
}

.sisestatav-tekst {
  padding: 1rem;
  border: 1px solid black;
  min-height: 20rem;
  white-space: break-spaces;
  width: var(--p-max-width);
}

.sisestatav-tekst-copy {
  z-index: -999;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  color: transparent;
  border-color: transparent;
}

.right > div {
  margin-bottom: 1rem;
}

li {
  list-style-position: inside;
}

.btn {
  width: 20ch;
}

.btn:hover {
  background-color: gold;
}

.lõik {
  padding: 1rem 0 1rem;
}
