@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('../fonts/dm-sans-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 100 1000;
  font-display: swap;
  src: url('../fonts/dm-sans-italic-latin.woff2') format('woff2');
}

.refined-site {
  --refined-focus: #eee;
  --refined-surface: #150e0e;
  --refined-overlay: rgb(9 8 15 / .92);
  --refined-rule: rgb(238 238 238 / .2);
  --refined-body-size: clamp(1rem, .979rem + .104vw, 1.0625rem);
  --refined-section-size: clamp(1.9375rem, 1.833rem + .521vw, 2.25rem);
  --refined-subsection-size: clamp(1.6875rem, 1.646rem + .208vw, 1.8125rem);
  --refined-title-size: clamp(2.5rem, 2.333rem + .833vw, 3rem);
  --refined-display-size: clamp(2.25rem, 1.667rem + 2.917vw, 4rem);
  --refined-space-small: .5rem;
  --refined-space-medium: clamp(1.25rem, 1.167rem + .417vw, 1.5rem);
  --refined-space-large: clamp(1.5rem, 1.25rem + 1.25vw, 2.25rem);
  --refined-space-section: clamp(2rem, 1.667rem + 1.667vw, 3rem);
  --refined-gutter: clamp(1.375rem, 1.25rem + .625vw, 1.75rem);
  --refined-heading: 'Cormorant Garamond', Georgia, serif;
  --refined-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-family: var(--refined-body);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

.refined-site h1,
.refined-site h2,
.refined-site h3,
.refined-site h4,
.refined-site h5,
.refined-site h6 {
  font-family: var(--refined-heading);
  font-weight: 400;
  letter-spacing: -.02em;
}

.refined-site .archive-title,
.refined-site .post__title {
  font-size: clamp(2.625rem, 2.333rem + 1.458vw, 3.5rem);
  font-weight: 300;
  line-height: 1.12;
}

.refined-site .post__title {
  font-size: var(--refined-title-size);
  text-wrap: balance;
}

.refined-posts .archive-box {
  margin-bottom: var(--refined-space-large);
  text-align: left;
}

.refined-posts .content > .container > .row > .col {
  width: 100%;
  margin-left: 0;
}

.refined-site .page,
.refined-site .post {
  max-width: 40rem;
}

.refined-site .page__content,
.refined-site .post__content {
  font-size: var(--refined-body-size);
  line-height: 1.7;
}

.refined-site .page__content h2,
.refined-site .post__content h2 {
  font-size: var(--refined-section-size);
  line-height: 1.2;
  margin-top: var(--refined-space-section);
  margin-bottom: var(--refined-space-medium);
}

.refined-site .page__content h3,
.refined-site .post__content h3 {
  font-size: var(--refined-subsection-size);
  line-height: 1.3;
  margin-top: 32px;
  margin-bottom: 20px;
}

.refined-site .post__content code,
.refined-site .page__content code {
  font-size: .9em;
  word-break: normal;
  overflow-wrap: anywhere;
}

.refined-site .post-head > .container,
.refined-site .footer-widgets > .container {
  max-width: 940px;
  padding-inline: var(--refined-gutter);
}

.refined-site .post-head {
  margin-bottom: var(--refined-space-section);
}

.refined-site .post-head .image-box {
  padding-top: 65%;
  min-height: 250px;
  border-radius: 8px;
  box-shadow: none;
}

.refined-site .post-image {
  border-radius: 8px;
}

.refined-site .post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.refined-site .post-tags .post__tag {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}

.refined-site .post__description {
  margin-bottom: var(--refined-space-small);
}

.refined-site .post__updated {
  margin-bottom: 0;
  font-size: 13px;
}

.refined-site .post__updated em {
  font-style: normal;
}

.refined-site .post__updated + h2 {
  margin-top: var(--refined-space-large);
}

.refined-site .footer-widgets {
  padding-top: 36px;
}

.refined-site .widget__title {
  font-size: 28px;
  margin-bottom: var(--refined-space-medium);
}

.refined-site .recent-posts__title {
  font-size: 26px;
  line-height: 1.2;
}

.refined-site .header {
  margin-top: 40px;
}

.refined-site .top-nav .nav__list .nav__item .nav__link {
  font-weight: 500;
  text-transform: none;
  letter-spacing: .1px;
  font-size: 13px;
}

.refined-site .hero {
  margin-bottom: var(--refined-space-large);
}

.refined-site .hero__image {
  min-height: 560px;
}

.refined-site .hero__title {
  font-family: var(--refined-heading);
  font-size: var(--refined-display-size);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}

.refined-site .hero__desc {
  font-size: 18px;
  line-height: 1.5;
}

.refined-site .hero__content {
  max-width: 40rem;
  padding-inline: var(--refined-gutter);
}

.refined-site .hero__bio {
  max-width: 32rem;
  margin: var(--refined-space-medium) auto 0;
  font-size: var(--refined-body-size);
  line-height: 1.7;
  text-wrap: balance;
}

.refined-site .hero__bio a {
  text-decoration: underline;
  text-decoration-color: var(--refined-rule);
  text-underline-offset: .2em;
}

.refined-site .hero__bio a:hover {
  text-decoration-color: currentColor;
}

.refined-site .content > .container,
.refined-site .footer > .container {
  max-width: 940px;
  padding-inline: var(--refined-gutter);
}

.refined-site .article {
  min-height: 0;
  margin-bottom: 40px;
}

.refined-site .article::after {
  display: none;
}

.refined-site .article__inner {
  min-height: 280px;
  height: auto;
  border-radius: 8px;
  box-shadow: none;
}

.refined-site .article__image img {
  border-radius: 8px;
}

.refined-site .article__content {
  padding: 28px 32px;
}

.refined-site .article__title {
  font-family: var(--refined-heading);
  font-size: var(--refined-section-size);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 10px 0 0;
}

.refined-site .article__title a {
  pointer-events: auto;
}

.refined-site .article__excerpt:empty {
  display: none;
}

.refined-site .article__meta .article__minutes,
.refined-site .article__meta .article__date {
  font-weight: 400;
}

.refined-site .article__date {
  margin-left: 8px;
}

.refined-home .footer-widgets,
.refined-posts .footer-widgets {
  display: none;
}

.refined-site .footer {
  margin-top: auto;
  padding: 28px 0;
}

.refined-site .footer__inner {
  flex-direction: row;
  gap: 24px;
}

.refined-site .footer__inner .copyright {
  order: 0;
}

.refined-site .copyright {
  font-size: 12px;
}

.refined-site .copyright a {
  font-weight: 400;
}

.refined-site .social,
.refined-site .social__item {
  margin-bottom: 0;
}

.refined-site a:focus-visible,
.refined-site button:focus-visible,
.refined-site [tabindex]:focus-visible {
  outline: 2px solid var(--refined-focus);
  outline-offset: 5px;
}

@media only screen and (max-width: 992px) {
  .refined-site .hero__image {
    min-height: 500px;
  }
}

@media only screen and (max-width: 768px) {
  .refined-site .hero__image {
    min-height: 460px;
  }
}

@media only screen and (max-width: 576px) {

  .refined-site .post-head .image-box {
    padding-top: 55%;
    min-height: 180px;
    margin-bottom: 28px;
  }

  .refined-site .header {
    margin-top: 24px;
  }

  .refined-site .hero__image {
    min-height: 380px;
  }

  .refined-site .hero__title {
    font-size: var(--refined-display-size);
    letter-spacing: -.02em;
    margin-bottom: 10px;
  }

  .refined-site .hero__desc {
    font-size: 16px;
  }

  .refined-site .hero {
    margin-bottom: var(--refined-space-medium);
  }

  .refined-site .article {
    margin-bottom: 28px;
  }

  .refined-site .article__inner {
    min-height: 240px;
  }

  .refined-site .article__content {
    padding: 24px;
  }

  .refined-site .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

.refined-page .hero__image {
  min-height: 360px;
}

@media only screen and (max-width: 576px) {
  .refined-page .hero__image {
    min-height: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .refined-site .article,
  .refined-site .article:hover {
    transform: none;
    animation: none;
    transition: none;
  }
}

.refined-site .post__content > p:not(.post__description):not(.post__updated),
.refined-site .page__content > p {
  margin-bottom: var(--refined-space-medium);
}

.refined-site .menu-toggle,
.refined-site .menu-close,
.refined-site .figure-close {
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: .5rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--refined-focus);
  font: inherit;
  cursor: pointer;
}

.refined-site .menu-toggle {
  display: none;
  font-size: 24px;
}

.refined-site .site-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--refined-surface);
  color: var(--refined-focus);
  overflow-y: auto;
  opacity: 0;
  transition: opacity 160ms ease-out,
    display 160ms allow-discrete,
    overlay 160ms allow-discrete;
}

