/* BakBas — shared styles */
:root {
  --cream: #F6F1E8;
  --cream-deep: #EFE7D8;
  --ink: #1A1814;
  --ink-soft: #3A362E;
  --muted: #6B665B;
  --line: #2A2620;
  --accent: #E84E1B;
  --accent-soft: #FF7A45;
  --mustard: #D4A93C;
  --sage: #7A8B5C;
  --radius: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', -apple-system, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  opacity: 0.35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/></svg>");
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }

.serif { font-family: 'Instrument Serif', serif; font-weight: 400; letter-spacing: -0.01em; }
.italic { font-style: italic; }
.mono { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; }

/* NAV */
nav.site-nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(246, 241, 232, 0.82);
  border-bottom: 1px solid rgba(26, 24, 20, 0.08);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px; max-width: 1240px; margin: 0 auto;
}
.logo {
  font-family: 'Instrument Serif', serif;
  font-size: 1.65rem; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 8px;
}
.logo-dot {
  width: 10px; height: 10px; background: var(--accent);
  border-radius: 50%; display: inline-block;
  box-shadow: 0 0 0 4px rgba(232, 78, 27, 0.15);
}
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  font-size: 0.92rem; color: var(--ink-soft);
  font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; font-size: 0.92rem; font-weight: 600;
  border-radius: 999px; transition: all 0.25s; white-space: nowrap;
}
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: rgba(26, 24, 20, 0.06); }
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn-primary .arrow { transition: transform 0.25s; }
.btn-primary:hover .arrow { transform: translateX(3px); }
.btn-outline { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-xl { padding: 16px 30px; font-size: 1rem; }

/* PAGE HEADER (secondary pages) */
.page-hero {
  padding: 90px 0 60px;
  border-bottom: 1px solid rgba(26,24,20,0.08);
}
.page-hero .eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem; letter-spacing: 0.2em;
  color: var(--accent); text-transform: uppercase;
  margin-bottom: 18px; display: inline-flex;
  align-items: center; gap: 10px;
}
.page-hero .eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--accent);
}
.page-hero h1 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1; letter-spacing: -0.03em;
  margin-bottom: 22px; max-width: 900px;
}
.page-hero h1 .italic { color: var(--accent); font-style: italic; }
.page-hero .lede {
  font-size: 1.2rem; color: var(--ink-soft);
  max-width: 640px; line-height: 1.5;
}

section { padding: 100px 0; }
section.compact { padding: 70px 0; }

.section-header { max-width: 700px; margin-bottom: 60px; }
.section-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem; letter-spacing: 0.2em;
  color: var(--accent); text-transform: uppercase;
  margin-bottom: 18px; display: inline-flex;
  align-items: center; gap: 10px;
}
.section-eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--accent); }
h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.02; letter-spacing: -0.025em;
  margin-bottom: 18px;
}
h2 .italic { color: var(--accent); }
.section-sub { font-size: 1.08rem; color: var(--muted); max-width: 520px; }

/* CTA BOX (reusable) */
.cta-section { padding: 100px 0; }
.cta-box {
  background: linear-gradient(135deg, var(--accent), #C93C0E);
  border-radius: 24px; padding: 80px 60px;
  text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.cta-box::before {
  content: ""; position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: var(--mustard); border-radius: 50%;
  opacity: 0.3; filter: blur(60px);
}
.cta-box::after {
  content: ""; position: absolute;
  bottom: -80px; left: -80px;
  width: 300px; height: 300px;
  background: #FFB891; border-radius: 50%;
  opacity: 0.25; filter: blur(60px);
}
.cta-box h2 { color: #fff; position: relative; z-index: 2; margin-bottom: 18px; }
.cta-box p {
  position: relative; z-index: 2;
  color: rgba(255,255,255,0.88);
  margin-bottom: 32px; font-size: 1.1rem;
  max-width: 520px; margin-left: auto; margin-right: auto;
}
.cta-box .btn { position: relative; z-index: 2; background: #fff; color: var(--ink); }
.cta-box .btn:hover { background: var(--ink); color: #fff; }

/* FOOTER */
footer.site-footer {
  background: var(--ink); color: var(--cream);
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px; margin-bottom: 60px;
}
.footer-brand .logo { color: var(--cream); margin-bottom: 18px; }
.footer-brand p { color: rgba(246,241,232,0.6); max-width: 280px; font-size: 0.95rem; }
footer h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--mustard);
  margin-bottom: 20px; font-weight: 500;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: rgba(246,241,232,0.7); font-size: 0.92rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-soft); }
.footer-bottom {
  padding-top: 30px; border-top: 1px solid rgba(246,241,232,0.1);
  display: flex; justify-content: space-between;
  color: rgba(246,241,232,0.5); font-size: 0.85rem;
  flex-wrap: wrap; gap: 14px;
}

/* Prose (for legal/about) */
.prose { max-width: 740px; }
.prose p { font-size: 1.02rem; color: var(--ink-soft); margin-bottom: 22px; line-height: 1.7; }
.prose h2 {
  font-size: 2rem; margin-top: 50px; margin-bottom: 16px;
}
.prose h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 1.45rem; font-weight: 400;
  margin-top: 32px; margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.prose ul { padding-left: 22px; margin-bottom: 22px; color: var(--ink-soft); }
.prose ul li { margin-bottom: 8px; line-height: 1.6; }
.prose a { color: var(--accent); border-bottom: 1px solid rgba(232,78,27,0.3); }
.prose a:hover { border-color: var(--accent); }
.prose .updated {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem; color: var(--muted);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 40px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  section { padding: 70px 0; }
  .page-hero { padding: 60px 0 40px; }
  .cta-box { padding: 60px 28px; }
}
@media (max-width: 600px) {
  .wrap, .wrap-narrow { padding: 0 20px; }
  .nav-inner { padding: 16px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
}
