:root {
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Playfair Display", "Times New Roman", serif;
}

html,
body {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Typography defaults for all non-workspace surfaces */
body,
nav,
footer,
p,
a,
li,
span,
label,
small,
button,
input,
textarea,
select {
  font-family: var(--font-body);
  font-feature-settings: "liga" 1, "calt" 1;
}

h1,
h2,
h3,
h4,
h5,
h6,
.hero-title,
.section-heading {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -0.01em;
}

blockquote,
blockquote p {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.brand-mark {
  font-family: var(--font-heading);
}

blockquote footer,
blockquote cite {
  font-family: var(--font-body);
  letter-spacing: normal;
  font-weight: 400;
}

.nav-trigger[aria-expanded="true"] { background-color: rgba(31,41,55,0.5); }
[id] { scroll-margin-top: 80px; }
[data-mega-dropdown] .mega-surface { box-shadow: 0 8px 24px rgba(0,0,0,0.45); }

/* Media defaults */
img,
video {
  max-width: 100%;
  height: auto;
}

/* Mobile nav */
[data-mobile-panel] {
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
}

body.nav-open {
  overflow: hidden;
}

/* Responsive helpers for hero/split canvases */
.responsive-showcase {
  min-height: 240px;
  height: clamp(240px, 70vw, 520px);
}
@media (min-width: 640px) {
  .responsive-showcase {
    height: clamp(320px, 60vh, 600px);
  }
}
@media (min-width: 1024px) {
  .responsive-showcase {
    height: clamp(420px, 62vh, 720px);
  }
}

.responsive-pane {
  min-height: 240px;
  height: auto;
}
@media (min-width: 640px) {
  .responsive-pane {
    min-height: clamp(320px, 60vh, 600px);
  }
}
@media (min-width: 1024px) {
  .responsive-pane {
    min-height: clamp(420px, 62vh, 720px);
  }
}

.responsive-wide-media {
  height: clamp(220px, 60vw, 480px);
}
@media (min-width: 768px) {
  .responsive-wide-media {
    height: clamp(320px, 55vh, 640px);
  }
}

/* Research/post typography (restore spacing after Tailwind reset) */
.prose {
  color: inherit;
  line-height: 1.7;
}
.prose p {
  margin: 0 0 1em;
}
.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  margin: 1.2em 0 0.5em;
  font-family: var(--font-heading);
  line-height: 1.3;
}
.prose ul,
.prose ol {
  margin: 0 0 1.1em 1.25em;
  padding: 0 0 0 0.4em;
}
.prose ul {
  list-style: disc;
}
.prose ol {
  list-style: decimal;
}
.prose li {
  margin: 0.2em 0;
}
.prose blockquote {
  margin: 0 0 1.2em;
  padding: 0.6em 1em;
  border-left: 3px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.03);
}
.prose pre {
  margin: 0 0 1.2em;
  padding: 0.9em 1em;
  border-radius: 10px;
  background: rgba(15,23,42,0.6);
  overflow-x: auto;
}
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.2em;
  font-size: 0.95em;
}
.prose th,
.prose td {
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.65em 0.8em;
}
.prose th {
  background: rgba(255,255,255,0.06);
  font-weight: 600;
  text-align: left;
}
.prose tr:nth-child(even) td {
  background: rgba(255,255,255,0.03);
}
@media (min-width: 1280px) {
  .responsive-wide-media {
    height: clamp(380px, 50vh, 720px);
  }
}

.responsive-illustration {
  min-height: 220px;
  height: clamp(240px, 65vw, 480px);
}
@media (min-width: 768px) {
  .responsive-illustration {
    height: clamp(280px, 55vh, 540px);
  }
}
@media (min-width: 1280px) {
  .responsive-illustration {
    height: clamp(320px, 50vh, 620px);
  }
}
