:root {
  --bg: #fff;
  --font-family-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
    "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
  --font-family-serif: "Garamond", "Times New Roman", serif;
  --content-left-padding: 2rem;

  --color-primary: #008485;
  --color-primary-hover: #007475;
  --color-text: #333;
  --color-text-secondary: #595959;
}

@media only screen and (min-width: 768px) {
  :root {
    --content-left-padding: 9rem;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #20262e;
    --color-primary: #cd5888;
    --color-primary-hover: #f55050;
    --color-text: #e9e8e8;
    --color-text-secondary: rgba(233, 232, 232, 0.5);
  }

  svg {
    fill: var(--color-text-secondary);
  }
  body {
    color: rgba(255, 255, 255, 0.9);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  background-color: var(--bg);
  max-width: 1600px;
  overflow-x: hidden;
  font-family: var(--font-family-sans);
  font-size: 10px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

@media (prefers-color-scheme: dark) {
  html {
    color-scheme: dark;
  }
}

.drop-cap:first-letter {
  font-size: 3.375em;
  line-height: 1;
  margin: 0 0.25em 0 0;
  font-weight: bold;
  float: left;
  font-family: var(--font-family-sans);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(2, auto);
  flex-wrap: nowrap;
  gap: 16px;
}
.ribbon {
  display: flex;
  align-items: center;
  text-transform: uppercase;
  width: fit-content;
  font-size: 1.4rem;
  font-weight: 500;
  padding: 0.4rem;
  background-color: var(--color-primary);
  color: #fff;
  line-height: 1.2;
  font-family: var(--font-family-sans);
}

/**

    CONTENT

  **/

.content {
  width: 100%;
  padding: 2rem 2rem 2rem var(--content-left-padding);
}

.content h1,
.content h2,
.content h3,
.content h4,
.content h4 {
  line-height: 1.2;
}

.content h2,
.content h1 {
  font-size: 3.9rem;
  font-family: var(--font-family-sans);
}

.content h3 {
  font-size: 3.3rem;
  font-family: var(--font-family-sans);
}

.content h4 {
  font-size: 3rem;
  font-family: var(--font-family-sans);
}

.content h5 {
  font-size: 2.8rem;
  font-family: var(--font-family-sans);
}

.content blockquote {
  font-size: 5rem;
  font-style: italic;
  text-align: center;
  line-height: 1.3;
}

.content h1::before,
.content h2::before {
  background: var(--color-text-secondary);
  content: "\020";
  display: block;
  height: 2px;
  margin: 1rem 0;
  width: 1em;
}

.content h2 a {
  text-decoration: none;
  color: var(--color-text);
  transition: color 0.2s ease-in-out;
}

.content h2 a:hover {
  text-decoration: none;
  color: var(--color-text-secondary);
}

.content {
  font-size: 2.2rem;
  font-family: var(--font-family-serif);
  margin-block-start: 3.2rem;
  margin-block-end: 3.2rem;
  margin-inline-start: 0;
  margin-inline-end: 0;
  line-height: 3.9rem;
}

.content a {
  text-decoration: underline;
  color: var(--color-primary);
  transition: color 0.2s ease-in-out;
}

.content a:hover {
  text-decoration: underline;
  color: var(--color-primary-hover);
}

.content ul,
.content ol {
  padding: 1rem 0;
}

@media only screen and (min-width: 768px) {
  .content {
    max-width: 910px;
    margin: 0 auto;
    padding: 2rem 2rem 2rem var(--content-left-padding);
  }
  .content h2,
  .content h1 {
    font-size: 5rem;
  }
  .content {
    font-size: 2.4rem;
  }
}
@media only screen and (min-width: 1200px) {
  .content {
    padding: 2rem 0 2rem var(--content-left-padding);
    max-width: 1110px;
    margin: 0 auto;
  }
  .content h2,
  .content h1 {
    font-size: 5rem;
  }
}

/**

    SUMMARY 


  **/

.summary {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.summary h2 a {
  text-decoration: none;
  color: var(--color-text);
  transition: color 0.2s ease-in-out;
}

.summary h2 a:hover {
  text-decoration: none;
  color: var(--color-text-secondary);
}

.summary .readMore {
  font-size: 2.2rem;
  color: var(--color-text);
  transition: color 0.2s ease-in-out;
  font-family: var(--font-family-serif);
  text-decoration: underline;
}

.summary .readMore:hover {
  text-decoration: none;
  color: var(--color-primary-hover);
}

.summary .readMore:after {
  content: "\02192";
  display: inline-block;
  margin-left: 0.5em;
}

.metadata {
  padding: 0;
  color: var(--color-text-secondary);
  font-size: 1.5rem;
  font-family: var(--font-family-sans);
  line-height: 1;
}

.metadata-item + .metadata-item {
  padding-top: 0.5rem;
}

.metadata-item {
  padding: 0.5rem;
  display: flex;
  align-items: center;
}

.metadata-item a {
  text-decoration: none;
  color: var(--color-text-secondary);
  transition: color 0.2s ease-in-out;
  font-weight: 500;
}

.metadata-item a:hover {
  text-decoration: none;
  color: var(--color-primary);
}

.metadata-item svg {
  fill: var(--color-text-secondary);
  margin-right: 0.8rem;
}

/**

HEADER

**/
.header {
  position: relative;
  z-index: 1;
}
.header .header-content {
  display: grid;
  width: 100%;
  grid-template-rows: repeat(4, auto);
  grid-row-gap: 0.4rem;
  padding: 1rem;
}

@media only screen and (min-width: 768px) {
  .header .header-content {
    max-width: 910px;
    margin: 0 auto;
    padding-top: 6rem;
  }
}
@media only screen and (min-width: 1200px) {
  .header .header-content {
    max-width: 1110px;
    margin: 0 auto;
    padding-top: 6rem;
  }
}

.header .avatar a:hover {
  border-color: #333;
}

.header .heading h1 {
  font-size: 2rem;
  font-weight: 600;
  margin: 0;
  padding: 0;
}

.header .heading span {
  color: var(--color-text-secondary);
  font-family: var(--font-family-serif);
  font-weight: 200;
}
.header .heading a {
  color: var(--color-text);
  text-decoration: none;
}
.header .heading a:hover {
  text-decoration: underline;
}

.header .navigation {
  display: grid;
  grid-template-columns: repeat(5, min-content);
  grid-column-gap: 1rem;
}

.header .social {
  display: grid;
  grid-template-columns: repeat(3, min-content);
  grid-column-gap: 0.5rem;
  padding: 0px 5px;
}
.header .social a {
  padding: 12px;
}
.header .social a svg {
  transition: fill ease-in-out 0.2s;
}
.header .social a:hover svg {
  fill: var(--color-primary);
}

.header .navigation a {
  text-decoration: none;
}
.header .navigation a:active,
.header .navigation a:hover,
.header .navigation a:focus {
  text-decoration: underline;
}

.header .navigation a {
  color: var(--color-primary);
  font-size: 2rem;
  font-weight: 600;
  transition: color 0.3s ease-in-out;
  white-space: nowrap;
}
.header .navigation a:hover {
  color: var(--color-primary-hover);
}

@media only screen and (min-width: 768px) {
  .header .social,
  .header .social a {
    padding: 0;
  }
  .header .header-content {
    grid-template-columns: var(--content-left-padding) 1fr;
    grid-template-rows: repeat(4, auto);
    grid-column-gap: 0.8px;
    grid-row-gap: 1rem;
  }

  .header .avatar {
    grid-area: 1 / 1 / 4 / 2;
  }
  .header .navigation {
    grid-area: 2 / 2 / 3 / 3;
  }
  .header .heading {
    grid-area: 1 / 2 / 2 / 3;
  }
  .header .social {
    grid-area: 3 / 2 / 4 / 3;
  }
}
@media only screen and (min-width: 1200px) {
}

.header.header-light .heading a,
.header.header-light .heading span {
  color: #fff;
}
.header.header-light .heading a:hover {
  opacity: 0.6;
}
.header.header-light .navigation a {
  color: #fff;
}
.header.header-light .navigation a:hover {
  opacity: 0.6;
}
.header.header-light .social a svg {
  fill: #fff;
}
.header.header-light .social a:hover svg {
  opacity: 0.6;
}

.header.header-light .avatar a:hover {
  border-color: #fff;
}

@media only screen and (min-width: 768px) {
  .header .heading h1 {
    font-size: 2.4rem;
  }
  .header .navigation a {
    font-size: 2.4rem;
  }
}
@media only screen and (min-width: 1200px) {
  .header .heading h1 {
    font-size: 2.6rem;
  }
  .header .navigation a {
    font-size: 2.6rem;
  }
}

.gravatar {
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 50%;
  border-width: 0.2rem;
  border-style: inset;
  border-color: transparent;

  transition: border-color 0.2s ease-in-out;
}

.gravatar:hover {
  border-color: inherit;
}

.gravatar .image {
  width: 100%;
  border-radius: 50%;
}

@media only screen and (min-width: 768px) {
  .gravatar {
    width: 6.4rem;
    height: 6.4rem;
  }
}

/**

ARTICLE

**/

.article section p {
  width: 90%;
}

.article img {
  max-inline-size: 100%;
  block-size: auto;
  object-fit: cover;
}

.article .full-image {
  width: 100vw;
  position: relative;
  width: 100vw;
  left: 50%;
  display: block;
  margin-left: 0;
  transform: translateX(-50%);
}

@media only screen and (min-width: 768px) {
  .article .full-image {
    position: relative;
    width: 100vw;
    left: 50%;
    display: block;
    margin-left: calc(var(--content-left-padding) * -1.5);
    transform: translateX(calc(-50% + var(--content-left-padding)));
  }
}
@media only screen and (min-width: 768px) {
  .article section p {
    width: 75%;
  }
}

@media only screen and (min-width: 1200px) {
  .article section p {
    width: 70%;
  }
}

.article-header {
  position: relative;
  z-index: 3;
}

.article-details h1 {
  margin-bottom: 1rem;
}

.article-header-with-image {
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-position: center;
  background-size: cover;
}

.article-header-with-image .header-info {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  left: 50%;
  width: 100%;
  transform: translateX(-50%);
}
.article-header-with-image picture {
  position: relative;
  max-height: 80vh;
  overflow: hidden;
}
.article-header-with-image picture::before {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  top: 0;
  content: " ";
  background-color: #333;
  opacity: 0.6;
}
.article-header-with-image picture img {
  object-fit: contain;
  max-inline-size: 100%;
}

.article-header-with-image .article-details {
  color: #fff;
  position: relative;
  z-index: 1;
}

.article-header-with-image .article-details h1::before {
  background: #fff;
  opacity: 1;
}

.article-header-with-image .article-details a,
.article-header-with-image .article-details time,
.article-header-with-image .article-details span {
  color: #fff;
}
.article-header-with-image .article-details svg {
  fill: #fff;
}

.article-header-with-image .article-details a:hover {
  opacity: 0.6;
}

@media only screen and (min-width: 768px) {
}
@media only screen and (min-width: 1200px) {
}

/**

PAGINATION

**/
.pagination {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 2rem;
}

/**

  SITE FOOTER

**/

.site-footer {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 5rem 2rem;
  font-size: 1.6rem;
  gap: 1.6rem;
}

@media only screen and (min-width: 768px) {
  .site-footer {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
  }
}

.site-footer .poweredby {
  text-align: right;
}

/**

  MICRODOSE/SHORT

**/

.microdose {
  padding: 5rem 0;
}
.microdose p {
  font-size: 3.6rem;
  line-height: 1.2;
  margin-block-start: 1rem;
}

@media only screen and (min-width: 768px) {
  .microdose p {
    font-size: 4.2rem;
  }
}
@media only screen and (min-width: 1200px) {
  .microdose p {
    font-size: 5rem;
  }
}

/**

  MICRODOSE/PHOTO

**/

.microdose-photo .microdose-photo-caption {
  margin-top: 3.6rem;
  font-family: var(--font-family-sans);
  font-size: 1.8rem;
  line-height: 1.5;
}
.microdose-photo .microdose-photo-caption::before {
  background: var(--color-text-secondary);
  content: "\020";
  display: block;
  height: 2px;
  margin: 1rem 0;
  width: 1em;
  font-size: 5rem;
}

.microdose-photo .microdose-photo-wrapper {
  margin: 1rem 0 4rem 0;
  display: block;
  max-width: 100%;
  height: auto;
  padding: 2rem;
  border: 1px solid #e0e0e0;
}

.microdose-photo .microdose-photo-wrapper picture {
  display: flex;
  justify-content: center;
}

@media only screen and (min-width: 768px) {
  .microdose-photo .microdose-photo-wrapper {
    width: max-content;
  }

  .microdose-photo-summary {
    max-width: 60%;
  }
}

.microdose-photo picture img {
  display: block;
  max-width: 100%;
  height: auto;
}

/**
HIGHLIGHT
**/

figure.highlight {
  overflow: auto;
  padding: 0 1.6rem;
  margin: 0;
}

figure.highlight pre {
  font-size: 1.4rem;
  line-height: 1.4;
}
