@font-face {
  font-family: Orbitron;
  src: url('/fonts/Orbitron-VariableFont_wght.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --color-bg: #0d1117;
  --color-text: #e6edf3;
  --color-pre-bg: #1e1e1e;
  --color-pre-border: #30363d;
  --color-inline-code-bg: #1e1e1e;
  --color-blockquote-border: #30363d;
  --color-callout-warning-bg: #3d2e00;
  --color-callout-warning-border: #d29922;
  --color-callout-info-bg: #0c2d6b;
  --color-callout-info-border: #1f6feb;
  --color-article-item-bg: #161b22;
  --color-approval: #3fb950;

  font-family: sans-serif;
}

@supports (font-variation-settings: normal) {
  :root {
    font-optical-sizing: auto;
  }
}

code {
  font-family: monospace;
  overflow-wrap: break-word;
}

@media (prefers-color-scheme: light) {
  :root {
    --color-bg: #fff;
    --color-text: #1f2328;
    --color-pre-bg: #f6f8fa;
    --color-pre-border: #d8dee4;
    --color-inline-code-bg: #f6f8fa;
    --color-blockquote-border: #d8dee4;
    --color-callout-warning-bg: #fff8c5;
    --color-callout-warning-border: #d29922;
    --color-callout-info-bg: #ddf4ff;
    --color-callout-info-border: #1f6feb;
    --color-article-item-bg: #f6f8fa;
    --color-approval: #1a7f37;
  }
}

body {
  padding: 0.5em 1em 0;
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: clamp(1rem, 0.5rem + 1vw, 1.25rem);
}

p {
  line-height: clamp(1.4rem, 1.3rem + 0.5vw, 1.7rem);
  text-wrap: pretty;
  orphans: 2;
  widows: 2;
}

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

h2 {
  font-size: clamp(1.35rem, 0.75rem + 1.2vw, 1.85rem);
}

h3 {
  font-size: clamp(1.15rem, 0.65rem + 0.9vw, 1.45rem);
}

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

#rss-icon {
  height: 2em;
}

#home-link {
  font-size: larger;
  font-family: Orbitron, sans-serif;
  font-optical-sizing: auto;
}

#home-link:link,
#home-link:visited,
#home-link:hover,
#home-link:active {
  text-decoration: none;
  color: inherit;
}

svg {
  color: var(--color-text);
}

.svg-invisible {
  fill: var(--color-bg);
  stroke: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-to-content:focus {
  position: fixed;
  width: auto;
  height: auto;
  padding: 0.5em 1em;
  margin: 0;
  overflow: visible;
  clip-path: none;
  white-space: normal;
  z-index: 1000;
  background: var(--color-bg);
  color: var(--color-text);
  border: 2px solid var(--color-text);
  top: 0;
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

.article-metadata-item-container {
  display: flex;
  flex-flow: row wrap;
  gap: 0.25em;
  align-items: center;
}

.article-metadata-item-container > svg {
  height: 1.2em;
}

.article-metadata-item-container > * {
  font-size: 0.8em;
}

.article-metadata-item-container > p {
  margin: 0;
}

#original-content-icon {
  height: 1.4em;
  color: var(--color-approval);
}

#contacts {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-pre-border);
  font-size: 0.9em;
}

#contacts div {
  display: flex;
  align-items: center;
  gap: 0.35em;
  margin: 0;
}

.contacts-icon {
  height: 1.2em;
  fill: none;
  stroke: var(--color-text);
}

.contacts-icon-fill {
  fill: var(--color-text);
  stroke: none;
}

.internal-link {
  text-decoration: none;
  color: inherit;
}

.internal-link:hover {
  text-decoration: revert;
  color: revert;
}

.internal-link:visited {
  color: inherit;
}

#top-row {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
}
