:root {
  --paper: #F5F0E6;
  --card: #FBF8F1;
  --ink: #1B1A17;
  --red: #B4381C;
  --green: #3F5B33;
  --muted: #7A7469;
  --line: rgba(27,26,23,0.16);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Space Grotesk', -apple-system, sans-serif; }
a { color: inherit; text-decoration: none; }
html { scroll-behavior: smooth; }

.ah-serif { font-family: 'Fraunces', serif; }
.ah-mono  { font-family: 'IBM Plex Mono', monospace; }

.ah-stamp {
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  color: var(--red);
  border: 2.5px solid var(--red);
  mix-blend-mode: multiply;
  opacity: 0.88;
}
.ah-stamp-green { color: var(--green); border-color: var(--green); }

.ah-reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.ah-reveal.in { opacity: 1; transform: translateY(0); }

.ah-card-hover { transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.35s ease; }
.ah-card-hover:hover {
  transform: translateY(-7px) rotate(-0.6deg);
  border-color: var(--red) !important;
  box-shadow: 8px 12px 0 0 rgba(27,26,23,0.08);
}

.ah-btn-primary { transition: transform 0.15s ease, box-shadow 0.15s ease; box-shadow: 4px 4px 0 0 var(--ink); display: inline-block; }
.ah-btn-primary:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 0 var(--ink); }
.ah-btn-primary:active { transform: translate(4px, 4px); box-shadow: 0 0 0 0 var(--ink); }

.ah-nav-link { position: relative; transition: color 0.2s ease; }
.ah-nav-link:hover { color: var(--ink) !important; }
.ah-nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--red); transition: width 0.25s ease;
}
.ah-nav-link:hover::after { width: 100%; }

.site-header {
  position: sticky; top: 0; z-index: 50; width: 100%; box-sizing: border-box;
  backdrop-filter: blur(10px); background: rgba(245,240,230,0.82);
  border-bottom: 1.5px solid rgba(27,26,23,0.14);
}
.site-header-inner {
  max-width: 1240px; margin: 0 auto; padding: 20px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.site-brand { display: flex; align-items: center; gap: 10px; }
.site-mark {
  width: 36px; height: 36px; border-radius: 50%; background: var(--ink);
  display: flex; align-items: center; justify-content: center; transform: rotate(-6deg);
}
.site-mark span { color: var(--paper); font-size: 17px; font-weight: 600; transform: rotate(6deg); }
.site-nav { display: flex; align-items: center; gap: 34px; }
@media (max-width: 860px) { .site-nav-links { display: none !important; } }

.site-footer { padding: 60px 32px 40px; border-top: 1.5px dashed rgba(27,26,23,0.2); }
.site-footer-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .site-footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer-col-title { font-size: 11px; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 16px; text-transform: uppercase; }
.site-footer-links { display: flex; flex-direction: column; gap: 12px; }
.site-footer-links a { font-size: 13.5px; color: #4A4640; }
.site-footer-bottom {
  max-width: 1240px; margin: 48px auto 0; padding-top: 24px; border-top: 1.5px dashed rgba(27,26,23,0.2);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.site-footer-bottom span { font-size: 11.5px; color: var(--muted); }

main.page-wrap { max-width: 860px; margin: 0 auto; padding: 56px 32px 100px; }
main.page-wrap.wide { max-width: 1100px; }

.post-card {
  background: var(--card); border: 1.5px solid var(--line); border-radius: 14px;
  padding: 26px; margin-bottom: 20px; display: block;
}
.post-card .post-date { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.post-card h2 { font-size: 22px; margin: 0 0 10px; font-weight: 600; }
.post-card p { font-size: 14.5px; color: #4A4640; line-height: 1.6; margin: 0; }

.post-body { font-size: 16px; line-height: 1.75; color: #2a2722; }
.post-body h2 { font-size: 24px; margin: 36px 0 14px; font-weight: 600; font-family: 'Fraunces', serif; }
.post-body h3 { font-size: 19px; margin: 28px 0 10px; font-weight: 600; }
.post-body p { margin: 0 0 18px; }
.post-body img { max-width: 100%; border-radius: 10px; }
.post-body a { color: var(--red); text-decoration: underline; }
.post-body ul, .post-body ol { padding-left: 22px; margin: 0 0 18px; }

.empty-state { color: var(--muted); font-size: 14px; padding: 30px 0; }

/* ---- simple admin chrome (reuses the same palette) ---- */
.admin-app { max-width: 980px; margin: 0 auto; padding: 32px 24px 70px; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.admin-card { background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 24px; margin-bottom: 20px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 8px; border-top: 1.5px dashed var(--line); }
.admin-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; border-top: none; }
.admin-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }
.admin-form input[type="text"], .admin-form textarea, .admin-form select {
  padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 6px; font-size: 14px; font-family: inherit; background: #fff;
}
.admin-form textarea { min-height: 260px; resize: vertical; font-family: 'IBM Plex Mono', monospace; font-size: 13px; }
.btn { border: none; border-radius: 6px; padding: 11px 20px; font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: 0.03em; }
.btn.primary { background: var(--red); color: var(--paper); }
.btn.ghost { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); }
.btn.danger { background: transparent; border: 1.5px solid var(--red); color: var(--red); }
.status-msg { margin-top: 12px; font-size: 13px; }
.status-msg.ok { color: var(--green); }
.status-msg.warn { color: var(--red); }
