:root {
  --brass: #b78b2e;
  --verdigris: #4b7f6a;
  --coal: #1b1b1b;
  --soot: #262626;
  --paper: #f6f1e4;
  --ink: #2f2a26;
  --copper: #a85c32;
  --accent: #c4a968;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  color: var(--paper);
  background: radial-gradient(circle at 20% 10%, #2a2a2a, var(--coal));
  line-height: 1.6;
}

.site-header {
  background: linear-gradient(180deg, var(--soot), #111);
  border-bottom: 2px solid var(--brass);
  padding: 1rem 1rem 0.5rem;
}
.site-header-inner { max-width: 960px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-left { display: flex; flex-direction: column; }
.brand { display: flex; align-items: baseline; gap: 0.75rem; }
.brand .logo { color: var(--paper); text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; }
.brand .wordmark { font-variant: small-caps; font-size: 1.6rem; letter-spacing: 0.08em; }
.brand .subtitle { color: #d9cfb9; font-size: 0.95rem; opacity: 0.9; margin-left: 2.65rem; }

.gear {
  width: 28px; height: 28px; display: inline-block; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--brass) 0 10deg, transparent 10deg 20deg) center/100% 100% no-repeat;
  box-shadow: inset 0 0 0 3px var(--accent), 0 0 12px rgba(183, 139, 46, 0.4);
  position: relative;
  animation: spin 14s linear infinite;
}
.gear::after {
  content: ""; position: absolute; inset: 6px; border-radius: 50%;
  background: radial-gradient(circle, #755c1a, #3a2f10);
  box-shadow: inset 0 0 0 2px var(--accent);
}
@keyframes spin { to { transform: rotate(360deg); } }

.site-nav { margin-top: 0.4rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.site-nav a { color: var(--accent); text-decoration: none; padding: 0.25rem 0; border-bottom: 1px dotted transparent; }
.site-nav a:hover { border-bottom-color: var(--accent); }

.container { max-width: 960px; margin: 2rem auto; padding: 0 1rem; }

h1, h2, h3 { font-family: "Copperplate", "Palatino", ui-serif, Georgia, serif; color: #e8dcc1; }
h1 { border-bottom: 2px solid rgba(196,169,104,0.3); padding-bottom: 0.25rem; }

.post-card { padding: 1rem; margin: 1rem 0; background: rgba(255,255,255,0.03); border: 1px solid rgba(196,169,104,0.25); border-radius: 6px; }
.post-card h2 { margin: 0 0 0.25rem; }
.post-card h2 a { color: #f0e6cf; text-decoration: none; }
.meta { color: #c7b995; font-size: 0.9rem; }
.tag { color: #d0c49f; }

.post .content, .page .content { color: #f2ead9; }
.post .content img { max-width: 100%; height: auto; border: 1px solid rgba(196,169,104,0.4); }
.page .content img { max-width: 100%; height: auto; border: 1px solid rgba(196,169,104,0.4); }
.img-fluid { max-width: 100%; height: auto; }
.post .content p:first-of-type::first-letter {
  float: left; font-size: 3.2rem; line-height: 0.85; padding-right: 0.2rem; color: var(--brass);
}

.callout.review { background: rgba(168, 92, 50, 0.1); border-left: 4px solid var(--copper); padding: 0.5rem 0.75rem; margin: 1rem 0; }

.archives { list-style: none; padding: 0; }
.archives li { display: flex; gap: 0.75rem; padding: 0.25rem 0; border-bottom: 1px dashed rgba(196,169,104,0.2); }
.archives .date { color: #c7b995; width: 8.5rem; }
.archives .cat a { color: var(--accent); text-decoration: none; }

.site-footer { color: #c7b995; border-top: 2px solid var(--brass); background: #141313; padding: 1rem; text-align: center; }
.footer-logo-link { display: inline-block; margin-top: 0.5rem; }
.footer-logo { height: 30px; width: auto; object-fit: contain; opacity: 0.95; filter: drop-shadow(0 0 6px rgba(0,0,0,0.4)); }

a { color: #cdb57a; }
code, pre { background: #2b2b2b; color: #f6f1e4; border-radius: 4px; }
pre { padding: 0.75rem; overflow: auto; }

/* 404 page */
.not-found { text-align: center; padding: 2rem 0; }
.not-found .btn { display: inline-block; margin: 0.25rem; padding: 0.5rem 0.9rem; border: 1px solid rgba(196,169,104,0.6); border-radius: 4px; text-decoration: none; color: #f0e6cf; background: rgba(255,255,255,0.03); }
.not-found .btn:hover { background: rgba(196,169,104,0.12); }

/* Responsive */
@media (max-width: 640px) {
  .brand { flex-direction: column; align-items: flex-start; }
  .brand .subtitle { margin-left: 0; }
  .site-logo { height: 36px; }
}

.site-logo-link { display: inline-flex; align-items: center; }
.site-logo { height: 80px; width: auto; object-fit: contain; filter: drop-shadow(0 0 8px rgba(0,0,0,0.4)); }

/* Comments */
.comments { margin-top: 2rem; padding-top: 1rem; border-top: 1px dashed rgba(196,169,104,0.25); }
.comments h2 { margin-top: 0; font-size: 1.2rem; color: #e8dcc1; }
