﻿/*
  Dark theme tokens.
  Designed for high readability and low visual noise.
*/
:root {
  --bg: #0b1018;
  --surface: #101826;
  --surface-2: #141f31;
  --line: #1f2d42;
  --text: #e6edf7;
  --muted: #9eabc1;
  --accent: #7cc4ff;
  --tag-bg: #13253b;
  --tag-text: #a8d5ff;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
}

/* Shared content width */
.wrap {
  width: min(920px, 100% - 32px);
  margin: 0 auto;
}

/* Minimal top navigation */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(11, 16, 24, 0.92);
  position: sticky;
  top: 0;
}

.nav-row {
  min-height: 58px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.site-nav {
  display: flex;
  gap: 18px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.site-nav a:hover {
  color: var(--accent);
}

/* Top section */
.top {
  padding: 44px 0 10px;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.2;
}

.positioning {
  margin: 12px 0 0;
  max-width: 68ch;
  color: var(--muted);
  font-size: 1.03rem;
}

/* Sections and headings */
.section {
  padding-top: 26px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0 0 14px;
  font-size: 1.2rem;
  color: var(--accent);
}

/* Blog cards with subtle hover state */
.post-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  transition: border-color 120ms ease, transform 120ms ease;
}

.post-card:hover {
  border-color: #315078;
  transform: translateY(-1px);
}

.post-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.post-head h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.4;
}

.post-head a {
  color: var(--text);
  text-decoration: none;
}

.post-head a:hover {
  color: var(--accent);
}

.post-head time {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 0.76rem;
  white-space: nowrap;
}

.post-card p {
  margin: 0;
  color: var(--muted);
}

/* Tag pills */
.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
}

.tags li {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--tag-text);
  font-size: 0.76rem;
  border: 1px solid #224264;
  font-family: var(--mono);
}

/* Short about section text */
#about p {
  max-width: 70ch;
  margin: 0;
  color: var(--muted);
}

/* Minimal contact footer */
.site-footer {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  padding: 16px 0 24px;
}

.footer-row {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.contact-link {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
}

.contact-link:hover {
  color: var(--accent);
  border-color: #315078;
}

.contact-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Mobile-first adjustments */
@media (max-width: 720px) {
  .post-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-row {
    justify-content: center;
  }

  .site-nav {
    gap: 14px;
  }
}
