/* Tagsu landing, about and reference pages. */

:root {
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.55);
  --panel: rgba(0, 0, 0, 0.55);
  --accent: #3f7ae8;
  --display: "Orbitron", "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  padding: 0 0 40px;
  color: var(--text);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.5;
  background: #0b1018 url("../img/bg_2.png") no-repeat center center fixed;
  background-size: cover;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  height: auto;
}

.masthead {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px;
}

.masthead img {
  width: 180px;
}

.social {
  margin-left: auto;
  display: flex;
  gap: 14px;
}

.social a {
  text-decoration: none;
  opacity: 0.45;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.social a:hover {
  opacity: 1;
}

.tagline {
  padding: 0 20px;
  margin: 0 0 16px;
  font-size: 1.6rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.panel {
  background: var(--panel);
  margin: 0 20px 20px;
  padding: 18px 22px;
  border-radius: 10px;
  max-width: 900px;
}

.callouts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 0 20px;
  max-width: 940px;
}

.callouts a {
  flex: 1 1 170px;
  background: var(--panel);
  border-radius: 10px;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  line-height: 1.35;
}

.callouts a:hover {
  background: rgba(0, 0, 0, 0.72);
}

.callouts strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.copyright {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  padding: 20px;
  text-align: right;
}

.copyright a {
  color: var(--muted);
}

/* --------------------------------------------------------------- console */

.console {
  background: var(--panel);
  margin: 0 20px 20px;
  padding: 18px 22px;
  border-radius: 10px;
  max-width: 900px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.95rem;
  line-height: 1.45;
  cursor: text;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.console img {
  margin: 8px 0;
  max-width: 420px;
}

.console .typed {
  text-transform: uppercase;
}

.console .cursor {
  animation: blink 1s step-start infinite;
}

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

.offscreen {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

#tape {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  pointer-events: none;
}

/* ----------------------------------------------------------------- about */

.prose {
  background: var(--panel);
  margin: 0 20px 20px;
  padding: 24px 26px;
  border-radius: 10px;
  max-width: 900px;
}

.prose h1 {
  font-size: 1.8rem;
  margin: 0 0 6px;
}

.prose h1 span {
  display: block;
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 6px;
}

.prose h2 {
  font-size: 1.25rem;
  margin: 28px 0 8px;
}

.prose table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.85rem;
}

.prose td {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 7px 10px 7px 0;
  vertical-align: top;
}

.prose td.label {
  color: var(--muted);
  white-space: nowrap;
  width: 1%;
}

.prose ul {
  padding-left: 20px;
}

.crumbs {
  padding: 0 20px 12px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

button {
  font: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
}

button:hover {
  background: rgba(255, 255, 255, 0.18);
}

code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  padding: 1px 5px;
}

@media (max-width: 620px) {
  .tagline {
    font-size: 1.2rem;
  }

  .panel,
  .console,
  .prose {
    margin: 0 12px 16px;
    padding: 14px 16px;
  }
}
