@view-transition {
  navigation: auto;
}

html,
body {
  scrollbar-width: thin;
  scrollbar-color: var(--colour-black-olive) var(--colour-white);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 10px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: var(--colour-white);
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background-color: var(--colour-black-olive);
  border-radius: 3px;
  border: 2px solid var(--colour-white);
}

html {
  margin: 0;
  padding: 0;
}

body {
  background: var(--colour-white);
  color: var(--colour-raisin-black);
  margin: 0;
  padding: 0;
}

body.placeholder {
  margin: 1rem;
}

html.theme-dark,
.theme-dark body {
  scrollbar-width: thin;
  scrollbar-color: var(--colour-black-olive) var(--colour-raisin-black);
}

html.theme-dark ::-webkit-scrollbar,
.theme-dark body::-webkit-scrollbar {
  width: 10px;
}

html.theme-dark ::-webkit-scrollbar-track,
.theme-dark body::-webkit-scrollbar-track {
  background: var(--colour-raisin-black);
}

html.theme-dark ::-webkit-scrollbar-thumb,
.theme-dark body::-webkit-scrollbar-thumb {
  background-color: var(--colour-anti-flash-white);
  border-radius: 3px;
  border: 2px solid var(--colour-raisin-black);
}

.theme-dark body {
  background: var(--colour-raisin-black);
  color: var(--colour-anti-flash-white);
}

