/* kdoul.me overrides — cool dark palette + terminal-window chrome
   (loaded after the theme's CSS, see themes/terminal/layouts/partials/head.html) */

:root {
  --background: #101418;
  --foreground: #c8d2da;
  --accent: #5dcaa5;
  --font-size: 0.95rem;
  --radius: 8px;

  /* palette */
  --page-bg: #0a0d11;
  --chrome-bg: #161b21;
  --border: #2a3138;
  --muted: #7d8a96;
  --muted-dark: #5f6e7a;
  --bright: #e8edf2;
  --soft: #9fb0bd;
  --link-blue: #85b7eb;
}

body {
  background-color: var(--page-bg);
}

/* the whole site is one terminal window */
.container,
.container.center,
.container.full {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 40px auto;
  padding: 0;
  max-width: 820px;
  min-height: 0;
  overflow: hidden;
}

.term-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--chrome-bg);
  border-bottom: 1px solid var(--border);
}

.term-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.term-dot--red { background: #e24b4a; }
.term-dot--yellow { background: #ef9f27; }
.term-dot--green { background: #639922; }

.term-titlebar__title {
  margin-left: 10px;
  font-size: 12px;
  color: var(--muted);
}

.header,
.content,
.footer {
  padding-left: 28px;
  padding-right: 28px;
}

.header {
  padding-top: 24px;
}

.content {
  padding-bottom: 12px;
}

.term-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
}

.term-nav a {
  color: var(--muted);
  text-decoration: none;
}

.term-nav a:hover,
.term-nav a.active {
  color: var(--accent);
}

/* homepage */
.home-terminal {
  margin-top: 26px;
}

.term-prompt {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 6px;
}

.term-name {
  font-size: 20px;
  color: var(--bright);
  font-weight: 500;
  margin: 0 0 8px;
}

.term-cursor {
  display: inline-block;
  width: 9px;
  height: 18px;
  background: var(--accent);
  margin-left: 6px;
  vertical-align: -2px;
  animation: term-blink 1.1s steps(2, start) infinite;
}

@keyframes term-blink {
  to { visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .term-cursor { animation: none; }
}

.term-tagline {
  font-size: 13px;
  color: var(--soft);
  line-height: 1.7;
  margin: 0 0 24px;
}

.term-links {
  display: flex;
  gap: 14px;
  font-size: 13px;
  margin-bottom: 28px;
}

.term-links a {
  color: var(--link-blue);
  text-decoration: none;
}

.term-links a:hover {
  text-decoration: underline;
}

.term-posts {
  font-size: 13px;
  line-height: 2;
}

.term-posts__date {
  color: var(--muted-dark);
  margin-right: 2ch;
}

.term-posts a {
  color: var(--foreground);
  text-decoration: none;
}

.term-posts a:hover {
  color: var(--accent);
}

/* general text colors */
h1, h2, h3, h4, h5, h6 {
  color: var(--bright);
}

.post-meta,
.post-date,
time {
  color: var(--muted-dark);
}

.footer {
  padding-top: 10px;
  padding-bottom: 20px;
  font-size: 12px;
  opacity: 1;
  color: var(--muted-dark);
}

@media (max-width: 684px) {
  .container,
  .container.center,
  .container.full {
    margin: 12px;
    max-width: none;
  }

  .header,
  .content,
  .footer {
    padding-left: 18px;
    padding-right: 18px;
  }
}
