/* shared.css - used by all inner pages (design from index copy) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #07060f;
  --surface: #0e0c1e;
  --surface2: #14112a;
  --accent: #8b5cf6;
  --accent2: #a78bfa;
  --border: rgba(139, 92, 246, 0.15);
  --text: #f0eeff;
  --text-muted: #9390b0;
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* RULE 1 — Large headings: DM Serif Display, weight 400 only */
h1, h2,
h1.page-title, h2.section-h,
.hero-title, .section-heading,
[class*="heading"], [class*="display"] {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.3px;
}
h1, .hero-title { letter-spacing: -0.5px; line-height: 1.05; }
h2 { letter-spacing: -0.3px; line-height: 1.1; }

/* RULE 2 — Card titles, sub-headings, h3–h6: DM Sans, semi-bold */
h3, h4, h5, h6,
.card-title, .card-heading, .section-sh,
.card h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.2px;
}

/* Noise texture overlay (~4% opacity) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

/* RULE 3 — Body, UI, labels, buttons, nav: DM Sans, weight 400 */
body, p, span, li, a, button, input, label,
.body-text, .caption, .nav-link,
.card-body, .meta, .badge, .tag,
td, th, caption {
  font-family: var(--font-sans);
  font-weight: 400;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  padding: 40px 0 0;
  transition: color 0.2s;
  position: relative;
  z-index: 1;
}
.back-link:hover { color: var(--text); }
.back-link::before { content: '‹'; font-size: 18px; }

.page-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px 80px;
  position: relative;
  z-index: 1;
}

h1.page-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 400;
  margin: 24px 0 8px;
}
.page-date {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 48px;
  font-weight: 300;
}

h2.section-h {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  margin: 40px 0 12px;
}
h3.section-sh {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 8px;
}
p.body-text {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 16px;
  font-weight: 300;
}
ul.body-list {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  padding-left: 20px;
  margin-bottom: 16px;
  font-weight: 300;
}
ul.body-list li { margin-bottom: 6px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 32px;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}
.card:hover { border-color: rgba(139, 92, 246, 0.3); }
.card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.card p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 14px;
  font-weight: 300;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent2);
  text-decoration: none;
  font-size: 14px;
  transition: opacity 0.2s;
}
.card-link:hover { opacity: 0.8; }

.accent-link {
  color: var(--accent2);
  text-decoration: none;
}
.accent-link:hover { text-decoration: underline; }
