/* @tailwind base; */
section.media {
    /* @apply flex flex-wrap items-center; */
    display: flex;
    flex-direction: column
  }
@media (min-width: 768px) {
    section.media {
        flex-direction: row;
        align-items: center
    }
}
/* flex-wrap: wrap; */
/* gap: var(--md); */
@media (min-width: 768px) {
    section.media.reverse {
        flex-direction: row-reverse
    }
}
section.media h1 {
      line-height: 1;
      margin: 0;
    }
section.media h1 {
    font-size: 3rem;
    line-height: 1
}
@media (min-width: 768px) {
    section.media h1 {
        flex-basis: 50%
    }
}
@media (min-width: 1024px) {
    section.media h1 {
        font-size: 3.75rem;
        line-height: 1
    }
}
section.media h1 {
      /* flex-shrink: 1; */
    }
section.media div {
      flex-grow: 1;
    }
@media (min-width: 768px) {
    section.media figure {
        flex-basis: 50%
    }
}
section.media figure { 
      margin: 0;
      width: 100%;
      /* margin: var(--xl2) 0; */
      /* min-width: 25%; */
    }
section.media img {
      display: block;
      aspect-ratio: 3/2;
      width: 100%;
      height: 60vw;
    }
@media (min-width: 768px) {
    section.media img {
        height: auto
    }
}
section.media img {
      max-height: 30em;
    }
.visible {
    visibility: visible
}
.relative {
    position: relative
}
.grid {
    display: grid
}
.gap-1 {
    gap: 0.25rem
}
.gap-4 {
    gap: 1rem
}
.opacity-0 {
    opacity: 0
}
.opacity-100 {
    opacity: 1
}
.shadow {
    --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
}
.outline {
    outline-style: solid
}
.transition {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms
}

html {
  /* --bg: seashell;
  --color: black; */
  --color: #222;
  --color-neutral: #666;
  --color-low: #ccc;
  --color-accent: aquamarine;

  --xs: .5rem;
  --sm: .75rem;
  --md: 1em;
  --lg: 1.25em;
  --xl: 1.5em;
  --xl2: 2em;
  --xl3: 3em;
  --text-xl4: 4em;

  --font-normal: 400;
  --font-light: 300;

  --pad: 5%;

  --a-color: var(--color);
  --a-decoration: none;
  --a-hover-decoration: underline;

  background-color: var(--bg);
  color: var(--color);

  padding: 0;

  /* --md: 1em; */

  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: var(--md);
  font-style: normal;
  font-weight: var(--font-light);
  line-height: 1.2;
}
@media (prefers-color-scheme: dark) {
  html {
    --bg: #222;
    --color: #fff5ee;
    --color-low: #444;
  }
}

/* @media screen and (min-width: 640px) {
  html {
    --pad: 10%;
  }
} */


body {
  margin: 0;
  padding: 0 var(--pad);
}

h1, h2, h3 {
  font-weight: 400;
}

h1 {
  font-size: var(--xl3);
  margin-bottom: .5em;
}
h2 {
  font-size: var(--xl2);
}
h3 {
  font-size: var(--xl);
}

a {
  color: var(--a-color);
  text-decoration: underline;
}
a:hover {
  -webkit-text-decoration: var(--a-hover-decoration);
          text-decoration: var(--a-hover-decoration);
}

img {
  color: var(--color-low);
  transition: opacity .2s ease-in;
  opacity: 1;
  font-style: italic;
  /* display: flex; */
  /* align-items: end; */
}

blockquote {
  border-inline-start: 1px solid var(--color-neutral);
  font-style: italic;
  margin: 0;
  padding-left: var(--md);
  /* font-family: serif; */
}

.text-xl {
  font-size: var(--xl);
}
.text-xl2 {
  font-size: var(--xl2);
}
.text-xl3 {
  font-size: var(--xl3);
}

site-header {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  display: block;
  min-height: 4em
  /* opacity: 0; */
  /* transition: opacity .3s ease-in; */
}
site-header::part(logo) {
  height: 3em;
}

site-footer {
  margin-top: var(--xl3);
}

site-footer::part(logo) {
    margin-bottom: var(--sm);
  }

site-footer::part(license) {
    display: flex;
    gap: var(--xs);
  }

/* site-footer::part(aside) {
  display: grid;
  grid-template-columns: 1fr 3fr;
  grid-template-areas: "info navigation";
} */

/* site-footer::part(logo),
site-footer::part(slot),
site-footer::part(license) {
  grid-area: info;
} */

/* main {
  @apply 2xl:flex;
} */

html.index h1 {
  text-transform: capitalize;
}
#indexlist {
  border-collapse: collapse;
}
#indexlist tr.indexhead {
    display: none;
  }
/* td.indexcolname {
    min-width: 40%;
  } */
#indexlist td.indexcollastmod {
    width: 10em;
    color: var(--color-neutral);
    padding-inline-start: var(--md);
    padding-inline-end: var(--md);
  }
#indexlist td.indexcolsize {
    width: 4em;
    color: var(--color-neutral);
  }
#indexlist a {
    text-decoration: none;
  }
#indexlist a:hover {
    text-decoration: underline;
  }

.h-list li::marker {
  display: inline;
}

.grid-2 {
    display: grid;
    gap: 1rem
}

@media (min-width: 640px) {
    .grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

.list-reset {
  padding: 0;
  list-style: none;
}

ol.list-inline {
  list-style-position: inside;
  padding: 0;
}

ol.list-inline h3 {
    display: inline;
  }

html.research article h2 {
  font-family: ui-serif, serif;
}

content-list::part(summary) {
  font-style: italic;
}
site-footer {
  display: block;
  padding: var(--xl) 0;
}
site-footer::part(footer) {
  display: flex;
  flex-direction: column-reverse;
  gap: var(--md)
}
site-footer::part(nav) {
  display: flex;
}
site-footer::part(logo) {
  height: 2em;
  display: block;
}
@media (min-width: 768px) {
  html {
    --pad: 10%;
  }
  site-footer::part(footer) {
    flex-direction: row;
  }
  site-footer::part(nav) {
    justify-content: end;
  }
}
@media (min-width: 640px) {
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}
@media (min-width: 768px) {
    .md\:text-center {
        text-align: center
    }
}
@media (min-width: 1024px) {
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}