/* ═══════════════════════════════════════════════════════
   steverush.com — main stylesheet
   Brief: Dark literary. Richard K. Morgan meets a
   military intelligence dossier — precise, human,
   a little dangerous.
═══════════════════════════════════════════════════════ */

/* ─── CUSTOM PROPERTIES ─── */
:root {
  --bg:      #0b0b0d;
  --text:    #ddd8cb;
  --accent:  #c9a96e;
  --muted:   rgba(221,216,203,0.38);
  --divider: rgba(255,255,255,0.07);
  --max-w:   720px;
  --f-serif: 'Playfair Display', Georgia, serif;
  --f-body:  'EB Garamond', Georgia, serif;
  --f-ui:    system-ui, -apple-system, 'Helvetica Neue', sans-serif;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

/* ─── BASE ─── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ─── GRAIN OVERLAY ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: 0.28;
}

/* ─── HEADER ─── */
header {
  border-bottom: 0.5px solid var(--divider);
  padding: 1.75rem 0;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
}

.site-name {
  font-family: var(--f-serif);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
  opacity: 0.72;
  transition: opacity 0.15s;
}

.site-name:hover { opacity: 1; }

/* ─── NAV ─── */
nav {
  display: flex;
  gap: 1.75rem;
  align-items: baseline;
}

nav a {
  font-family: var(--f-ui);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.38;
  text-decoration: none;
  transition: opacity 0.15s;
}

nav a:hover,
nav a[aria-current="page"] {
  opacity: 0.82;
}

/* ─── MAIN ─── */
main {
  flex: 1;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 4.5rem 2rem 7rem;
}

/* ─── GOLD BAR ─── */
.gold-bar {
  width: 28px;
  height: 1.5px;
  background: var(--accent);
  border: none;
  display: block;
  margin-bottom: 2.75rem;
}

/* ─── SECTION LABEL ─── */
.section-label {
  font-family: var(--f-ui);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

/* ─── HOME HERO ─── */
.hero {
  margin-bottom: 3.5rem;
}

.hero-name {
  font-family: var(--f-serif);
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 0.93;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-family: var(--f-ui);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── HOME BLOCKQUOTE ─── */
main > blockquote {
  padding-left: 1.5rem;
  border-left: 1px solid rgba(201,169,110,0.4);
}

main > blockquote p {
  font-family: var(--f-body);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.72;
  color: var(--text);
  margin-bottom: 0.85rem;
}

main > blockquote cite {
  font-family: var(--f-ui);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-style: normal;
}

/* ─── POST LIST (blog index) ─── */
.post-list {
  display: flex;
  flex-direction: column;
}

.post-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem 0;
  border-bottom: 0.5px solid var(--divider);
  text-decoration: none;
  color: inherit;
}

.post-row:first-child {
  border-top: 0.5px solid var(--divider);
}

.post-row-title {
  font-family: var(--f-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  transition: color 0.15s;
}

.post-row:hover .post-row-title {
  color: var(--accent);
}

.post-row-date {
  font-family: var(--f-ui);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─── POST HEADER ─── */
.post-meta-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.back-link {
  font-family: var(--f-ui);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.back-link:hover { color: var(--text); }

.post-date {
  font-family: var(--f-ui);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.post-title {
  font-family: var(--f-serif);
  font-size: clamp(1.9rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.tag {
  font-family: var(--f-ui);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── POST HERO IMAGE ─── */
.post-hero {
  width: 100%;
  margin-bottom: 3rem;
}

.post-hero img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
  filter: saturate(0.65) brightness(0.88);
}

/* ─── POST BODY ─── */
.post-body {
  font-family: var(--f-body);
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text);
}

.post-body p { margin-bottom: 1.5rem; }

.post-body h2 {
  font-family: var(--f-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 3rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.post-body em { font-style: italic; }
.post-body strong { font-weight: 700; }

.post-body sub {
  font-size: 0.75rem;
  color: var(--muted);
}

.post-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(201,169,110,0.35);
  transition: text-decoration-color 0.15s;
}

.post-body a:hover { text-decoration-color: var(--accent); }

.post-body hr {
  border: none;
  border-top: 0.5px solid var(--divider);
  margin: 3rem 0;
}

.post-body blockquote {
  padding-left: 1.5rem;
  border-left: 1px solid rgba(201,169,110,0.4);
  margin: 2rem 0;
}

.post-body blockquote p {
  font-style: italic;
  margin-bottom: 0.25rem;
}

.post-body blockquote cite {
  font-family: var(--f-ui);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  font-style: normal;
}

.inline-img {
  width: 100%;
  margin: 2.5rem 0;
  display: block;
  filter: saturate(0.65) brightness(0.88);
}

/* ─── POST NAV ─── */
.post-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4.5rem;
  padding-top: 2rem;
  border-top: 0.5px solid var(--divider);
}

.post-nav a {
  font-family: var(--f-ui);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.post-nav a:hover { color: var(--text); }

/* ─── THINGS I LIKE — list ─── */
.like-list {
  list-style: none;
  padding: 0;
  margin-bottom: 0.5rem;
  columns: 2;
  column-gap: 2.5rem;
}

.like-list li {
  font-family: var(--f-body);
  font-size: 1rem;
  color: var(--text);
  padding: 0.15rem 0;
  break-inside: avoid;
  line-height: 1.6;
}

.like-list li::before {
  content: '·';
  color: var(--accent);
  margin-right: 0.5rem;
}

.like-list a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(201,169,110,0.35);
  transition: color 0.15s, text-decoration-color 0.15s;
}

.like-list a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* ─── PAGE (privacy, static pages) ─── */
.page-title {
  font-family: var(--f-serif);
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.page-meta {
  font-family: var(--f-ui);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 3.5rem;
}

.page-body {
  font-family: var(--f-body);
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text);
}

.page-body p { margin-bottom: 1.5rem; }

.page-body h2 {
  font-family: var(--f-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 3rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.page-body h3 {
  font-family: var(--f-ui);
  font-size: 10px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.page-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(201,169,110,0.35);
  transition: text-decoration-color 0.15s;
}

.page-body a:hover { text-decoration-color: var(--accent); }

.page-body hr {
  border: none;
  border-top: 0.5px solid var(--divider);
  margin: 3rem 0;
}

.page-body ul {
  margin: 0 0 1.5rem 1.25rem;
}

.page-body ul li {
  font-size: 1.1rem;
  line-height: 1.75;
  margin-bottom: 0.25rem;
}

.page-body em { font-style: italic; }
.page-body strong { font-weight: 700; color: var(--text); }

/* ─── FOOTER ─── */
footer {
  border-top: 0.5px solid var(--divider);
  padding: 1.75rem 2rem;
}

footer p {
  max-width: var(--max-w);
  margin: 0 auto;
  font-family: var(--f-ui);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

footer a:hover { color: var(--text); }

/* ─── FOCUS ─── */
:focus-visible {
  outline: 1.5px solid var(--accent);
  outline-offset: 3px;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero         { animation: fadeUp 0.6s ease both; }
.post-header  { animation: fadeUp 0.5s ease both; }
.post-hero    { animation: fadeUp 0.5s 0.1s ease both; }
.post-body    { animation: fadeUp 0.5s 0.18s ease both; }
.post-list    { animation: fadeUp 0.5s 0.1s ease both; }
.page-body    { animation: fadeUp 0.5s 0.1s ease both; }

/* ─── PRINT ─── */
@media print {
  body        { background: #fff; color: #111; }
  body::before { display: none; }
  nav         { display: none; }
  header, footer { border-color: #ccc; }
  .post-hero img,
  .inline-img { filter: none; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 600px) {
  main         { padding: 3rem 1.25rem 5rem; }
  .header-inner { padding: 0 1.25rem; }
  footer       { padding: 1.5rem 1.25rem; }
  nav          { gap: 1.25rem; }
  .like-list   { columns: 1; }
  .post-nav    { flex-direction: column; gap: 1rem; }
}
