/* Copyright (C) 2026 The Ragyxo Foundation */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

html {
  scroll-behavior: smooth;
  word-wrap: break-word;
  max-width: 800px;
  margin: auto;
}

body {
  background-color: var(--background);
  font-family: var(--ffamily);
  margin: 5%;
}

/* Root Classes */
:root {
  --foreground: #202020;
  --foreground-inv: #FFFFFF;
  --background: #FFFFFF;
  --branding: #73381D;
  --heading: #404040;
  --ffamily-reg: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ffamily: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, "IBM Plex Mono", "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --foreground: #FFFFFF;
    --foreground-inv: #202020;
    --background: #000000;
    --branding: #AD7C59;
    --heading: #CCCCCC;
  }
}

/* Main Layout */
h1, h2, h3, h4 {
  color: var(--heading);
}

h1 {
  font-size: 2.4rem;
}

h3, h4 {
  font-style: italic;
}

p, a, li {
  color: var(--foreground);
}

::selection {
  color: var(--foreground-inv);
  background: var(--branding);
}

img {
  max-width: 100%;
}

a:link, a:visited {
  font-weight: bold;
  color: var(--branding);
}

a:hover {
  color: var(--heading);
}

h1, h2, h3, a, p {
  text-decoration-style: dashed;
}

/* Code and code blocks */
pre>code {
  padding: 0;
  margin: 0;
  word-break: normal;
  white-space: pre;
  background: transparent;
  border: 0;
}

pre.break>code {
  word-break: break-word;
  word-wrap: break-word;
  white-space: wrap;
}

pre {
  padding: 1rem;
  overflow: auto;
  line-height: 1.45;
  color: var(--foreground);
  background-color: var(--background-alt);
  border-radius: 6px;
}

code, tt {
  padding: .2em .4em;
  font-size: 85%;
  white-space: break-spaces;
  font-family: var(--ffamily-code);
  color: var(--foreground);
  padding: 0;
}

/* Footer Horizontal Bar */
hr.foot {
  margin-top: 42px;
  margin-bottom: 16px;
  border: 2px solid;
  color: var(--branding);
}

/* HVLD Display CSS */
.horz { display: none; }
@media screen and (orientation: landscape) {
  .horz { display: block; }
  .vert { display: none; }
}

.dark {display: none; }
@media (prefers-color-scheme: dark) {
  .dark { display: block; }
  .light  { display: none; }
}

@media screen and (max-width: 800px) {
  body {
    margin: 5%;
    font-size: 0.9rem;
  }
}
