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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

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

body {
  text-wrap: pretty;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
:root {
  --color-main: hsl(120, 100%, 25.1%);
  --color-main-soft: color-mix(in srgb, var(--color-main) 12%, transparent);
  --content-width: 50rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --shadow-sm: 0 1px 2px color-mix(in srgb, black 10%, transparent),
    0 1px 3px color-mix(in srgb, black 8%, transparent);
  --shadow-md: 0 6px 18px color-mix(in srgb, black 14%, transparent),
    0 2px 6px color-mix(in srgb, black 8%, transparent);
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-heading: var(--font-body);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
  accent-color: var(--color-main);
  color-scheme: light;
  --color-text: #404040;
  --color-text-muted: #6a6a6a;
  --color-background: #f5f5f5;
  --color-surface: #ffffff;
  --color-border: #dedede;
  --color-nav-bg: color-mix(in srgb, var(--color-background) 78%, transparent);
  --img-brightness: brightness(100%);
  --img-grayscale: grayscale(0%);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --color-text: #f5f5f5;
    --color-text-muted: #c2c2c2;
    --color-background: #404040;
    --color-surface: #4d4d4d;
    --color-border: #5f5f5f;
    --color-nav-bg: color-mix(
      in srgb,
      var(--color-background) 78%,
      transparent
    );
    --img-brightness: brightness(80%);
    --img-grayscale: grayscale(10%);
  }
}
html {
  font-family: var(--font-body);
  font-size: 100%;
  line-height: 1.65;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
  scrollbar-color: color-mix(in srgb, var(--color-text) 35%, transparent) transparent;
}

body {
  max-width: var(--content-width);
  margin-inline: auto;
  padding: var(--gutter);
  background-color: var(--color-background);
  color: var(--color-text);
  font-size: 1.125rem;
  transition: background-color 0.25s ease, color 0.25s ease;
}

@media (max-width: 480px) {
  body {
    font-size: 1.0625rem;
    padding: 0.75rem;
  }
}
:where([id]) {
  scroll-margin-top: 5rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-block: 1.25em 0.5em;
}

h1 {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
}

h2 {
  font-size: clamp(1.4rem, 1.15rem + 1.2vw, 1.9rem);
}

h3 {
  font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem);
}

h4 {
  font-size: 1.15rem;
}

h5 {
  font-size: 1.05rem;
}

h6 {
  font-size: 1rem;
}

:where(h1, h2, h3, h4, h5, h6, p, ul, ol, blockquote, figure, pre, table):first-child {
  margin-top: 0;
}

p,
ul,
ol,
dl,
blockquote,
figure,
pre,
table,
hr {
  margin-block: 0.9em;
}

ul,
ol {
  padding-inline-start: 1.5em;
}

li + li {
  margin-top: 0.3em;
}

li::marker {
  color: var(--color-main);
}

strong,
b {
  font-weight: 700;
}

small {
  font-size: 0.875em;
}

:where(a) {
  color: inherit;
  text-decoration: none;
}

main :where(a) {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}

main :where(a):hover,
main :where(a):focus-visible {
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 3px solid var(--color-main);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

img {
  filter: var(--img-brightness) var(--img-grayscale);
}

article :where(img, iframe) {
  border-radius: var(--radius-md);
}

iframe {
  max-width: 100%;
  border: 1px solid var(--color-border);
}

article > section[id] {
  margin-block: 1.5rem;
  padding: clamp(1rem, 3vw, 1.75rem);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

hr {
  border: 0;
  border-top: 1px solid var(--color-border);
}

blockquote {
  padding-inline-start: 1em;
  border-inline-start: 0.25em solid var(--color-main);
  color: var(--color-text-muted);
  font-style: italic;
}

code,
pre,
kbd,
samp {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

code {
  padding: 0.15em 0.35em;
  background-color: var(--color-surface);
  border-radius: var(--radius-sm);
}

pre {
  padding: 1em;
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

pre code {
  padding: 0;
  background: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
}

th,
td {
  padding: 0.5em 0.75em;
  border: 1px solid var(--color-border);
  text-align: start;
}

th {
  background-color: var(--color-surface);
}

::selection {
  background-color: var(--color-main);
  color: #ffffff;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: color-mix(in srgb, var(--color-text) 30%, transparent);
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: color-mix(in srgb, var(--color-text) 45%, transparent);
}

::-webkit-scrollbar-track {
  background: transparent;
}

header {
  width: 100%;
  padding-bottom: 0.5rem;
  color: #ffffff;
}
header .header-container {
  width: 100%;
  padding: clamp(0.75rem, 2vw, 1.25rem) clamp(1.25rem, 4vw, 2rem);
  border-radius: var(--radius-lg) 5rem var(--radius-lg) var(--radius-lg);
  background-color: var(--color-main);
  box-shadow: var(--shadow-md);
}
header .header-container h1,
header .header-container p {
  margin: 0;
}
header .header-container h1 {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.25rem);
}
header .header-container p {
  opacity: 0.9;
}
header .navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background-color: var(--color-nav-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
header .navbar .container {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}
@media (max-width: 420px) {
  header .navbar .container {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
}
header .navbar .container a {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  color: var(--color-text);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
header .navbar .container a:hover, header .navbar .container a:focus-visible {
  background-color: color-mix(in srgb, var(--color-text) 12%, transparent);
}
header .navbar .container .active {
  pointer-events: none;
  background-color: var(--color-main);
  color: #ffffff;
}

.wrapper-back-to-top {
  position: absolute;
  top: 100vh;
  right: 0.25rem;
  bottom: -5em;
  width: 3em;
  pointer-events: none;
}
.wrapper-back-to-top .back-to-top {
  position: fixed;
  position: sticky;
  pointer-events: all;
  z-index: 10;
  top: calc(100vh - 4rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid color-mix(in srgb, var(--color-main) 40%, transparent);
  border-radius: 50%;
  background-color: var(--color-main);
  color: #ffffff;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wrapper-back-to-top .back-to-top:hover, .wrapper-back-to-top .back-to-top:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 0 0 4px var(--color-main-soft);
}
.wrapper-back-to-top .back-to-top:focus-visible {
  outline: 3px solid var(--color-main);
  outline-offset: 2px;
}

img {
  width: 100%;
}

main {
  position: relative;
}

@media screen and (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
.line-height-double {
  line-height: 2;
}

body.preload * {
  animation-duration: 0s !important;
  -webkit-animation-duration: 0s !important;
  transition: background-color 0s, opacity 0s, color 0s, width 0s, height 0s, padding 0s, margin 0s !important;
}