:root {
  --ds-paper: #fefefe;
  --ds-ink: #1a1a1a;
  --ds-ink-light: #4a4a4a;
  --ds-muted: #6b7280;
  --ds-accent: #2892a3;
  --ds-accent-hover: #2fa9bd;
  --ds-border-light: #e5e7eb;
  --ds-feature-bg: #fafafa;
  --ds-content-width: 38rem;
  --ds-page-padding: 24px;
  --ds-base-font-size: 1.188rem;
  --ds-body-line-height: 1.7;
  --ds-heading-space: clamp(2rem, calc(2rem + 2.5vw), 4rem);
  --ds-font-body: "Crimson Text", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --ds-font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@font-face {
  font-family: "Inter";
  src: url("/blog/fonts/inter-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/blog/fonts/inter-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/blog/fonts/inter-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/blog/fonts/inter-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Crimson Text";
  src: url("/blog/fonts/crimson-text-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Crimson Text";
  src: url("/blog/fonts/crimson-text-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Crimson Text";
  src: url("/blog/fonts/crimson-text-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Crimson Text";
  src: url("/blog/fonts/crimson-text-600-italic.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

html {
  box-sizing: border-box;
  /* Josephine's original scale: 16px at 448px, rising to 18px at 1600px. */
  font-size: clamp(16px, calc(1rem + (1vw - 4.48px) * 0.1736111111), 18px);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  background: var(--ds-paper) url("/blog/images/site-wave.webp") center top / contain repeat fixed;
}

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

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--ds-paper);
  color: var(--ds-ink);
  font-family: var(--ds-font-body);
  font-size: var(--ds-base-font-size);
  font-weight: 300;
  line-height: var(--ds-body-line-height);
}

a {
  color: var(--ds-accent);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

a:hover,
a:focus {
  color: var(--ds-accent-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--ds-accent);
  outline-offset: 2px;
}

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

.ds-content-shell {
  width: min(calc(100% - (2 * var(--ds-page-padding))), var(--ds-content-width));
  margin: 0 auto;
}

.ds-site-frame {
  width: 100%;
  margin: 0;
  background: var(--ds-paper);
  border-radius: inherit;
  padding: var(--ds-page-padding) 0;
  overflow: hidden;
}

.ds-site-header {
  background: var(--ds-feature-bg);
  color: var(--ds-ink);
  border-bottom: 1px solid #e5e5e5;
}

.ds-header-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem 0;
}

.ds-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 100%;
  align-items: flex-start;
  margin: 0;
  padding: 0;
}

.ds-site-title {
  display: inline-block;
  font-family: var(--ds-font-ui);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  text-decoration: none;
  color: #111111;
}

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

.ds-site-title a:hover,
.ds-site-title a:focus {
  color: var(--ds-accent);
}

.ds-site-title::after {
  content: "";
  display: block;
  width: clamp(3rem, 12vw, 4.5rem);
  height: 2px;
  margin-top: 0.75rem;
  background: var(--ds-accent);
}

.ds-site-tagline {
  font-family: var(--ds-font-ui);
  font-style: italic;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: #666666;
  margin: 0;
}

.ds-site-links {
  font-family: var(--ds-font-ui);
  font-weight: 400;
  font-size: 0.9375rem;
  color: #666666;
  margin: 0;
  text-align: right;
  white-space: nowrap;
}

.ds-site-links a {
  color: inherit;
}

.ds-site-links a:hover,
.ds-site-links a:focus-visible {
  color: #e85d04;
  font-weight: 500;
}

.ds-main {
  margin-top: 1.62rem;
}

.ds-main--page {
  margin-top: 0;
}

.ds-post-card,
.ds-article-shell,
.ds-page-shell,
.ds-search-shell,
.ds-not-found {
  padding: 0;
}

.ds-post-card {
  padding-bottom: 3.5rem;
  margin-bottom: 3.5rem;
  border-bottom: 1px solid var(--ds-border-light);
}

.ds-post-card:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.ds-post-card time,
.ds-post-header time,
.ds-post-taxonomy,
.ds-footer-subscribe__description,
.footer-links,
.powered-by-line {
  color: var(--ds-muted);
  font-family: var(--ds-font-ui);
}

.ds-post-card time,
.ds-post-header time {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.ds-post-card__title,
.ds-post-header h1,
.ds-page-header h1,
.ds-archive-header h1,
.ds-not-found h1 {
  font-family: var(--ds-font-ui);
  color: var(--ds-ink);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.9rem;
}

.ds-post-card__title {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
  margin: var(--ds-heading-space) 0 0;
}

.ds-post-card__title a {
  color: inherit;
}

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

.ds-post-card .entry-content {
  color: var(--ds-ink-light);
  font-size: 1.05rem;
  line-height: 1.75;
  font-weight: 400;
  margin-top: 0.75rem;
  overflow-wrap: anywhere;
}

.ds-post-card .entry-content p {
  color: inherit;
  margin: 0;
}

.ds-post-card__more {
  display: flex;
  justify-content: center;
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.875rem;
  line-height: inherit;
}

.ds-post-card__more a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-bottom: 2px solid var(--ds-accent);
  padding-bottom: 0;
  font-family: var(--ds-font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ds-post-card__more a:hover,
.ds-post-card__more a:focus {
  border-color: var(--ds-accent-hover);
}

.ds-post-header {
  margin-bottom: 2rem;
}

.ds-post-header h1 {
  font-size: 1.875rem;
  line-height: 1.2;
  margin: 0;
  text-transform: uppercase;
}

.ds-archive-header h1,
.ds-not-found h1 {
  font-size: clamp(1.84rem, 3.5vw, 2.275rem);
}

.ds-page-header h1 {
  /* The original page template uses the theme's 1.2 cubed type scale. */
  font-size: 1.728em;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  text-transform: uppercase;
}

.entry-content {
  color: var(--ds-ink);
}

.ds-article-shell .entry-content,
.ds-page-shell .entry-content {
  font-size: inherit;
  line-height: inherit;
  margin-top: 1.5rem;
}

.entry-content > * {
  margin-top: 0;
  margin-bottom: 1.1em;
}

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

.entry-content img,
.entry-content video,
.entry-content iframe {
  max-width: 100%;
  height: auto;
}

.entry-content iframe {
  min-height: 315px;
  width: 100%;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--ds-font-ui);
  color: var(--ds-ink);
  margin-top: var(--ds-heading-space);
  margin-bottom: 0;
}

.entry-content > :is(h1, h2, h3, h4):first-child {
  margin-top: 0;
}

.entry-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.275rem);
  font-weight: 700;
  line-height: 1.15;
}

.ds-page-shell .entry-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.ds-page-shell .entry-content > * + :not(h2, h3, h4, h5, h6) {
  margin-top: 1.62rem;
}

.entry-content h2 {
  font-size: clamp(1.55rem, 3.5vw, 1.9rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.entry-content h3 {
  font-size: clamp(1.35rem, 3vw, 1.6rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.entry-content h4 {
  letter-spacing: -0.02em;
}

.entry-content p.has-small-font-size {
  font-size: 1.1rem;
  line-height: 1.75;
  font-style: italic;
  margin: 0;
}

.entry-content p.has-small-font-size + p.has-small-font-size {
  margin-top: 0.75rem;
}

.entry-content :not(.has-small-font-size) + p.has-small-font-size,
.entry-content p.has-small-font-size + :not(.has-small-font-size) {
  margin-top: 2rem;
}

.wp-block-quote {
  margin: 0 0 2.5rem;
  padding-left: 1.5rem;
  border-left: 3px solid var(--ds-muted);
  font-size: 1.15rem;
  line-height: 1.75;
  font-style: italic;
}

.wp-block-quote p {
  margin: 0 0 1rem;
}

.wp-block-quote cite,
.wp-block-pullquote cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--ds-font-ui);
  font-style: normal;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ds-muted);
}

.wp-block-pullquote {
  margin: 0 0 2.5rem;
  padding-left: 1.75rem;
  border-left: 4px solid var(--ds-accent);
  font-size: 1.2rem;
  line-height: 1.75;
  font-style: italic;
}

.followit--follow-form-container .form-preview {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
  padding: clamp(17px, 5%, 40px) clamp(17px, 7%, 50px);
  border-radius: 6px;
  border: 1px solid var(--ds-border-light);
  background-color: #ffffff;
  box-shadow: 0 6px 24px rgba(17, 24, 39, 0.15);
}

.followit--follow-form-container .form-preview,
.followit--follow-form-container .form-preview * {
  box-sizing: border-box;
}

.followit--follow-form-container .preview-heading,
.followit--follow-form-container .preview-input-field,
.followit--follow-form-container .preview-submit-button {
  width: 100%;
}

.followit--follow-form-container .preview-heading h5 {
  margin: 0;
  font-family: var(--ds-font-ui);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ds-ink);
  text-align: center;
}

.followit--follow-form-container .preview-input-field input {
  width: 100%;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 6px;
  border: 2px solid var(--ds-border-light);
  background-color: #ffffff;
  color: var(--ds-ink);
  font-family: var(--ds-font-ui);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.followit--follow-form-container .preview-input-field input::placeholder {
  color: var(--ds-muted);
  font-style: italic;
  font-weight: 400;
  opacity: 1;
}

.followit--follow-form-container .preview-submit-button button {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background-color: var(--ds-accent);
  color: #ffffff;
  font-family: var(--ds-font-ui);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.followit--follow-form-container .preview-submit-button button:hover,
.followit--follow-form-container .preview-submit-button button:focus {
  background-color: var(--ds-accent-hover);
}

.powered-by-line {
  margin-top: 0.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  font-size: 0.8125rem;
  gap: 0.6rem;
}

.powered-by-line img {
  height: 1.13em;
  max-height: 1.13em;
}

.ds-share-links {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--ds-font-ui);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.ds-share-label {
  font-weight: 600;
}

.ds-share-links__list,
.ds-footer-subscribe__links,
.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  padding: 0;
}

.ds-share-links__list {
  margin: 0;
}

.ds-share-links__item a:hover,
.ds-share-links__item a:focus,
.ds-footer-subscribe__links a:hover,
.ds-footer-subscribe__links a:focus,
.footer-links a:hover,
.footer-links a:focus {
  text-decoration: underline;
}

.ds-subscribe-cta {
  margin-top: 2rem;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--ds-font-ui);
  font-size: 0.9375rem;
  line-height: 1.6;
  text-align: center;
}

.ds-subscribe-cta a,
.ds-not-found a {
  text-decoration: underline;
}

.ds-site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--ds-border-light);
  padding: 2rem 0;
}

.ds-site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.ds-footer-subscribe {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
}

.ds-footer-subscribe__heading {
  margin: 0;
  font-family: var(--ds-font-ui);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.25;
}

.ds-footer-subscribe__description {
  margin: 0;
  font-family: var(--ds-font-body);
  font-size: 0.9375rem;
}

.ds-footer-subscribe__links {
  margin: 0;
  gap: 1rem;
  font-size: inherit;
}

.ds-site-footer__secondary {
  display: flex;
  justify-content: center;
}

.footer-links {
  margin: 0;
  gap: 1.5rem;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}

.ds-search-shell,
.ds-not-found {
  padding-top: 0;
}

.ds-search-shell .ds-archive-header,
.ds-not-found {
  text-align: center;
}

.ds-search-shell .ds-archive-header {
  margin-bottom: 1.5rem;
}

.ds-search-shell .ds-archive-header .entry-content,
.ds-not-found__body {
  max-width: 35rem;
  margin: 0 auto;
}

.ds-not-found__body {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.ds-not-found h1 {
  text-transform: uppercase;
}

.ds-not-found__guess ul {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.ds-search-form {
  display: grid;
  gap: 0.75rem;
  max-width: 38rem;
  margin: 0 auto;
}

.ds-search-form__label {
  font-family: var(--ds-font-ui);
  font-size: 0.95rem;
  font-weight: 600;
}

.ds-search-form__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ds-search-form--recovery .ds-search-form__controls {
  display: flex;
  align-items: stretch;
}

.ds-search-form input {
  flex: 1 1 18rem;
  min-height: 48px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--ds-border-light);
  border-radius: 6px;
  background: #ffffff;
  font-family: var(--ds-font-ui);
  font-size: 1rem;
}

.ds-search-form--recovery input {
  width: auto;
  min-width: 0;
  flex: 1 1 0;
  border-color: var(--ds-ink-light);
  text-align: center;
}

.ds-search-form button {
  min-height: 48px;
  padding: 0 1.25rem;
  border: 1px solid var(--ds-accent);
  border-radius: 6px;
  background: var(--ds-paper);
  color: var(--ds-accent);
  cursor: pointer;
  font-family: var(--ds-font-ui);
  font-size: 0.9375rem;
  font-weight: 600;
}

.ds-search-form button:hover,
.ds-search-form button:focus {
  border-color: var(--ds-accent-hover);
  color: var(--ds-accent-hover);
}

.ds-search-empty-state {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--ds-border-light);
  border-radius: 6px;
  background: var(--ds-feature-bg);
}

.ds-search-status {
  margin: 1.5rem 0;
  color: var(--ds-muted);
  font-family: var(--ds-font-ui);
  font-size: 0.95rem;
}

.ds-search-alternative {
  margin-top: 2rem;
  font-family: var(--ds-font-ui);
  font-size: 0.95rem;
}

.ds-search-alternative summary {
  cursor: pointer;
  color: var(--ds-accent);
}

.ds-search-alternative form {
  margin: 1rem 0;
}

.ds-search-results {
  margin-top: 1.5rem;
  text-align: left;
}

.ds-search-results:empty {
  display: none;
}

.ds-search-result:first-child {
  padding-top: 0;
}

.ds-search-result:last-child {
  margin-bottom: 0;
}

.ds-pagination {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-family: var(--ds-font-ui);
  font-size: 0.875rem;
  line-height: 1.2;
}

.ds-pagination[hidden] {
  display: none;
}

.ds-pagination__position {
  display: none;
}

.ds-pagination--posts {
  margin-top: 2rem;
}

.ds-pagination--posts .ds-pagination__numbers {
  flex: 0 1 auto;
  justify-content: flex-start;
}

.ds-pagination__numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
}

