@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400;0,6..96,700;1,6..96,400;1,6..96,700&display=swap');

.mismatch-publication {
  --soft-ink: #1A1A1A;
  --deep-navy: #0E2841;
  --fndry-maroon: #6B2D2D;
  --paper: #F6F4F0;
  --warm-grey: #EDEBE8;
  --stone: #5C5F5E;
  --bone: #F7F6F3;
  --bodoni: 'Bodoni Moda', 'Didot', Georgia, serif;
  --geo: Georgia, 'Times New Roman', serif;
  --stone-grey: var(--stone);
  --warm-light-grey: var(--warm-grey);
  background: var(--paper);
  color: var(--soft-ink);
  font-family: var(--geo);
}

.mismatch-maroon-bar {
  height: 3px;
  width: 100%;
  background: var(--fndry-maroon);
}

.mismatch-progress-track {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 2px;
  background: var(--warm-grey);
}

.mismatch-progress-fill {
  height: 100%;
  width: 0;
  background: var(--fndry-maroon);
  transition: width 80ms linear;
}

.mismatch-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 220px;
  gap: 0 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.mismatch-sidenav {
  position: sticky;
  top: 70px;
  align-self: start;
  padding-top: 40px;
}

.mismatch-sidenav-label {
  font-family: var(--geo);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--stone);
  margin-bottom: 16px;
}

.mismatch-sidenav-part {
  font-family: var(--geo);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--fndry-maroon);
  font-style: italic;
  margin: 20px 0 8px;
}

.mismatch-sidenav-link {
  display: block;
  font-family: var(--geo);
  font-size: 12px;
  color: var(--stone);
  text-decoration: none;
  padding: 4px 0;
  line-height: 1.4;
  transition: color 150ms ease;
}

.mismatch-sidenav-link:hover {
  color: var(--deep-navy);
}

.mismatch-sidenav-link.is-active {
  color: var(--deep-navy);
  font-weight: 600;
}

.mismatch-main {
  min-width: 0;
  max-width: 720px;
  padding-top: 32px;
}

.mismatch-masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 8px 16px;
  margin-bottom: 48px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--warm-grey);
}

.mismatch-wordmark {
  font-family: var(--bodoni);
  font-style: italic;
  font-size: 14px;
  color: var(--stone);
}

.mismatch-pub-title {
  font-family: var(--bodoni);
  font-style: italic;
  font-size: 14px;
  color: var(--stone);
}

.mismatch-chapter-header {
  position: relative;
  margin-bottom: 40px;
}

.mismatch-chapter-numeral {
  position: absolute;
  top: -20px;
  left: -8px;
  font-family: var(--bodoni);
  font-size: 150px;
  font-weight: 700;
  line-height: 1;
  color: var(--warm-grey);
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.mismatch-chapter-meta {
  position: relative;
  z-index: 1;
}

.mismatch-eyebrow {
  font-family: var(--geo);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--fndry-maroon);
  font-style: italic;
  margin-bottom: 12px;
}

.mismatch-chapter-title {
  font-family: var(--bodoni);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--deep-navy);
  margin-bottom: 16px;
}

.mismatch-chapter-subtitle {
  font-family: var(--geo);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--stone);
  max-width: 56ch;
  line-height: 1.5;
}

.mismatch-rule {
  height: 1px;
  background: var(--stone);
  opacity: 0.25;
  margin: 32px 0 40px;
  border: 0;
}

.mismatch-body {
  font-family: var(--geo);
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--soft-ink);
}

.mismatch-body > * {
  max-width: 72ch;
}

.mismatch-body > p {
  margin-bottom: 1.25em;
}

.mismatch-body > p:first-of-type::first-letter {
  float: left;
  font-family: var(--bodoni);
  font-weight: 700;
  font-size: 3.4em;
  line-height: 0.85;
  padding: 0.06em 0.12em 0 0;
  color: var(--deep-navy);
}

.mismatch-body > h2.mismatch-section-title {
  font-family: var(--bodoni);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--deep-navy);
  margin: 2.5em 0 1em;
  max-width: none;
}

.mismatch-body > p.mismatch-part-intro {
  font-style: italic;
  color: var(--stone);
  border-left: 2px solid var(--fndry-maroon);
  padding-left: 1em;
  margin-bottom: 1.5em;
}

.mismatch-pull-quote {
  border-top: 1px solid var(--fndry-maroon);
  border-bottom: 1px solid var(--fndry-maroon);
  padding: 20px 0;
  margin: 48px 0;
  text-align: center;
  max-width: none !important;
}

.mismatch-pull-quote p {
  font-family: var(--bodoni);
  font-style: italic;
  font-size: 22px;
  line-height: 1.45;
  color: var(--deep-navy);
  margin: 0;
  max-width: 56ch;
  margin-inline: auto;
}

.mismatch-exhibit {
  margin: 48px 0;
  max-width: none !important;
}

.mismatch-exhibit-label {
  font-family: var(--geo);
  font-style: italic;
  font-size: 13px;
  color: var(--stone);
  margin-bottom: 16px;
}

.mismatch-exhibit-mount {
  width: 100%;
}

.mismatch-exhibit iframe {
  width: 100%;
  border: none;
  display: block;
  transition: height 0.15s ease;
}

.mismatch-chapter-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--warm-grey);
}

.mismatch-chapter-nav a {
  font-family: var(--geo);
  font-size: 13px;
  color: var(--stone);
  text-decoration: none;
  transition: color 150ms ease;
}

