/* Lora (body text) and Raleway (headings/nav) — loaded via <link> in base.shtml */

html, body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  --footer-height: 4em;
}

body {
  background: white;
  color: black;
  margin: 0;
  position: relative;
  font-family: Lora, Georgia, serif;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Raleway, sans-serif;
  line-height: 1.3;
}

footer {
  font-family: Raleway, sans-serif;
}

h1 {
  font-variant: small-caps;
  text-transform:uppercase;

  .tag {
    text-transform: lowercase;
    font-style: italic;
  }
}

/* ── Header ── */

header {
  text-align: center;
  padding: 2em 1em 1.5em;
}

img.logo {
  max-width: 26rem;
  width: 100%;
  height: auto;
  vertical-align: bottom;
  /* optical centre: nudge right to compensate for the small '.co' tag */
  position: relative;
  left: 1rem;
}

/* ── Navigation ── */

nav {
  margin-top: 1em;
  font-family: Raleway, sans-serif;
  font-size: 0.875rem;
}

nav a,
nav span.current-page {
  padding: 0.15em 0.4em;
  text-decoration: none;
}

nav span.current-page {
  padding: 0.15em 0.4em;
  text-decoration: none;
  background: #000;
  color: white;
  font-weight:600;
}

nav a:hover {
  color:white;
  background: rgb(91, 91, 241);
  outline: 1px solid rgb(91, 91, 241);
}

/* ── Main content ── */

section#main-body {
  padding: 0 1.5rem var(--footer-height);
  margin: 1.5em auto 0;
  max-width: 50rem;
}

hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 2em 0;
}

/* ── Footer ── */

footer {
  box-sizing: border-box;
  position: absolute;
  bottom: 2em;
  left: 2em;
  right: 2.75em;
  text-align: center;
  font-size: 12px;
  color: #888;
}

/* Page-end terminal dot — appended after the last paragraph */
section#main-body p:last-child::after {
  content: '';
  display: inline-block;
  width: 0.6666em;
  height: 0.6666em;
  border-radius: 50%;
  background-color: #444;
  margin-left: 0.4em;
  vertical-align: middle;
}