:root {
  color-scheme: dark light;
}

* {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-wrap: nowrap;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: clamp(16px, 0.5rem + 1vw, 20px);
  margin: 0;
  min-block-size: 100vh;
  position: relative;
  transition: padding 0.2s ease-in-out;
}

.skip-link {
  background-color: #fffff0;
  display: block;
  inset: 0 0 auto 0;
  position: absolute;
  padding: 0.5rem 1rem;
  text-align: center;
}

.skip-link:not(:focus):not(:active) {
  block-size: 1px;
  clip-path: inset(50%);
  inline-size: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.icon {
  block-size: 1em;
  inline-size: 1em;
  margin: 0 0.125em;
  vertical-align: -0.125em;
}

a,
a:link,
a:visited {
  color: light-dark(#06c, #6cf);
  text-underline-offset: 0.125em;
}

a:hover,
a:active {
  text-decoration: none;
}

@media (width < 1024px) {
  body {
    flex-direction: column;
  }
}

main {
  background-color: light-dark(#fffff0, #22222f);
  flex: 1 1 auto;
}

article {
  color: light-dark(#22222f, #fffff0);
  flex: 1 1 auto;
  margin: 0 auto;
  max-inline-size: 60rem;
  overflow: hidden;
  padding: 5vmin;
  position: relative;
  z-index: 1;

  p > img {
    border-radius: 0.25rem;
    max-inline-size: 100%;
  }
}

h1,
h2 {
  background: linear-gradient(to right, #d07, #07d, #5b0);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  color: #d07;
  font-family: "Russo One", sans-serif;
  letter-spacing: 0.025em;
}

h1 {
  font-size: 3em;
  margin: 0 0 1rem 0;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.subhead {
  color: light-dark(#666, #aaa);
  margin-block-end: 2rem;
  text-align: end;
}

address {
  display: inline;
}

p,
ul {
  font-family: sans-serif;
  line-height: 1.5;
}

.details {
  color: #666;
  text-align: end;
}

#current-page-label:focus-visible {
  outline: none;
}

code {
  background-color: light-dark(#eeeee0, #11111f);
  border-radius: 0.25em;
  display: inline-block;
  padding: 0 0.25em;
  white-space: break-spaces;
}

pre > code {
  display: block;
  padding: 1rem;
}

table {
  border-collapse: collapse;
}

th,
td {
  border: solid 1px #d07;
  padding: 0.5rem 1rem;
  text-align: start;
  vertical-align: top;
}

th {
  background-color: #d07;
  color: #fffff0;
}

th:first-child {
  border-start-start-radius: 0.25rem;
}
th:last-child {
  border-end-start-radius: 0.25rem;
}
td:first-child {
  border-start-end-radius: 0.25rem;
}
td:last-child {
  border-end-end-radius: 0.25rem;
}

section {
  padding: 1rem 0;
}

section:nth-child(odd) {
  background-color: light-dark(#eeeee0, #11111f);
  margin: 1rem -5vmin;
  padding: 1rem 5vmin;
}

hr {
  border-block-start: solid 1px light-dark(#bbb, #444);
  margin: 2em 0;
}

blockquote {
  border: solid 1px #d07;
  border-radius: 0.25em;
  margin: 1em 2em;
  padding: 0 2em;
  position: relative;
}

blockquote:before,
blockquote:after {
  color: #d07;
  font-family: serif;
  font-size: 3em;
  position: absolute;
}

blockquote:before {
  content: "“";
  inset: -0.125em auto auto -0.6em;
}

blockquote:after {
  content: "”";
  inset: auto -0.6em -0.5em auto;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  block-size: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  inline-size: 1px;
}
