:root{
  --paper: #faf7ef;
  --ink: #16140f;
  --ink-soft: rgba(22,20,15,0.68);
  --red: #e6402a;
  --orange: #f2932a;
  --yellow: #f2c214;
  --green: #3aa15a;
  --blue: #2f7ee0;
  --line: rgba(22,20,15,0.12);
  --maxw: 1160px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Work Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,h2,h3,.display{
  font-family: 'Archivo Black', system-ui, sans-serif;
  margin:0;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
a{ color: inherit; text-decoration: none; }
img,svg{ display:block; max-width:100%; }
.wrap{ max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

:focus-visible{
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

/* ---------- Template disclaimer banner ---------- */
.template-banner{
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  max-height: 60px;
  transition: max-height 0.3s ease;
}
.template-banner.dismissed{ max-height: 0; }
.template-banner-inner{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 32px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  text-align:center;
}
.template-banner-close{
  background:none;
  border:none;
  color: inherit;
  font-size: 1.1rem;
  line-height:1;
  cursor:pointer;
  opacity:0.65;
  padding: 0 4px;
  transition: opacity 0.2s ease;
}
.template-banner-close:hover{ opacity: 1; }

/* ---------- Header ---------- */
header{
  position: relative;
  z-index: 50;
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  height: 84px;
}
.logo{
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}
.logo span{ color: var(--red); }
nav{ display:flex; align-items:center; gap: 36px; }
.nav-links{ display:flex; gap: 30px; }
.nav-links a{
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 0;
  border-bottom: 3px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav-links a:hover{ border-color: var(--blue); }

.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 12px 22px;
  border-radius: 999px;
  border: 3px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover{ transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--ink); }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  padding: 90px 0 70px;
  overflow: hidden;
}
.hero-inner{
  position: relative;
  z-index: 3;
  text-align:center;
  max-width: 760px;
  margin: 0 auto;
}
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.eyebrow .dot{
  width:8px; height:8px; border-radius:50%;
  background: var(--red);
}
.hero h1{
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 0.98;
}
.hero h1 .accent{ color: var(--blue); }
.hero p.lede{
  margin: 26px auto 0;
  max-width: 480px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  font-weight: 500;
}
.hero-cta{ margin-top: 34px; }

/* splotches: absolutely positioned, thrown in on load */
.splotch{
  position:absolute;
  width: 120px;
  height: 120px;
  z-index: 1;
  opacity: 0;
  transform: scale(0.2) rotate(0deg);
  transition: transform 0.65s cubic-bezier(.2,1.6,.4,1), opacity 0.35s ease;
  pointer-events:none;
}
.splotch.thrown{ opacity: 1; }
.splotch svg{ width:100%; height:100%; }
.s-red svg{ fill: var(--red); }
.s-orange svg{ fill: var(--orange); }
.s-yellow svg{ fill: var(--yellow); }
.s-green svg{ fill: var(--green); }
.s-blue svg{ fill: var(--blue); }

.s1{ top: 6%; left: 6%; width: 110px; height: 110px; }
.s1.thrown{ transform: scale(1) rotate(-18deg); }
.s2{ top: 12%; right: 8%; width: 150px; height: 150px; }
.s2.thrown{ transform: scale(1) rotate(24deg); }
.s3{ bottom: 8%; left: 12%; width: 95px; height: 95px; }
.s3.thrown{ transform: scale(1) rotate(10deg); }
.s4{ bottom: 4%; right: 14%; width: 130px; height: 130px; }
.s4.thrown{ transform: scale(1) rotate(-30deg); }
.s5{ top: 46%; left: 2%; width: 80px; height: 80px; }
.s5.thrown{ transform: scale(1) rotate(6deg); }
.s6{ top: 40%; right: 1%; width: 90px; height: 90px; }
.s6.thrown{ transform: scale(1) rotate(-12deg); }

@media (max-width: 880px){
  .splotch{ width: 70px !important; height: 70px !important; }
}

/* ---------- Sections shared ---------- */
section{ padding: 80px 0; }
.section-tag{
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 16px;
  display:flex;
  align-items:center;
  gap: 10px;
}
.section-tag .dot{ width:8px; height:8px; border-radius:50%; }

/* ---------- Featured post ---------- */
.featured{ border-top: 3px solid var(--ink); }
.featured-card{
  display:grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items:center;
}
.fill-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.featured-art{
  position:relative;
  height: 420px;
  border-radius: 18px;
  border: 3px solid var(--ink);
  overflow:hidden;
  background: linear-gradient(135deg, var(--yellow) 0%, var(--orange) 45%, var(--red) 100%);
  display:flex;
  align-items:flex-end;
  padding: 20px;
}
.featured-art span{
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(22,20,15,0.55);
  background: rgba(250,247,239,0.7);
  padding: 6px 10px;
  border-radius: 6px;
}
.featured-copy .tag{
  display:inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  margin-bottom: 18px;
}
.featured-copy h2{
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.08;
}
.featured-copy p.excerpt{
  margin-top: 20px;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 460px;
}
.featured-copy .meta{
  margin-top: 22px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.featured-copy .read-more{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  margin-top: 26px;
  font-weight: 800;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 3px;
}

/* ---------- Recent posts ---------- */
.recent{ background: var(--ink); color: var(--paper); }
.recent .section-tag{ color: rgba(250,247,239,0.6); }
.post-list{
  margin-top: 40px;
  display:flex;
  flex-direction: column;
}
.post-row{
  display:grid;
  grid-template-columns: 26px 1fr auto;
  align-items:baseline;
  gap: 22px;
  padding: 26px 0;
  border-top: 1px solid rgba(250,247,239,0.16);
  transition: padding-left 0.25s ease;
}
.post-list .post-row:last-child{ border-bottom: 1px solid rgba(250,247,239,0.16); }
.post-row:hover{ padding-left: 12px; }
.post-row .dot{ width: 14px; height:14px; border-radius: 50%; align-self:center; }
.post-row h3{
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.2rem;
  text-transform: none;
  letter-spacing: -0.005em;
}
.post-row p{
  margin-top: 8px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(250,247,239,0.62);
  max-width: 520px;
}
.post-row .post-date{
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(250,247,239,0.5);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* ---------- Footer ---------- */
footer{
  background: var(--paper);
  color: var(--ink-soft);
  padding: 44px 0;
  border-top: 3px solid var(--ink);
}
.footer-inner{
  display:flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-inner .logo{ color: var(--ink); }
.footer-links{ display:flex; gap: 26px; }
.footer-links a{ font-size: 0.86rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; transition: color 0.2s ease; }
.footer-links a:hover{ color: var(--blue); }

@media (max-width: 880px){
  .nav-links{ display:none; }
  .featured-card{ grid-template-columns: 1fr; }
  .featured-art{ height: 300px; }
  .post-row{ grid-template-columns: 20px 1fr; }
  .post-row .post-date{ grid-column: 2; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .splotch{ transition: opacity 0.2s ease; }
}
