/* =============================
   Modern dark theme for elihall.xyz
   ============================= */

:root {
  /* Colors */
  --bg: #111111;
  --text: #f5f5f5;
  --muted: #8f8f8f;
  --accent: #5aa8ff;             /* blue link color */
  --hover-highlight: rgba(255, 228, 156, 0.45); /* soft yellow highlight */

  /* Layout */
  --max-width: 740px;

  /* Fonts */
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-title: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Global reset-ish */

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  font-size: 16px;
}

/* Layout wrapper */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.75rem 1.5rem 3rem;
}

/* =============================
   Header (full-width, baseline-aligned)
   ============================= */

.site-header {
  margin-bottom: 1.6rem;
}

.site-header .container {
  display: flex;

  /* span across full column width: name on left, nav on right */
  justify-content: space-between;

  /* align text to the same bottom line */
  align-items: flex-end;

  gap: 0.5rem;
  padding-top: 1.9rem;
  padding-bottom: 0.5rem;
}

/* Your name — largest, modern, clean */
.site-title {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text);
  font-size: 2rem;                /* BIGGEST on the site */
  text-transform: none;

  /* tiny tweak to sit nicely on the baseline */
  padding-bottom: 0.05rem;
}

/* Nav — on the same line, spaced apart internally */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;                   /* spacing between items */
  margin-left: 0;                  /* let space-between handle side spacing */
}

.site-nav a {
  color: var(--accent);           /* blue links */
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.05rem 0;

  /* small baseline nudge to match name visually */
  padding-bottom: 0.08rem;
}

.site-nav a:hover {
  color: var(--hover-highlight);
  background-color: rgba(255, 228, 156, 0.15);
  border-radius: 2px;
}

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

h1, h2, h3 {
  font-weight: 600;
  margin: 1.7rem 0 0.6rem;
  letter-spacing: 0.01em;
}

h1 {
  font-size: 1.8rem;
}

h2 {
  font-size: 1.3rem;
}

h3 {
  font-size: 1.08rem;
}

p {
  margin: 0 0 0.75rem;
}

/* Highlight-link behavior */

a {
  position: relative;
  color: var(--accent);
  text-decoration: none;
  transition:
    color 0.16s ease-out,
    background-color 0.16s ease-out;
  padding: 0 0.08rem;
  border-radius: 2px;
}

a:hover {
  color: #111111;
  background-color: var(--hover-highlight);
}

/* =============================
   Lists
   ============================= */

ul,
ol {
  margin: 0 0 0.75rem 1.1rem;
}

/* =============================
   Home sections
   ============================= */

.home-section {
  margin-top: 2rem;
}

.home-section h2 {
  margin-bottom: 0.6rem;
}

.home-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.home-section li {
  padding: 0.2rem 0;
}

/* =============================
   Meta / tags
   ============================= */

.meta {
  color: var(--muted);
  font-size: 0.82rem;
  margin-left: 0.35rem;
}

/* Tags: italic inline (no bubbles) */
.post-tags {
  margin-left: 0.35rem;
}

.tag {
  font-style: italic;
  font-size: 0.85rem;
  color: var(--muted);
  margin-left: 0.25rem;
}

/* =============================
   Post layout
   ============================= */

.post-header h1 {
  margin-top: 1.1rem;
}

.post-summary {
  color: var(--muted);
  margin-top: 0.2rem;
}

.post-content {
  margin-top: 1.2rem;
}

/* =============================
   Post list
   ============================= */

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

.post-list-item {
  padding: 0.4rem 0;
}

/* =============================
   Backlinks
   ============================= */

.backlinks {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
}

.backlinks h2 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.backlinks-intro {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.backlinks ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.backlinks li {
  padding: 0.2rem 0;
}

.badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.03rem 0.3rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

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

.site-footer {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--muted);
}
