:root {
  color-scheme: dark;
  --background: #05000a;
  --panel: #0b060b;
  --phosphor: #dd500d;
  --phosphor-hot: #ff9148;
  --text: #eee7df;
  --muted: #b8a89c;
  --rule: rgba(221, 80, 13, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
  -webkit-text-size-adjust: 100%;
}

body {
  width: min(100%, 1100px);
  min-height: 100%;
  margin: 0 auto;
  padding: 0 clamp(20px, 7vw, 96px);
  background:
    linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.18) 50%),
    radial-gradient(circle at 50% 0, rgba(221, 80, 13, 0.08), transparent 52%),
    var(--background);
  background-size: 100% 3px, auto, auto;
  color: var(--text);
  font: 16px/1.7 "Merriweather", Georgia, serif;
  text-rendering: optimizeLegibility;
}

.article-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0 20px;
  border-bottom: 1px solid var(--rule);
  font-family: "Roboto Condensed", Arial, sans-serif;
}

.article-site-name {
  color: var(--phosphor-hot);
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(221, 80, 13, 0.46);
}

.article-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-header nav a[aria-current="page"] {
  color: var(--phosphor-hot);
}

.content {
  display: flow-root;
  padding: clamp(34px, 6vw, 70px) 0 40px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  clear: both;
  margin: 1.55em 0 0.65em;
  color: var(--phosphor-hot);
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  max-width: 880px;
  margin-top: 0;
  font-size: clamp(36px, 7vw, 70px);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(25px, 4vw, 36px);
}

h3 {
  font-size: clamp(20px, 3vw, 27px);
}

p {
  margin: 0 0 1.2em;
}

.content > p:first-of-type {
  color: var(--muted);
  font-family: "Roboto Condensed", Arial, sans-serif;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

a {
  color: var(--phosphor);
  text-decoration-color: rgba(221, 80, 13, 0.45);
  text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
  color: var(--phosphor-hot);
  text-decoration-color: currentColor;
}

strong {
  color: #fff4eb;
}

ul,
ol {
  margin: 0 0 1.3em;
  padding-left: 1.6em;
}

li {
  margin-bottom: 0.45em;
}

code,
pre {
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
}

code {
  padding: 0.12em 0.3em;
  border: 1px solid rgba(221, 80, 13, 0.28);
  border-radius: 3px;
  background: rgba(221, 80, 13, 0.09);
  color: #ffc29d;
  font-size: 0.9em;
}

pre {
  max-width: 100%;
  margin: 1.4em 0;
  padding: 18px;
  overflow-x: auto;
  border-left: 4px solid var(--phosphor);
  border-radius: 3px;
  background: #f4f0eb;
  color: #17120f;
  font-size: 0.86rem;
  line-height: 1.55;
  text-align: left;
  box-shadow: 0 0 20px rgba(221, 80, 13, 0.1);
}

pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

figure {
  margin: 0;
}

.article-figure {
  width: min(42%, 350px);
  margin: 8px 0 24px;
}

.article-figure.is-left {
  float: left;
  margin-right: 30px;
}

.article-figure.is-right {
  float: right;
  margin-left: 30px;
}

.article-figure.is-wide {
  width: min(100%, 680px);
}

.article-figure.is-centered {
  float: none;
  margin: 28px auto;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(255, 145, 72, 0.48) !important;
  border-radius: 3px;
  box-shadow: 0 0 18px rgba(221, 80, 13, 0.16);
}

figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78em;
  font-style: italic;
  line-height: 1.45;
  text-align: center;
}

hr {
  clear: both;
  height: 1px;
  margin: 28px 0;
  border: 0;
  background: var(--rule);
}

blockquote {
  margin: 1.5em 0;
  padding: 0.5em 1.2em;
  border-left: 3px solid var(--phosphor);
  color: var(--muted);
}

.visible-xs-block {
  display: none !important;
}

.hidden-xs {
  display: block !important;
}

footer {
  clear: both;
  padding: 30px 0 60px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font: 13px/1.5 "Roboto Condensed", Arial, sans-serif;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

footer p {
  margin: 0;
}

@media (max-width: 767px) {
  body {
    padding-inline: 18px;
    font-size: 15px;
  }

  .article-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-top: 24px;
  }

  .content {
    padding-top: 36px;
  }

  .article-figure,
  .article-figure.is-left,
  .article-figure.is-right {
    width: 100%;
    float: none !important;
    margin: 24px auto;
  }

  pre {
    margin-inline: -8px;
    padding: 14px;
    font-size: 0.76rem;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  body {
    max-width: none;
    background: #fff;
    color: #111;
  }

  .article-header nav {
    display: none;
  }

  h1,
  h2,
  h3,
  a {
    color: #7f2e0a;
  }
}
