/*
 * i dream of covid: self-hosted site styles.
 *
 * Replaces the Squarespace 7.1 stylesheets (site.css, static.css and the
 * website component CSS) that the mirrored pages used to load from
 * static1.squarespace.com and definitions.sqspcdn.com. The rules recreate the
 * site's look from the layout settings stored in the mirrored markup
 * (header layout, blog grid, blog post and section settings), so the
 * pages no longer depend on any Squarespace CSS or JavaScript.
 * Only the images are still served from images.squarespace-cdn.com.
 */

/* ---------------------------------------------------------------------------
 * Settings
 * ------------------------------------------------------------------------ */

:root {
  --font-heading: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --color-bg: #fff;
  --color-text: #000;
  --color-muted: rgba(0, 0, 0, 0.6);

  --site-max-width: 1400px;
  --site-gutter: 4vw;
  --header-vert-padding: 3vw;
  --section-padding: 3.3vmax;

  /* Referenced by inline styles in the mirrored markup. */
  --black-hsl: 0, 0%, 0%;
  --white-hsl: 0, 0%, 100%;
}

@media (max-width: 767px) {
  :root {
    --site-gutter: 6vw;
  }
}

@media (max-width: 799px) {
  :root {
    --header-vert-padding: 6vw;
  }
}

/* ---------------------------------------------------------------------------
 * Base
 * ------------------------------------------------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.25;
}

h1 {
  font-size: 2.6rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
}

[hidden],
.hidden {
  display: none !important;
}

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

.icon--fill svg {
  fill: currentColor;
}

.icon--stroke svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5px;
}

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#page {
  flex: 1 0 auto;
  width: 100%;
}

/* Squarespace-only UI with no function on the static mirror. */
.floating-cart,
.sqs-announcement-bar-dropzone,
.header-border,
.header-dropshadow,
.header-background,
.header-menu-bg,
.blog-article-spacer,
.blog-item-author-profile-wrapper,
.blog-item-comments {
  display: none;
}

/* ---------------------------------------------------------------------------
 * Header
 * ------------------------------------------------------------------------ */

.header {
  position: relative;
  z-index: 10;
  background: var(--color-bg);
  color: var(--color-text);
}

.header-announcement-bar-wrapper {
  position: relative;
  z-index: 2;
  background: var(--color-bg);
}

.header-skip-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3;
  padding: 0.75em 1.25em;
  border: 1px solid currentColor;
  background: var(--color-bg);
  color: var(--color-text);
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
}

.header-skip-link:focus {
  opacity: 1;
  pointer-events: auto;
}

.header-inner {
  position: relative;
  padding: var(--header-vert-padding) var(--site-gutter);
}

.header-display-desktop,
.header-display-mobile {
  display: flex;
  align-items: center;
  width: 100%;
}

.header-display-mobile {
  display: none;
}

