/* =============================================================
   The Kitsch Canon — a journal of figurative & Old-Master painting
   Bespoke stylesheet. Palette: near-black ground / warm cream ink /
   antique gold / oxblood. Type: Cormorant Garamond (display) +
   Spectral (body). Dark exhibition-catalogue aesthetic.
   Content is ALWAYS visible without JavaScript.
   ============================================================= */

:root{
  --ink:#141210;            /* near-black ground */
  --ink-2:#1c1712;          /* raised panel */
  --ink-3:#241d16;          /* footer / hairline field */
  --cream:#ece2d0;          /* primary text */
  --cream-soft:#cdc0aa;     /* secondary text */
  --muted:#938774;          /* tertiary / captions */
  --gold:#c9a24a;           /* antique gold accent */
  --gold-soft:#a9863a;
  --oxblood:#8a4b3b;        /* secondary accent */
  --oxblood-light:#b06a54;
  --line:rgba(201,162,74,.28);
  --line-soft:rgba(236,226,208,.10);
  --shadow:0 30px 70px -32px rgba(0,0,0,.8);
  --measure:42rem;
  --serif:"Cormorant Garamond",Georgia,"Times New Roman",serif;
  --body:"Spectral",Georgia,"Times New Roman",serif;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;
  background:var(--ink);
  color:var(--cream);
  font-family:var(--body);
  font-size:1.08rem;
  line-height:1.78;
  font-weight:400;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--gold);text-decoration:none}
a:hover{color:var(--oxblood-light)}

/* Safeguard: content is never hidden waiting on JS. Any reveal
   animation is progressive enhancement only. */
[data-aos]{opacity:1 !important;transform:none !important}

/* skip link */
.skip{position:absolute;left:-999px;top:0;background:var(--gold);color:var(--ink);padding:.6rem 1rem;z-index:200;font-family:var(--body)}
.skip:focus{left:.5rem;top:.5rem}

/* ---------- Header / Nav ---------- */
.site-header{
  position:sticky;top:0;z-index:100;
  background:rgba(20,18,16,.88);
  backdrop-filter:saturate(130%) blur(10px);
  -webkit-backdrop-filter:saturate(130%) blur(10px);
  border-bottom:1px solid var(--line);
}
.nav{
  max-width:76rem;margin:0 auto;padding:.9rem 1.6rem;
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
}
.brand{display:flex;flex-direction:column;line-height:1;text-decoration:none;color:var(--cream)}
.brand b{font-family:var(--serif);font-weight:600;font-size:1.5rem;letter-spacing:.02em}
.brand span{font-family:var(--body);font-size:.6rem;letter-spacing:.36em;text-transform:uppercase;color:var(--gold);margin-top:.4rem;font-weight:500}
.nav-links{display:flex;align-items:center;gap:1.5rem;list-style:none;margin:0;padding:0}
.nav-links a{
  font-family:var(--body);font-size:.72rem;letter-spacing:.18em;text-transform:uppercase;
  color:var(--cream-soft);font-weight:500;padding:.3rem 0;position:relative;
}
.nav-links a::after{content:"";position:absolute;left:0;right:100%;bottom:-2px;height:1px;background:var(--gold);transition:right .3s ease}
.nav-links a:hover{color:var(--gold)}
.nav-links a:hover::after,.nav-links a[aria-current="page"]::after{right:0}
.nav-toggle,.nav-check{display:none}

/* ---------- Layout ---------- */
main{display:block}
.prose{max-width:var(--measure);margin:0 auto;padding:0 1.6rem}

/* ---------- Hero plate ---------- */
.hero{position:relative;width:100%;margin:0;background:var(--ink-2);border-bottom:1px solid var(--line)}
.hero img{width:100%;max-height:70vh;object-fit:cover;filter:saturate(.97) contrast(1.03) brightness(.96)}
.hero figcaption{
  max-width:76rem;margin:0 auto;padding:.7rem 1.6rem 0;
  font-family:var(--body);font-style:italic;font-size:.82rem;color:var(--muted);letter-spacing:.01em;
}

/* ---------- Article ---------- */
article{padding-bottom:5rem}
.prose{padding-top:3.2rem}
.hero + .prose,.hero figcaption + .prose{padding-top:2.4rem}
.kicker{
  display:block;font-family:var(--body);font-size:.68rem;font-weight:600;
  letter-spacing:.34em;text-transform:uppercase;color:var(--gold);margin:0 0 1rem;
}
.kicker::before{content:"";display:inline-block;width:26px;height:1px;background:var(--gold);vertical-align:middle;margin-right:.7rem;transform:translateY(-4px)}