.refined-site .site-menu[open] {
  opacity: 1;
}

.refined-site .site-menu::backdrop {
  opacity: 0;
  transition: opacity 160ms ease-out,
    display 160ms allow-discrete,
    overlay 160ms allow-discrete;
}

.refined-site .site-menu[open]::backdrop {
  opacity: 1;
}

@starting-style {
  .refined-site .site-menu[open],
  .refined-site .site-menu[open]::backdrop {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .refined-site .site-menu,
  .refined-site .site-menu::backdrop {
    transition: none;
  }
}

.refined-site .site-menu .main-nav__box {
  width: 100%;
  padding: clamp(5rem, 12vh, 7.5rem) var(--refined-gutter) 2rem;
}

.refined-site .menu-close {
  display: flex;
  position: absolute;
  top: 20px;
  right: var(--refined-gutter);
  font-size: 32px;
}

.refined-site .site-menu .mobile-nav .nav__list .nav__item .nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .5rem 1rem;
  font-family: var(--refined-body);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
}

.refined-site .site-menu .nav-grid__title {
  font-size: var(--refined-section-size);
  margin-bottom: var(--refined-space-large);
}

.refined-site .site-menu .nav-grid__title::after {
  display: none;
}

.refined-site .site-menu .nav__item {
  margin-bottom: var(--refined-space-small);
}

