@view-transition {
  navigation: auto;
}

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

html {
  -webkit-text-size-adjust: none;
  -moz-text-size-adjust: none;
  text-size-adjust: none;
}

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd {
  margin-block-end: 0;
}

ul[role="list"], ol[role="list"] {
  list-style: none;
}

body {
  min-height: 100vh;
  line-height: 1.5;
}

h1, h2, h3, h4, button, input, label {
  line-height: 1.1;
}

h1, h2, h3, h4 {
  text-wrap: balance;
}

a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

img, picture {
  max-width: 100%;
  height: auto;
  display: block;
}

input, button, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

textarea:not([rows]) {
  min-height: 10em;
}

:target {
  scroll-margin-block: 5ex;
}

body {
  font-family: Noto Sans, DejaVu Sans, Seravek, Gill Sans Nova, Ubuntu, Calibri, Source Sans Pro, sans-serif;
  font-weight: normal;
}

h1, h2, h3, .posts a:link, article.story {
  font-family: STIX Two Text, Noto Serif, DejaVu Serif, Cambria, Sitka Text, Charter, Bitstream Charter, serif;
}

:root {
  --vintage-paper: #fffaf0;
  --gloss: white;
  --faded-ink: #212121;
  --accent: #a4dded;
  --link-on-paper: #00f;
  --visited-on-paper: #00f;
  --active-on-paper: #00f;
  --link-on-ink: #42b4ff;
  --visited-on-ink: #c994ff;
  --active-on-ink: #ff8989;
  --paper: var(--vintage-paper);
  --ink: var(--faded-ink);
  --link: var(--link-on-paper);
  --visited: var(--visited-on-paper);
  --active: var(--active-on-paper);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: var(--faded-ink);
    --gloss: black;
    --ink: var(--vintage-paper);
    --link: var(--link-on-ink);
    --visited: var(--visited-on-ink);
    --active: var(--active-on-ink);
  }
}

html {
  background-image: radial-gradient(circle, var(--gloss) 75%, var(--paper));
  color: var(--ink);
  color-scheme: light dark;
  text-size-adjust: none;
  background-attachment: scroll;
  font-size: 20px;
}

* {
  max-width: 100%;
}

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

a:link {
  color: var(--link);
}

a:visited {
  color: var(--visited);
}

a:focus, a:hover, a:active, a:hover svg {
  color: var(--active);
}

a > svg {
  color: var(--ink);
}

a.u-url {
  width: fit-content;
  display: block;
}

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

body {
  flex-direction: column;
  margin: 0;
  display: flex;
}

header, footer {
  padding: 2rem;
}

header {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  display: flex;
}

nav ul {
  padding-inline-start: 0;
}

.h-card {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  display: flex;
}

ul.nav {
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1em;
  list-style-type: none;
  display: flex;
}

main {
  flex: 2;
}

main > .content, article > .content, aside {
  max-width: 50rem;
  margin: 1rem auto;
  padding: 0 2rem;
}

time, aside {
  font-size: smaller;
  font-style: italic;
}

blockquote {
  font-style: italic;
}

blockquote, figcaption {
  max-width: 30rem;
  margin: 0 auto;
}

footer blockquote, footer blockquote + figcaption {
  text-align: center;
}

blockquote + figcaption:before {
  content: "—";
  padding-inline-end: .2rem;
}

.hero {
  object-fit: contain;
  width: 100%;
  height: auto;
  max-height: 25rem;
}

.content picture {
  box-shadow: 0 0 .8em var(--dark);
  outline: 1px solid var(--light);
  width: fit-content;
  margin: 1em auto;
}

.webrings > .row {
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: start;
  font-size: smaller;
  display: flex;
}

blockquote:before {
  content: open-quote;
}

blockquote:after {
  content: close-quote;
}

blockquote {
  quotes: "“" "”" "‘" "’";
  margin: 1rem auto;
}

blockquote + figcaption {
  text-align: right;
}

footer blockquote {
  margin: 0 auto;
}

.stacker > :first-child {
  grid-area: main;
}

.stacker > :last-child {
  grid-area: sidebar;
  margin: 0 auto;
}

.stacker {
  grid-gap: 1em;
  display: grid;
}

.stacker img.round {
  border-radius: 50%;
}

@media (orientation: landscape) {
  .stacker {
    grid-template-areas: "main main sidebar";
  }
}

@media (orientation: portrait) {
  .stacker {
    grid-template-areas: "sidebar"
                         "main";
  }

  .stacker img.round {
    width: 50vw;
  }
}

.pagefind-ui {
  --pagefind-ui-font: inherit;
  --pagefind-ui-scale: 1.2;
  --pagefind-ui-text: var(--ink);
}

input.pagefind-ui__search-input, button.pagefind-ui__search-clear {
  color: var(--paper) !important;
}

.pagefind-ui__form:before {
  background-color: var(--paper) !important;
}

.summary {
  border-inline-start: .25em solid;
  padding: 1em;
  font-style: italic;
}

:is(ol, ul):not([class]) li + li {
  margin-block-start: .6em;
}

article.story {
  border: 1px solid #ffffff80;
  margin: 2rem 0;
  padding: 1rem 2rem 3rem;
}