.prose h1{
  font-family:var(--serif);font-weight:600;
  font-size:clamp(2.4rem,5.6vw,3.8rem);line-height:1.04;letter-spacing:.005em;
  margin:0 0 1.4rem;text-wrap:balance;color:#f3ecdd;
}
.prose h2{
  font-family:var(--serif);font-weight:600;font-size:clamp(1.55rem,3.2vw,2.05rem);
  line-height:1.16;margin:2.8rem 0 .9rem;letter-spacing:.005em;color:#f0e8d8;
}
.prose h2::before{content:"";display:block;width:40px;height:2px;background:var(--oxblood);margin-bottom:1rem}
.prose h3{font-family:var(--serif);font-weight:600;font-size:1.4rem;margin:2rem 0 .6rem;color:#f0e8d8}
.prose p{margin:0 0 1.3rem}
.prose .lede{
  font-family:var(--serif);font-style:italic;font-weight:500;
  font-size:clamp(1.35rem,2.7vw,1.7rem);line-height:1.46;color:var(--cream-soft);
  margin-bottom:1.9rem;
}
/* Drop cap on the first body paragraph after the lede */
.prose .lede + p::first-letter{
  font-family:var(--serif);font-weight:600;float:left;
  font-size:4.1rem;line-height:.76;padding:.4rem .55rem 0 0;color:var(--gold);
}
.prose a{border-bottom:1px solid rgba(201,162,74,.4);transition:border-color .2s,color .2s}
.prose a:hover{border-color:var(--oxblood-light)}
.prose ul,.prose ol{margin:0 0 1.4rem;padding-left:1.3rem}
.prose li{margin:.5rem 0}
.prose li::marker{color:var(--gold)}
.prose strong{font-weight:600;color:#f4eddd}
.prose em{font-style:italic}
.prose blockquote{border-left:2px solid var(--gold);margin:1.7rem 0;padding:.2rem 0 .2rem 1.4rem;font-family:var(--serif);font-style:italic;font-size:1.2rem;color:var(--cream-soft)}

/* ---------- Contact form ---------- */
.contact-form{display:flex;flex-direction:column;gap:1.1rem;margin:1.7rem 0 1rem;max-width:34rem}
.contact-form label{display:flex;flex-direction:column;gap:.4rem;font-family:var(--body);font-size:.72rem;letter-spacing:.16em;text-transform:uppercase;color:var(--muted);font-weight:600}
.contact-form input,.contact-form textarea{
  font-family:var(--body);font-size:1rem;color:var(--cream);
  background:var(--ink-2);border:1px solid var(--line-soft);border-radius:2px;
  padding:.7rem .85rem;width:100%;
}
.contact-form input:focus,.contact-form textarea:focus{outline:none;border-color:var(--gold)}
.contact-form button,.btn{
  align-self:flex-start;font-family:var(--body);font-size:.74rem;letter-spacing:.2em;text-transform:uppercase;
  font-weight:600;color:var(--ink);background:var(--gold);border:1px solid var(--gold);
  padding:.8rem 1.8rem;border-radius:2px;cursor:pointer;transition:background .2s,color .2s;text-decoration:none;
}
.contact-form button:hover,.btn:hover{background:var(--oxblood);border-color:var(--oxblood);color:var(--cream)}
.fine-print{font-size:.85rem;color:var(--muted);font-style:italic}

/* ---------- 404 ---------- */
.notfound{max-width:40rem;margin:0 auto;padding:7rem 1.6rem;text-align:center}
.notfound h1{font-family:var(--serif);font-size:clamp(3rem,10vw,5rem);color:var(--gold);margin:0 0 1rem;line-height:1}
.notfound p{color:var(--cream-soft);margin:0 0 1.6rem}

/* ---------- Footer ---------- */
.site-footer{background:var(--ink-3);color:var(--cream);margin-top:2rem;border-top:1px solid var(--line)}
.footer-inner{max-width:76rem;margin:0 auto;padding:3.8rem 1.6rem 2.4rem;display:grid;grid-template-columns:1.5fr repeat(3,1fr);gap:2.5rem}
.footer-brand b{font-family:var(--serif);font-weight:600;font-size:1.7rem;display:block;margin-bottom:.7rem;color:#f3ecdd}
.footer-brand p{color:var(--cream-soft);font-size:.95rem;line-height:1.65;margin:0}
.footer-col h4{font-family:var(--body);font-size:.66rem;letter-spacing:.26em;text-transform:uppercase;color:var(--gold);margin:0 0 1rem;font-weight:600}
.footer-col ul{list-style:none;margin:0;padding:0}
.footer-col li{margin:.55rem 0}
.footer-col a{color:var(--cream-soft);font-size:.92rem}
.footer-col a:hover{color:var(--gold)}
.footer-bottom{max-width:76rem;margin:0 auto;padding:1.5rem 1.6rem 2.8rem;border-top:1px solid var(--line-soft);display:flex;flex-wrap:wrap;gap:.6rem 1.4rem;justify-content:space-between;align-items:baseline}
.footer-bottom p{margin:0;color:var(--muted);font-size:.82rem}
.footer-bottom .heritage{max-width:46rem;line-height:1.65}

/* ---------- Entrance (CSS-only, ends visible) ---------- */
@keyframes riseIn{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:no-preference){
  .hero{animation:riseIn .8s cubic-bezier(.2,.7,.2,1) both}
  .prose>.kicker{animation:riseIn .8s .05s cubic-bezier(.2,.7,.2,1) both}
  .prose>h1{animation:riseIn .8s .12s cubic-bezier(.2,.7,.2,1) both}
  .prose>.lede{animation:riseIn .8s .18s cubic-bezier(.2,.7,.2,1) both}
}

/* ---------- Responsive ---------- */
@media (max-width:820px){
  .footer-inner{grid-template-columns:1fr 1fr}
}
@media (max-width:680px){
  .nav-toggle{display:inline-flex;flex-direction:column;gap:5px;background:none;border:0;cursor:pointer;padding:.4rem}
  .nav-toggle span{display:block;width:26px;height:2px;background:var(--cream)}
  .nav-links{
    position:absolute;left:0;right:0;top:100%;
    flex-direction:column;align-items:flex-start;gap:0;
    background:var(--ink-2);border-bottom:1px solid var(--line);
    max-height:0;overflow:hidden;transition:max-height .32s ease;padding:0 1.6rem;
  }
  .nav-check:checked ~ .nav-links{max-height:32rem;padding:.6rem 1.6rem 1rem}
  .nav-links li{width:100%;border-bottom:1px solid var(--line-soft)}
  .nav-links a{display:block;padding:.85rem 0;font-size:.8rem}
  .footer-inner{grid-template-columns:1fr;gap:1.9rem}
}
