/* brutalist-crimson.css — Crimson/Black variant
 * Source: brutalist-web-design skill
 * Philosophy: Warning signs are red for a reason
 */

:root {
  --bg: #000000;
  --fg: #ff0000;
  --accent: #cc0000;
  --secondary: #660000;
  --highlight: #ff3333;
  --border: #ff0000;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 1rem;
  line-height: 1.6;
  background: var(--bg);
  color: var(--fg);
  max-width: 70ch;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Typography as Structure */
h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.0;
  margin-bottom: 1.5rem;
  color: var(--fg);
}

h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-top: 3px solid var(--border);
  padding-top: 1rem;
  margin-top: 4rem;
  margin-bottom: 1rem;
  color: var(--fg);
}

h3 {
  font-size: 0.9rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: var(--fg);
}

p {
  margin: 1rem 0;
}

/* Links: Brutalist Style */
a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

a:hover {
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
}

/* Navigation */
nav {
  margin: 1.5rem 0 3rem 0;
}

nav a {
  margin-right: 1.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* The Brutalist Border */
.brutal-border {
  border: 3px solid var(--border);
  padding: 1.5rem;
  margin: 2rem 0;
}

/* The Crimson Box */
.brutal-box {
  background: var(--accent);
  color: var(--bg);
  padding: 1.5rem;
  margin: 2rem 0;
  border: 3px solid var(--border);
}

.brutal-box a {
  color: var(--bg);
  text-decoration: underline;
}

.brutal-box a:hover {
  background: var(--bg);
  color: var(--accent);
}

/* File Directory Style Lists */
.file-list {
  list-style: none;
  margin: 1.5rem 0;
}

.file-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--secondary);
}

.file-list li:last-child {
  border-bottom: none;
}

/* The Crimson Footer */
footer {
  margin-top: 6rem;
  padding-top: 2rem;
  border-top: 3px solid var(--border);
  font-size: 0.875rem;
  color: var(--secondary);
}

footer.pink-concrete {
  background: var(--accent);
  color: var(--bg);
  padding: 3rem 1.5rem;
  margin: 5rem calc(-1 * 1.5rem) 0;
  border: 3px solid var(--border);
}

footer.pink-concrete a {
  color: var(--bg);
}

/* Utility classes */
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.25rem; }
.text-upper { text-transform: uppercase; letter-spacing: 0.05em; }
.border-t { border-top: 3px solid var(--border); padding-top: 1rem; }
.border-b { border-bottom: 3px solid var(--border); padding-bottom: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: 4rem; }
.mb-2 { margin-bottom: 2rem; }

/* Terminal Cursor Animation */
.cursor {
  display: inline-block;
  width: 8px;
  height: 1.2em;
  background: var(--fg);
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Logo Wrapper */
.logo-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terminal-prompt::before {
  content: ">";
  color: var(--fg);
}

/* Triad Link */
.triad-link {
  font-size: 0.7rem;
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 0.25rem 0.5rem;
}

.triad-link:hover {
  background: var(--fg);
  color: var(--bg);
}

/* Selection style */
::selection {
  background: var(--fg);
  color: var(--bg);
}

/* Responsive */
@media (max-width: 600px) {
  body {
    padding: 1.5rem 1rem;
    font-size: 0.9rem;
  }
  
  h2 {
    margin-top: 3rem;
  }
  
  nav a {
    display: block;
    margin: 0.5rem 0;
  }
  
  .brutal-border,
  .brutal-box {
    padding: 1rem;
  }
}

/* Scanline effect for terminal aesthetic */
@media screen {
  body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
      0deg,
      rgba(255, 0, 0, 0.03),
      rgba(255, 0, 0, 0.03) 1px,
      transparent 1px,
      transparent 2px
    );
    pointer-events: none;
    z-index: 9999;
  }
}
