:root {
  color-scheme: dark;
  --bg: #090909;
  --panel: #0d0f10;
  --panel-soft: #141719;
  --text: #f4f0e8;
  --muted: #9c9a93;
  --line: rgba(255, 255, 255, 0.12);
  --ember: #d88f48;
  --steel: #9aaeb8;
  --green: #8bbf7b;
  --blue: #7fb4d9;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 980px;
  background: #050505;
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  background: transparent;
}

.site-shell::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(4, 4, 4, 0.02) 0%, rgba(4, 4, 4, 0.08) 52%, rgba(4, 4, 4, 0.22) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.14) 36%, rgba(0, 0, 0, 0.14) 64%, rgba(0, 0, 0, 0.02)),
    url("assets/code-anvil-hero.png") center center / cover no-repeat;
  content: "";
  pointer-events: none;
}

.site-shell::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.18) 78%);
  content: "";
  pointer-events: none;
}

.code-section {
  position: relative;
  z-index: 1;
  padding: 26px 72px 28px;
  background: transparent;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.code-window {
  width: 880px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(17, 20, 22, 0.98), rgba(9, 11, 12, 0.98));
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.64),
    0 0 80px rgba(216, 112, 43, 0.12);
}

.code-window__bar {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(21, 25, 27, 0.74);
}

.code-window__bar p {
  margin: 0;
  color: rgba(244, 240, 232, 0.58);
  font-family: "Consolas", "Cascadia Mono", monospace;
  font-size: 0.8rem;
}

pre {
  margin: 0;
  overflow: hidden;
  padding: 26px 34px;
  color: #d9dedf;
  font-family: "Consolas", "Cascadia Mono", "Courier New", monospace;
  font-size: 0.76rem;
  line-height: 1.48;
  tab-size: 4;
}

code {
  display: block;
  min-width: 0;
}

.code-muted {
  color: #8a9094;
}

.code-keyword,
.code-preprocessor {
  color: var(--blue);
}

.code-string {
  color: #d6b77a;
}

.code-macro {
  color: #c897d8;
}

.code-comment {
  color: var(--green);
}

.code-bool {
  color: #e4916b;
}
