:root {
  --bg: #fbfaf7;
  --bg-tint: #f4f1ea;
  --bg-warm: #f7f4ec;
  --ink: #1a1a1a;
  --ink-soft: #2c2c2c;
  --muted: #6b6b6b;
  --muted-2: #9a9a9a;
  --line: #e8e3d8;
  --line-strong: #d4cdbd;
  --accent: #1a4d3a;
  --accent-soft: #2a6b52;
  --accent-bg: rgba(26, 77, 58, 0.06);
  --warm: #c84a2a;
  --gold: #b8893a;
  --paper: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
  --radius: 4px;
  --radius-lg: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter Tight', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--accent); color: var(--bg); }

/* PAPER TEXTURE OVERLAY */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
  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' /><feColorMatrix values='0 0 0 0 0.1, 0 0 0 0 0.1, 0 0 0 0 0.1, 0 0 0 0.04 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}
main, header, footer { position: relative; z-index: 2; }

/* ─── NAVIGATION ─── */
.nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  background: var(--bg);
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 14px;
  font-weight: 400;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.cta {
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.nav-links a.cta:hover { background: var(--accent); color: var(--bg); transform: translateY(-1px); }

/* ─── BUTTONS ─── */
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border: none;
  padding: 14px 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: -0.005em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn-primary svg { width: 14px; height: 14px; }

.btn-secondary {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  padding: 9px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
}
.btn-secondary:hover { border-color: var(--ink); }

.btn-post {
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
  padding: 9px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-post:hover { background: var(--accent-soft); border-color: var(--accent-soft); transform: translateY(-1px); }
.btn-post svg { width: 12px; height: 12px; }

.btn-text {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: all 0.2s;
}
.btn-text:hover { color: var(--ink); border-color: var(--ink); }

/* ─── FOOTER ─── */
.footer-rule {
  max-width: 1280px;
  margin: 60px auto 0;
  padding: 0 40px;
}
.footer-rule .line {
  height: 1px;
  background: var(--line);
}
footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 40px 48px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 40px;
}
.footer-brand .brand { margin-bottom: 12px; }
.footer-tagline {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  max-width: 280px;
}
.footer-col h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: var(--ink-soft);
  font-size: 13.5px;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--ink); }

/* ─── TOAST ─── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: var(--ink);
  color: var(--bg);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ─── HEADINGS ─── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--muted-2);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .nav { padding: 20px 24px; }
  .nav-links { display: none; }
  .nav-links a.cta { display: inline-flex; }
  .nav-links { display: flex; gap: 0; }
  .nav-links a:not(.cta) { display: none; }
  footer { padding: 32px 24px 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-rule { padding: 0 24px; }
}
