/* ====== Base ====== */

:root {
  --bg: #050304;
  --bg-soft: #0b0909;
  --bg-softer: #111010;
  --fg: #f4e4c1;
  --fg-muted: #c7bca1;
  --accent: #ffb870;     /* amber-ish */
  --accent-soft: #d39b63;
  --danger: #ff6b6b;
  --border-soft: #26201a;

  --mono: "IBM Plex Mono", "SF Mono", "Menlo", "DejaVu Sans Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;

  --radius: 4px;
  --shadow-soft: 0 0 0 1px rgba(255, 184, 112, 0.05), 0 0 12px rgba(0, 0, 0, 0.9);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

/* ====== Layout ====== */

.page {
  max-width: 72ch;
  margin: 2.5rem auto 3rem auto;
  padding: 0 1.25rem 2rem 1.25rem;
  background: radial-gradient(circle at top, #140f0a 0, #050304 55%);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
}

/* For very small screens */
@media (max-width: 600px) {
  .page {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 0.75rem 1.5rem 0.75rem;
  }
}

/* ====== Header & Nav ====== */

.site-header {
  padding: 1.5rem 0 1rem 0;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 1.25rem;
}

.site-title {
  font-family: var(--mono);
  font-size: 1.4rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 0.25rem 0;
  color: var(--accent);
}

.site-tagline {
  margin: 0;
  font-size: 0.85rem;
  color: var(--fg-muted);
  text-transform: lowercase;
  letter-spacing: 0.12em;
}

.site-nav {
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: lowercase;
}

.site-nav a {
  display: inline-block;
  margin-right: 1.1rem;
  padding-bottom: 0.1rem;
  text-decoration: none;
  color: var(--fg-muted);
  border-bottom: 1px dotted transparent;
}

.site-nav a:last-child {
  margin-right: 0;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--accent);
  border-bottom-color: var(--accent-soft);
}

/* ====== Typography ====== */

.content {
  padding-top: 0.5rem;
}

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 500;
  margin: 1.8rem 0 0.6rem 0;
  color: var(--fg);
}

h1 {
  font-size: 1.5rem;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 0.4rem;
}

h2 {
  font-size: 1.25rem;
}

h3 {
  font-size: 1.05rem;
}

p {
  margin: 0 0 0.9rem 0;
}

ul, ol {
  margin: 0 0 1rem 1.2rem;
  padding: 0;
}

li {
  margin-bottom: 0.3rem;
}

/* Terminal-style bullet lists */

ul.terminal-list {
  list-style-type: none;
  margin-left: 0;
}

ul.terminal-list li::before {
  content: "›";
  color: var(--accent-soft);
  margin-right: 0.5rem;
  font-family: var(--mono);
}

/* Links */

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dotted rgba(255, 184, 112, 0.5);
}

a:hover,
a:focus {
  border-bottom-style: solid;
  border-bottom-color: var(--accent);
}

/* Strong / Emphasis */

strong {
  color: var(--fg);
}

/* Horizontal rule */

hr {
  border: none;
  border-top: 1px dashed var(--border-soft);
  margin: 1.5rem 0;
}

/* ====== Code & Pre ====== */

code,
pre {
  font-family: var(--mono);
  font-size: 0.9rem;
}

code {
  background: #18110a;
  border: 1px solid var(--border-soft);
  padding: 0.1rem 0.2rem;
  border-radius: 2px;
  color: var(--accent-soft);
}

pre {
  background: #0b0805;
  border: 1px solid var(--border-soft);
  padding: 0.75rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1rem 0;
}

/* Pre with "terminal" style header */

.terminal {
  background: #050304;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  overflow: hidden;
  margin: 1rem 0 1.5rem 0;
  box-shadow: var(--shadow-soft);
}

.terminal-header {
  background: #120d09;
  padding: 0.25rem 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.terminal-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.5);
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-left: 0.35rem;
}

.terminal-body {
  padding: 0.6rem 0.75rem 0.7rem 0.75rem;
  background: #050304;
}

/* ====== Post meta / lists of posts ====== */

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

.post-list li {
  margin-bottom: 0.8rem;
}

.post-title {
  font-family: var(--sans);
  font-size: 0.98rem;
}

.post-meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--fg-muted);
}

/* ====== Footer ====== */

.site-footer {
  margin-top: 2rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-soft);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--fg-muted);
}

/* ====== Small helpers ====== */

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  color: var(--fg-muted);
  margin-right: 0.3rem;
}

.callout {
  border-left: 2px solid var(--accent-soft);
  padding-left: 0.75rem;
  margin: 1.2rem 0;
  font-size: 0.92rem;
  color: var(--fg-muted);
}

/* For images, if you ever use them */
img {
  max-width: 100%;
  height: auto;
  border-radius: 2px;
  border: 1px solid var(--border-soft);
}
