:root {
  --accent: #33ff66;
  --aubergine: #1f8f3f;
  --bg: #0c0c0c;
  --panel: #111411;
  --text: #33ff66;
  --muted: #1f8f3f;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  max-width: 810px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

header {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

header.hero {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
}

.header-logos {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.header-logo {
  height: 82px;
  width: auto;
}

.header-logo.cern {
  filter: brightness(2.5);
}

.header-logo.feyn {
  filter: invert(1);
}

h1 {
  font-size: 1.5rem;
  color: var(--accent);
}

h1.home {
  font-size: 1.9rem;
}

h1::before {
  content: ">> ";
  color: var(--muted);
}

.prompt {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 0.4rem;
  white-space: nowrap;
}

.prompt.path {
  white-space: normal;
  overflow-wrap: anywhere;
}

.prompt::before {
  content: ">>\00A0";
  color: var(--accent);
}

h1::after {
  content: "_";
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.tagline {
  color: var(--muted);
  font-size: 0.9rem;
}

section {
  margin-bottom: 2.5rem;
}

h2 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

ul {
  padding-left: 1.25rem;
}

a {
  color: var(--accent);
}

.links {
  display: flex;
  gap: 1.25rem;
  margin: 1.5rem 0 2.5rem;
  flex-wrap: wrap;
}

.links a,
.termlist .cmd a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  color: var(--text);
  padding: 0.5rem 1rem;
  background: var(--panel);
  border: 1px solid var(--accent);
  border-radius: 6px;
}

.links a svg,
.links a img,
.termlist .cmd a svg,
.termlist .cmd a img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.links a img.mono,
.termlist .cmd a img.mono {
  filter: invert(1);
}

.links a img.wide,
.termlist .cmd a img.wide {
  width: auto;
  height: 34px;
}

.links a:hover,
.termlist .cmd a:hover {
  background: var(--accent);
  color: #fff;
}

.domain {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
  margin-left: 0.15rem;
}

.links a:hover .domain,
.termlist .cmd a:hover .domain {
  color: #fff;
}

.termlist {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1.5rem 0 2.5rem;
}

.termlist .prompt {
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
}

.cmd {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.ps1 {
  color: var(--muted);
  white-space: nowrap;
  font-size: 0.8rem;
}

.termlist .cmd a {
  padding: 0.35rem 0.7rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

.ps1::before {
  content: ">>\00A0";
  color: var(--accent);
}

footer {
  border-top: 1px solid var(--aubergine);
  padding-top: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.solutions {
  list-style: none;
  padding-left: 0;
}

.solutions li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--panel);
}

.solutions li::before {
  content: "$ ";
  color: var(--accent);
}

@media (max-width: 600px) {
  body {
    padding: 2rem 1.1rem;
  }
  header.hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .header-logos {
    gap: 0.75rem;
    flex-wrap: wrap;
  }
  .header-logo {
    height: 80px;
  }
  .prompt {
    font-size: 0.95rem;
  }
  .links {
    gap: 0.75rem;
  }
}
