:root {
  --accent: #800080;
  --secondary: #e3dee8;
  --background: #fffffe;
  --color: #292029;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 5rem;
}

/*
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #dd66ff;
    --background: #191119;
    --color: #fefefe;
  }
}
*/

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  background-color: var(--background);
  scrollbar-width: thin;
  scrollbar-color: rgba(41, 41, 41, 0.9) var(--background);
  height: 100%;
  font-size: var(--text-lg);
  line-height: 1.54;
  color: var(--color);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga", "tnum", "calt", "zero", "ss01", "locl", "calt";
  font-variant-ligatures: contextual;
  -webkit-overflow-scrolling: touch;
  -webkit-text-size-adjust: 100%;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
    Ubuntu, Cantarell, Open Sans, Helvetica Neue, sans-serif;
}

*,
:after,
:before {
  box-sizing: inherit;
  border: 0 solid;
  margin: 0;
  padding: 0;
}

audio,
canvas,
embed,
iframe,
img,
object,
video {
  display: block;
}

audio,
iframe,
img,
video {
  width: 100%;
  max-width: 100%;
  margin-top: 1rem;
}

.video, iframe.video {
  aspect-ratio: 16 / 9;
  width: 100%;
}

hr {
  width: 100%;
  border: none;
  background: rgba(41, 41, 41, 0.1);
  height: 1px;
  margin-top: 2rem;
}

a {
  text-decoration: none;
  color: var(--accent);
  transition: all 0.2s linear;
}

p a {
  text-decoration: underline;
}

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

ol {
  list-style-position: inside;
}

ol ol {
  list-style-type: lower-alpha;
}

ol > li::marker {
  font-weight: bold;
}

ul {
  list-style-type: square;
  list-style-position: inside;
}

b,
strong {
  font-weight: 600;
}

table {
  border-collapse: collapse;
  caption-side: bottom;
  overflow-x: auto;
  min-width: 100%;
  border: 1px solid rgba(41, 41, 41, 0.3);
}

table,
table caption {
  margin-top: 1rem;
}

td,
th {
  border: 1px solid rgba(41, 41, 41, 0.3);
  padding: 0.5rem;
  text-align: left;
}

th {
  font-weight: 500;
}

td:only-child {
  text-align: center;
}

* + h1,
* + h2 {
  margin-top: 1.5rem;
}

* + h3,
* + h4,
* + h5 {
  margin-top: 3rem;
}

* + p {
  margin-top: 2rem;
}

h2 + p,
h3 + p,
h4 + p {
  margin-top: 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.3;
  font-weight: 400;
  color: var(--color);
}

h1 {
  font-family: Charter, "Bitstream Charter", "Sitka Text", Cambria, serif;
  font-weight: 700;
  font-size: var(--text-5xl);
  color: var(--accent);
  margin-bottom: 0.5rem;
}

h2 {
  font-weight: 600;
  font-size: var(--text-3xl);
  margin-top: 3.5rem;
}

h3 {
  font-weight: 600;
  font-size: var(--text-xl);
}

h4,
h5,
p {
  font-size: var(--text-lg);
}
dt {
  font-weight: 600;
  text-align: left;
  margin-top: 1.2rem;
  margin-bottom: .5rem;
}

blockquote {
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  font-style: italic;
}

blockquote,
pre {
  margin-top: 1rem;
}

pre {
  white-space: pre-wrap;
  -moz-tab-size: 2;
  -o-tab-size: 2;
  tab-size: 2;
  font-size: 0.95rem;
  border: 1px solid rgba(41, 41, 41, 0.1);
  padding: 1rem;
  overflow: auto;
  max-width: 90vw;
  margin-left: auto;
  margin-right: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(41, 41, 41, 0.8);
}

code,
kbd {
  font-feature-settings: normal;
  background: var(--secondary);
  color: var(--accent);
  padding: 1px 6px;
  margin: 0 2px;
  font-size: 0.95rem;
}

code,
pre {
  font-family: Inconsolata, monospace;
}

