/* Version 1.0 */
/* https://ocv.ac/md */

@import url("./reset.css");

@import url("../font/ibm-plex-sans/font.css");
@import url("../font/ibm-plex-serif/font.css");
@import url("../font/ibm-plex-mono/font.css");

:root {
  --accent: #913939;

  --txts: 24px;

  --spacer: 96px;

  --content-width: 640px;

  --font-content: "IBM Plex Serif Regular";
  --font-head: "IBM Plex Sans Regular";

  --font-mono: "IBM Plex Mono Regular";
  --font-mono-bold: "IBM Plex Mono Bold";
}

@media (prefers-color-scheme: light) {
  :root {
    --mr: 222;
    --mg: 222;
    --mb: 222;

    --txtc: #000000;
    --txtci: #ffffff;

    --footer: #141414;

    --code: #deffcf;
    --code-bg: #000000ae;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --mr: 24;
    --mg: 24;
    --mb: 32;

    --txtc: #ffffff;
    --txtci: #000000;

    --footer: #060608;

    --code: #b2e69b;
    --code-bg: #000;
  }
}

body {
  background-color: var(--footer);
  color: var(--txtc);
  font-size: var(--txts);
}

.spacer {
  height: var(--spacer);
}

.banner {
  background-color: var(--accent);
  display: flex;
  justify-content: space-between;
  padding: 12px;
  text-transform: uppercase;
  font-size: 3rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

spoiler {
  background-color: #000000;
  color: transparent;
  transition:
    color 0.3s,
    background-color 0.3s;
}

spoiler:hover {
  background-color: #00000024;
  color: inherit;
}

.wrap {
  background-color: rgb(var(--mr), var(--mg), var(--mb));
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content {
  width: var(--content-width);
  background-color: rgb(
    calc(var(--mr) + 24),
    calc(var(--mg) + 24),
    calc(var(--mb) + 32)
  );
  padding: 2rem;
  display: flex;
  flex-direction: column;
  border-radius: 24px 24px 0 0;
}

.file {
  font-family: var(--font-mono);
  padding: 0 0 12px 0;
  opacity: 0.8;
}

code {
  font-size: inherit;
  user-select: all;
  background-color: #000;
  color: var(--code);
  background-color: var(--code-bg);
  padding: 0 2px;
  font-family: var(--font-mono);
}

.footer {
  width: 100%;
  color: #fff;
  background-color: var(--footer);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
}

.copy::after {
  content: "©2026 Ocvac";
}

pre {
  padding: 1rem;
  background-color: var(--code-bg);
  color: var(--code);
  border-radius: 12px;
  user-select: all;
  font-family: var(--font-mono);
  overflow: scroll;
  font-size: 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 1.64rem 0 0.64rem 0;
}

h1 {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 600;
  text-align: center;
}

h2 {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 500;
}

p {
  line-height: 1.6;
  font-size: 1.24rem;
  font-family: var(--font-content);
}

.logo {
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
}

.currentpage {
  text-decoration: underline;
  font-family: var(--font-mono-bold);
}
