/* Notion-style ultra-neutral theme for Murmur Informatics */

:root {
  --bg: #f5f2ec;
  --bg-muted: #f0ece4;
  --bg-card: #ffffff;
  --border-subtle: #e0ddd5;
  --text-main: #222222;
  --text-muted: #696766;
  --accent: #111827;
  --accent-soft: #e5e7eb;
  --radius-card: 12px;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.04);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-main);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Layout shell */

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.narrow {
  max-width: 720px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 80%, #ffffff 20%);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.logo a {
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.98rem;
}

.nav a {
  margin-left: 1.2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.nav a.active {
  color: var(--text-main);
  font-weight: 500;
}

.nav a:hover {
  color: var(--text-main);
}

/* Hero */

.hero {
  padding: 56px 0 32px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-text h1 {
  font-size: clamp(1.9rem, 3vw, 2.2rem);
  margin: 4px 0 8px;
  letter-spacing: -0.02em;
}

.hero-text .lead {
  max-width: 640px;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn.primary {
  background: var(--accent);
  color: #ffffff;
}

.btn.primary:hover {
  background: #020617;
}

.btn.ghost {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--text-main);
}

.btn.ghost:hover {
  background: #f9f7f2;
}

/* Page hero */

.page-hero {
  padding: 52px 0 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.page-hero h1 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.lead {
  margin: 0;
  color: var(--text-muted);
  max-width: 640px;
}

/* Sections */

.section {
  padding: 28px 0 40px;
}

.section-muted {
  background: var(--bg-muted);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* Cards & grids */

.card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
  padding: 16px 18px;
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 1rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  gap: 20px;
}

.contact-block h3 {
  margin-top: 0;
}

.contact-card {
  margin-top: 24px;
}

/* Lists */

ul {
  margin: 10px 0 0 18px;
  padding: 0;
}

li {
  margin-bottom: 4px;
  color: var(--text-muted);
}

/* Footer */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg) 85%, #ffffff 15%);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-inner a {
  color: var(--text-muted);
}

.footer-inner a:hover {
  color: var(--text-main);
}

/* Inline links */

.inline-links a + a::before {
  content: "·";
  display: inline-block;
  padding: 0 6px;
  color: var(--text-muted);
}

/* Responsive */

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .nav a {
    margin-left: 0;
    margin-right: 0.9rem;
  }

  .grid.two,
  .grid.three,
  .split {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 14px 14px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 44px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