mark {
  background: var(--accent);
  color: var(--background);
  padding: 1px 6px;
  margin: 0 2px;
  font-size: 0.95rem;
}

div.twitter-tweet {
  margin-left: auto;
  margin-right: auto;
}

main ol,
main ul {
  padding-top: 1.5rem;
}

main ol li,
main ul li {
  padding-bottom: 1rem;
}

.main {
  display: flex;
  padding-bottom: 4rem;
  flex-direction: column;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
  min-width: auto;
  max-width: 60rem;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 700px) {
  .main {
    padding-inline: 1rem;
  }
}


.layout-wrapper {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 100%;
}

.intro {
  display: grid;
  grid-gap: 3vmin;
  grid-template-columns: 2fr 1fr;
}

@media (max-width: 1000px) {
  .intro {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .intro {
    grid-template-columns: 1fr;
    grid-gap: 40px;
  }
}

.intro-text {
  position: relative;
  flex: 1 1 450px;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  background-size: cover;
  word-break: break-word;
  border-radius: 0.5rem;
  margin-right: 1.5rem;
}

figure.feature-pic {
  position: relative;
  flex: 1 1 450px;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  background-size: cover;
  word-break: break-word;
}

figure.feature-pic .feature-pic-image {
  position: relative;
  flex: 1 1 301px;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: var(--secondary);
  border-radius: 0.5rem;
}

figure.heroimage {
  margin: 1rem auto 0 auto;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  height: 50vh;
  height: clamp(8rem, 40vh, 40rem);
}

@media (min-width: 700px) {
  figure.heroimage {
    height: clamp(8rem, 60vh, 40rem);
  }
}

#share-link {
  width: 1rem;
  height: 1.25rem;
  background-image: url(https://cdn.glitch.global/c4e475b2-a54e-47e0-973c-ed0bd1b46262/share.svg?v=1669877640411);
  background-repeat: no-repeat;
  background-position: bottom;
  background-color: transparent;
  float: right;
}

#rss-icon img {
  margin-top: 0.25rem;
  max-width: 1rem;
  max-height: 1rem;
  width: 1rem;
  height: 1rem;
}

.tags > * {
  margin-right: 1rem;
  margin-top: 0.5rem;
}

.tags {
  margin-top: 1rem;
  font-size: var(--text-sm);
  margin-bottom: 1rem;
}

.tags a {
  text-decoration: none;
  color: var(--accent);
}

.post-feed {
  display: block;
  max-width: 80vw;
}

form#search {
  align-items: center;
  display: flex;
  width: 30rem;
  margin: 2rem auto 1rem auto;
}

form#search label {
  display: none;
  font-weight: 500;
  margin: 0 10px 0 0;
}

form#search input {
  border: 1px solid #800080;
  border-radius: 3px;
  flex: 1;
  font-size: var(--text-lg);
  font-weight: 600;
  height: 33px;
  margin: 0;
  min-width: 30rem;
  padding: .5rem;
  -webkit-appearance: textfield;
}

form#search button {
  border: none;
  cursor: pointer;
  height: 33px;
  padding: 0;
}

form#search svg {
  background-color: #26882e;
  border-radius: 0 2px 2px 0;
  fill: white;
  height: 33px;
  min-width: 2.5rem;
  padding: 0 7px;
  width: 2.5rem;
}

form#search svg:hover {
  background-color: #1d6823;
  fill: white;
}

@media all and (min-width: 500px) {
  form#search label {
    display: inline;
  }  
  form#search input::placeholder {
    opacity: 0;
  }  
}