a {
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:link,
a:visited {
  color: var(--colour-raisin-black);
  text-decoration-color: var(--colour-argent);
  transition: all 300ms ease-in-out;
}

a:hover,
a:active {
  color: var(--colour-argent);
  text-decoration-color: var(--colour-argent);
}

a:focus-visible {
  outline-offset: 0.25em;
  outline-width: 0.25em;
  outline-color: currentColor;
}

em a:link,
em a:visited {
  text-decoration-color: var(--colour-granite-gray);
}

a.non-text:link,
a.non-text:visited {
  text-decoration-line: none;
  text-decoration-color: var(--colour-raisin-black);
  transition: all 300ms ease-in-out;
}

a.non-text:hover,
a.non-text:active {
  text-decoration-color: var(--colour-argent);
}

a.secondary-link {
  text-decoration-line: none;
  font-size: 90%;
  display: inline-block;
  margin-inline-end: 0.25rem;
  vertical-align: middle;
}

.theme-dark h1,
.theme-dark h2,
.theme-dark h3,
.theme-dark h4,
.theme-dark h5,
.theme-dark h6 {
  font-weight: 300;
}

.theme-dark a:link,
.theme-dark a:visited,
.theme-dark .nav-front a:link,
.theme-dark .nav-front a:visited {
  color: var(--colour-anti-flash-white);
  text-decoration-color: var(--colour-anti-flash-white);
}

.theme-dark a:hover,
.theme-dark a:active,
.theme-dark .nav-front a:hover,
.theme-dark .nav-front a:active {
  color: var(--colour-pastel-orange);
  text-decoration-color: var(--colour-pastel-orange);
}

.theme-dark a.non-text:link,
.theme-dark a.non-text:visited {
  color: var(--colour-anti-flash-white);
  text-decoration-color: var(--colour-anti-flash-white);
}

.theme-dark a.non-text:hover,
.theme-dark a.non-text:active {
  color: var(--colour-pastel-orange);
  text-decoration-color: var(--colour-pastel-orange);
}

h1 {
  padding: 1rem;
}

h3 {
  padding: 2rem 1rem 0 1rem;
  border-block-end: 1px solid var(--colour-raisin-black);
  line-height: 1.2;
}

.theme-dark h3 {
  border-block-end: 1px solid var(--colour-anti-flash-white);
}

@media (min-width: 1024px) {
  h3 {
    padding: 2rem 0 0 1rem;
  }

  h3:first-child {
    padding: 0 0 0 1rem;
  }
}

h4 {
  padding: 2rem 0 1rem 1rem;
}

h4 + p {
  margin-block-start: 0;
}

@media (min-width: 1024px) {
  h4 {
    padding: 4rem 0 1rem 1rem;
  }
}

p,
time {
  margin: 1rem 1rem 0 1rem;
  line-height: 1.6;
}

.theme-dark time {
  font-weight: 200;
}

p time {
  margin-inline-start: 0;
}

ul,
ol {
  margin: 1rem;
}

figure.full-width {
  position: relative;
  margin: 2rem 0;
  padding: 0;
  text-align: center;
}

figure.full-width a:link img {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

figure.full-width a:link img:hover {
  opacity: 0.7;
}

figure figcaption {
  font-size: 0.85rem;
  font-style: italic;
  text-align: left;
  width: 100%;
  padding: 0.75rem 1rem;
}

aside {
  background-color: var(--colour-anti-flash-white);
  padding: 1rem;
  margin: 1rem 0;
}

.theme-dark aside {
  background-color: var(--colour-black-olive);
  color: var(--colour-white);
}

aside p {
  margin: 0;
}

@media (min-width: 1024px) {
  aside.page-content__aside-full-width {
    margin: 0;
  }
}

aside.page-content__aside-full-width p {
  margin: 0;
}

h3 + aside {
  margin: 2rem 0 1rem 0;
}

img {
  image-rendering: auto;
}

blockquote {
  margin: 2rem 0 2rem 1.5rem;
  color: var(--colour-black-olive);
  border-inline-start: 1px solid var(--colour-black-olive);
  padding: 0.5rem 0;
}

.theme-dark blockquote {
  color: var(--colour-anti-flash-white);
  border-inline-start: 1px solid var(--colour-anti-flash-white);
}

blockquote p:first-child {
  margin-block-start: 0;
}

pre.plain {
  background: var(--colour-black-olive);
  color: var(--colour-white);
  font-family: var(--font-monospace);
  border-radius: 5px;
  margin: 2rem 0;
  max-width: 100%;
  overflow: auto;
  padding: 1rem;
  white-space: pre-wrap;
  max-height: 40rem;

  scrollbar-width: thin;
  scrollbar-color: var(--colour-white) var(--colour-black-olive);
}

.theme-dark pre.plain {
  background: var(--colour-argent);
  color: var(--colour-raisin-black);
  scrollbar-width: thin;
  scrollbar-color: var(--colour-raisin-black) var(--colour-argent);
}

pre.plain code {
  padding: 0 0 1rem 0;
}

pre.plain::-webkit-scrollbar {
  width: 10px;
}

pre.plain::-webkit-scrollbar-track {
  background: var(--colour-black-olive);
}

pre.plain::-webkit-scrollbar-thumb {
  background-color: var(--colour-white);
  border-radius: 3px;
  border: 2px solid var(--colour-black-olive);
}

.theme-dark pre.plain::-webkit-scrollbar-track {
  background: var(--colour-argent);
}

.theme-dark pre.plain::-webkit-scrollbar-thumb {
  background-color: var(--colour-raisin-black);
  border-radius: 3px;
  border: 2px solid var(--colour-argent);
}

search,
input[type="search"] {
  display: block;
  padding: 0 1rem;
}

input[type="text"],
input[type="email"],
textarea {
  appearance: none;
  margin: 1rem 0.5rem 1rem 0;
  padding: 0.75rem;
  border: 1px solid var(--colour-raisin-black);
  border-radius: 0;
  font-family: var(--font-monospace);
  font-size: 1rem;
  font-weight: var(--font-weight-light);
  vertical-align: middle;
}

.theme-dark input[type="text"],
.theme-dark input[type="email"],
.theme-dark textarea {
  border: 1px solid var(--colour-anti-flash-white);
  font-weight: 200;
}

input[type="submit"],
button {
  appearance: none;
  font-size: 0.85rem;
  font-family: var(--font-system);
  text-transform: uppercase;
  letter-spacing: 1px;
  background-color: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
  vertical-align: middle;
}

.theme-dark input[type="submit"],
.theme-dark button {
  font-weight: 500;
}

input[type="submit"].reverse,
button.reverse {
  background-color: var(--colour-raisin-black);
  color: var(--colour-anti-flash-white);
  padding: 0.9rem 1rem;
}

.theme-dark input[type="submit"].reverse,
.theme-dark button.reverse {
  background-color: var(--colour-anti-flash-white);
  color: var(--colour-raisin-black);
  padding: 0.9rem 1rem;
}

input[type="submit"].with-border,
button.with-border {
  padding: 0.9rem 1rem;
  border: 1px solid var(--colour-raisin-black);
}

input[type="submit"]:hover,
button:hover {
  cursor: pointer;
  opacity: 0.5;
}

.theme-dark input[type="submit"]:hover,
.theme-dark button:hover {
  cursor: pointer;
  opacity: 0.5;
}

video {
  display: block;
  width: 100%;
  border: 1px solid var(--colour-raisin-black);
}

.theme-dark video {
  border: 1px solid var(--colour-anti-flash-white);
}

audio {
  width: 100%;
  margin: 1rem 0;
}