.header-title-nav-wrapper {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.header-title {
  flex-shrink: 0;
  margin-right: 2.5vw;
}

.header-title-text {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.header-title-text a {
  color: inherit;
  text-decoration: none;
}

.header-nav {
  display: flex;
  flex: 1 1 auto;
  justify-content: flex-end;
}

.header-nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.header-nav-item {
  position: relative;
}

.header-nav-item:not(:last-child) {
  margin-right: 1.7vw;
}

.header-nav-item > a,
.header-nav-folder-title {
  display: inline-block;
  margin: 0;
  padding: 0.1em 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

/* Inline, so the underline hugs the text like the folder title spans. */
.header-nav-item > a {
  display: inline;
  padding: 0;
}

/* Underline that grows on hover and stays on the current page. */
.header-nav-item > a,
.header-nav-folder-title-text,
.header-nav-folder-item-content {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size 0.2s ease;
}

.header-nav-item > a:hover,
.header-nav-item > a:focus-visible,
.header-nav-folder-title:hover .header-nav-folder-title-text,
.header-nav-folder-title:focus-visible .header-nav-folder-title-text,
.header-nav-item--active > a,
.header-nav-item--active > .header-nav-folder-title .header-nav-folder-title-text,
.header-nav-folder-item a:hover .header-nav-folder-item-content,
.header-nav-folder-item a:focus-visible .header-nav-folder-item-content,
.header-nav-folder-item--active .header-nav-folder-item-content {
  background-size: 100% 1px;
}

.header-nav-folder-content {
  position: absolute;
  top: 100%;
  left: -1em;
  z-index: 3;
  min-width: calc(100% + 2em);
  padding: 0.5em 1em;
  background: var(--color-bg);
  text-align: left;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.header-nav-item--folder:hover > .header-nav-folder-content,
.header-nav-item--folder.is-open > .header-nav-folder-content {
  opacity: 1;
  visibility: visible;
}

.header-nav-folder-item a {
  display: block;
  padding: 0.2em 0;
  color: inherit;
  font-size: 0.95rem;
  line-height: 1.6;
  text-decoration: none;
}

.header-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  margin-left: 2.5vw;
}

.header-actions-action--social,
.header-menu-actions-action--social {
  display: flex;
  align-items: center;
}

.header-icon {
  display: flex;
  color: inherit;
}

.header-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.header-icon.icon--lg svg {
  width: 32px;
  height: 32px;
}

.header-burger {
  display: none;
  flex-shrink: 0;
}

.header-burger-btn {
  position: relative;
  display: block;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.burger-box,
.burger-inner {
  position: absolute;
  inset: 0;
}

.burger-inner .top-bun,
.burger-inner .patty,
.burger-inner .bottom-bun {
  position: absolute;
  left: 3px;
  right: 3px;
  height: 1px;
  background: currentColor;
  transition: top 0.25s ease, transform 0.25s ease;
}

.burger-inner .top-bun {
  top: calc(50% - 4px);
}

.burger-inner .patty {
  top: 50%;
}

.burger-inner .bottom-bun {
  top: calc(50% + 4px);
}

.header-menu-icon-doubleLineHamburger .patty {
  display: none;
}

.header--menu-open .burger-inner .top-bun {
  top: 50%;
  transform: rotate(45deg);
}

.header--menu-open .burger-inner .bottom-bun {
  top: 50%;
  transform: rotate(-45deg);
}

/* Mobile menu overlay */

.header-menu {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  padding: calc(2 * var(--header-vert-padding) + 3rem) var(--site-gutter) var(--site-gutter);
  background: var(--color-bg);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.header--menu-open .header-menu {
  opacity: 1;
  visibility: visible;
}

.header-menu-nav {
  margin: auto 0;
}

.header-menu-nav-item a {
  display: inline-block;
  padding: 0.2em 0;
  color: inherit;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  line-height: 1.4;
  text-decoration: none;
}

.header-menu-nav-item-content-folder::after {
  content: "";
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  margin-left: 0.4em;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  vertical-align: 0.15em;
}

.header-menu-nav-folder:not([data-folder="root"]) {
  display: none;
}

.header-menu--folder-open .header-menu-nav-folder.is-open {
  display: block;
}

.header-menu--folder-open .header-menu-nav-wrapper > .header-menu-nav-item,
.header-menu--folder-open .header-menu-actions {
  display: none;
}

.header-menu-controls a {
  margin-bottom: 0.5em;
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.header-menu-controls a::before {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-right: 0.5em;
  border-bottom: 1px solid currentColor;
  border-left: 1px solid currentColor;
  transform: rotate(45deg);
  vertical-align: 0.05em;
}

.header-menu-actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

@media (max-width: 799px) {
  .header-display-desktop {
    display: none;
  }

  .header-display-mobile {
    display: flex;
  }

  .header-display-mobile .header-nav,
  .header-display-mobile .header-actions {
    display: none;
  }

  .header-display-mobile .header-burger {
    display: block;
    margin-left: auto;
  }

  .header-title-text {
    font-size: 1.4rem;
  }

  .header--menu-open {
    overflow: hidden;
  }
}

@media (min-width: 800px) {
  .header-menu {
    display: none;
  }
}

/* ---------------------------------------------------------------------------
 * Page sections
 * ------------------------------------------------------------------------ */

.page-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-section > .section-border {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-section .section-background {
  position: absolute;
  inset: 0;
}

.page-section > .content-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: var(--section-padding) var(--site-gutter);
}

.page-section .content {
  width: 100%;
}

.section-height--small {
  min-height: 33vh;
}

.section-height--medium {
  min-height: 66vh;
}

.section-height--medium > .content-wrapper {
  padding-top: 6.6vmax;
  padding-bottom: 6.6vmax;
}

.section-height--large {
  min-height: 100vh;
}

.section-height--large > .content-wrapper {
  padding-top: 10vmax;
  padding-bottom: 10vmax;
}

.vertical-alignment--top {
  justify-content: flex-start;
}

.vertical-alignment--bottom {
  justify-content: flex-end;
}

.horizontal-alignment--center > .content-wrapper {
  justify-content: center;
}

.horizontal-alignment--right > .content-wrapper {
  justify-content: flex-end;
}

.content-width--narrow .content {
  width: 50%;
}

.content-width--medium .content {
  width: 75%;
}

/* Blog list and blog post collection sections */
.cdk-section > .content-wrapper {
  padding-bottom: 6.6vmax;
}

@media (max-width: 767px) {
  .page-section .content {
    width: 100% !important;
  }
}

/* ---------------------------------------------------------------------------
 * Blocks
 * ------------------------------------------------------------------------ */

.sqs-block {
  position: relative;
  padding: 17px 0;
}

.sqs-block:first-child {
  padding-top: 0;
}

.sqs-block:last-child {
  padding-bottom: 0;
}

/* Text */

.sqs-html-content > :first-child {
  margin-top: 0;
}

.sqs-html-content > :last-child {
  margin-bottom: 0;
}

.sqs-html-content p {
  margin: 1em 0;
}

.sqs-html-content a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.sqs-html-content blockquote {
  margin: 1.5em 0;
  padding: 0;
}

.sqsrte-large {
  font-size: 1.3rem;
  line-height: 1.5;
}

/* Image */

.sqs-block-image-figure {
  margin: 0;
}

.sqs-block-image-figure.intrinsic {
  width: 100%;
  margin: 0 auto;
}

.image-block-wrapper {
  position: relative;
}

.sqs-image-shape-container-element:not(.content-fit) > img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.sqs-image-shape-container-element.content-fit > img {
  width: 100%;
  height: auto;
}

.image-overlay {
  display: none;
}

.image-caption-wrapper {
  margin-top: 0.75em;
  font-size: 0.9rem;
}

.image-caption-wrapper:has(> .image-caption:empty) {
  display: none;
}

.image-card-wrapper {
  margin-top: 1.5em;
  text-align: center;
}

/* Archive */

.archive-group-list,
.archive-item-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-block-setting-multicolumns .archive-group-list {
  columns: 2 280px;
  column-gap: 4vw;
}

.archive-group {
  margin-bottom: 2em;
}

.archive-group-name-link {
  display: block;
  margin-bottom: 0.5em;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  text-decoration: none;
  break-after: avoid;
}

.archive-item {
  margin: 0.25em 0;
  break-inside: avoid;
}

.archive-item-link {
  text-decoration: none;
}

.archive-item-link:hover {
  text-decoration: underline;
}

.archive-item-date-before {
  display: none;
}

.archive-item-date-after {
  margin-left: 0.5em;
  color: var(--color-muted);
  font-size: 0.85em;
}

/* Tag cloud */

.sqs-tagcloud {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.3;
  text-align: center;
}

.sqs-tagcloud li {
  display: inline-block;
  margin: 0 0.3em;
}

.sqs-tagcloud a {
  text-decoration: none;
}

.sqs-tagcloud a:hover {
  text-decoration: underline;
}

/* Code */

.sqs-code-container {
  text-align: center;
}

/* ---------------------------------------------------------------------------
 * Blog list (grid)
 * ------------------------------------------------------------------------ */

.blog-basic-grid {
  display: grid;
  grid-template-columns: repeat(var(--blog-columns, 2), minmax(0, 1fr));
  column-gap: var(--blog-horizontal-spacing, 50px);
  row-gap: var(--blog-vertical-spacing, 70px);
}

.blog-basic-grid--container {
  min-width: 0;
}

.blog-basic-grid .image-wrapper {
  position: relative;
  display: block;
  overflow: hidden;
  margin-bottom: var(--blog-image-spacing, 30px);
  padding-bottom: 66.6667%;
}

.blog-basic-grid[data-text-alignment="center"] .blog-basic-grid--text {
  text-align: center;
}

.blog-meta-section {
  margin-bottom: var(--blog-meta-spacing, 15px);
  font-size: 0.85rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.blog-meta-section a {
  text-decoration: none;
}

.blog-meta-section a:hover {
  text-decoration: underline;
}

/* Primary meta shows the categories, secondary meta shows the date. */
.blog-meta-primary .blog-author,
.blog-meta-primary .blog-date,
.blog-meta-secondary .blog-categories-list,
.blog-meta-secondary .blog-author,
.blog-category-delimiter {
  display: none;
}

.blog-meta-delimiter::after {
  content: "\2022";
  margin: 0 0.5em;
}

.blog-meta-primary:not(:has(.blog-categories)) + .blog-meta-delimiter {
  display: none;
}

.blog-basic-grid .blog-title {
  margin: 0 0 var(--blog-title-spacing, 30px);
  font-size: 1.6rem;
  line-height: 1.3;
}

.blog-basic-grid .blog-title a {
  text-decoration: none;
}

.blog-excerpt p {
  margin: 0;
}

.blog-more-link {
  display: inline-block;
  margin-top: var(--blog-read-more-spacing, 15px);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.blog-list-pagination {
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
}

.blog-list-pagination .older {
  margin-left: auto;
}

.blog-list-pagination a,
.item-pagination-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  color: inherit;
  text-decoration: none;
}

.blog-list-pagination-icon svg,
.item-pagination-icon svg {
  display: block;
  width: 9px;
  height: 16px;
}

@media (max-width: 767px) {
  .blog-basic-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------------------------------------------------------------------------
 * Blog post
 * ------------------------------------------------------------------------ */

.blog-item-wrapper > article {
  width: var(--blog-item-custom-width, 60%);
  max-width: 100%;
  margin: 0 auto;
}

.blog-item-top-wrapper {
  display: flex;
  flex-direction: column-reverse;
  margin-bottom: var(--header-spacing, 50px);
}

.blog-item-title .entry-title {
  margin: 0;
  font-size: 2.6rem;
  line-height: 1.2;
}

.blog-item-meta-wrapper {
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

/* Only the categories are shown above the title. */
.blog-item-author-date-wrapper {
  display: none;
}

.blog-item-category,
.blog-item-tag {
  text-decoration: none;
}

.blog-item-category:hover,
.blog-item-tag:hover {
  text-decoration: underline;
}

.blog-item-category-wrapper + .blog-item-category-wrapper::before,
.blog-item-tag-wrapper + .blog-item-tag-wrapper::before {
  content: ", ";
}

.blog-meta-item--tags {
  margin-top: 2.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.item-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4vw;
  margin-top: 6.6vmax;
}

.item-pagination-link {
  max-width: 50%;
}

.item-pagination-link--next {
  margin-left: auto;
  text-align: right;
}

.item-pagination-prev-next {
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.item-pagination-title {
  margin: 0.15em 0 0;
  font-size: 1.4rem;
}

@media (max-width: 767px) {
  .blog-item-wrapper > article {
    width: 100%;
  }

  .blog-item-title .entry-title {
    font-size: 2rem;
  }

  .item-pagination-title {
    font-size: 1.1rem;
  }
}

/* ---------------------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------------------ */

#footer-sections {
  font-size: 0.9rem;
}

/* ---------------------------------------------------------------------------
 * Motion
 * ------------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
