/* ══════════════════════════════════════════════════
   Art Deco — CSS-only layer (pseudo-elements + article typography)
   Layout/components use Tailwind utility classes in HTML.
   ══════════════════════════════════════════════════ */

/* ── Diagonal crosshatch texture ── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(212,175,55,0.03) 40px, rgba(212,175,55,0.03) 41px),
    repeating-linear-gradient(-45deg, transparent, transparent 40px, rgba(212,175,55,0.03) 40px, rgba(212,175,55,0.03) 41px);
}

/* ── Header double-border line ── */
.site-header::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(212,175,55,0.3);
}

/* ── Nav underline animation ── */
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 1px;
  background: #D4AF37;
  transform: scaleX(0);
  transition: transform 300ms;
}
.nav-link:hover::after,
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* ── Article bare-element typography ── */
.article h1 {
  font-family: "Marcellus", Georgia, serif;
  font-size: 2.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #D4AF37;
  line-height: 1.2;
  margin-bottom: 8px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(212,175,55,0.3);
  position: relative;
}

.article h1::before {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: #D4AF37;
  margin-bottom: 20px;
}

.article h2 {
  font-family: "Marcellus", Georgia, serif;
  font-size: 1.375rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #D4AF37;
  line-height: 1.3;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(212,175,55,0.15);
}

.article h3 {
  font-family: "Marcellus", Georgia, serif;
  font-size: 1.125rem;
  letter-spacing: 0.05em;
  color: #F2F0E4;
  margin-top: 32px;
  margin-bottom: 12px;
}

.article p {
  font-size: 1rem;
  line-height: 1.75;
  color: #F2F0E4;
  margin-bottom: 16px;
}

.article .lead {
  font-size: 1.125rem;
  color: #888888;
}

.article a {
  color: #D4AF37;
  text-decoration: none;
  border-bottom: 1px solid rgba(212,175,55,0.3);
  transition: border-color 300ms;
}
.article a:hover { border-color: #D4AF37; }
.article a:focus-visible { outline: 2px solid #D4AF37; outline-offset: 2px; }

.article ul, .article ol { padding-left: 24px; margin-bottom: 16px; }

.article li {
  font-size: 1rem;
  line-height: 1.75;
  color: #F2F0E4;
  margin-bottom: 6px;
}
.article li::marker { color: #D4AF37; }
.article li strong { color: #F2E8C4; }

.article code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85em;
  background: #141414;
  color: #F2E8C4;
  padding: 2px 6px;
  border: 1px solid rgba(212,175,55,0.15);
}

.article pre {
  background: #141414;
  border: 1px solid rgba(212,175,55,0.15);
  padding: 20px 24px;
  overflow-x: auto;
  margin-bottom: 24px;
  line-height: 1.6;
  position: relative;
}

.article pre::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-top: 1px solid rgba(212,175,55,0.3);
  border-right: 1px solid rgba(212,175,55,0.3);
}

.article pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.8125rem;
  color: #F2F0E4;
}

.article blockquote {
  border-left: 2px solid #D4AF37;
  padding: 16px 20px;
  margin: 24px 0;
  background: #141414;
}
.article blockquote p { margin-bottom: 0; color: #F2E8C4; }

.article table { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: 0.9375rem; }

.article th, .article td {
  text-align: left;
  padding: 10px 16px;
  border: 1px solid rgba(212,175,55,0.15);
}

.article th {
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: #141414;
  color: #D4AF37;
}

.article td { color: #F2F0E4; }
.article td code { font-size: 0.8em; }

.article hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, #D4AF37, transparent);
  margin: 48px 0;
}

/* ── Mobile article ── */
@media (max-width: 768px) {
  .article h1 { font-size: 1.75rem; }
  .article h2 { font-size: 1.125rem; }
}
