/* Customise Water.css */
:root {
  --background-body: #000000;
  --background-main: #ffffff; /* Needed for light/dark mode */
  --background: #efefef;
  --text-main: #202020;
  --links: LinkText; /* Browser's default link colour */
  --border: #dbdbdb;
}


body {
  max-width: 848px; /* 800px main plus 24px (1.5rem) padding left and right */
  margin-top: 0;
  padding: 0;
  background-color: var(--background-body);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
}
@media screen and (max-width: 400px) {
  body {
    font-size: 1.1rem;
  }
}


header, header img, header picture {
  margin-bottom: 0;
}

header nav {
  font-family: "IM Fell English";
  font-size: 1.1rem;
}
header nav a {
  color: #ffffff;
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
}

/* Header menu and footer navigation */
nav {
  text-align: center;
  padding: 0.25rem;
}
nav ul {
  padding-left: 0;
  margin-top: 0;
  margin-bottom: 0;
}
nav li {
  display: inline-block;
}
nav a {
  display: inline-block;
  padding: 0.6rem;
}
@media screen and (max-width: 320px) { /* iPhone 5/SE */
}

/* Highlight the current page in navigation and pagination */
[aria-current] {
  cursor: text;
}

a:hover[aria-current] {
  text-decoration: none;
}


main {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  background: var(--background-main);
  padding: 1rem;
}

@media screen and (min-width: 600px) {
  main {
    padding: 1.5rem;
    border-radius: 0.25rem;
  }
}


article {
  margin-bottom: 1.5rem;
}

article.post-excerpt {
  clear: both;
  border-top: 1px solid var(--border);
}
article.post-excerpt h1 {
  margin-top: 1.5rem;
}


h1 {
  font-family: "IM Fell English";
  font-weight: normal;
  font-size: 1.5rem;
  margin-top: 0;
}

@media screen and (min-width: 600px) {
  h1 {
    font-size: 2rem;
  }
}

h1 a, h1 a:visited {
  color: inherit;
  font-weight: normal;
}


img {
  border-radius: 0.25rem;
}

/* Centre images by default (for small screens) */
img, video {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
}

.video {
  margin-bottom: 1.5rem;
}


/* Right align small images on bigger screens */

/* Right align images in post list */
/* @media screen and (min-width: 600px) {
  .post-excerpt p > img,
  .post-excerpt p > a > img,
  .post-excerpt picture img {
    max-width: 50%;
    max-height: 400px;
    object-fit: contain;
    float: right;
    margin-top: 0.5rem;
    margin-right: 0;
    margin-left: 0.8rem;
    margin-bottom: 1rem;
  }
} */


lite-youtube {
  max-width: 100% !important;
  /* margin: 1rem 0; */
  border-radius: 0.25rem;
}


body > footer {
  border-top: 0;
  margin-top: 0;
  text-align: center;
}
body > footer a {
  color: #68b747;
}

footer p {
  font-size: 0.8rem;
  font-weight: 600;
}

body > footer svg {
  height: 2.5rem;
  margin: 0 0.4rem;
}


.skip-link:not(:focus):not(:active) {
    border: 0;
    clip: rect(0 0 0 0);
    height: auto;
    margin: 0;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap;
}

.skip-link:focus {
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0;
    padding: 0.8rem 1.25rem 1rem 1.25rem;
    background-color: var(--background);
    color: var(--focus);
    line-height: 1;
    text-decoration: none;
    font-weight: 700;
}
