@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=VT323&display=swap");
.masthead {
  display: none;
}

@supports (inset: 0) {
  /**
   * Phosphor: an amber VT220-style CRT terminal, layered over the hacker theme.
   * Only loaded inside @supports in assets/phosphor.scss, so old browsers keep
   * the plain theme. Scanlines, glow and the bezel are pure CSS (the CSP blocks
   * data: images).
   */
  :root {
    --amber: #ffb000;
    --amber-bright: #ffd36b;
    --amber-dim: #a86f00;
    --amber-faint: rgba(255, 176, 0, 0.12);
    --phosphor-bg: #140b02;
    --base-color: var(--amber);
    --border: solid 1px var(--amber-dim);
    --selection-background: var(--amber);
    --selection-text: var(--phosphor-bg);
    --background-color: var(--phosphor-bg);
    --text-color: var(--amber);
    --placeholder-color: var(--amber-dim);
    --link-color: var(--amber-bright);
    --code-color-1: #9a6a12;
    --code-color-2: rgba(255, 176, 0, 0.2);
    --code-color-3: var(--phosphor-bg);
    --code-color-4: var(--amber);
    --code-color-5: #fff1c4;
    --code-color-6: #ffcc55;
    --code-color-7: #ffd36b;
    --code-color-8: #fff1c4;
    --code-color-9: #ffc23d;
    --code-color-10: var(--amber);
    --code-color-11: #fff1c4;
    --code-color-12: #ffc23d;
    --code-color-13: #ffcc55;
    --code-color-14: #ffe08f;
    --code-color-15: #ff9a3c;
    --code-color-16: #ffc870;
    --code-color-17: #ff9a3c;
    --code-color-18: var(--amber);
  }
  html {
    background: #0a0806;
  }
  body {
    font-family: "VT323", "Source Code Pro", monospace;
    font-size: 21px;
    line-height: 1.25 !important;
    min-height: 100vh;
    background: radial-gradient(ellipse at 50% 40%, #2a1806 0%, var(--phosphor-bg) 55%, #060301 100%);
    text-shadow: 0 0 1px rgba(255, 190, 40, 0.9), 0 0 9px rgba(255, 140, 0, 0.45);
    animation: phosphor-flicker 6s infinite;
  }
  body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10;
    background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0) 0px, rgba(0, 0, 0, 0) 2px, rgba(0, 0, 0, 0.32) 3px, rgba(0, 0, 0, 0) 4px);
  }
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 11;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.7) 100%);
  }
  body .container {
    max-width: 1060px;
    margin-top: 28px;
    margin-bottom: 28px;
    padding: 18px 34px 8px;
    border-radius: 22px;
    box-shadow: 0 0 0 14px #1d1a16, 0 0 0 16px #2c2822, 0 0 40px 18px rgba(0, 0, 0, 0.8), inset 0 0 80px rgba(255, 140, 0, 0.08);
  }
  body .masthead {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 16px;
    padding-bottom: 6px;
    border-bottom: dashed 1px var(--amber-dim);
    color: var(--amber-dim);
  }
  body .masthead-title {
    color: var(--amber);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-bottom: none;
  }
  body .masthead-title::before {
    content: "▶ ";
  }
  body .masthead-title:hover {
    color: var(--phosphor-bg);
  }
  body header {
    margin-top: 14px;
  }
  body .menu {
    border: none;
    background: var(--amber);
    box-shadow: 0 0 14px rgba(255, 140, 0, 0.45);
  }
  body .menu ul {
    margin: 0;
    padding: 2px 4px;
    text-align: left;
  }
  body .menu ul li {
    margin: 0 14px 0 0;
    display: inline-block;
  }
  body .menu ul li a {
    color: var(--phosphor-bg);
    text-shadow: none;
    text-transform: uppercase;
    padding: 0 4px;
    border-bottom: none;
  }
  body .menu ul li a:hover {
    background: var(--phosphor-bg);
    color: var(--amber);
  }
  body h1, body h2, body h3, body h4, body h5, body h6 {
    font-size: 26px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--amber-bright);
  }
  body h1::before, body h2::before, body h3::before, body h4::before, body h5::before, body h6::before {
    content: "> ";
    color: var(--amber-dim);
  }
  body h3, body h4, body h5, body h6 {
    font-size: 23px;
  }
  body p {
    margin-bottom: 14px;
  }
  body a {
    text-decoration: none;
    border-bottom: 1px dashed currentColor;
  }
  body a:hover {
    text-shadow: none;
  }
  body a:has(img) {
    border-bottom: none;
  }
  body :not(.menu) > ul > li:before {
    content: "*";
    color: var(--amber-dim);
  }
  body pre, body pre code {
    font-family: "VT323", "Source Code Pro", monospace !important;
    font-size: 20px;
    line-height: 1.15 !important;
    background: transparent;
  }
  body div.highlight, body figure.highlight {
    border: dashed 1px var(--amber-dim);
    background: var(--amber-faint);
    padding: 8px 12px;
    margin: 8px 0 16px;
  }
  body main > div.highlighter-rouge:first-child div.highlight {
    border: none;
    background: none;
    padding: 0;
  }
  body main > div.highlighter-rouge:first-child div.highlight pre {
    font-size: 15px;
    line-height: 1.05 !important;
    color: var(--amber-bright);
  }
  body table {
    border-collapse: collapse;
    margin: 8px 0 16px;
  }
  body th, body td {
    border: solid 1px var(--amber-dim);
    padding: 4px 10px;
    text-align: left;
  }
  body th {
    background: var(--amber-faint);
    text-transform: uppercase;
  }
  body img {
    filter: grayscale(1) sepia(1) saturate(2.6) hue-rotate(-12deg) brightness(0.85) contrast(1.15);
    border: solid 1px var(--amber-dim);
    transition: filter 0.3s;
  }
  body img:hover {
    filter: none;
    position: relative;
    z-index: 12;
  }
  body .well {
    border-left: solid 4px var(--amber);
    padding: 2px 0 2px 12px;
  }
  body footer {
    text-align: left;
    color: var(--amber-dim);
  }
  body footer::before {
    content: "READY ";
    color: var(--amber);
  }
  body footer::after {
    content: "";
    display: inline-block;
    width: 0.55em;
    height: 0.95em;
    vertical-align: text-bottom;
    background: var(--amber);
    box-shadow: 0 0 8px var(--amber);
    animation: phosphor-blink 1.06s steps(1) infinite;
  }
  @keyframes phosphor-blink {
    50% {
      opacity: 0;
    }
  }
  @keyframes phosphor-flicker {
    0%, 100% {
      opacity: 1;
    }
    48% {
      opacity: 0.985;
    }
    50% {
      opacity: 0.94;
    }
    52% {
      opacity: 0.99;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    body, body footer::after {
      animation: none;
    }
  }
  @media (max-width: 600px) {
    body .container {
      width: auto;
      margin: 10px;
      padding: 12px 14px 6px;
      border-radius: 12px;
      box-shadow: 0 0 0 6px #1d1a16, 0 0 0 7px #2c2822, inset 0 0 60px rgba(255, 140, 0, 0.08);
    }
    body .masthead-tagline {
      display: none;
    }
    body main > div.highlighter-rouge:first-child pre,
    body main > div.highlighter-rouge:first-child pre code {
      font-size: calc((100vw - 60px) / 38) !important;
    }
  }
  @media only screen and (max-device-width: 500px) {
    body :not(main > div.highlighter-rouge:first-child *) {
      font-size: 17px !important;
    }
  }
}