.dialog-open {
  overflow: hidden;
}

.refined-site .figure-link {
  display: block;
  border: 0;
  cursor: zoom-in;
}

.refined-site .figure-link img {
  display: block;
  width: 100%;
  cursor: zoom-in;
}

.refined-site .post__content .figure-link + em {
  display: block;
  margin: .625rem 0 0;
  font-size: .875rem;
  line-height: 1.5;
  text-align: left;
}

.refined-site .figure-viewer {
  position: fixed;
  inset: 0;
  width: calc(100% - 2rem);
  max-width: 90rem;
  height: calc(100% - 2rem);
  max-height: none;
  margin: auto;
  padding: 0;
  border: 1px solid var(--refined-rule);
  background: var(--refined-surface);
  color: var(--refined-focus);
}

.refined-site .figure-viewer[open] {
  display: flex;
  flex-direction: column;
}

.refined-site dialog::backdrop {
  background: var(--refined-overlay);
}

.refined-site .figure-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  flex-shrink: 0;
  gap: .5rem;
  padding: .5rem 1rem;
  border-bottom: 1px solid var(--refined-rule);
}

.refined-site .figure-original {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.refined-site .figure-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 1rem;
}

.refined-site .figure-full {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0 auto;
}

@media (max-width: 992px) {
  .refined-site .menu-toggle {
    display: flex;
  }
}

.refined-site .back-top {
  position: fixed;
  right: var(--refined-gutter);
  bottom: var(--refined-gutter);
  z-index: 20;
  width: 44px;
  height: 44px;
  padding: 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--refined-focus);
  cursor: pointer;
  opacity: .7;
  transition: opacity 160ms ease-out;
}

.refined-site .back-top:hover,
.refined-site .back-top:focus-visible {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .refined-site .back-top { transition: none; }
}

.refined-site .post__content h2 a,
.refined-site .post__content h3 a {
  border-bottom-color: transparent;
}

