/*
 * What Squarespace's runtime used to do with inline styles, measured from the live site
 * (2026-10-16) and restated as CSS. Loaded after the template's site.css.
 */

/* Images: ImageLoader's sizing for the blocks that crop or fit their images. */
.summary-thumbnail.img-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  overflow: hidden;
}
.summary-thumbnail.img-wrapper img,
.sqs-video-overlay img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sqs-gallery-aspect-ratio-square .image-slide-anchor {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.sqs-gallery-aspect-ratio-square .image-slide-anchor img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.sqs-gallery-aspect-ratio-square .image-slide-anchor.content-fill img {
  object-fit: cover;
}

/* /work summary grid: one column, two once the list is 750px wide, 10px gutters.
   !important stands in for the inline styles Squarespace set, which beat summary.css. */
.summary-block-setting-design-autogrid {
  container-type: inline-size;
}
.summary-block-setting-design-autogrid .summary-item-list {
  margin-bottom: -10px;
}
.summary-block-setting-design-autogrid .summary-item-list::after {
  content: '';
  display: table;
  clear: both;
}
.summary-block-setting-design-autogrid .summary-item {
  float: left !important;
  clear: left !important;
  width: 100% !important;
  margin: 0 0 10px !important;
}
@container (min-width: 750px) {
  .summary-block-setting-design-autogrid .summary-item {
    width: calc((100% - 10px) / 2) !important;
  }
  .summary-block-setting-design-autogrid .summary-item:nth-child(2n + 1) {
    margin-right: 10px !important;
  }
  .summary-block-setting-design-autogrid .summary-item:nth-child(2n) {
    clear: none !important;
  }
}

/* Video blocks: the play button was a Squarespace-hosted PNG. */
.sqs-video-wrapper .intrinsic-inner {
  position: relative;
}
.sqs-video-wrapper .sqs-video-overlay {
  cursor: pointer;
}
.sqs-video-wrapper .sqs-video-overlay .sqs-video-icon {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 33 33'%3E%3Cpath d='M9 5.5v22l18-11z' fill='%23fff'/%3E%3C/svg%3E") center / 33px no-repeat;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}
.sqs-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Poster image cards: Squarespace fit the text to the card with a script; on the live
   site that always lands at these fractions of the card width. !important stands in for
   the inline variable the script set, which outranked the block CSS. */
.image-block-outer-wrapper.design-layout-poster {
  container-type: inline-size;
}
.design-layout-poster .image-title.sqs-cdk-dynamic-text {
  font-size: max(0.75rem, 8.25cqw) !important;
}
.design-layout-poster .image-subtitle.sqs-cdk-dynamic-text {
  font-size: max(0.75rem, 2.81cqw) !important;
}

/* Footer social icons, formerly an icon font. */
#page-footer .social-links li::before {
  content: none !important;
}
#page-footer .social-links li {
  line-height: 27px;
}
#page-footer .social-links li svg {
  display: inline-block;
  vertical-align: top;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  fill: currentColor;
}
#page-footer .social-links a:hover li,
#page-footer .social-links a:focus-visible li {
  color: #4a90e2;
}

/* About page portrait. The image block spans the full window, so on wide screens the
   portrait grew past 1,900px. Cap it at the About copy's width: 606px, the text column
   inside its 17px gutters. */
#collection-57641a22e6f2e191d567491d .sqs-block-image .image-block-outer-wrapper {
  max-width: 606px;
  margin-left: auto;
  margin-right: auto;
}

/* Not from Squarespace: the small award credit at the bottom of /about. */
.award-badge {
  margin-top: 3em;
  font-size: 13px;
  line-height: 1.45;
}
.award-badge a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  opacity: 0.65;
  transition: opacity 0.2s;
}
.award-badge a:hover,
.award-badge a:focus-visible {
  opacity: 1;
}
.award-badge svg {
  flex: none;
}

/* Not from Squarespace: the "Lately" row of live sites above the home grid. */
.lately {
  clear: both;
  padding: 0 8px 48px;
  color: #1c1c1c;
}
/* Same width as the home grid (.homepage .recent-wrapper in the template). */
@media only screen and (min-width: 600px) {
  .lately { max-width: 750px; margin: 0 auto; }
}
@media only screen and (min-width: 992px) {
  .lately { max-width: 100%; }
}
@media only screen and (min-width: 1280px) {
  .lately { max-width: 1420px; }
}
.lately-heading {
  margin: 0 0 16px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
}
.lately-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}
.lately-item,
.lately-item:hover {
  display: block;
  color: #1c1c1c;
  text-decoration: none;
}
.lately-image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f3f3f3;
}
.lately-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 430ms ease-out;
}
.lately-item:hover .lately-image img,
.lately-item:focus-visible .lately-image img {
  transform: scale(1.04);
}
.lately-title,
.lately-meta {
  display: block;
  padding: 0 12px;
}
.lately-title {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 700;
}
.lately-meta {
  margin-top: 2px;
  font-size: 14px;
  opacity: 0.65;
}
@media (max-width: 599px) {
  .lately-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Enter like the home grid below (same template keyframes and durations), one beat earlier:
   the grid wrapper starts at .7s and its first tile at .92s, so these land at .80, .84 and .88. */
.lately {
  animation: slideUpfadeIn 0.7s 0.58s both;
}
.lately-item {
  animation: fadeInHomePostFeatureRow1 0.65s 0.8s both;
}
.lately-item:nth-child(2) {
  animation-delay: 0.84s;
}
.lately-item:nth-child(3) {
  animation-delay: 0.88s;
}

/* Not from Squarespace: the note at the end of the Farmur thesis page pointing to today's Farmur. */
.related-note {
  clear: both;
  padding: 24px 0 8px;
}
.related-note p {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 24px;
  border-left: 4px solid #50e3c2;
  background: #f7f7f7;
  font-size: 16px;
  line-height: 1.6;
}
.related-note a {
  font-weight: 600;
  white-space: nowrap;
}

/* Outbound arrow, drawn rather than typed: iOS turns the U+2197 character into an emoji. */
.arrow-out {
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  margin-left: 0.4em;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: 0.04em;
  transition: transform 0.2s ease-out;
}
.lately-title .arrow-out {
  opacity: 0.55;
}
a:hover > .arrow-out,
a:hover .lately-title .arrow-out {
  transform: translate(2px, -2px);
}

/* The home circles hang off the right edge, which gave the page hidden sideways scroll: the
   body's overflow-x only hides the scrollbar, so the whole page could still slide left. Clip
   them at the window edge instead. The circles themselves stay exactly where they were. */
@media only screen and (min-width: 600px) {
  .homepage .giant-circles-wrapper { right: 0; }
  .homepage .giant-circles-wrapper .giant-circles { right: -5vw; }
}
@media only screen and (min-width: 1280px) {
  .homepage .giant-circles-wrapper {
    max-width: none;
    overflow-x: clip;
    overflow-y: visible;
  }
  /* The template's 1600px-wide centered wrapper, as an offset. */
  .homepage .giant-circles-wrapper .giant-circles { right: max(0px, calc((100% - 1600px) / 2)); }
}
