/* MJS — minimalist base styles */

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

:root {
  --color-bg: #ffffff;
  --color-text: #111111;
  --color-muted: #666666;
  --color-border: #e0e0e0;
  --color-accent: #111111;
  --font-sans: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --measure: 68ch;
  --space-s: 1rem;
  --space-m: 2rem;
  --space-l: 4rem;
  --header-height: 4rem;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
}

/* Layout */

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
  width: 100%;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: var(--color-bg);
  z-index: 100;
}

.site-header__inner {
  width: 80vw;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 0;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
}

/* Branding */

.site-header .site-name {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
}

.site-header .site-name a {
  color: inherit;
  text-decoration: none;
}

.site-header .site-slogan {
  margin: 0;
}

/* Navigation */

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--space-m);
}

.site-nav a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--color-text);
}

/* Typography */

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 400;
}

h1 { font-size: clamp(1.5rem, 3.5vw, 2rem); }

.page-title {
  width: 80vw;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.block-page-title-block {
  margin-top: 1rem;
}
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

p {
  margin: 0 0 1em;
}

a {
  color: var(--color-accent);
}

a:hover {
  text-decoration: none;
}

code, pre {
  font-family: var(--font-mono);
  font-size: 0.875em;
}

pre {
  background: #f5f5f5;
  padding: var(--space-s);
  overflow-x: auto;
  border-radius: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-l) 0;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-m) 0;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.site-footer__inner {
  width: 80vw;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
}

/* Drupal admin helpers */

.highlighted {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-s) var(--space-m) 0;
}

.help {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-m);
}

/* Responsive */

@media (max-width: 768px) {
  .site-header__inner {
    width: 92vw;
    flex-wrap: wrap;
    gap: var(--space-s);
  }

  .site-header .site-name {
    font-size: 1.1rem;
  }

  .site-nav ul {
    gap: var(--space-s);
  }

  .page-title {
    width: 92vw;
  }

  .site-footer__inner {
    width: 92vw;
  }
}
