:root {
  --bg:      #0c0c0c;
  --fg:      #e8e8e8;
  --muted:   #555;
  --accent:  #c9a96e;
  --surface: #141414;
  --border:  #1e1e1e;
}

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

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  line-height: 1.7;
  min-height: 100vh;
  padding: 2.5rem 1.5rem;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
}

/* ── Navigation ── */
nav {
  margin-bottom: 4rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.15s;
}

nav a:hover { color: var(--fg); }

nav a[aria-current="page"] {
  color: var(--fg);
  cursor: default;
  pointer-events: none;
}

/* ── Base links ── */
a {
  color: var(--accent);
  text-decoration: none;
}

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

/* ── About ── */
.bio p {
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.bio p:last-child { margin-bottom: 0; }

.social {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin-top: 1.75rem;
}

.social a {
  color: var(--muted);
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.social a:hover {
  color: var(--accent);
  text-decoration: none;
}

.social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ── Coming soon ── */
.coming-soon {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ── Cards ── */
.cards {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.25rem;
  transition: border-color 0.15s;
}

.card-link:hover .card { border-color: var(--accent); }

.card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  margin-bottom: 1rem;
  background: #1a1a1a;
}

.card h2 {
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--fg);
}

.card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Post / Article ── */
.post header {
  margin-bottom: 2.5rem;
}

.post h1 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.375rem;
}

.post time {
  font-size: 0.8125rem;
  color: var(--muted);
}

.post .body p        { font-size: 0.9375rem; margin-bottom: 1.25rem; }
.post .body h2       { font-size: 1.0625rem; font-weight: 600; margin: 2rem 0 0.75rem; }
.post .body h3       { font-size: 0.9375rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
.post .body ul,
.post .body ol       { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.post .body li       { font-size: 0.9375rem; margin-bottom: 0.25rem; }

.post .body code {
  font-family: "SF Mono", ui-monospace, monospace;
  font-size: 0.8125rem;
  background: var(--surface);
  padding: 0.125rem 0.375rem;
  border-radius: 2px;
}

.post .body pre {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}

.post .body pre code { background: none; padding: 0; }

/* ── Back link ── */
.back {
  display: inline-block;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 3rem;
  transition: color 0.15s;
}

.back:hover {
  color: var(--accent);
  text-decoration: none;
}