.refined-site .post__content h2 a:hover,
.refined-site .post__content h3 a:hover,
.refined-site .post__content h2 a:focus-visible,
.refined-site .post__content h3 a:focus-visible {
  border-bottom-color: var(--refined-rule);
}

.refined-site .post__content h2,
.refined-site .post__content h3 {
  scroll-margin-top: var(--refined-space-medium);
}

.refined-page .page {
  margin-inline: auto;
}

.refined-site .footer-widgets > .container {
  max-width: calc(40rem + 2 * var(--refined-gutter));
}

.refined-page .page__content {
  text-align: left;
  text-wrap: pretty;
}

.refined-site .footer-widgets {
  padding-top: var(--refined-space-large);
  padding-bottom: var(--refined-space-section);
}

.refined-site .widget__title {
  padding-left: 0;
  font-size: var(--refined-section-size);
  line-height: 1.3;
}

.refined-site .widget__title::after { display: none; }

.refined-site .recent-posts {
  display: grid;
  grid-template-columns: clamp(6rem, 18vw, 8rem) minmax(0, 1fr);
  gap: var(--refined-space-medium);
}

.refined-site .recent-posts__image {
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 4 / 3;
  padding: 0;
  margin: 0;
  border-radius: 8px;
}

.refined-site .recent-posts__image img { border-radius: 8px; }
.refined-site .recent-posts__content .recent-posts__title {
  margin: .5rem 0 0;
  font-size: clamp(1.375rem, 1.25rem + .625vw, 1.625rem);
  line-height: 1.25;
}

.refined-site .footer__inner { flex-wrap: wrap; }

.refined-site .profile-links {
  --social-surface: #17151e;
  --social-primary-surface: #24212b;
  --social-muted: #aaa;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.refined-site .profile-links a {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--refined-focus);
}

.refined-site .profile-links a::before {
  content: "";
  position: absolute;
  inset: 6px;
  z-index: -1;
  border-radius: 8px;
  background: var(--social-surface);
  transition: background-color 160ms ease-out;
}

.refined-site .profile-links svg { width: 16px; height: 16px; }

.refined-site .profile-links a:hover,
.refined-site .profile-links a:focus-visible {
  color: var(--refined-focus);
}

.refined-site .profile-links a:hover::before,
.refined-site .profile-links a:focus-visible::before {
  background: var(--social-primary-surface);
}

@media (prefers-reduced-motion: reduce) {
  .refined-site .profile-links a::before { transition: none; }
}

.refined-home .hero__content,
.refined-posts .hero__content {
  top: 44%;
  transform: translateX(-50%);
}

@media (max-width: 576px) {
  .refined-home .hero__content,
  .refined-posts .hero__content { top: 36%; }
}
.refined-site .article:hover { transform: none; }
.refined-site .article--text .article__inner { background: var(--refined-surface); border: 1px solid var(--refined-rule); }
.refined-site .post-head--text .post-head__box { max-width: 40rem; margin-inline: auto; }
.refined-site .pagination { display: flex; justify-content: center; align-items: center; gap: var(--refined-space-medium); margin-bottom: var(--refined-space-section); }
.refined-site .pagination a { display: inline-flex; align-items: center; min-height: 44px; }
.refined-site .post__content img + em { display: block; margin-top: .625rem; font-size: .875rem; line-height: 1.5; }
.refined-site .post__content img { max-width: 100%; height: auto; }

.refined-site::after { display: none; }
.refined-site .post__content iframe,
.refined-site .page__content iframe { max-width: 100%; }
.refined-site .post__content iframe[src*="youtube"],
.refined-site .post__content iframe[src*="vimeo"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }

.refined-site .navigation { margin-inline: auto; }
.refined-site .fallback-nav { margin-inline: auto; }

html { scrollbar-gutter: stable; }
.refined-site .footer-widgets .col { width: 100%; }

@media (prefers-reduced-motion: no-preference) {
  .refined-site .article,
  .refined-site .page,
  .refined-site .post {
    animation: content-enter 280ms ease-out;
  }

  @keyframes content-enter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