.mismatch-chapter-nav a:hover {
  color: var(--deep-navy);
}

.mismatch-section-footer {
  margin-top: 48px;
  padding-top: 16px;
  font-family: var(--geo);
  font-style: italic;
  font-size: 10px;
  color: var(--stone);
}

.mismatch-pdf-sidebar {
  position: sticky;
  top: 70px;
  align-self: start;
  padding-top: 40px;
}

.mismatch-pdf-card {
  background: var(--bone);
  border: 1px solid var(--warm-grey);
  padding: 24px 20px;
}

.mismatch-pdf-card h3 {
  font-family: var(--bodoni);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--deep-navy);
  margin-bottom: 12px;
  line-height: 1.25;
}

.mismatch-pdf-card p {
  font-family: var(--geo);
  font-size: 13px;
  line-height: 1.55;
  color: var(--stone);
  margin-bottom: 16px;
}

.mismatch-pdf-form label {
  display: block;
  font-family: var(--geo);
  font-size: 11px;
  color: var(--stone);
  margin-bottom: 4px;
}

.mismatch-pdf-form input {
  width: 100%;
  font-family: var(--geo);
  font-size: 13px;
  padding: 8px 10px;
  border: 1px solid var(--warm-grey);
  background: #fff;
  margin-bottom: 12px;
}

.mismatch-pdf-form button {
  width: 100%;
  font-family: var(--geo);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 10px 16px;
  background: var(--fndry-maroon);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: opacity 150ms ease;
}

.mismatch-pdf-form button:hover {
  opacity: 0.9;
}

.mismatch-pdf-status {
  font-size: 11px;
  margin-top: 8px;
  color: var(--stone);
}

.mismatch-landing-hero {
  padding-top: 48px;
  padding-bottom: 32px;
}

.mismatch-landing-title {
  font-family: var(--bodoni);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--deep-navy);
  margin-bottom: 12px;
}

.mismatch-landing-subtitle {
  font-family: var(--geo);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--stone);
  margin-bottom: 32px;
}

.mismatch-landing-meta {
  font-family: var(--geo);
  font-size: 12px;
  color: var(--stone);
  margin-bottom: 40px;
}

.mismatch-landing-cta {
  display: inline-block;
  font-family: var(--geo);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 12px 24px;
  background: var(--fndry-maroon);
  color: #fff;
  text-decoration: none;
  transition: opacity 150ms ease;
}

.mismatch-landing-cta:hover {
  opacity: 0.9;
  color: #fff;
}

.mismatch-mobile-chapter-bar {
  display: none;
  position: -webkit-sticky;
  position: sticky;
  top: 64px;
  z-index: 25;
  background: var(--paper);
  border-bottom: 1px solid var(--warm-grey);
  padding: 8px 16px;
}

.mismatch-mobile-chapter-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--geo);
  font-size: 12px;
  color: var(--deep-navy);
  background: none;
  border: 1px solid var(--warm-grey);
  padding: 10px 12px;
  cursor: pointer;
}

.mismatch-mobile-chapter-panel {
  display: none;
  position: fixed;
  top: 57px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 26;
  background: #F6F4F0;
  overflow-y: auto;
  border-top: 2px solid #6B2D2D;
  box-shadow: 0 8px 24px rgba(14, 40, 65, 0.18);
}

.mismatch-mobile-chapter-panel.is-open {
  display: block;
}

.mismatch-mobile-chapter-panel-inner {
  padding: 20px 24px 48px;
}

.mismatch-mobile-chapter-panel .mismatch-sidenav-label {
  font-size: 10px;
  margin-bottom: 8px;
}

.mismatch-mobile-chapter-panel .mismatch-sidenav-part {
  padding-top: 10px;
  margin-bottom: 2px;
}

.mismatch-mobile-chapter-panel .mismatch-sidenav-link {
  padding: 14px 0;
  font-size: 15px;
  color: #0E2841;
  border-bottom: 1px solid #EDEBE8;
}

.mismatch-mobile-chapter-close {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 2px solid #EDEBE8;
  margin-bottom: 8px;
  font-family: Georgia, serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #5C5F5E;
}

.mismatch-mobile-chapter-close button {
  background: none;
  border: none;
  font-family: Georgia, serif;
  font-size: 13px;
  color: #6B2D2D;
  cursor: pointer;
  padding: 6px 0;
  letter-spacing: 1px;
  text-transform: uppercase;
}

@media (max-width: 1023px) {
  .mismatch-layout {
    grid-template-columns: 1fr;
    padding: 0 20px 64px;
  }

  .mismatch-sidenav,
  .mismatch-pdf-sidebar {
    display: none;
  }

  .mismatch-mobile-chapter-bar {
    display: block !important;
  }

  .mismatch-main {
    max-width: none;
    padding-top: 24px;
  }

  .mismatch-chapter-numeral {
    font-size: 100px;
    top: -10px;
  }

  .mismatch-masthead {
    margin-bottom: 32px;
  }
}

@media (min-width: 1024px) {
  .mismatch-mobile-chapter-bar,
  .mismatch-mobile-chapter-panel {
    display: none !important;
  }
}

@media (max-width: 639px) {
  .mismatch-chapter-nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .mismatch-chapter-nav > div {
    flex: 1 1 40%;
    min-width: 0;
  }

  .mismatch-chapter-nav > div:last-child {
    text-align: right;
  }

  .mismatch-pull-quote p {
    font-size: 18px;
  }
}