.ds-pagination__page,
.ds-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--ds-border-light);
  background-color: var(--ds-paper);
}

.ds-pagination__page {
  color: var(--ds-ink);
  font-weight: 500;
}

.ds-pagination__page.is-current {
  background-color: var(--ds-accent);
  border-color: var(--ds-accent);
  color: var(--ds-paper);
  font-weight: 600;
}

.ds-pagination__page.is-current:hover {
  color: var(--ds-paper);
}

.ds-pagination__ellipsis {
  color: var(--ds-muted);
  font-family: var(--ds-font-ui);
  padding: 0 0.2rem;
}

.ds-pagination--posts a {
  height: 2.5rem;
  border: 2px solid transparent;
  border-radius: 4px;
  padding: 1.125em 1.5em;
  box-shadow: 0 0.15em 0.5em rgba(0, 0, 0, 0.1);
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.ds-pagination--posts .ds-pagination__page {
  min-width: 2.25rem;
}

.ds-pagination--posts a.ds-pagination__page {
  padding: 1em 1.382em;
}

.ds-pagination--posts .is-current {
  width: 2.25rem;
  padding: 0;
}

.ds-pagination--posts .ds-pagination__ellipsis {
  padding: 1em;
  font-weight: 500;
  color: var(--ds-ink);
}

.ds-not-found {
  max-width: 42rem;
}

@media (min-width: 1280px) {
  body {
    max-width: min(calc(100% - 2rem), 1900px);
    margin: 1rem auto 0;
    border-radius: 1rem 1rem 0 0;
    box-shadow: 0 0.25em 1em rgba(0, 0, 0, 0.15);
  }
}

@media (min-width: 1440px) {
  body {
    max-width: min(calc(100% - 4rem), 1900px);
    margin-top: 2rem;
  }
}

@media (max-width: 879px) {
  body {
    line-height: 1.5;
  }
}

@media (max-width: 768px) {
  :root {
    --ds-base-font-size: 1.0625rem;
  }

  .ds-site-frame {
    width: 100%;
    margin: 0;
  }

  .ds-header-inner {
    flex-direction: column;
    gap: 1.25rem;
    padding: 2.25rem 0;
  }

  .ds-site-links {
    margin-left: 0;
    text-align: left;
    white-space: normal;
  }

  .ds-site-title {
    font-size: 2rem;
  }

  .ds-post-card {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .ds-post-card__title,
  .ds-post-header h1 {
    font-size: 1.6rem;
  }

  .ds-article-shell .entry-content,
  .ds-page-shell .entry-content {
    font-size: inherit;
  }

  .entry-content h1 {
    font-size: 1.84rem;
  }

  .ds-archive-header h1,
  .ds-not-found h1 {
    font-size: 1.84rem;
  }

  .ds-share-links,
  .ds-pagination {
    justify-content: flex-start;
  }

  .ds-pagination__numbers {
    justify-content: flex-start;
  }

  .ds-search-form__controls {
    flex-direction: column;
  }

  .ds-search-form input {
    flex-basis: auto;
  }

}

@media (max-width: 599px) {
  .ds-pagination--posts .ds-pagination__numbers {
    display: none;
  }

  .ds-pagination--posts .ds-pagination__position {
    display: block;
  }

  .ds-pagination--posts .ds-pagination__next {
    margin-left: auto;
  }

  .ds-site-footer {
    padding-bottom: 8.5rem;
  }
}
