/* Core page setup & color variables */
:root {
  --bg-color: #0f172a;       /* Dark slate background */
  --card-bg: #1e293b;        /* Lighter slate container background */
  --text-main: #a9b1d6;      /* Light gray body text */
  --text-heading: #c0caf5;   /* Pure white headings */
  --accent: #38bdf8;         /* Vibrant blue for links & highlights */
  --accent-hover: #7dcfff;   /* Light blue hover state */
  --border: #334155;         /* Subtle section borders */
}

/* Base styles */
body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: Verdana, Geneva, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 20px;
  display: flex;
  justify-content: center;
}

/* Central container layout */
.container {
  max-width: 680px;
  width: 100%;
  background-color: var(--card-bg);
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Typography */
h1, h2 {
  color: var(--text-heading);
  margin-top: 0;
}

h1 {
  font-size: 1.8rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 12px;
}

h2 {
  font-size: 1.3rem;
  margin-top: 28px;
}

/* Links */
a {
  color: var(--accent);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Blockquote Card Styling */
.quote-card {
  margin: 24px 0;
  padding: 18px 24px;
  background-color: #111827; /* Darker interior tint */
  border-left: 4px solid var(--accent); /* Accent left accent bar */
  border-radius: 0 8px 8px 0;
}

.quote-card blockquote {
  margin: 0;
  padding: 0;
}

.quote-card blockquote p {
  margin: 0;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-heading);
  line-height: 1.5;
}

.quote-card figcaption {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #94a3b8;
  text-align: right;
}

.quote-card cite {
  font-style: normal;
  color: var(--accent);
}

/* Terminal Block Container */
.terminal-card {
  margin: 24px 0;
  background-color: #050811; /* Deep black-blue background */
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Header bar with window control dots */
.terminal-header {
  background-color: #1e293b;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #f59e0b; }
.dot.green { background-color: #10b981; }

.terminal-title {
  margin-left: 8px;
  font-family: monospace;
  font-size: 0.75rem;
  color: #94a3b8;
}

/* Pre & Code Formatting */
.terminal-card pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto; /* Adds horizontal scrollbar for long commands */
}

.terminal-card code {
  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #f8fafc;
}

/* Syntax Highlighting */
.prompt {
  color: #38bdf8; /* Bright blue prompt */
  font-weight: bold;
  user-select: none; /* Prevents selecting prompt string when copying text */
}

.output {
  color: #64748b; /* Muted gray for command output lines */
}

/* Lists */
ul {
  padding-left: 20px;
}

li {
  margin-bottom: 8px;
}

/* Media & Assets */
img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 16px 0;
}

/* Footer layout */
footer {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}