/* Site-wide styling: page frame, header, footer.
   Blog pages (frontpage, blog, posts, pages, 404) are styled by the
   blogkit plugin (site/plugins/blogkit/assets/css/blogkit.css).

   Colours come from blogkit, for light and dark mode (Panel: Home →
   Settings): --fg, --bg, --muted, --line, --accent. Don't set them here,
   or dark mode breaks; override --blogkit-light-* / --blogkit-dark-* instead. */

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

:root {
  --maxw: 72rem;
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
}

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

h1, h2, h3 { line-height: 1.2; }

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  max-width: var(--maxw);
  margin: 0 auto;
}
.logo { font-weight: 700; color: var(--fg); }
.logo:hover { text-decoration: none; }
.menu { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.menu a { color: var(--fg); }
.menu a[aria-current="page"] { font-weight: 700; }

/* Main */
.main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* Footer */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