.bull {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.post {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-feed .post {
  flex-direction: row;
}

.post__details {
  opacity: 0.8;
  font-size: 0.9rem;
  padding: 1rem 0;
/*
  1rem;
  border-bottom: 1px solid #e6e6e6;
*/
}

.post__header {
  max-width: 90vw;
}

header.post__header h1 {
  font-size: var(--text-6xl);
  text-align: center;
  margin: 2rem 5% 2rem 5%;
  letter-spacing: -0.01em;
  line-height: 125%;
}

@media (max-width: 700px) {
  header.post__header h1 {
    font-size: var(--text-4xl);
    margin: 1rem 0;
    line-height: 110%;
  }
}

.post__details > * + * {
  margin-left: 0.5rem;
}

.post__content {
  margin-top: 1rem;
  word-wrap: break-word;
}

.post__aside {
  margin-top: 2rem;
}

.post__tags {
  opacity: 0.8;
  font-size: var(--text-sm);
  display: inline;
}

.post-list {
  list-style: none;
}

.post-list__wrapper {
  max-width: 90vw;
  margin-top: 1.5rem;
}

.post__pagination {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post__pagination > :only-child {
  margin-right: auto;
  margin-left: auto;
}

.post__pagination a {
  display: flex;
  align-items: center;
}

.post__pagination span {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.post__tags a {
  text-decoration: none;
  color: var(--color);
}

.post__tags a:hover {
  color: var(--accent);
}

.post__tags * + * {
  margin-left: 0.5rem;
}

.post-list__tags {
  display: inline;
  text-decoration: none;
  font-size: var(--text-sm);
  margin-top: 0.5rem;
}

.post-list__tags a {
  text-decoration: none;
  color: var(--accent);
}

.post-list__tags a:hover {
  color: var(--accent);
}

.post-list__tags > * + * {
  margin-left: 0.5rem;
}

.post-list__excerpt {
  margin-top: 1rem;
  color: rgba(0, 0, 0, 0.8);
}

.post-list__meta {
  font-size: var(--text-sm);
  margin-top: 0.15rem;
  color: var(--accent);
}

.post-card {
  background-size: cover;
  word-break: break-word;
  border: 1px solid var(--secondary);
  border-radius: 0.5rem;
  margin-top: 1.5rem;
}

.post-card-image-link {
  width: 30rem;
  overflow: hidden;
  border-radius: 0.5rem 0 0 0.5rem;
  background-color: var(--secondary);
}

.post-card-image {
  width: 100%;
  height: 100%;
  background: var(--color-lightgrey) no-repeat 50%;
  -o-object-fit: cover;
  object-fit: cover;
  margin-top: 0;
}

.post-card-content {
  flex-grow: 1;
  margin: 0.75rem;
}

.post-card-content-link {
  color: var(--color);
  text-decoration: none;
}

.post-card-content-link:hover {
  color: var(--color);
  text-decoration: none;
}

.post-card-title {
  font-size: var(--text-2xl);
  margin-top: 0;
}

.post-card-excerpt p {
  font-size: var(--text-base);
  color: #666666;
}

.header {
  max-width: none;
  width: 100%;
  /*
  margin-bottom: 2rem;
  */
}

.header__content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 60rem;
  padding: 0 2.5rem;
  margin-top: 1rem;
  /*
  border-bottom: 1px solid #e6e6e6;
  */
}

@media (max-width: 700px) {
  .header__content {
    padding: 0 1rem;
  }
}


.header__content h1 {
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
  Ubuntu, Cantarell, Open Sans, Helvetica Neue, sans-serif;
}

.site-title {
  font-size: var(--text-xl);
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.site-title a {
  color: var(--accent);
  text-decoration: none;
}

.site-title a:hover {
  color: var(--color);
}

.nav__list {
  display: flex;
  justify-content: space-around;
  list-style: none;
  font-size: var(--text-base);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.nav__list a {
  color: var(--accent);
  text-decoration: none;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.nav__list li {
  margin-right: 2rem;
}

.nav__list li:last-child {
  margin-right: 0;
}

.nav__list a:hover {
  color: var(--color);
}

.footer {
  padding-bottom: 4rem;
  padding-left: 1rem;
  padding-right: 1rem;
  max-width: none;
  width: 100%;
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 60rem;
  width: 100%;
  font-size: var(--text-base);
  border-top: 1px solid #e6e6e6;
}

.footer__content > * {
  margin-top: 2rem;
}
.footer ul {
  list-style: none;
  display: flex;
}

.footer li {
  margin-right: 2rem;
}